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,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "notify",
|
|
3
|
-
"name": "em-notify",
|
|
4
|
-
"title": "消息通知",
|
|
5
|
-
"description": "在页面顶部展示消息提示,支持函数调用和组件调用两种方式。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Notify",
|
|
9
|
-
"type": "options / message",
|
|
10
|
-
"default": "notify 实例",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "展示提示"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "Notify.clear",
|
|
16
|
-
"type": "-",
|
|
17
|
-
"default": "-",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "关闭提示"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "Notify.setDefaultOptions",
|
|
23
|
-
"type": "options",
|
|
24
|
-
"default": "void",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "修改默认配置,对当前页面所有 `Notify` 生效"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "Notify.resetDefaultOptions",
|
|
30
|
-
"type": "-",
|
|
31
|
-
"default": "void",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "重置默认配置,对当前页面所有 `Notify` 生效"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"events": [],
|
|
37
|
-
"slots": [],
|
|
38
|
-
"examples": {
|
|
39
|
-
"vue2": [
|
|
40
|
-
{
|
|
41
|
-
"title": "基础用法",
|
|
42
|
-
"code": "<em-notify ref=\"emNotify\"></em-notify>"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"title": "组件调用",
|
|
46
|
-
"code": "<em-button type=\"primary\" text=\"组件调用\" @click=\"showNotify\" />\n<em-notify v-model=\"show\" type=\"success\">\n <em-icon name=\"bell\" style=\"margin-right: 4px\" />\n <span>通知内容</span>\n</em-notify>"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"vue3": [
|
|
50
|
-
{
|
|
51
|
-
"title": "基础用法",
|
|
52
|
-
"code": "<em-notify ref=\"emNotify\"></em-notify>"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"title": "组件调用",
|
|
56
|
-
"code": "<em-button type=\"primary\" text=\"组件调用\" @click=\"showNotify\" />\n<em-notify v-model=\"show\" type=\"success\">\n <em-icon name=\"bell\" style=\"margin-right: 4px\" />\n <span>通知内容</span>\n</em-notify>"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "numberkeyboard",
|
|
3
|
-
"name": "em-numberkeyboard",
|
|
4
|
-
"title": "数字键盘",
|
|
5
|
-
"description": "数字虚拟键盘,可以配合密码输入框组件或自定义的输入框组件使用。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "当前输入值"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "show",
|
|
16
|
-
"type": "boolean",
|
|
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": "theme",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "default",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "样式风格,可选值为 `custom`"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "maxlength",
|
|
37
|
-
"type": "number / string",
|
|
38
|
-
"default": "-",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "输入值最大长度"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "transition",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": "true",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "是否开启过场动画"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "z-index",
|
|
51
|
-
"type": "number / string",
|
|
52
|
-
"default": "99",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "键盘 `z-index` 层级"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "extra-key",
|
|
58
|
-
"type": "string / string[]",
|
|
59
|
-
"default": "''",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "底部额外按键的内容"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "close-button-text",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"default": "-",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "关闭按钮文字,空则不展示"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "delete-button-text",
|
|
72
|
-
"type": "string",
|
|
73
|
-
"default": "-",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "删除按钮文字,空则展示删除图标"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "close-button-loading",
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"default": "false",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "是否将关闭按钮设置为加载中状态,仅在 `theme=\"custom\"`时有效"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "show-delete-key",
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"default": "true",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "是否展示删除图标"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "hide-on-click-outside",
|
|
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
|
-
"name": "random-key-order",
|
|
107
|
-
"type": "boolean",
|
|
108
|
-
"default": "false",
|
|
109
|
-
"required": false,
|
|
110
|
-
"description": "是否将通过随机顺序展示按键"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "show-title-left",
|
|
114
|
-
"type": "boolean",
|
|
115
|
-
"default": "false",
|
|
116
|
-
"required": false,
|
|
117
|
-
"description": "是否展示 titleLeft slot"
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"events": [
|
|
121
|
-
{
|
|
122
|
-
"name": "inputkey",
|
|
123
|
-
"parameters": "点击按键时触发",
|
|
124
|
-
"description": "key: 按键内容"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "delete",
|
|
128
|
-
"parameters": "点击删除键时触发",
|
|
129
|
-
"description": "-"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"name": "close",
|
|
133
|
-
"parameters": "点击关闭按钮时触发",
|
|
134
|
-
"description": "-"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"name": "blur",
|
|
138
|
-
"parameters": "点击关闭按钮或非键盘区域时触发",
|
|
139
|
-
"description": "-"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "show",
|
|
143
|
-
"parameters": "键盘完全弹出时触发",
|
|
144
|
-
"description": "-"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "hide",
|
|
148
|
-
"parameters": "键盘完全收起时触发",
|
|
149
|
-
"description": "-"
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"slots": [
|
|
153
|
-
{
|
|
154
|
-
"name": "delete",
|
|
155
|
-
"description": "自定义删除按键内容"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"name": "extraKey",
|
|
159
|
-
"description": "自定义左下角按键内容"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "extraKeyNext",
|
|
163
|
-
"description": "第二个自定义按键内容,仅在 theme=custom 时生效"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "titleLeft",
|
|
167
|
-
"description": "自定义标题栏左侧内容"
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"examples": {
|
|
171
|
-
"vue2": [
|
|
172
|
-
{
|
|
173
|
-
"title": "默认样式",
|
|
174
|
-
"code": "<em-cell title=\"弹出默认键盘\" @click=\"show1 = true\" is-link></em-cell>\n<em-number-keyboard :show=\"show1\" @blur=\"show1 = false\" @inputkey=\"onInput\" @delete=\"onDelete\"></em-number-keyboard>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"title": "带右侧栏的键盘",
|
|
178
|
-
"code": "<em-cell title=\"带右侧栏的键盘\" @click=\"show2 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show2\"\n theme=\"custom\"\n extra-key=\".\"\n close-button-text=\"完成\"\n @blur=\"show2 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"title": "身份证号键盘",
|
|
182
|
-
"code": "<em-cell title=\"弹出身份证号键盘\" @click=\"show3 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show3\"\n extra-key=\"X\"\n close-button-text=\"完成\"\n @blur=\"show3 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"title": "键盘标题",
|
|
186
|
-
"code": "<em-cell title=\"弹出带标题的键盘\" @click=\"show4 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show4\"\n title=\"键盘标题\"\n extra-key=\".\"\n close-button-text=\"完成\"\n @blur=\"show4 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"title": "配置多个按键",
|
|
190
|
-
"code": "<em-cell title=\"弹出配置多个按键的键盘\" @click=\"show5 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show5\"\n :extra-key=\"['00', '.']\"\n close-button-text=\"完成\"\n @blur=\"show5 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
"vue3": [
|
|
194
|
-
{
|
|
195
|
-
"title": "默认样式",
|
|
196
|
-
"code": "<em-cell title=\"弹出默认键盘\" @click=\"show1 = true\" is-link></em-cell>\n<em-number-keyboard :show=\"show1\" @blur=\"show1 = false\" @inputkey=\"onInput\" @delete=\"onDelete\"></em-number-keyboard>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"title": "带右侧栏的键盘",
|
|
200
|
-
"code": "<em-cell title=\"带右侧栏的键盘\" @click=\"show2 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show2\"\n theme=\"custom\"\n extra-key=\".\"\n close-button-text=\"完成\"\n @blur=\"show2 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"title": "身份证号键盘",
|
|
204
|
-
"code": "<em-cell title=\"弹出身份证号键盘\" @click=\"show3 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show3\"\n extra-key=\"X\"\n close-button-text=\"完成\"\n @blur=\"show3 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"title": "键盘标题",
|
|
208
|
-
"code": "<em-cell title=\"弹出带标题的键盘\" @click=\"show4 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show4\"\n title=\"键盘标题\"\n extra-key=\".\"\n close-button-text=\"完成\"\n @blur=\"show4 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"title": "配置多个按键",
|
|
212
|
-
"code": "<em-cell title=\"弹出配置多个按键的键盘\" @click=\"show5 = true\" is-link></em-cell>\n<em-number-keyboard\n :show=\"show5\"\n :extra-key=\"['00', '.']\"\n close-button-text=\"完成\"\n @blur=\"show5 = false\"\n @inputkey=\"onInput\"\n @delete=\"onDelete\"\n></em-number-keyboard>"
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "overlay",
|
|
3
|
-
"name": "em-overlay",
|
|
4
|
-
"title": "遮罩层",
|
|
5
|
-
"description": "创建一个遮罩层,用于强调特定的页面元素,并阻止用户进行其他操作。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "show",
|
|
9
|
-
"type": "boolean",
|
|
10
|
-
"default": "false",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "是否展示遮罩层"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "z-index",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "99",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "`z-index` 层级"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "duration",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "280",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "动画时长,单位毫秒"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "custom-style",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "自定义样式"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "lock-scroll",
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"default": "true",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动, 支付宝小程序不支持"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"events": [
|
|
44
|
-
{
|
|
45
|
-
"name": "click",
|
|
46
|
-
"parameters": "点击时触发",
|
|
47
|
-
"description": "event: Event"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"slots": [
|
|
51
|
-
{
|
|
52
|
-
"name": "default",
|
|
53
|
-
"description": "默认插槽,用于在遮罩层上方嵌入内容"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"examples": {
|
|
57
|
-
"vue2": [
|
|
58
|
-
{
|
|
59
|
-
"title": "基础用法",
|
|
60
|
-
"code": "<em-button type=\"primary\" text=\"显示遮罩层\" @click=\"show = true\" />\n<em-overlay :show=\"show\" @click=\"show = false\" />"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"title": "嵌入内容",
|
|
64
|
-
"code": "<em-overlay :show=\"show\" @click=\"show = false\">\n <div class=\"wrapper\">\n <scroll-view scroll-y=\"true\" class=\"scroll-items\" style=\"scroll-behavior: smooth\" @click.stop>\n <div v-for=\"item in 20\" :key=\"item\">item</div>\n </scroll-view>\n </div>\n</em-overlay>\n\n<style>\n .wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n }\n\n .block {\n width: 120px;\n height: 120px;\n background-color: #fff;\n }\n</style>"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"vue3": [
|
|
68
|
-
{
|
|
69
|
-
"title": "基础用法",
|
|
70
|
-
"code": "<em-button type=\"primary\" text=\"显示遮罩层\" @click=\"show = true\" />\n<em-overlay :show=\"show\" @click=\"show = false\" />"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"title": "嵌入内容",
|
|
74
|
-
"code": "<em-overlay :show=\"show\" @click=\"show = false\">\n <div class=\"wrapper\">\n <scroll-view scroll-y=\"true\" class=\"scroll-items\" style=\"scroll-behavior: smooth\" @click.stop>\n <div v-for=\"item in 20\" :key=\"item\">item</div>\n </scroll-view>\n </div>\n</em-overlay>\n\n<style>\n .wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n }\n\n .block {\n width: 120px;\n height: 120px;\n background-color: #fff;\n }\n</style>"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "pagination",
|
|
3
|
-
"name": "em-pagination",
|
|
4
|
-
"title": "分页",
|
|
5
|
-
"description": "分页组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "number",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "当前页码"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "mode",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "multi",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "显示模式,可选值为 simple"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "prev-text",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "上一页",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "上一页按钮文字"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "next-text",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "下一页",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "下一页按钮文字"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "page-count",
|
|
37
|
-
"type": "number / string",
|
|
38
|
-
"default": "自动计算",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "总页数"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "total-items",
|
|
44
|
-
"type": "number / string",
|
|
45
|
-
"default": "0",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "总记录数"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "items-per-page",
|
|
51
|
-
"type": "number / string",
|
|
52
|
-
"default": "10",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "每页记录数"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "show-page-size",
|
|
58
|
-
"type": "number / string",
|
|
59
|
-
"default": "5",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "显示的页码个数"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "force-ellipses",
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": "false",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "是否显示省略号"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "disable-input",
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"default": "false",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "简单模式下,禁用 select 弹窗"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"events": [
|
|
79
|
-
{
|
|
80
|
-
"name": "change",
|
|
81
|
-
"parameters": "页码改变时触发",
|
|
82
|
-
"description": "`currentPage: number`"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"slots": [
|
|
86
|
-
{
|
|
87
|
-
"name": "page",
|
|
88
|
-
"description": "自定义页码"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "prev-text",
|
|
92
|
-
"description": "自定义上一页按钮文字"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "next-text",
|
|
96
|
-
"description": "自定义下一页按钮文字"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"examples": {
|
|
100
|
-
"vue2": [
|
|
101
|
-
{
|
|
102
|
-
"title": "基础用法",
|
|
103
|
-
"code": "<em-pagination v-model=\"currentPage\" :total-items=\"100\"></em-pagination>"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"title": "简单模式",
|
|
107
|
-
"code": "<em-pagination v-model=\"currentPage\" mode=\"simple\" :page-count=\"12\" />"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"title": "显示省略号",
|
|
111
|
-
"code": "<em-pagination v-model=\"currentPage\" :total-items=\"125\" :show-page-size=\"3\" force-ellipses />"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"title": "使用插槽",
|
|
115
|
-
"code": "<em-pagination v-model=\"currentPage\" :total-items=\"125\">\n <template #prevText>-</template>\n <template #nextText>+</template>\n <template #page=\"{ text, active, number }\">{{ number }}+</template>\n</em-pagination>"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"vue3": [
|
|
119
|
-
{
|
|
120
|
-
"title": "基础用法",
|
|
121
|
-
"code": "<em-pagination v-model=\"currentPage\" :total-items=\"100\"></em-pagination>"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"title": "简单模式",
|
|
125
|
-
"code": "<em-pagination v-model=\"currentPage\" mode=\"simple\" :page-count=\"12\" />"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"title": "显示省略号",
|
|
129
|
-
"code": "<em-pagination v-model=\"currentPage\" :total-items=\"125\" :show-page-size=\"3\" force-ellipses />"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"title": "使用插槽",
|
|
133
|
-
"code": "<em-pagination v-model=\"currentPage\" :total-items=\"125\">\n <template #prevText>-</template>\n <template #nextText>+</template>\n <template #page=\"{ text, active, number }\">{{ number }}+</template>\n</em-pagination>"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "panel",
|
|
3
|
-
"name": "em-panel",
|
|
4
|
-
"title": "面板",
|
|
5
|
-
"description": "面板组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "title",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "标题"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "desc",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "-",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "描述"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "status",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "-",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "状态"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "icon",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "标题左侧图标名称或图片链接"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "border",
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"default": "true",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "是否显示标题的边框"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "use-footer-slot",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": "false",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "是否使用 footer 插槽"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"events": [],
|
|
51
|
-
"slots": [
|
|
52
|
-
{
|
|
53
|
-
"name": "default",
|
|
54
|
-
"description": "自定义内容"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "header",
|
|
58
|
-
"description": "自定义"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "footer",
|
|
62
|
-
"description": "自定义"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"examples": {
|
|
66
|
-
"vue2": [
|
|
67
|
-
{
|
|
68
|
-
"title": "基础用法",
|
|
69
|
-
"code": "<em-panel title=\"标题\" desc=\"描述信息\" status=\"状态\">\n <view>内容</view>\n</em-panel>"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"title": "高级用法",
|
|
73
|
-
"code": "<em-panel title=\"标题\" desc=\"描述信息\" status=\"状态\" use-footer-slot>\n <view class=\"content\">内容</view>\n <view slot=\"footer\" class=\"footer\">\n <em-button size=\"small\" class=\"demo-margin-right\">按钮</em-button>\n <em-button size=\"small\" type=\"danger\">按钮</em-button>\n </view>\n</em-panel>"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"vue3": [
|
|
77
|
-
{
|
|
78
|
-
"title": "基础用法",
|
|
79
|
-
"code": "<em-panel title=\"标题\" desc=\"描述信息\" status=\"状态\">\n <view>内容</view>\n</em-panel>"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"title": "高级用法",
|
|
83
|
-
"code": "<em-panel title=\"标题\" desc=\"描述信息\" status=\"状态\" use-footer-slot>\n <view class=\"content\">内容</view>\n <view slot=\"footer\" class=\"footer\">\n <em-button size=\"small\" class=\"demo-margin-right\">按钮</em-button>\n <em-button size=\"small\" type=\"danger\">按钮</em-button>\n </view>\n</em-panel>"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
}
|