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,199 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "actionsheet",
|
|
3
|
-
"name": "em-actionsheet",
|
|
4
|
-
"title": "动作面板",
|
|
5
|
-
"description": "底部弹起的模态面板,包含与当前情境相关的多个选项。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "boolean",
|
|
10
|
-
"default": "false",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "是否显示动作面板"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "actions",
|
|
16
|
-
"type": "Action[]",
|
|
17
|
-
"default": "[]",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "面板选项列表"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "title",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "-",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "顶部标题"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "cancel-text",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "取消按钮文字"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "description",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "-",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "选项上方的描述信息"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "z-index",
|
|
44
|
-
"type": "number",
|
|
45
|
-
"default": "99",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "z-index 层级"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "closeable",
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": "true",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "是否显示关闭图标"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "close-icon",
|
|
58
|
-
"type": "string",
|
|
59
|
-
"default": "cross",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "关闭图标名称或图片链接"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "duration",
|
|
65
|
-
"type": "number / string",
|
|
66
|
-
"default": "300",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "动画时长,单位毫秒"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "round",
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"default": "true",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "是否显示圆角"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "overlay",
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"default": "true",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "是否显示遮罩层"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "close-on-click-action",
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"default": "false",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "是否在点击选项后关闭"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "close-on-click-overlay",
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"default": "true",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "是否在点击遮罩层后关闭"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "safe-area-inset-bottom",
|
|
100
|
-
"type": "boolean",
|
|
101
|
-
"default": "true",
|
|
102
|
-
"required": false,
|
|
103
|
-
"description": "是否开启底部安全区适配"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"events": [
|
|
107
|
-
{
|
|
108
|
-
"name": "select",
|
|
109
|
-
"parameters": "点击选项时触发,禁用或加载状态下不会触发",
|
|
110
|
-
"description": "action: Action 选项对应的对象, index: number"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "cancel",
|
|
114
|
-
"parameters": "点击取消按钮时触发",
|
|
115
|
-
"description": "-"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "open",
|
|
119
|
-
"parameters": "打开面板时触发",
|
|
120
|
-
"description": "-"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "close",
|
|
124
|
-
"parameters": "关闭面板时触发",
|
|
125
|
-
"description": "-"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "opened",
|
|
129
|
-
"parameters": "打开面板且动画结束后触发",
|
|
130
|
-
"description": "-"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"name": "closed",
|
|
134
|
-
"parameters": "关闭面板且动画结束后触发",
|
|
135
|
-
"description": "-"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"name": "click-overlay",
|
|
139
|
-
"parameters": "点击遮罩层时触发",
|
|
140
|
-
"description": "-"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"slots": [
|
|
144
|
-
{
|
|
145
|
-
"name": "default",
|
|
146
|
-
"description": "自定义面板的展示内容"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "description",
|
|
150
|
-
"description": "自定义描述文案"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"examples": {
|
|
154
|
-
"vue2": [
|
|
155
|
-
{
|
|
156
|
-
"title": "基础用法",
|
|
157
|
-
"code": "<em-cell is-link title=\"基础用法\" @click=\"showTop = true\" />\n<em-actionsheet\n title=\"标题\"\n @close=\"showTop = !showTop\"\n v-model=\"showTop\"\n :actions=\"actionsTop\"\n @select=\"onSelectTop\"\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"title": "展示取消按钮",
|
|
161
|
-
"code": "<em-actionsheet\n v-model=\"showBottom\"\n :actions=\"actionsTop\"\n cancel-text=\"取消\"\n close-on-click-action\n @cancel=\"onCancel1\"\n @close=\"showBottom = !showBottom\"\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"title": "展示描述信息",
|
|
165
|
-
"code": "<em-actionsheet\n v-model=\"showLeft\"\n :actions=\"actionsLeft\"\n cancel-text=\"取消\"\n description=\"这是一段描述信息\"\n close-on-click-action\n @cancel=\"onCancel2\"\n @close=\"showLeft = !showLeft\"\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"title": "选项状态",
|
|
169
|
-
"code": "<em-actionsheet\n v-model=\"showStatus\"\n :actions=\"actionsStatus\"\n @close=\"showStatus = !showStatus\"\n @cancel=\"showStatus = !showStatus\"\n @select=\"onSelectTop\"\n cancel-text=\"取消\"\n close-on-click-action\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"title": "自定义面板",
|
|
173
|
-
"code": "<em-actionsheet v-model=\"showZdy\" @close=\"showZdy = !showZdy\" title=\"标题\">\n <div class=\"content\">内容</div>\n</em-actionsheet>"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
"vue3": [
|
|
177
|
-
{
|
|
178
|
-
"title": "基础用法",
|
|
179
|
-
"code": "<em-cell is-link title=\"基础用法\" @click=\"showTop = true\" />\n<em-actionsheet\n title=\"标题\"\n @close=\"showTop = !showTop\"\n v-model=\"showTop\"\n :actions=\"actionsTop\"\n @select=\"onSelectTop\"\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"title": "展示取消按钮",
|
|
183
|
-
"code": "<em-actionsheet\n v-model=\"showBottom\"\n :actions=\"actionsTop\"\n cancel-text=\"取消\"\n close-on-click-action\n @cancel=\"onCancel1\"\n @close=\"showBottom = !showBottom\"\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"title": "展示描述信息",
|
|
187
|
-
"code": "<em-actionsheet\n v-model=\"showLeft\"\n :actions=\"actionsLeft\"\n cancel-text=\"取消\"\n description=\"这是一段描述信息\"\n close-on-click-action\n @cancel=\"onCancel2\"\n @close=\"showLeft = !showLeft\"\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"title": "选项状态",
|
|
191
|
-
"code": "<em-actionsheet\n v-model=\"showStatus\"\n :actions=\"actionsStatus\"\n @close=\"showStatus = !showStatus\"\n @cancel=\"showStatus = !showStatus\"\n @select=\"onSelectTop\"\n cancel-text=\"取消\"\n close-on-click-action\n/>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"title": "自定义面板",
|
|
195
|
-
"code": "<em-actionsheet v-model=\"showZdy\" @close=\"showZdy = !showZdy\" title=\"标题\">\n <div class=\"content\">内容</div>\n</em-actionsheet>"
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "amap",
|
|
3
|
-
"name": "em-amap",
|
|
4
|
-
"title": "地图",
|
|
5
|
-
"description": "定位组件,本组件仅提供定位及获取周边 POI 信息函数,不再封装地图展示组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "qqMapKey",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "组件函数获取周边信息时,使用的是腾讯地图的 API,所以需要腾讯地图的 key"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "isForceDD",
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": "false",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "是否强制使用`dd.device.geolocation.get`方法获取当前定位(钉钉环境中有效)"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "isForceEJS",
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"default": "false",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "是否强制使用 ejs 原生地图方法获取当前定位(ejs 环境中有效)"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "poicallback",
|
|
30
|
-
"type": "function",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "获取周边信息的回调函数,回调参数为 `res: obj`"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "success",
|
|
37
|
-
"type": "function",
|
|
38
|
-
"default": "-",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "定位成功后的回调函数,回调参数为 `position: [longitude, latitude]`"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "error",
|
|
44
|
-
"type": "function",
|
|
45
|
-
"default": "-",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "定位失败后的回调函数,回调参数为 `err: obj`"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"events": [],
|
|
51
|
-
"slots": [],
|
|
52
|
-
"examples": {
|
|
53
|
-
"vue2": [
|
|
54
|
-
{
|
|
55
|
-
"title": "基础用法",
|
|
56
|
-
"code": "<map\n id=\"map\"\n style=\"width: 100vw;height: 300px;\"\n :longitude=\"longitude\"\n :latitude=\"latitude\"\n show-location\n :circles=\"circles\"\n :controls=\"controls\"\n @controltap=\"updateLocation\"\n></map>"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"vue3": [
|
|
60
|
-
{
|
|
61
|
-
"title": "基础用法",
|
|
62
|
-
"code": "<map\n id=\"map\"\n style=\"width: 100vw;height: 300px;\"\n :longitude=\"longitude\"\n :latitude=\"latitude\"\n show-location\n :circles=\"circles\"\n :controls=\"controls\"\n @controltap=\"updateLocation\"\n></map>"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "area",
|
|
3
|
-
"name": "em-area",
|
|
4
|
-
"title": "省市区选择",
|
|
5
|
-
"description": "省市区三级联动选择。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "boolean",
|
|
10
|
-
"default": "false",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "切换组件显隐"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "code-value",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "-",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "当前选中的省市区`code`"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "title",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "-",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "顶部栏标题"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "confirm-button-text",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "确认",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "确认按钮文字"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "cancel-button-text",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "取消",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "取消按钮文字"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "area-list",
|
|
44
|
-
"type": "object",
|
|
45
|
-
"default": "-",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "省市区数据,格式见下方"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "columns-placeholder",
|
|
51
|
-
"type": "string[]",
|
|
52
|
-
"default": "[]",
|
|
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": "item-height",
|
|
72
|
-
"type": "number / string",
|
|
73
|
-
"default": "44",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "选项高度,支持 `px` `vw` `rem` 单位,默认 `px`"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "columns-num",
|
|
79
|
-
"type": "number / string",
|
|
80
|
-
"default": "3",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "显示列数,3-省市区,2-省市,1-省"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "visible-item-count",
|
|
86
|
-
"type": "number / string",
|
|
87
|
-
"default": "6",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "可见的选项个数"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "swipe-duration",
|
|
93
|
-
"type": "number / string",
|
|
94
|
-
"default": "1000",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "快速滑动时惯性滚动的时长,单位`ms`"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"events": [
|
|
100
|
-
{
|
|
101
|
-
"name": "close",
|
|
102
|
-
"parameters": "关闭弹出层时触发",
|
|
103
|
-
"description": "`value`: 当前弹出层是否展开"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"slots": [
|
|
107
|
-
{
|
|
108
|
-
"name": "title",
|
|
109
|
-
"description": "自定义标题内容"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "columns-top",
|
|
113
|
-
"description": "自定义选项上方内容"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "columns-bottom",
|
|
117
|
-
"description": "自定义选项下方内容"
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"examples": {
|
|
121
|
-
"vue2": [
|
|
122
|
-
{
|
|
123
|
-
"title": "基础用法",
|
|
124
|
-
"code": "<em-cell @click=\"show1 = true\">基础用法</em-cell>\n<em-area v-model=\"show1\" title=\"标题\" :area-list=\"areaList\"></em-area>"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"title": "选中省市区",
|
|
128
|
-
"code": "<em-cell @click=\"show2 = true\">选中省市区</em-cell>\n<em-area v-model=\"show2\" title=\"标题\" :area-list=\"areaList\" code-value=\"120105\"></em-area>"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"title": "配置显示列",
|
|
132
|
-
"code": "<em-cell @click=\"show3 = true\">配置显示列</em-cell>\n<em-area v-model=\"show3\" title=\"标题\" :area-list=\"areaList\" :columns-num=\"2\"></em-area>"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"title": "配置列占位提示文字",
|
|
136
|
-
"code": "<em-cell @click=\"show4 = true\">配置列占位提示文字</em-cell>\n<em-area\n v-model=\"show4\"\n title=\"标题\"\n :area-list=\"areaList\"\n :columns-placeholder=\"['请选择', '请选择', '请选择']\"\n></em-area>"
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"vue3": [
|
|
140
|
-
{
|
|
141
|
-
"title": "基础用法",
|
|
142
|
-
"code": "<em-cell @click=\"show1 = true\">基础用法</em-cell>\n<em-area v-model=\"show1\" title=\"标题\" :area-list=\"areaList\"></em-area>"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"title": "选中省市区",
|
|
146
|
-
"code": "<em-cell @click=\"show2 = true\">选中省市区</em-cell>\n<em-area v-model=\"show2\" title=\"标题\" :area-list=\"areaList\" code-value=\"120105\"></em-area>"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"title": "配置显示列",
|
|
150
|
-
"code": "<em-cell @click=\"show3 = true\">配置显示列</em-cell>\n<em-area v-model=\"show3\" title=\"标题\" :area-list=\"areaList\" :columns-num=\"2\"></em-area>"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"title": "配置列占位提示文字",
|
|
154
|
-
"code": "<em-cell @click=\"show4 = true\">配置列占位提示文字</em-cell>\n<em-area\n v-model=\"show4\"\n title=\"标题\"\n :area-list=\"areaList\"\n :columns-placeholder=\"['请选择', '请选择', '请选择']\"\n></em-area>"
|
|
155
|
-
}
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "badge",
|
|
3
|
-
"name": "em-badge",
|
|
4
|
-
"title": "徽标",
|
|
5
|
-
"description": "在右上角展示徽标数字或小红点。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "content",
|
|
9
|
-
"type": "number / string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "徽标内容"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "color",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "#e03f3f",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "徽标背景颜色"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "dot",
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"default": "false",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "是否展示为小红点"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "max",
|
|
30
|
-
"type": "number / string",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "最大值,超过最大值会显示 `{max}+`,仅当 `content` 为数字时有效"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"events": [],
|
|
37
|
-
"slots": [
|
|
38
|
-
{
|
|
39
|
-
"name": "default",
|
|
40
|
-
"description": "徽标包裹的子元素"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "content",
|
|
44
|
-
"description": "自定义徽标内容"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"examples": {
|
|
48
|
-
"vue2": [
|
|
49
|
-
{
|
|
50
|
-
"title": "基础用法",
|
|
51
|
-
"code": "<em-badge :content=\"5\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"10\">\n <div class=\"child\" />\n</em-badge>\n<em-badge content=\"Hot\">\n <div class=\"child\" />\n</em-badge>\n<em-badge dot>\n <div class=\"child\" />\n</em-badge>\n\n<style>\n .child {\n width: 40px;\n height: 40px;\n background: #f2f3f5;\n border-radius: 4px;\n }\n</style>"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"title": "最大值",
|
|
55
|
-
"code": "<em-badge :content=\"20\" max=\"9\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"50\" max=\"20\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"200\" max=\"99\">\n <div class=\"child\" />\n</em-badge>"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"title": "自定义颜色",
|
|
59
|
-
"code": "<em-badge :content=\"5\" color=\"#1989fa\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"10\" color=\"#1989fa\">\n <div class=\"child\" />\n</em-badge>\n<em-badge dot color=\"#1989fa\">\n <div class=\"child\" />\n</em-badge>"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"title": "自定义徽标内容",
|
|
63
|
-
"code": "<em-badge>\n <div class=\"child\" />\n <template #content>\n <em-icon name=\"success\" class=\"badge-icon\" />\n </template>\n</em-badge>\n<em-badge>\n <div class=\"child\" />\n <template #content>\n <em-icon name=\"cross\" class=\"badge-icon\" />\n </template>\n</em-badge>\n<em-badge>\n <div class=\"child\" />\n <template #content>\n <em-icon name=\"down\" class=\"badge-icon\" />\n </template>\n</em-badge>"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"title": "独立展示",
|
|
67
|
-
"code": "<em-badge :content=\"20\" />\n\n<em-badge :content=\"200\" max=\"99\" />"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"vue3": [
|
|
71
|
-
{
|
|
72
|
-
"title": "基础用法",
|
|
73
|
-
"code": "<em-badge :content=\"5\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"10\">\n <div class=\"child\" />\n</em-badge>\n<em-badge content=\"Hot\">\n <div class=\"child\" />\n</em-badge>\n<em-badge dot>\n <div class=\"child\" />\n</em-badge>\n\n<style>\n .child {\n width: 40px;\n height: 40px;\n background: #f2f3f5;\n border-radius: 4px;\n }\n</style>"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"title": "最大值",
|
|
77
|
-
"code": "<em-badge :content=\"20\" max=\"9\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"50\" max=\"20\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"200\" max=\"99\">\n <div class=\"child\" />\n</em-badge>"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"title": "自定义颜色",
|
|
81
|
-
"code": "<em-badge :content=\"5\" color=\"#1989fa\">\n <div class=\"child\" />\n</em-badge>\n<em-badge :content=\"10\" color=\"#1989fa\">\n <div class=\"child\" />\n</em-badge>\n<em-badge dot color=\"#1989fa\">\n <div class=\"child\" />\n</em-badge>"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"title": "自定义徽标内容",
|
|
85
|
-
"code": "<em-badge>\n <div class=\"child\" />\n <template #content>\n <em-icon name=\"success\" class=\"badge-icon\" />\n </template>\n</em-badge>\n<em-badge>\n <div class=\"child\" />\n <template #content>\n <em-icon name=\"cross\" class=\"badge-icon\" />\n </template>\n</em-badge>\n<em-badge>\n <div class=\"child\" />\n <template #content>\n <em-icon name=\"down\" class=\"badge-icon\" />\n </template>\n</em-badge>"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"title": "独立展示",
|
|
89
|
-
"code": "<em-badge :content=\"20\" />\n\n<em-badge :content=\"200\" max=\"99\" />"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
}
|