m8-mcp-server 1.0.5 → 1.0.6
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/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/docs/apis.d.ts +1 -1
- package/dist/docs/apis.js +1 -1
- package/dist/docs/components.d.ts +1 -1
- package/dist/docs/components.js +1 -1
- package/dist/docs/index.d.ts +1 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/loader.d.ts +1 -1
- package/dist/docs/loader.js +1 -1
- package/dist/docs/search.d.ts +1 -1
- package/dist/docs/search.js +1 -1
- package/dist/docs/standards.d.ts +1 -1
- package/dist/docs/standards.js +1 -1
- package/dist/docs/utils.d.ts +1 -1
- package/dist/docs/utils.js +1 -1
- package/dist/generator/header.d.ts +1 -1
- package/dist/generator/header.js +1 -1
- package/dist/generator/index.d.ts +1 -1
- package/dist/generator/index.js +1 -1
- package/dist/generator/vue-template.d.ts +1 -1
- package/dist/generator/vue-template.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/recommend/index.d.ts +1 -1
- package/dist/recommend/index.js +1 -1
- package/dist/tools/generate-code.d.ts +1 -1
- package/dist/tools/generate-code.js +1 -1
- package/dist/tools/get-api-info.d.ts +1 -1
- package/dist/tools/get-api-info.js +1 -1
- package/dist/tools/get-coding-standard.d.ts +1 -1
- package/dist/tools/get-coding-standard.js +1 -1
- package/dist/tools/get-component-info.d.ts +1 -1
- package/dist/tools/get-component-info.js +1 -1
- package/dist/tools/get-util-info.d.ts +1 -1
- package/dist/tools/get-util-info.js +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/recommend-solution.d.ts +1 -1
- package/dist/tools/recommend-solution.js +1 -1
- package/dist/tools/search-docs.d.ts +1 -1
- package/dist/tools/search-docs.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +3 -4
- package/resources/cases/.gitkeep +0 -0
- package/resources/cases/form-submit-vue2.json +0 -15
- package/resources/cases/index.json +0 -8
- package/resources/cases/list-detail-vue2.json +0 -27
- package/resources/components/.gitkeep +0 -0
- package/resources/components/actionsheet.json +0 -199
- package/resources/components/amap.json +0 -66
- package/resources/components/area.json +0 -158
- package/resources/components/badge.json +0 -93
- package/resources/components/button.json +0 -260
- package/resources/components/calendar.json +0 -225
- package/resources/components/cascader.json +0 -115
- package/resources/components/cell.json +0 -85
- package/resources/components/chart.json +0 -55
- package/resources/components/checkbox.json +0 -158
- package/resources/components/circle.json +0 -138
- package/resources/components/collapse.json +0 -88
- package/resources/components/countdown.json +0 -105
- package/resources/components/datepicker.json +0 -216
- package/resources/components/dialog.json +0 -250
- package/resources/components/divider.json +0 -82
- package/resources/components/dragsort.json +0 -67
- package/resources/components/dropdownmenu.json +0 -129
- package/resources/components/easycalendar.json +0 -84
- package/resources/components/empty.json +0 -90
- package/resources/components/field.json +0 -423
- package/resources/components/form.json +0 -156
- package/resources/components/grid.json +0 -131
- package/resources/components/header.json +0 -147
- package/resources/components/icon.json +0 -104
- package/resources/components/image.json +0 -169
- package/resources/components/imagepreview.json +0 -150
- package/resources/components/imagescale.json +0 -245
- package/resources/components/index.json +0 -72
- package/resources/components/indexbar.json +0 -83
- package/resources/components/layout.json +0 -74
- package/resources/components/lazyload.json +0 -46
- package/resources/components/loading.json +0 -103
- package/resources/components/minirefresh.json +0 -341
- package/resources/components/noticebar.json +0 -148
- package/resources/components/notify.json +0 -60
- package/resources/components/numberkeyboard.json +0 -216
- package/resources/components/overlay.json +0 -78
- package/resources/components/pagination.json +0 -137
- package/resources/components/panel.json +0 -87
- package/resources/components/passwordinput.json +0 -103
- package/resources/components/picker.json +0 -195
- package/resources/components/popover.json +0 -161
- package/resources/components/popup.json +0 -229
- package/resources/components/progress.json +0 -111
- package/resources/components/qrcode.json +0 -128
- package/resources/components/radio.json +0 -139
- package/resources/components/rate.json +0 -157
- package/resources/components/rtc.json +0 -35
- package/resources/components/search.json +0 -234
- package/resources/components/selectperson.json +0 -175
- package/resources/components/sidebar.json +0 -74
- package/resources/components/skeleton.json +0 -110
- package/resources/components/slider.json +0 -159
- package/resources/components/stepper.json +0 -241
- package/resources/components/steps.json +0 -108
- package/resources/components/sticky.json +0 -72
- package/resources/components/swipe.json +0 -146
- package/resources/components/swipecell.json +0 -118
- package/resources/components/switch.json +0 -123
- package/resources/components/switchcell.json +0 -123
- package/resources/components/tab.json +0 -257
- package/resources/components/tabbar.json +0 -137
- package/resources/components/table.json +0 -149
- package/resources/components/tag.json +0 -149
- package/resources/components/toast.json +0 -70
- package/resources/components/treeselect.json +0 -106
- package/resources/components/uploader.json +0 -283
- package/resources/components/verifycode.json +0 -94
- package/resources/standards/.gitkeep +0 -0
- package/resources/standards/css.json +0 -108
- package/resources/standards/javascript.json +0 -129
- package/resources/standards/project-structure.json +0 -101
- package/resources/standards/vue.json +0 -122
- package/resources/utils/.gitkeep +0 -0
- package/resources/utils/ajax.json +0 -76
- package/resources/utils/common.json +0 -129
- package/resources/utils/index.json +0 -7
- package/resources/utils/string.json +0 -112
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "datepicker",
|
|
3
|
-
"name": "em-datepicker",
|
|
4
|
-
"title": "日期选择",
|
|
5
|
-
"description": "时间选择器,支持日期、年月、时分等维度,通常与弹出层组件配合使用。本组件已包含了 popup 组件的功能。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "boolean",
|
|
10
|
-
"default": "false",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "时间选择组件的显隐"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "current-date",
|
|
16
|
-
"type": "number /string/array",
|
|
17
|
-
"default": "时间类型为time时:00:00,否则new Date().getTime()",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "设置的初始时间,当`range`为`true`时,支持传入数组(`v8.3.5`开始支持)"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "type",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "datetime",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "时间类型,可选值为 `date` `time` `year-month` `month-day` `datehour`"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "title",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "''",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "顶部栏标题"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "confirm-button-text",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "确认",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "确认按钮文字"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "cancel-button-text",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"default": "取消",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "取消按钮文字"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "show-toolbar",
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": "true",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "是否显示顶部栏"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "loading",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": "false",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "是否显示加载状态"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "readonly",
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": "false",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "是否为只读状态,只读状态下无法切换选项"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "filter",
|
|
72
|
-
"type": "(type, vals) => vals",
|
|
73
|
-
"default": "-",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "选项过滤函数"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "formatter",
|
|
79
|
-
"type": "(type, val) => val",
|
|
80
|
-
"default": "-",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "选项格式化函数"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "columns-order",
|
|
86
|
-
"type": "string[]",
|
|
87
|
-
"default": "-",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "自定义列排序数组, 子项可选值为`year`、`month`、`day`、`hour`、`minute`"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "item-height",
|
|
93
|
-
"type": "number / string",
|
|
94
|
-
"default": "44",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "选项高度,支持 `px` `vw` `rem` 单位,默认 `px`"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "visible-item-count",
|
|
100
|
-
"type": "number / string",
|
|
101
|
-
"default": "6",
|
|
102
|
-
"required": false,
|
|
103
|
-
"description": "可见的选项个数"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "swipe-duration",
|
|
107
|
-
"type": "number / string",
|
|
108
|
-
"default": "1000",
|
|
109
|
-
"required": false,
|
|
110
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "range",
|
|
114
|
-
"type": "boolean",
|
|
115
|
-
"default": "false",
|
|
116
|
-
"required": false,
|
|
117
|
-
"description": "是否选择时间范围"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "pad",
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"default": "false",
|
|
123
|
-
"required": false,
|
|
124
|
-
"description": "是否设为`pad`端样式,该属性为`true`时,默认选择年月日,`basic`自动为`true`,使用基座样式"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"events": [
|
|
128
|
-
{
|
|
129
|
-
"name": "change",
|
|
130
|
-
"parameters": "当值变化时触发的事件",
|
|
131
|
-
"description": "`picker`: `Picker` 实例"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "confirm",
|
|
135
|
-
"parameters": "点击完成按钮时触发的事件",
|
|
136
|
-
"description": "`value`: 当前选中的时间,选择时间范围时是一个数组"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "cancel",
|
|
140
|
-
"parameters": "点击取消按钮时触发的事件",
|
|
141
|
-
"description": "-"
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"slots": [
|
|
145
|
-
{
|
|
146
|
-
"name": "default",
|
|
147
|
-
"description": "自定义整个顶部栏的内容"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"name": "title",
|
|
151
|
-
"description": "自定义标题内容"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "confirm",
|
|
155
|
-
"description": "自定义确认按钮内容"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"name": "cancel",
|
|
159
|
-
"description": "自定义取消按钮内容"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "columnsTop",
|
|
163
|
-
"description": "自定义选项上方内容"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "columnsBottom",
|
|
167
|
-
"description": "自定义选项下方内容"
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"examples": {
|
|
171
|
-
"vue2": [
|
|
172
|
-
{
|
|
173
|
-
"title": "选择年月日",
|
|
174
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n type=\"datetime\"\n title=\"选择年月日\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n @confirm=\"onConfirm\"\n/>"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"title": "时间范围",
|
|
178
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n range\n type=\"date\"\n title=\"范围选择年月日\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :max-date=\"maxDate\"\n @confirm=\"onConfirm\"\n/>"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"title": "pad 端样式",
|
|
182
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n pad\n title=\"选择pad年月\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :max-date=\"maxDate\"\n @confirm=\"onConfirmPad\"\n/>"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"title": "选择年月",
|
|
186
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n type=\"year-month\"\n title=\"选择年月\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :max-date=\"maxDate\"\n :formatter=\"formatter\"\n/>"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"title": "选择月日",
|
|
190
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n type=\"month-day\"\n title=\"选择月日\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :formatter=\"formatter\"\n/>"
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
"vue3": [
|
|
194
|
-
{
|
|
195
|
-
"title": "选择年月日",
|
|
196
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n type=\"datetime\"\n title=\"选择年月日\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n @confirm=\"onConfirm\"\n/>"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"title": "时间范围",
|
|
200
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n range\n type=\"date\"\n title=\"范围选择年月日\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :max-date=\"maxDate\"\n @confirm=\"onConfirm\"\n/>"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"title": "pad 端样式",
|
|
204
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n pad\n title=\"选择pad年月\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :max-date=\"maxDate\"\n @confirm=\"onConfirmPad\"\n/>"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"title": "选择年月",
|
|
208
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n type=\"year-month\"\n title=\"选择年月\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :max-date=\"maxDate\"\n :formatter=\"formatter\"\n/>"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"title": "选择月日",
|
|
212
|
-
"code": "<em-date-picker\n v-model=\"showDatePicker\"\n type=\"month-day\"\n title=\"选择月日\"\n :current-date=\"currentDate\"\n :min-date=\"minDate\"\n :formatter=\"formatter\"\n/>"
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
}
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "dialog",
|
|
3
|
-
"name": "em-dialog",
|
|
4
|
-
"title": "弹出框",
|
|
5
|
-
"description": "弹出模态框,常用于消息提示、消息确认,或在当前页面内完成特定的交互操作。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "boolean",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "是否显示弹窗"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "title",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "-",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "标题"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "width",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "295px",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "弹窗宽度,默认单位为`px`"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "message",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "文本内容,支持通过`\\n`换行,注意微信小程序包含换行符时可能编译报错"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "message-align",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "center",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "内容对齐方式,可选值为`left` `right`"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "theme",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"default": "round-button",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "样式风格,可选值为`default`"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "show-confirm-button",
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": "true",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "是否展示确认按钮"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "show-cancel-button",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": "false",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "是否展示取消按钮"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "confirm-button-text",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"default": "确认",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "确认按钮文案"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "confirm-button-color",
|
|
72
|
-
"type": "string",
|
|
73
|
-
"default": "#2e6be5",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "确认按钮颜色"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "cancel-button-text",
|
|
79
|
-
"type": "string",
|
|
80
|
-
"default": "取消",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "取消按钮文案"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "cancel-button-color",
|
|
86
|
-
"type": "string",
|
|
87
|
-
"default": "#2e3033",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "取消按钮颜色"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "overlay",
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"default": "true",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "是否展示遮罩层"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "overlay-class",
|
|
100
|
-
"type": "string",
|
|
101
|
-
"default": "-",
|
|
102
|
-
"required": false,
|
|
103
|
-
"description": "自定义遮罩层类名"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "overlay-style",
|
|
107
|
-
"type": "string",
|
|
108
|
-
"default": "-",
|
|
109
|
-
"required": false,
|
|
110
|
-
"description": "自定义遮罩层样式"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "close-on-popstate",
|
|
114
|
-
"type": "boolean",
|
|
115
|
-
"default": "true",
|
|
116
|
-
"required": false,
|
|
117
|
-
"description": "是否在页面回退时自动关闭"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "close-on-click-overlay",
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"default": "true",
|
|
123
|
-
"required": false,
|
|
124
|
-
"description": "是否在点击遮罩层后关闭弹窗"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "lazy-render",
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"default": "true",
|
|
130
|
-
"required": false,
|
|
131
|
-
"description": "是否在显示弹层时才渲染节点"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "lock-scroll",
|
|
135
|
-
"type": "boolean",
|
|
136
|
-
"default": "true",
|
|
137
|
-
"required": false,
|
|
138
|
-
"description": "是否锁定背景滚动, 该属性在支付宝小程序中不生效,无法禁止蒙版下的滚动,若要在支付宝小程序禁止滚动,请自行给蒙版下元素添加动态样式实现"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "allow-html",
|
|
142
|
-
"type": "boolean",
|
|
143
|
-
"default": "true",
|
|
144
|
-
"required": false,
|
|
145
|
-
"description": "是否允许 `message` 内容中渲染 `HTML`"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "before-close",
|
|
149
|
-
"type": "(action, done) => void",
|
|
150
|
-
"default": "-",
|
|
151
|
-
"required": false,
|
|
152
|
-
"description": "关闭前的回调函数,调用 `done()` 后关闭弹窗,调用 `done(false)` 阻止弹窗关闭"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "transition",
|
|
156
|
-
"type": "string",
|
|
157
|
-
"default": "-",
|
|
158
|
-
"required": false,
|
|
159
|
-
"description": "动画类名,等价于 `transtion` 的`name`属性"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"events": [
|
|
163
|
-
{
|
|
164
|
-
"name": "confirm",
|
|
165
|
-
"parameters": "点击确认按钮时触发",
|
|
166
|
-
"description": "-"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "cancel",
|
|
170
|
-
"parameters": "点击取消按钮时触发",
|
|
171
|
-
"description": "-"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "open",
|
|
175
|
-
"parameters": "打开弹窗时触发",
|
|
176
|
-
"description": "-"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "close",
|
|
180
|
-
"parameters": "关闭弹窗时触发",
|
|
181
|
-
"description": "-"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"name": "opened",
|
|
185
|
-
"parameters": "打开弹窗且动画结束后触发",
|
|
186
|
-
"description": "-"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "closed",
|
|
190
|
-
"parameters": "关闭弹窗且动画结束后触发",
|
|
191
|
-
"description": "-"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"slots": [
|
|
195
|
-
{
|
|
196
|
-
"name": "default",
|
|
197
|
-
"description": "自定义内容"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"name": "title",
|
|
201
|
-
"description": "自定义标题"
|
|
202
|
-
}
|
|
203
|
-
],
|
|
204
|
-
"examples": {
|
|
205
|
-
"vue2": [
|
|
206
|
-
{
|
|
207
|
-
"title": "消息提示",
|
|
208
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"title": "普通风格",
|
|
212
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"title": "消息确认",
|
|
216
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"title": "异步关闭",
|
|
220
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"title": "组件调用",
|
|
224
|
-
"code": "<em-dialog v-model=\"show\" title=\"标题\" show-cancel-button>\n <img src=\"https://img.yzcdn.cn/vant/apple-3.jpg\" />\n</em-dialog>"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
"vue3": [
|
|
228
|
-
{
|
|
229
|
-
"title": "消息提示",
|
|
230
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"title": "普通风格",
|
|
234
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"title": "消息确认",
|
|
238
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"title": "异步关闭",
|
|
242
|
-
"code": "<em-dialog ref=\"emDialog\"></em-dialog>"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"title": "组件调用",
|
|
246
|
-
"code": "<em-dialog v-model=\"show\" title=\"标题\" show-cancel-button>\n <img src=\"https://img.yzcdn.cn/vant/apple-3.jpg\" />\n</em-dialog>"
|
|
247
|
-
}
|
|
248
|
-
]
|
|
249
|
-
}
|
|
250
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "divider",
|
|
3
|
-
"name": "em-divider",
|
|
4
|
-
"title": "分割线",
|
|
5
|
-
"description": "分割线。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "dashed",
|
|
9
|
-
"type": "boolean",
|
|
10
|
-
"default": "false",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "是否使用虚线"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "hairline",
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": "true",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "是否使用 `0.5px` 线"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "content-position",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "center",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "内容位置,可选值为`left` `right`"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"events": [],
|
|
30
|
-
"slots": [
|
|
31
|
-
{
|
|
32
|
-
"name": "default",
|
|
33
|
-
"description": "内容"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"examples": {
|
|
37
|
-
"vue2": [
|
|
38
|
-
{
|
|
39
|
-
"title": "基础用法",
|
|
40
|
-
"code": "<em-divider />"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"title": "展示文字",
|
|
44
|
-
"code": "<em-divider>文字</em-divider>"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"title": "内容位置",
|
|
48
|
-
"code": "<em-divider content-position=\"left\">文字</em-divider>\n<em-divider content-position=\"right\">文字</em-divider>"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"title": "虚线",
|
|
52
|
-
"code": "<em-divider dashed>文字</em-divider>"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"title": "自定义样式",
|
|
56
|
-
"code": "<em-divider custom-style=\"color: #1989fa; border-color: #1989fa;padding: 0 16px;\">文字</em-divider>"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"vue3": [
|
|
60
|
-
{
|
|
61
|
-
"title": "基础用法",
|
|
62
|
-
"code": "<em-divider />"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"title": "展示文字",
|
|
66
|
-
"code": "<em-divider>文字</em-divider>"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"title": "内容位置",
|
|
70
|
-
"code": "<em-divider content-position=\"left\">文字</em-divider>\n<em-divider content-position=\"right\">文字</em-divider>"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"title": "虚线",
|
|
74
|
-
"code": "<em-divider dashed>文字</em-divider>"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"title": "自定义样式",
|
|
78
|
-
"code": "<em-divider custom-style=\"color: #1989fa; border-color: #1989fa;padding: 0 16px;\">文字</em-divider>"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "dragsort",
|
|
3
|
-
"name": "em-dragsort",
|
|
4
|
-
"title": "拖拽排序",
|
|
5
|
-
"description": "拖拽排序组件。该组件自`v8.3.6`版本开始支持。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "array",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "需要拖拽排序的列表数据"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "direction",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "vertical",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "拖拽方向,可选值 `horizontal` `auto`"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "activeItemClass",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "-",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "激活的元素添加自定义类名"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"events": [
|
|
30
|
-
{
|
|
31
|
-
"name": "end",
|
|
32
|
-
"parameters": "排序结束时触发",
|
|
33
|
-
"description": "list: 排序后的数组"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"slots": [],
|
|
37
|
-
"examples": {
|
|
38
|
-
"vue2": [
|
|
39
|
-
{
|
|
40
|
-
"title": "基础用法",
|
|
41
|
-
"code": "<em-dragsort v-model=\"list\">\n <em-dragsort-item v-for=\"(item, index) in list\" :key=\"index\">\n <em-cell :title=\"'item ' + item\"></em-cell>\n </em-dragsort-item>\n</em-dragsort>"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"title": "横向排序",
|
|
45
|
-
"code": "<em-dragsort v-model=\"list\" direction=\"horizontal\">\n <em-dragsort-item v-for=\"(item, index) in list\" :key=\"index\">\n <em-tag basic-type=\"person\">item {{ item }}</em-tag>\n </em-dragsort-item>\n</em-dragsort>"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"title": "grid 排序",
|
|
49
|
-
"code": "<em-grid :gutter=\"10\">\n <em-dragsort v-model=\"gridlist\" direction=\"auto\">\n <em-dragsort-item v-for=\"(item, index) in gridlist\" :key=\"index\">\n <em-grid-item icon=\"photo-o\" :text=\"'item ' + item\" />\n </em-dragsort-item>\n </em-dragsort>\n</em-grid>"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"vue3": [
|
|
53
|
-
{
|
|
54
|
-
"title": "基础用法",
|
|
55
|
-
"code": "<em-dragsort v-model=\"list\">\n <em-dragsort-item v-for=\"(item, index) in list\" :key=\"index\">\n <em-cell :title=\"'item ' + item\"></em-cell>\n </em-dragsort-item>\n</em-dragsort>"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"title": "横向排序",
|
|
59
|
-
"code": "<em-dragsort v-model=\"list\" direction=\"horizontal\">\n <em-dragsort-item v-for=\"(item, index) in list\" :key=\"index\">\n <em-tag basic-type=\"person\">item {{ item }}</em-tag>\n </em-dragsort-item>\n</em-dragsort>"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"title": "grid 排序",
|
|
63
|
-
"code": "<em-grid :gutter=\"10\">\n <em-dragsort v-model=\"gridlist\" direction=\"auto\">\n <em-dragsort-item v-for=\"(item, index) in gridlist\" :key=\"index\">\n <em-grid-item icon=\"photo-o\" :text=\"'item ' + item\" />\n </em-dragsort-item>\n </em-dragsort>\n</em-grid>"
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
}
|