1 | {
|
2 | "props": {
|
3 | "hidden": {
|
4 | "type": "Boolean",
|
5 | "desc": "Puts component into 'hidden' mode",
|
6 | "category": "state"
|
7 | },
|
8 |
|
9 | "width": {
|
10 | "type": [ "Number", "String" ],
|
11 | "desc": "Component width (in pixels)",
|
12 | "examples": [ ":width=\"300\"", "400" ],
|
13 | "category": "style"
|
14 | },
|
15 |
|
16 | "position": {
|
17 | "type": "String",
|
18 | "desc": "Positions component at one of the edges of the screen",
|
19 | "examples": [ "bottom" ],
|
20 | "required": true,
|
21 | "default": "top",
|
22 | "values": [ "top", "right", "bottom", "left" ],
|
23 | "category": "content"
|
24 | },
|
25 |
|
26 | "font-size": {
|
27 | "type": "String",
|
28 | "desc": "The size in CSS units, including unit name, of the content (icon, text)",
|
29 | "examples": [ "18px", "2rem" ],
|
30 | "category": "style"
|
31 | },
|
32 |
|
33 | "color": {
|
34 | "extends": "color"
|
35 | },
|
36 |
|
37 | "size": {
|
38 | "extends": "size",
|
39 | "desc": "My better description"
|
40 | }
|
41 | },
|
42 |
|
43 | "slots": {
|
44 | "default": {
|
45 | "extends": "default"
|
46 | },
|
47 |
|
48 | "icon": {
|
49 | "desc": "Slot for replacing the default dropdown icon"
|
50 | }
|
51 | },
|
52 |
|
53 | "scopedSlots": {
|
54 | "default": {
|
55 | "extends": "default"
|
56 | },
|
57 |
|
58 | "item": {
|
59 | "desc": "Scoped slot for displaying each uploaded file"
|
60 | }
|
61 | },
|
62 |
|
63 | "events": {
|
64 | "input": {
|
65 | "extends": "input"
|
66 | },
|
67 |
|
68 | "click": {
|
69 | "desc": "Emitted on QChip click if 'clickable' property is set",
|
70 | "params": {
|
71 | "evt": {
|
72 | "type": "Object",
|
73 | "desc": "JS event object"
|
74 | }
|
75 | }
|
76 | }
|
77 | },
|
78 |
|
79 | "methods": {
|
80 | "show": {
|
81 | "extends": "show"
|
82 | },
|
83 |
|
84 | "showNow": {
|
85 | "extends": "show",
|
86 | "desc": "My better description"
|
87 | },
|
88 |
|
89 | "hide": {
|
90 | "params": {
|
91 | "evt": {
|
92 | "type": "Object",
|
93 | "required": false,
|
94 | "desc": "JS event object"
|
95 | }
|
96 | },
|
97 | "desc": "Triggers component to hide"
|
98 | }
|
99 | }
|
100 | }
|