m8-mcp-server 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -14
- package/dist/generator/vue-template.d.ts +21 -0
- package/dist/generator/vue-template.d.ts.map +1 -1
- package/dist/generator/vue-template.js +497 -33
- package/dist/generator/vue-template.js.map +1 -1
- package/package.json +2 -1
- package/resources/components/actionsheet.json +199 -0
- package/resources/components/amap.json +66 -0
- package/resources/components/area.json +158 -0
- package/resources/components/badge.json +93 -0
- package/resources/components/button.json +260 -74
- package/resources/components/calendar.json +225 -0
- package/resources/components/cascader.json +115 -0
- package/resources/components/cell.json +85 -69
- package/resources/components/chart.json +55 -0
- package/resources/components/checkbox.json +158 -0
- package/resources/components/circle.json +138 -0
- package/resources/components/collapse.json +88 -0
- package/resources/components/countdown.json +105 -0
- package/resources/components/datepicker.json +216 -0
- package/resources/components/dialog.json +250 -0
- package/resources/components/divider.json +82 -0
- package/resources/components/dragsort.json +67 -0
- package/resources/components/dropdownmenu.json +129 -0
- package/resources/components/easycalendar.json +84 -0
- package/resources/components/empty.json +90 -0
- package/resources/components/field.json +423 -88
- package/resources/components/form.json +156 -0
- package/resources/components/grid.json +131 -0
- package/resources/components/header.json +147 -0
- package/resources/components/icon.json +104 -0
- package/resources/components/image.json +169 -0
- package/resources/components/imagepreview.json +150 -0
- package/resources/components/imagescale.json +245 -0
- package/resources/components/indexbar.json +83 -0
- package/resources/components/layout.json +74 -0
- package/resources/components/lazyload.json +46 -0
- package/resources/components/loading.json +103 -0
- package/resources/components/minirefresh.json +341 -0
- package/resources/components/noticebar.json +148 -0
- package/resources/components/notify.json +60 -0
- package/resources/components/numberkeyboard.json +216 -0
- package/resources/components/overlay.json +78 -0
- package/resources/components/pagination.json +137 -0
- package/resources/components/panel.json +87 -0
- package/resources/components/passwordinput.json +103 -0
- package/resources/components/picker.json +195 -0
- package/resources/components/popover.json +161 -0
- package/resources/components/popup.json +229 -0
- package/resources/components/progress.json +111 -0
- package/resources/components/qrcode.json +128 -0
- package/resources/components/radio.json +139 -0
- package/resources/components/rate.json +157 -0
- package/resources/components/rtc.json +35 -0
- package/resources/components/search.json +234 -0
- package/resources/components/selectperson.json +175 -0
- package/resources/components/sidebar.json +74 -0
- package/resources/components/skeleton.json +110 -0
- package/resources/components/slider.json +159 -0
- package/resources/components/stepper.json +241 -0
- package/resources/components/steps.json +108 -0
- package/resources/components/sticky.json +72 -0
- package/resources/components/swipe.json +146 -0
- package/resources/components/swipecell.json +118 -0
- package/resources/components/switch.json +123 -0
- package/resources/components/switchcell.json +123 -0
- package/resources/components/tab.json +257 -0
- package/resources/components/tabbar.json +137 -0
- package/resources/components/table.json +149 -0
- package/resources/components/tag.json +149 -0
- package/resources/components/toast.json +70 -0
- package/resources/components/treeselect.json +106 -0
- package/resources/components/uploader.json +283 -0
- package/resources/components/verifycode.json +94 -0
|
@@ -1,74 +1,260 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "button",
|
|
3
|
-
"name": "em-button",
|
|
4
|
-
"title": "按钮",
|
|
5
|
-
"description": "
|
|
6
|
-
"props": [
|
|
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
|
-
|
|
1
|
+
{
|
|
2
|
+
"id": "button",
|
|
3
|
+
"name": "em-button",
|
|
4
|
+
"title": "按钮",
|
|
5
|
+
"description": "按钮组件。",
|
|
6
|
+
"props": [
|
|
7
|
+
{
|
|
8
|
+
"name": "type",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"default": "info",
|
|
11
|
+
"required": false,
|
|
12
|
+
"description": "类型,可选值为 `primary` `default` `warning` `danger`"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "size",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"default": "normal",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "尺寸,可选值为 `large` `small` `mini`"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "text",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": "-",
|
|
25
|
+
"required": false,
|
|
26
|
+
"description": "按钮文字"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "color",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"default": "-",
|
|
32
|
+
"required": false,
|
|
33
|
+
"description": "按钮颜色,支持传入`linear-gradient`渐变色,weex 端只支持两种颜色渐变"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "icon",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"default": "-",
|
|
39
|
+
"required": false,
|
|
40
|
+
"description": "左侧图标名称或图片链接"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "icon-size",
|
|
44
|
+
"type": "string/number",
|
|
45
|
+
"default": "-",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "图标大小,默认单位是`px`"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "icon-prefix",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"default": "van-icon",
|
|
53
|
+
"required": false,
|
|
54
|
+
"description": "图标类名前缀,同 `Icon` 组件的 `class-prefix` 属性"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "icon-position",
|
|
58
|
+
"type": "string",
|
|
59
|
+
"default": "left",
|
|
60
|
+
"required": false,
|
|
61
|
+
"description": "图标展示位置,可选值为 `right`"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "native-type",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"default": "-",
|
|
67
|
+
"required": false,
|
|
68
|
+
"description": "原生 `button` 标签的 `type` 属性, 可选值有`submit` `reset`"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "block",
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"default": "false",
|
|
74
|
+
"required": false,
|
|
75
|
+
"description": "是否为块级元素"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "plain",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": "false",
|
|
81
|
+
"required": false,
|
|
82
|
+
"description": "是否为朴素按钮"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "square",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": "false",
|
|
88
|
+
"required": false,
|
|
89
|
+
"description": "是否为方形按钮"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "round",
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"default": "true",
|
|
95
|
+
"required": false,
|
|
96
|
+
"description": "是否为圆形按钮"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "disabled",
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"default": "false",
|
|
102
|
+
"required": false,
|
|
103
|
+
"description": "是否禁用按钮"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "hairline",
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": "false",
|
|
109
|
+
"required": false,
|
|
110
|
+
"description": "是否使用 0.5px 边框"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "loading",
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"default": "false",
|
|
116
|
+
"required": false,
|
|
117
|
+
"description": "是否显示为加载状态"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "loading-text",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"default": "-",
|
|
123
|
+
"required": false,
|
|
124
|
+
"description": "加载状态提示文字"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "loading-type",
|
|
128
|
+
"type": "string",
|
|
129
|
+
"default": "circular",
|
|
130
|
+
"required": false,
|
|
131
|
+
"description": "加载图标类型,可选值为`spinner` `ball` `operation`"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "loading-size",
|
|
135
|
+
"type": "string",
|
|
136
|
+
"default": "20px",
|
|
137
|
+
"required": false,
|
|
138
|
+
"description": "加载图标大小"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "url",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"default": "-",
|
|
144
|
+
"required": false,
|
|
145
|
+
"description": "点击后跳转的链接地址"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "to",
|
|
149
|
+
"type": "string /object",
|
|
150
|
+
"default": "-",
|
|
151
|
+
"required": false,
|
|
152
|
+
"description": "点击后跳转的目标路由对象,同 `vue-router` 的 `to` 属性,仅支持`path` `query` `replace` `hash`"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "replace",
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"default": "false",
|
|
158
|
+
"required": false,
|
|
159
|
+
"description": "是否在跳转时替换当前页面历史"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "open-type",
|
|
163
|
+
"type": "string",
|
|
164
|
+
"default": "-",
|
|
165
|
+
"required": false,
|
|
166
|
+
"description": "不同小程序平台的开放能力"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "app-parameter",
|
|
170
|
+
"type": "string",
|
|
171
|
+
"default": "-",
|
|
172
|
+
"required": false,
|
|
173
|
+
"description": "打开 APP 时,向 APP 传递的参数,open-type=launchApp 时有效, 微信小程序支持"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"events": [
|
|
177
|
+
{
|
|
178
|
+
"name": "click",
|
|
179
|
+
"parameters": "event: Event",
|
|
180
|
+
"description": ""
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "touchstart",
|
|
184
|
+
"parameters": "event: TouchEvent",
|
|
185
|
+
"description": ""
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "getphonenumber",
|
|
189
|
+
"parameters": "info: object",
|
|
190
|
+
"description": "微信小程序"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "getuserinfo",
|
|
194
|
+
"parameters": "info: object",
|
|
195
|
+
"description": "微信小程序"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "error",
|
|
199
|
+
"parameters": "info: object",
|
|
200
|
+
"description": "微信小程序"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "opensetting",
|
|
204
|
+
"parameters": "info: object",
|
|
205
|
+
"description": "微信小程序"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "launchapp",
|
|
209
|
+
"parameters": "info: object",
|
|
210
|
+
"description": "微信小程序"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"slots": [],
|
|
214
|
+
"examples": {
|
|
215
|
+
"vue2": [
|
|
216
|
+
{
|
|
217
|
+
"title": "按钮类型",
|
|
218
|
+
"code": "<em-button type=\"primary\">主要按钮</em-button>\n<em-button type=\"info\">信息按钮</em-button>\n<em-button type=\"default\">默认按钮</em-button>\n<em-button type=\"warning\">警告按钮</em-button>\n<em-button type=\"danger\">危险按钮</em-button>"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"title": "朴素按钮",
|
|
222
|
+
"code": "<em-button plain type=\"primary\">朴素按钮</em-button>\n<em-button plain type=\"info\">朴素按钮</em-button>"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"title": "细边框",
|
|
226
|
+
"code": "<em-button plain hairline type=\"primary\">细边框按钮</em-button>\n<em-button plain hairline type=\"info\">细边框按钮</em-button>"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"title": "禁用状态",
|
|
230
|
+
"code": "<em-button disabled type=\"primary\">禁用状态</em-button>\n<em-button disabled type=\"info\">禁用状态</em-button>"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"title": "加载状态",
|
|
234
|
+
"code": "<em-button loading type=\"primary\" />\n<em-button loading type=\"primary\" loading-type=\"spinner\" />\n<em-button loading type=\"info\" loading-text=\"加载中...\" />"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"vue3": [
|
|
238
|
+
{
|
|
239
|
+
"title": "按钮类型",
|
|
240
|
+
"code": "<em-button type=\"primary\">主要按钮</em-button>\n<em-button type=\"info\">信息按钮</em-button>\n<em-button type=\"default\">默认按钮</em-button>\n<em-button type=\"warning\">警告按钮</em-button>\n<em-button type=\"danger\">危险按钮</em-button>"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"title": "朴素按钮",
|
|
244
|
+
"code": "<em-button plain type=\"primary\">朴素按钮</em-button>\n<em-button plain type=\"info\">朴素按钮</em-button>"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"title": "细边框",
|
|
248
|
+
"code": "<em-button plain hairline type=\"primary\">细边框按钮</em-button>\n<em-button plain hairline type=\"info\">细边框按钮</em-button>"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"title": "禁用状态",
|
|
252
|
+
"code": "<em-button disabled type=\"primary\">禁用状态</em-button>\n<em-button disabled type=\"info\">禁用状态</em-button>"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"title": "加载状态",
|
|
256
|
+
"code": "<em-button loading type=\"primary\" />\n<em-button loading type=\"primary\" loading-type=\"spinner\" />\n<em-button loading type=\"info\" loading-text=\"加载中...\" />"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "calendar",
|
|
3
|
+
"name": "em-calendar",
|
|
4
|
+
"title": "日历",
|
|
5
|
+
"description": "日历组件用于选择日期或日期区间。",
|
|
6
|
+
"props": [
|
|
7
|
+
{
|
|
8
|
+
"name": "type",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"default": "single",
|
|
11
|
+
"required": false,
|
|
12
|
+
"description": "选择类型:`single`表示选择单个日期,`multiple`表示选择多个日期,`range`表示选择日期区间"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "title",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"default": "日期选择",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "日历标题"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "color",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": "#ee0a24",
|
|
25
|
+
"required": false,
|
|
26
|
+
"description": "主题色,对底部按钮和选中日期生效"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "min-date",
|
|
30
|
+
"type": "Number(时间戳)",
|
|
31
|
+
"default": "当前日期",
|
|
32
|
+
"required": false,
|
|
33
|
+
"description": "可选择的最小日期"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "max-date",
|
|
37
|
+
"type": "Number(时间戳)",
|
|
38
|
+
"default": "当前日期的六个月后",
|
|
39
|
+
"required": false,
|
|
40
|
+
"description": "可选择的最大日期"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "default-date",
|
|
44
|
+
"type": "Number(时间戳)",
|
|
45
|
+
"default": "今天",
|
|
46
|
+
"required": false,
|
|
47
|
+
"description": "默认选中的日期,`type`为`multiple`或`range`时为数组"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "row-height",
|
|
51
|
+
"type": "number / string",
|
|
52
|
+
"default": "64",
|
|
53
|
+
"required": false,
|
|
54
|
+
"description": "日期行高"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "formatter",
|
|
58
|
+
"type": "(day: Day) => Day",
|
|
59
|
+
"default": "-",
|
|
60
|
+
"required": false,
|
|
61
|
+
"description": "日期格式化函数"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "poppable",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": "true",
|
|
67
|
+
"required": false,
|
|
68
|
+
"description": "是否以弹层的形式展示日历"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "show-mark",
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"default": "true",
|
|
74
|
+
"required": false,
|
|
75
|
+
"description": "是否显示月份背景水印"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "show-title",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": "true",
|
|
81
|
+
"required": false,
|
|
82
|
+
"description": "是否展示日历标题"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "show-subtitle",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": "true",
|
|
88
|
+
"required": false,
|
|
89
|
+
"description": "是否展示日历副标题(年月)"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "show-confirm",
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"default": "true",
|
|
95
|
+
"required": false,
|
|
96
|
+
"description": "是否展示确认按钮"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "readonly",
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"default": "false",
|
|
102
|
+
"required": false,
|
|
103
|
+
"description": "是否为只读状态,只读状态下不能选择日期"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "confirm-text",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"default": "确定",
|
|
109
|
+
"required": false,
|
|
110
|
+
"description": "确认按钮的文字"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "confirm-disabled-text",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"default": "确定",
|
|
116
|
+
"required": false,
|
|
117
|
+
"description": "确认按钮处于禁用状态时的文字"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "first-day-of-week",
|
|
121
|
+
"type": "0-6",
|
|
122
|
+
"default": "0",
|
|
123
|
+
"required": false,
|
|
124
|
+
"description": "设置周起始日"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"events": [
|
|
128
|
+
{
|
|
129
|
+
"name": "select",
|
|
130
|
+
"parameters": "点击并选中任意日期时触发",
|
|
131
|
+
"description": "value: Date / Date[]"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "confirm",
|
|
135
|
+
"parameters": "日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发",
|
|
136
|
+
"description": "value: Date / Date[]"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "open",
|
|
140
|
+
"parameters": "打开弹出层时触发",
|
|
141
|
+
"description": "-"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "close",
|
|
145
|
+
"parameters": "关闭弹出层时触发",
|
|
146
|
+
"description": "-"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "opened",
|
|
150
|
+
"parameters": "打开弹出层且动画结束后触发",
|
|
151
|
+
"description": "-"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "closed",
|
|
155
|
+
"parameters": "关闭弹出层且动画结束后触发",
|
|
156
|
+
"description": "-"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "unselect",
|
|
160
|
+
"parameters": "当日历组件的 `type` 为 `multiple` 时,取消选中日期时触发",
|
|
161
|
+
"description": "value: Date"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "month-show",
|
|
165
|
+
"parameters": "当某个月份进入可视区域时触发",
|
|
166
|
+
"description": "{ date: Date, title: string }"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"slots": [
|
|
170
|
+
{
|
|
171
|
+
"name": "title",
|
|
172
|
+
"description": "自定义标题"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "footer",
|
|
176
|
+
"description": "自定义底部区域内容"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"examples": {
|
|
180
|
+
"vue2": [
|
|
181
|
+
{
|
|
182
|
+
"title": "选择单个日期",
|
|
183
|
+
"code": "<em-cell title=\"选择单个日期\" :value=\"date\" @click=\"show = true\" />\n<em-calendar v-model=\"show\" @confirm=\"onConfirm\" />"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"title": "选择多个日期",
|
|
187
|
+
"code": "<em-cell title=\"选择多个日期\" :value=\"text\" @click=\"show = true\" />\n<em-calendar v-model=\"show\" type=\"multiple\" @confirm=\"onConfirm\" />"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"title": "选择日期区间",
|
|
191
|
+
"code": "<em-cell title=\"选择日期区间\" :value=\"date\" @click=\"show = true\" />\n<em-calendar v-model=\"show\" type=\"range\" @confirm=\"onConfirm\" />"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"title": "快捷选择",
|
|
195
|
+
"code": "<em-calendar v-model=\"show\" :show-confirm=\"false\" />"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"title": "自定义颜色",
|
|
199
|
+
"code": "<em-calendar v-model=\"show\" color=\"#07c160\" />"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"vue3": [
|
|
203
|
+
{
|
|
204
|
+
"title": "选择单个日期",
|
|
205
|
+
"code": "<em-cell title=\"选择单个日期\" :value=\"date\" @click=\"show = true\" />\n<em-calendar v-model=\"show\" @confirm=\"onConfirm\" />"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"title": "选择多个日期",
|
|
209
|
+
"code": "<em-cell title=\"选择多个日期\" :value=\"text\" @click=\"show = true\" />\n<em-calendar v-model=\"show\" type=\"multiple\" @confirm=\"onConfirm\" />"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"title": "选择日期区间",
|
|
213
|
+
"code": "<em-cell title=\"选择日期区间\" :value=\"date\" @click=\"show = true\" />\n<em-calendar v-model=\"show\" type=\"range\" @confirm=\"onConfirm\" />"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"title": "快捷选择",
|
|
217
|
+
"code": "<em-calendar v-model=\"show\" :show-confirm=\"false\" />"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"title": "自定义颜色",
|
|
221
|
+
"code": "<em-calendar v-model=\"show\" color=\"#07c160\" />"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
}
|