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.
Files changed (129) hide show
  1. package/dist/cli.d.ts +1 -1
  2. package/dist/cli.js +1 -1
  3. package/dist/docs/apis.d.ts +1 -1
  4. package/dist/docs/apis.js +1 -1
  5. package/dist/docs/components.d.ts +1 -1
  6. package/dist/docs/components.js +1 -1
  7. package/dist/docs/index.d.ts +1 -1
  8. package/dist/docs/index.js +1 -1
  9. package/dist/docs/loader.d.ts +1 -1
  10. package/dist/docs/loader.js +1 -1
  11. package/dist/docs/search.d.ts +1 -1
  12. package/dist/docs/search.js +1 -1
  13. package/dist/docs/standards.d.ts +1 -1
  14. package/dist/docs/standards.js +1 -1
  15. package/dist/docs/utils.d.ts +1 -1
  16. package/dist/docs/utils.js +1 -1
  17. package/dist/generator/header.d.ts +1 -1
  18. package/dist/generator/header.js +1 -1
  19. package/dist/generator/index.d.ts +1 -1
  20. package/dist/generator/index.js +1 -1
  21. package/dist/generator/vue-template.d.ts +1 -1
  22. package/dist/generator/vue-template.js +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/recommend/index.d.ts +1 -1
  26. package/dist/recommend/index.js +1 -1
  27. package/dist/tools/generate-code.d.ts +1 -1
  28. package/dist/tools/generate-code.js +1 -1
  29. package/dist/tools/get-api-info.d.ts +1 -1
  30. package/dist/tools/get-api-info.js +1 -1
  31. package/dist/tools/get-coding-standard.d.ts +1 -1
  32. package/dist/tools/get-coding-standard.js +1 -1
  33. package/dist/tools/get-component-info.d.ts +1 -1
  34. package/dist/tools/get-component-info.js +1 -1
  35. package/dist/tools/get-util-info.d.ts +1 -1
  36. package/dist/tools/get-util-info.js +1 -1
  37. package/dist/tools/index.d.ts +1 -1
  38. package/dist/tools/index.js +1 -1
  39. package/dist/tools/recommend-solution.d.ts +1 -1
  40. package/dist/tools/recommend-solution.js +1 -1
  41. package/dist/tools/search-docs.d.ts +1 -1
  42. package/dist/tools/search-docs.js +1 -1
  43. package/dist/types/index.d.ts +1 -1
  44. package/dist/types/index.js +1 -1
  45. package/package.json +3 -4
  46. package/resources/cases/.gitkeep +0 -0
  47. package/resources/cases/form-submit-vue2.json +0 -15
  48. package/resources/cases/index.json +0 -8
  49. package/resources/cases/list-detail-vue2.json +0 -27
  50. package/resources/components/.gitkeep +0 -0
  51. package/resources/components/actionsheet.json +0 -199
  52. package/resources/components/amap.json +0 -66
  53. package/resources/components/area.json +0 -158
  54. package/resources/components/badge.json +0 -93
  55. package/resources/components/button.json +0 -260
  56. package/resources/components/calendar.json +0 -225
  57. package/resources/components/cascader.json +0 -115
  58. package/resources/components/cell.json +0 -85
  59. package/resources/components/chart.json +0 -55
  60. package/resources/components/checkbox.json +0 -158
  61. package/resources/components/circle.json +0 -138
  62. package/resources/components/collapse.json +0 -88
  63. package/resources/components/countdown.json +0 -105
  64. package/resources/components/datepicker.json +0 -216
  65. package/resources/components/dialog.json +0 -250
  66. package/resources/components/divider.json +0 -82
  67. package/resources/components/dragsort.json +0 -67
  68. package/resources/components/dropdownmenu.json +0 -129
  69. package/resources/components/easycalendar.json +0 -84
  70. package/resources/components/empty.json +0 -90
  71. package/resources/components/field.json +0 -423
  72. package/resources/components/form.json +0 -156
  73. package/resources/components/grid.json +0 -131
  74. package/resources/components/header.json +0 -147
  75. package/resources/components/icon.json +0 -104
  76. package/resources/components/image.json +0 -169
  77. package/resources/components/imagepreview.json +0 -150
  78. package/resources/components/imagescale.json +0 -245
  79. package/resources/components/index.json +0 -72
  80. package/resources/components/indexbar.json +0 -83
  81. package/resources/components/layout.json +0 -74
  82. package/resources/components/lazyload.json +0 -46
  83. package/resources/components/loading.json +0 -103
  84. package/resources/components/minirefresh.json +0 -341
  85. package/resources/components/noticebar.json +0 -148
  86. package/resources/components/notify.json +0 -60
  87. package/resources/components/numberkeyboard.json +0 -216
  88. package/resources/components/overlay.json +0 -78
  89. package/resources/components/pagination.json +0 -137
  90. package/resources/components/panel.json +0 -87
  91. package/resources/components/passwordinput.json +0 -103
  92. package/resources/components/picker.json +0 -195
  93. package/resources/components/popover.json +0 -161
  94. package/resources/components/popup.json +0 -229
  95. package/resources/components/progress.json +0 -111
  96. package/resources/components/qrcode.json +0 -128
  97. package/resources/components/radio.json +0 -139
  98. package/resources/components/rate.json +0 -157
  99. package/resources/components/rtc.json +0 -35
  100. package/resources/components/search.json +0 -234
  101. package/resources/components/selectperson.json +0 -175
  102. package/resources/components/sidebar.json +0 -74
  103. package/resources/components/skeleton.json +0 -110
  104. package/resources/components/slider.json +0 -159
  105. package/resources/components/stepper.json +0 -241
  106. package/resources/components/steps.json +0 -108
  107. package/resources/components/sticky.json +0 -72
  108. package/resources/components/swipe.json +0 -146
  109. package/resources/components/swipecell.json +0 -118
  110. package/resources/components/switch.json +0 -123
  111. package/resources/components/switchcell.json +0 -123
  112. package/resources/components/tab.json +0 -257
  113. package/resources/components/tabbar.json +0 -137
  114. package/resources/components/table.json +0 -149
  115. package/resources/components/tag.json +0 -149
  116. package/resources/components/toast.json +0 -70
  117. package/resources/components/treeselect.json +0 -106
  118. package/resources/components/uploader.json +0 -283
  119. package/resources/components/verifycode.json +0 -94
  120. package/resources/standards/.gitkeep +0 -0
  121. package/resources/standards/css.json +0 -108
  122. package/resources/standards/javascript.json +0 -129
  123. package/resources/standards/project-structure.json +0 -101
  124. package/resources/standards/vue.json +0 -122
  125. package/resources/utils/.gitkeep +0 -0
  126. package/resources/utils/ajax.json +0 -76
  127. package/resources/utils/common.json +0 -129
  128. package/resources/utils/index.json +0 -7
  129. package/resources/utils/string.json +0 -112
@@ -1,260 +0,0 @@
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
- }
@@ -1,225 +0,0 @@
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
- }
@@ -1,115 +0,0 @@
1
- {
2
- "id": "cascader",
3
- "name": "em-cascader",
4
- "title": "级联选择",
5
- "description": "级联选择框,用于多层级数据的选择,典型场景为省市区选择, M8 框架`8.2.10`版本以上支持。",
6
- "props": [
7
- {
8
- "name": "v-model",
9
- "type": "boolean",
10
- "default": "false",
11
- "required": false,
12
- "description": "级联选择组件的显隐"
13
- },
14
- {
15
- "name": "title",
16
- "type": "string",
17
- "default": "-",
18
- "required": false,
19
- "description": "顶部标题"
20
- },
21
- {
22
- "name": "selected-value",
23
- "type": "string / number",
24
- "default": "-",
25
- "required": false,
26
- "description": "选中项的值"
27
- },
28
- {
29
- "name": "options",
30
- "type": "Option[]",
31
- "default": "[]",
32
- "required": false,
33
- "description": "可选项数据源"
34
- },
35
- {
36
- "name": "placeholder",
37
- "type": "string",
38
- "default": "请选择",
39
- "required": false,
40
- "description": "未选中时的提示文案"
41
- },
42
- {
43
- "name": "active-color",
44
- "type": "string",
45
- "default": "#2e6be5",
46
- "required": false,
47
- "description": "选中状态的高亮颜色"
48
- },
49
- {
50
- "name": "closeable",
51
- "type": "boolean",
52
- "default": "true",
53
- "required": false,
54
- "description": "是否显示关闭图标"
55
- },
56
- {
57
- "name": "field-names",
58
- "type": "object",
59
- "default": "{ text: 'text', value: 'value', children: 'children' }",
60
- "required": false,
61
- "description": "自定义 `options` 结构中的字段"
62
- }
63
- ],
64
- "events": [
65
- {
66
- "name": "close",
67
- "parameters": "关闭弹出层时触发",
68
- "description": "`value`: 当前弹出层是否展开"
69
- }
70
- ],
71
- "slots": [
72
- {
73
- "name": "title",
74
- "description": "自定义顶部标题"
75
- }
76
- ],
77
- "examples": {
78
- "vue2": [
79
- {
80
- "title": "基础用法",
81
- "code": "<em-field v-model=\"fieldValue\" is-link readonly label=\"地区\" placeholder=\"请选择所在地区\" @click=\"show = true\" />\n<em-cascader\n v-model=\"show\"\n title=\"请选择所在地区\"\n :selected-value=\"cascaderValue\"\n :options=\"options\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n/>"
82
- },
83
- {
84
- "title": "自定义颜色",
85
- "code": "<em-cascader\n v-model=\"show\"\n title=\"请选择所在地区\"\n active-color=\"#1989fa\"\n :options=\"options\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n/>"
86
- },
87
- {
88
- "title": "异步加载选项",
89
- "code": "<em-field v-model=\"fieldValue\" is-link readonly label=\"地区\" placeholder=\"请选择所在地区\" @click=\"show = true\" />\n<em-cascader\n v-model=\"show\"\n :selected-value=\"cascaderValue\"\n title=\"请选择所在地区\"\n :options=\"options\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n @change=\"onChange\"\n/>"
90
- },
91
- {
92
- "title": "自定义字段名",
93
- "code": "<em-cascader\n v-model=\"show\"\n title=\"请选择所在地区\"\n :options=\"options\"\n :field-names=\"fieldNames\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n/>"
94
- }
95
- ],
96
- "vue3": [
97
- {
98
- "title": "基础用法",
99
- "code": "<em-field v-model=\"fieldValue\" is-link readonly label=\"地区\" placeholder=\"请选择所在地区\" @click=\"show = true\" />\n<em-cascader\n v-model=\"show\"\n title=\"请选择所在地区\"\n :selected-value=\"cascaderValue\"\n :options=\"options\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n/>"
100
- },
101
- {
102
- "title": "自定义颜色",
103
- "code": "<em-cascader\n v-model=\"show\"\n title=\"请选择所在地区\"\n active-color=\"#1989fa\"\n :options=\"options\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n/>"
104
- },
105
- {
106
- "title": "异步加载选项",
107
- "code": "<em-field v-model=\"fieldValue\" is-link readonly label=\"地区\" placeholder=\"请选择所在地区\" @click=\"show = true\" />\n<em-cascader\n v-model=\"show\"\n :selected-value=\"cascaderValue\"\n title=\"请选择所在地区\"\n :options=\"options\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n @change=\"onChange\"\n/>"
108
- },
109
- {
110
- "title": "自定义字段名",
111
- "code": "<em-cascader\n v-model=\"show\"\n title=\"请选择所在地区\"\n :options=\"options\"\n :field-names=\"fieldNames\"\n @close=\"show = false\"\n @finish=\"onFinish\"\n/>"
112
- }
113
- ]
114
- }
115
- }
@@ -1,85 +0,0 @@
1
- {
2
- "id": "cell",
3
- "name": "em-cell",
4
- "title": "单元格",
5
- "description": "单元格组件。",
6
- "props": [
7
- {
8
- "name": "title",
9
- "type": "string",
10
- "default": "-",
11
- "required": false,
12
- "description": "分组标题"
13
- },
14
- {
15
- "name": "border",
16
- "type": "boolean",
17
- "default": "true",
18
- "required": false,
19
- "description": "是否显示外边框"
20
- }
21
- ],
22
- "events": [
23
- {
24
- "name": "click",
25
- "parameters": "点击单元格时触发",
26
- "description": "event: Event"
27
- }
28
- ],
29
- "slots": [
30
- {
31
- "name": "default",
32
- "description": "默认插槽"
33
- },
34
- {
35
- "name": "title",
36
- "description": "自定义分组标题"
37
- }
38
- ],
39
- "examples": {
40
- "vue2": [
41
- {
42
- "title": "基础用法",
43
- "code": "<em-cell-group>\n <em-cell title=\"单元格\" value=\"内容\" />\n <em-cell title=\"单元格\" value=\"内容\" label=\"描述信息\" :border=\"false\" />\n</em-cell-group>"
44
- },
45
- {
46
- "title": "单元格大小",
47
- "code": "<em-cell title=\"单元格\" value=\"内容\" size=\"large\" />\n<em-cell title=\"单元格\" value=\"内容\" size=\"large\" label=\"描述信息\" />"
48
- },
49
- {
50
- "title": "展示图标",
51
- "code": "<em-cell title=\"单元格\" icon=\"location-o\" />"
52
- },
53
- {
54
- "title": "只设置 value",
55
- "code": "<em-cell value=\"内容\" />"
56
- },
57
- {
58
- "title": "展示箭头",
59
- "code": "<em-cell title=\"单元格\" is-link />\n<em-cell title=\"单元格\" is-link value=\"内容\" />\n<em-cell title=\"单元格\" is-link arrow-direction=\"down\" value=\"内容\" />"
60
- }
61
- ],
62
- "vue3": [
63
- {
64
- "title": "基础用法",
65
- "code": "<em-cell-group>\n <em-cell title=\"单元格\" value=\"内容\" />\n <em-cell title=\"单元格\" value=\"内容\" label=\"描述信息\" :border=\"false\" />\n</em-cell-group>"
66
- },
67
- {
68
- "title": "单元格大小",
69
- "code": "<em-cell title=\"单元格\" value=\"内容\" size=\"large\" />\n<em-cell title=\"单元格\" value=\"内容\" size=\"large\" label=\"描述信息\" />"
70
- },
71
- {
72
- "title": "展示图标",
73
- "code": "<em-cell title=\"单元格\" icon=\"location-o\" />"
74
- },
75
- {
76
- "title": "只设置 value",
77
- "code": "<em-cell value=\"内容\" />"
78
- },
79
- {
80
- "title": "展示箭头",
81
- "code": "<em-cell title=\"单元格\" is-link />\n<em-cell title=\"单元格\" is-link value=\"内容\" />\n<em-cell title=\"单元格\" is-link arrow-direction=\"down\" value=\"内容\" />"
82
- }
83
- ]
84
- }
85
- }