Blame view

node_modules/bootstrap-vue/src/components/dropdown/package.json 11.2 KB
4cd4fd28   郭伟龙   feat: 初始化项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
{
  "name": "@bootstrap-vue/dropdown",
  "version": "1.0.0",
  "meta": {
    "title": "Dropdown",
    "description": "Dropdowns are toggleable, contextual overlays for displaying lists of links and actions in a dropdown menu format.",
    "components": [
      {
        "component": "BDropdown",
        "aliases": [
          "BDd"
        ],
        "props": [
          {
            "prop": "block",
            "version": "2.1.0",
            "description": "Renders a 100% width toggle button (expands to the width of its parent container)"
          },
          {
            "prop": "boundary",
            "description": "The boundary constraint of the menu: 'scrollParent', 'window', 'viewport', or a reference to an HTMLElement"
          },
          {
            "prop": "dropleft",
            "description": "When set, positions the menu to the left of the button"
          },
          {
            "prop": "dropright",
            "description": "When set, positions the menu to the right of the button"
          },
          {
            "prop": "dropup",
            "description": "When set, positions the menu on the top of the button"
          },
          {
            "prop": "html",
            "description": "HTML string to place in the toggle button, or in the split button is split mode",
            "xss": true
          },
          {
            "prop": "lazy",
            "description": "When set, will only mount the menu content into the DOM when the menu is open"
          },
          {
            "prop": "menuClass",
            "description": "CSS class (or classes) to add to the menu container"
          },
          {
            "prop": "noCaret",
            "description": "Hide the caret indicator on the toggle button"
          },
          {
            "prop": "noFlip",
            "description": "Prevent the menu from auto flipping positions"
          },
          {
            "prop": "offset",
            "description": "Specify the number of pixels to shift the menu by. Negative values supported"
          },
          {
            "prop": "popperOpts",
            "description": "Additional configuration to pass to Popper.js"
          },
          {
            "prop": "right",
            "description": "Align the right edge of the menu with the right of the button"
          },
          {
            "prop": "size",
            "description": "Set the size of the component's appearance. 'sm', 'md' (default), or 'lg'"
          },
          {
            "prop": "split",
            "description": "When set, renders a split button dropdown"
          },
          {
            "prop": "splitButtonType",
            "description": "Value to place in the 'type' attribute on the split button: 'button', 'submit', 'reset'"
          },
          {
            "prop": "splitClass",
            "version": "2.2.0",
            "description": "CSS class (or classes) to add to the split button"
          },
          {
            "prop": "splitHref",
            "description": "Denotes the target URL of the link for the split button"
          },
          {
            "prop": "splitTo",
            "description": "<router-link> prop: Denotes the target route of the split button. When clicked, the value of the to prop will be passed to router.push() internally, so the value can be either a string or a Location descriptor object"
          },
          {
            "prop": "splitVariant",
            "description": "Applies one of the Bootstrap theme color variants to the split button. Defaults to the 'variant' prop value"
          },
          {
            "prop": "text",
            "description": "Text to place in the toggle button, or in the split button is split mode"
          },
          {
            "prop": "toggleAttrs",
            "version": "2.22.0",
            "description": "Additional attributes to apply to the toggle button"
          },
          {
            "prop": "toggleClass",
            "description": "CSS class (or classes) to add to the toggle button"
          },
          {
            "prop": "toggleTag",
            "description": "Specify the HTML tag to render instead of the default tag",
            "xss": true
          },
          {
            "prop": "toggleText",
            "description": "ARIA label (sr-only) to set on the toggle when in split mode"
          },
          {
            "prop": "variant",
            "description": "Applies one of the Bootstrap theme color variants to the component"
          }
        ],
        "events": [
          {
            "event": "bv::dropdown::hide",
            "description": "Emitted on $root just before dropdown is hidden. Cancelable",
            "args": [
              {
                "arg": "bvEvent",
                "type": "BvEvent",
                "description": "BvEvent object. Call bvEvent.preventDefault() to cancel hide"
              }
            ]
          },
          {
            "event": "bv::dropdown::show",
            "description": "Emitted on $root just before dropdown is shown. Cancelable",
            "args": [
              {
                "arg": "bvEvent",
                "type": "BvEvent",
                "description": "BvEvent object. Call bvEvent.preventDefault() to cancel show"
              }
            ]
          },
          {
            "event": "click",
            "description": "Emitted when split button is clicked in split mode",
            "args": [
              {
                "arg": "event",
                "type": "MouseEvent",
                "description": "Native click event object"
              }
            ]
          },
          {
            "event": "hidden",
            "description": "Emitted when dropdown is hidden"
          },
          {
            "event": "hide",
            "description": "Emitted just before dropdown is hidden. Cancelable",
            "args": [
              {
                "arg": "bvEvent",
                "type": "BvEvent",
                "description": "BvEvent object. Call bvEvent.preventDefault() to cancel hide"
              }
            ]
          },
          {
            "event": "show",
            "description": "Emitted just before dropdown is shown. Cancelable",
            "args": [
              {
                "arg": "bvEvent",
                "type": "BvEvent",
                "description": "BvEvent object. Call bvEvent.preventDefault() to cancel show"
              }
            ]
          },
          {
            "event": "shown",
            "description": "Emitted when dropdown is shown"
          },
          {
            "event": "toggle",
            "description": "Emitted when toggle button is clicked"
          }
        ],
        "slots": [
          {
            "name": "button-content",
            "description": "Can be used to implement custom text with icons and more styling"
          },
          {
            "name": "default",
            "description": "Optionally scoped default slot for dropdown menu content",
            "scope": [
              {
                "prop": "hide",
                "type": "Function",
                "description": "Can be used to close the dropdown menu. Accepts an optional boolean argument, which if true returns focus to the toggle button"
              }
            ]
          }
        ]
      },
      {
        "component": "BDropdownItem",
        "aliases": [
          "BDdItem"
        ],
        "props": [
          {
            "prop": "linkClass",
            "version": "2.9.0",
            "description": "Class or classes to apply to the inner link element"
          }
        ],
        "events": [
          {
            "event": "click",
            "description": "Emitted when item is clicked",
            "args": [
              {
                "name": "event",
                "type": "MouseEvent",
                "description": "Native click event object"
              }
            ]
          }
        ],
        "slots": [
          {
            "name": "default",
            "description": "Content to place in the dropdown item"
          }
        ]
      },
      {
        "component": "BDropdownItemButton",
        "aliases": [
          "BDropdownItemBtn",
          "BDdItemButton",
          "BDdItemBtn"
        ],
        "props": [
          {
            "prop": "buttonClass",
            "version": "2.9.0",
            "description": "Class or classes to apply to the inner button element"
          }
        ],
        "events": [
          {
            "event": "click",
            "description": "Emitted when button item is clicked",
            "args": [
              {
                "name": "event",
                "type": "MouseEvent",
                "description": "Native click event object"
              }
            ]
          }
        ],
        "slots": [
          {
            "name": "default",
            "description": "Content to place in the dropdown item-button"
          }
        ]
      },
      {
        "component": "BDropdownDivider",
        "aliases": [
          "BDdDivider"
        ]
      },
      {
        "component": "BDropdownForm",
        "aliases": [
          "BDdForm"
        ],
        "props": [
          {
            "prop": "formClass",
            "version": "2.2.0",
            "description": "CSS class (or classes) to add to the form"
          },
          {
            "prop": "inline",
            "description": "When set, the form will be in inline mode which display labels, form controls, and buttons on a single horizontal row"
          },
          {
            "prop": "novalidate",
            "description": "When set, disables browser native HTML5 validation on controls in the form"
          },
          {
            "prop": "validated",
            "description": "When set, adds the Bootstrap class 'was-validated' on the form, triggering the native browser validation states"
          }
        ],
        "slots": [
          {
            "name": "default",
            "description": "Content to place in the dropdown form"
          }
        ]
      },
      {
        "component": "BDropdownText",
        "aliases": [
          "BDdText"
        ],
        "props": [
          {
            "prop": "textClass",
            "description": "Class or classes to apply to the inner element"
          }
        ],
        "slots": [
          {
            "name": "default",
            "description": "Content to place in the dropdown text"
          }
        ]
      },
      {
        "component": "BDropdownGroup",
        "aliases": [
          "BDdGroup"
        ],
        "props": [
          {
            "prop": "headerClasses",
            "description": "CSS class (or classes) to add to the header"
          }
        ],
        "slots": [
          {
            "name": "default",
            "description": "Content (items) to place in the dropdown group"
          },
          {
            "name": "header",
            "description": "Optional header content for the dropdown group"
          }
        ]
      },
      {
        "component": "BDropdownHeader",
        "aliases": [
          "BDdHeader"
        ],
        "slots": [
          {
            "name": "default",
            "description": "Content to place in the dropdown header"
          }
        ]
      }
    ]
  }
}