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,257 +0,0 @@
1
- {
2
- "id": "tab",
3
- "name": "em-tab",
4
- "title": "标签页",
5
- "description": "`Tab`标签页。",
6
- "props": [
7
- {
8
- "name": "v-model",
9
- "type": "number / string",
10
- "default": "0",
11
- "required": false,
12
- "description": "绑定当前选中标签的标识符"
13
- },
14
- {
15
- "name": "type",
16
- "type": "string",
17
- "default": "line",
18
- "required": false,
19
- "description": "样式风格类型,可选值为 `card`"
20
- },
21
- {
22
- "name": "color",
23
- "type": "string",
24
- "default": "#2e6be5",
25
- "required": false,
26
- "description": "标签主题色"
27
- },
28
- {
29
- "name": "background",
30
- "type": "string",
31
- "default": "white",
32
- "required": false,
33
- "description": "标签栏背景色"
34
- },
35
- {
36
- "name": "duration",
37
- "type": "number / string",
38
- "default": "0.3",
39
- "required": false,
40
- "description": "动画时间,单位秒"
41
- },
42
- {
43
- "name": "line-width",
44
- "type": "number / string",
45
- "default": "30px",
46
- "required": false,
47
- "description": "底部条宽度,默认单位`px`"
48
- },
49
- {
50
- "name": "line-height",
51
- "type": "number / string",
52
- "default": "3px",
53
- "required": false,
54
- "description": "底部条高度,默认单位`px`"
55
- },
56
- {
57
- "name": "line-skew",
58
- "type": "boolean",
59
- "default": "true",
60
- "required": false,
61
- "description": "是否开启底部条两端倾斜角度效果"
62
- },
63
- {
64
- "name": "animated",
65
- "type": "boolean",
66
- "default": "false",
67
- "required": false,
68
- "description": "是否开启切换标签内容时的转场动画"
69
- },
70
- {
71
- "name": "border",
72
- "type": "boolean",
73
- "default": "true",
74
- "required": false,
75
- "description": "是否显示标签栏外边框,仅在 `type=\"line\"`时有效"
76
- },
77
- {
78
- "name": "ellipsis",
79
- "type": "boolean",
80
- "default": "true",
81
- "required": false,
82
- "description": "是否省略过长的标题文字"
83
- },
84
- {
85
- "name": "sticky",
86
- "type": "boolean",
87
- "default": "false",
88
- "required": false,
89
- "description": "是否使用粘性定位布局"
90
- },
91
- {
92
- "name": "scrollspy",
93
- "type": "boolean",
94
- "default": "false",
95
- "required": false,
96
- "description": "是否使用滚动导航"
97
- },
98
- {
99
- "name": "swipeable",
100
- "type": "boolean",
101
- "default": "false",
102
- "required": false,
103
- "description": "是否开启手势滑动切换"
104
- },
105
- {
106
- "name": "lazy-render",
107
- "type": "boolean",
108
- "default": "true",
109
- "required": false,
110
- "description": "是否开启延迟渲染(首次切换到标签时才触发内容渲染)"
111
- },
112
- {
113
- "name": "offset-top",
114
- "type": "number / string",
115
- "default": "0",
116
- "required": false,
117
- "description": "粘性定位布局下与顶部的最小距离,支持 `px` `vw` `rem` 单位,默认 `px`"
118
- },
119
- {
120
- "name": "swipe-threshold",
121
- "type": "number / string",
122
- "default": "5",
123
- "required": false,
124
- "description": "滚动阈值,标签数量超过阈值时开始横向滚动"
125
- },
126
- {
127
- "name": "title-active-color",
128
- "type": "string",
129
- "default": "-",
130
- "required": false,
131
- "description": "标题选中态颜色"
132
- },
133
- {
134
- "name": "title-inactive-color",
135
- "type": "string",
136
- "default": "-",
137
- "required": false,
138
- "description": "标题默认态颜色"
139
- },
140
- {
141
- "name": "before-change",
142
- "type": "(name) => boolean / Promise",
143
- "default": "-",
144
- "required": false,
145
- "description": "切换标签前的回调函数,返回 `false` 可阻止切换,支持返回 `Promise`"
146
- },
147
- {
148
- "name": "putaway",
149
- "type": "boolean",
150
- "default": "false",
151
- "required": false,
152
- "description": "标签数过多时是否展示同级扩展"
153
- },
154
- {
155
- "name": "shrink",
156
- "type": "boolean",
157
- "default": "false",
158
- "required": false,
159
- "description": "标签是否开启左对齐"
160
- },
161
- {
162
- "name": "pop-height",
163
- "type": "string/number",
164
- "default": "-",
165
- "required": false,
166
- "description": "自定义下拉弹窗的高度,单位为`px`"
167
- }
168
- ],
169
- "events": [
170
- {
171
- "name": "click",
172
- "parameters": "点击标签时触发",
173
- "description": "`name`:标识符,`title`:标题"
174
- },
175
- {
176
- "name": "change",
177
- "parameters": "当前激活的标签改变时触发",
178
- "description": "`name`:标识符,`title`:标题"
179
- },
180
- {
181
- "name": "disabled",
182
- "parameters": "点击被禁用的标签时触发",
183
- "description": "`name`:标识符,`title`:标题"
184
- },
185
- {
186
- "name": "rendered",
187
- "parameters": "标签内容首次渲染时触发(仅在开启延迟渲染后触发)",
188
- "description": "`name`:标识符,`title`:标题"
189
- },
190
- {
191
- "name": "scroll",
192
- "parameters": "滚动时触发,仅在 `sticky` 模式下生效",
193
- "description": "{ `scrollTop`: 距离顶部位置, `isFixed`: 是否吸顶 }"
194
- },
195
- {
196
- "name": "load",
197
- "parameters": "mounted 中触发",
198
- "description": "-"
199
- }
200
- ],
201
- "slots": [
202
- {
203
- "name": "navLeft",
204
- "description": "标题左侧内容"
205
- },
206
- {
207
- "name": "navRight",
208
- "description": "标题右侧内容"
209
- }
210
- ],
211
- "examples": {
212
- "vue2": [
213
- {
214
- "title": "基础用法",
215
- "code": "<em-tabs v-model=\"active\">\n <em-tab title=\"标签 1\">内容 1</em-tab>\n <em-tab title=\"标签 2\">内容 2</em-tab>\n <em-tab title=\"标签 3\">内容 3</em-tab>\n <em-tab title=\"标签 4\">内容 4</em-tab>\n</em-tabs>"
216
- },
217
- {
218
- "title": "子级扩展",
219
- "code": "<em-tabs v-model=\"active\">\n <em-tab title=\"选中项目\" :sub-tabs=\"subTabs\" @subTabClick=\"subTabClick\">\n <div class=\"tab-content\">默认的横向扩展</div>\n </em-tab>\n <em-tab title=\"标签 2\">\n <template v-slot:subtab>\n <div class=\"sub-content\">自定义子级扩展内容</div>\n </template>\n <div class=\"tab-content\">内容 2</div>\n </em-tab>\n</em-tabs>"
220
- },
221
- {
222
- "title": "下拉",
223
- "code": "<em-tabs v-model=\"active\">\n <em-tab title=\"选中项目\" :sub-tabs=\"subTabs\" :isDropdown=\"true\" sub-direction=\"vertical\" @subTabClick=\"subTabClick\">\n <div class=\"tab-content-down\">默认的纵向扩展</div>\n </em-tab>\n <em-tab title=\"标签 2\" :sub-tabs=\"subTabs\" :isDropdown=\"true\" sub-direction=\"horizontal\" @subTabClick=\"subTabClick\">\n <div class=\"tab-content-down\">默认的横向扩展</div>\n </em-tab>\n <em-tab title=\"标签 3\" :isDropdown=\"true\">\n <template v-slot:subtab>\n <div class=\"sub-content\">自定义子级扩展内容</div>\n </template>\n <div class=\"tab-content-down\">内容 3</div>\n </em-tab>\n</em-tabs>"
224
- },
225
- {
226
- "title": "同级扩展",
227
- "code": "<em-tabs v-model=\"active\" :putaway=\"true\">\n <em-tab v-for=\"item in [1,2,3,4,5,6,7,8,9]\" :key=\"item\" :title=\"`标签 ${item}`\">\n <div class=\"tab-content\">内容 {{item}}</div>\n </em-tab>\n</em-tabs>"
228
- },
229
- {
230
- "title": "通过名称匹配",
231
- "code": "<em-tabs v-model=\"activeName\">\n <em-tab title=\"标签 1\" name=\"a\">内容 1</em-tab>\n <em-tab title=\"标签 2\" name=\"b\">内容 2</em-tab>\n <em-tab title=\"标签 3\" name=\"c\">内容 3</em-tab>\n</em-tabs>"
232
- }
233
- ],
234
- "vue3": [
235
- {
236
- "title": "基础用法",
237
- "code": "<em-tabs v-model=\"active\">\n <em-tab title=\"标签 1\">内容 1</em-tab>\n <em-tab title=\"标签 2\">内容 2</em-tab>\n <em-tab title=\"标签 3\">内容 3</em-tab>\n <em-tab title=\"标签 4\">内容 4</em-tab>\n</em-tabs>"
238
- },
239
- {
240
- "title": "子级扩展",
241
- "code": "<em-tabs v-model=\"active\">\n <em-tab title=\"选中项目\" :sub-tabs=\"subTabs\" @subTabClick=\"subTabClick\">\n <div class=\"tab-content\">默认的横向扩展</div>\n </em-tab>\n <em-tab title=\"标签 2\">\n <template v-slot:subtab>\n <div class=\"sub-content\">自定义子级扩展内容</div>\n </template>\n <div class=\"tab-content\">内容 2</div>\n </em-tab>\n</em-tabs>"
242
- },
243
- {
244
- "title": "下拉",
245
- "code": "<em-tabs v-model=\"active\">\n <em-tab title=\"选中项目\" :sub-tabs=\"subTabs\" :isDropdown=\"true\" sub-direction=\"vertical\" @subTabClick=\"subTabClick\">\n <div class=\"tab-content-down\">默认的纵向扩展</div>\n </em-tab>\n <em-tab title=\"标签 2\" :sub-tabs=\"subTabs\" :isDropdown=\"true\" sub-direction=\"horizontal\" @subTabClick=\"subTabClick\">\n <div class=\"tab-content-down\">默认的横向扩展</div>\n </em-tab>\n <em-tab title=\"标签 3\" :isDropdown=\"true\">\n <template v-slot:subtab>\n <div class=\"sub-content\">自定义子级扩展内容</div>\n </template>\n <div class=\"tab-content-down\">内容 3</div>\n </em-tab>\n</em-tabs>"
246
- },
247
- {
248
- "title": "同级扩展",
249
- "code": "<em-tabs v-model=\"active\" :putaway=\"true\">\n <em-tab v-for=\"item in [1,2,3,4,5,6,7,8,9]\" :key=\"item\" :title=\"`标签 ${item}`\">\n <div class=\"tab-content\">内容 {{item}}</div>\n </em-tab>\n</em-tabs>"
250
- },
251
- {
252
- "title": "通过名称匹配",
253
- "code": "<em-tabs v-model=\"activeName\">\n <em-tab title=\"标签 1\" name=\"a\">内容 1</em-tab>\n <em-tab title=\"标签 2\" name=\"b\">内容 2</em-tab>\n <em-tab title=\"标签 3\" name=\"c\">内容 3</em-tab>\n</em-tabs>"
254
- }
255
- ]
256
- }
257
- }
@@ -1,137 +0,0 @@
1
- {
2
- "id": "tabbar",
3
- "name": "em-tabbar",
4
- "title": "标签栏",
5
- "description": "标签栏。",
6
- "props": [
7
- {
8
- "name": "v-model",
9
- "type": "number / string",
10
- "default": "0",
11
- "required": false,
12
- "description": "当前选中标签的名称或索引值"
13
- },
14
- {
15
- "name": "fixed",
16
- "type": "boolean",
17
- "default": "true",
18
- "required": false,
19
- "description": "是否固定在底部"
20
- },
21
- {
22
- "name": "border",
23
- "type": "boolean",
24
- "default": "true",
25
- "required": false,
26
- "description": "是否显示外边框"
27
- },
28
- {
29
- "name": "z-index",
30
- "type": "number / string",
31
- "default": "1",
32
- "required": false,
33
- "description": "元素 `z-index`"
34
- },
35
- {
36
- "name": "active-color",
37
- "type": "string",
38
- "default": "#1989fa",
39
- "required": false,
40
- "description": "选中标签的颜色"
41
- },
42
- {
43
- "name": "inactive-color",
44
- "type": "string",
45
- "default": "#7d7e80",
46
- "required": false,
47
- "description": "未选中标签的颜色"
48
- },
49
- {
50
- "name": "route",
51
- "type": "boolean",
52
- "default": "false",
53
- "required": false,
54
- "description": "是否开启路由模式"
55
- },
56
- {
57
- "name": "placeholder",
58
- "type": "boolean",
59
- "default": "false",
60
- "required": false,
61
- "description": "固定在底部时,是否在标签位置生成一个等高的占位元素"
62
- },
63
- {
64
- "name": "safe-area-inset-bottom",
65
- "type": "boolean",
66
- "default": "true",
67
- "required": false,
68
- "description": "设置 `fixed` 时有效,是否开启底部安全区适配,默认开启"
69
- },
70
- {
71
- "name": "before-change",
72
- "type": "(name) => boolean / Promise",
73
- "default": "-",
74
- "required": false,
75
- "description": "切换标签前的回调函数,返回 false 可阻止切换,支持返回 Promise,resolve(true)时继续切换,反之阻止切换"
76
- }
77
- ],
78
- "events": [
79
- {
80
- "name": "change",
81
- "parameters": "切换标签时触发",
82
- "description": "active: 当前选中标签的名称或索引值"
83
- }
84
- ],
85
- "slots": [
86
- {
87
- "name": "icon",
88
- "description": "自定义图标"
89
- }
90
- ],
91
- "examples": {
92
- "vue2": [
93
- {
94
- "title": "基础用法",
95
- "code": "<em-tabbar v-model=\"active\">\n <em-tabbar-item icon=\"home-o\">标签1</em-tabbar-item>\n <em-tabbar-item icon=\"search\">标签1</em-tabbar-item>\n <em-tabbar-item icon=\"friends-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
96
- },
97
- {
98
- "title": "通过名称匹配",
99
- "code": "<em-tabbar v-model=\"active2\" @change=\"onChange\">\n <em-tabbar-item name=\"home\" icon=\"home-o\">标签</em-tabbar-item>\n <em-tabbar-item name=\"search\" icon=\"search\">标签</em-tabbar-item>\n <em-tabbar-item name=\"friends\" icon=\"friends-o\">标签</em-tabbar-item>\n <em-tabbar-item name=\"setting\" icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
100
- },
101
- {
102
- "title": "徽标提示",
103
- "code": "<em-tabbar v-model=\"active3\" @change=\"onChange\">\n <em-tabbar-item icon=\"home-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"search\" dot>标签</em-tabbar-item>\n <em-tabbar-item icon=\"friends-o\" badge=\"5\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\" badge=\"20\">标签</em-tabbar-item>\n</em-tabbar>"
104
- },
105
- {
106
- "title": "自定义图标",
107
- "code": "<em-tabbar v-model=\"active4\" @change=\"onChange\">\n <em-tabbar-item badge=\"3\">\n <template #icon=\"{active}\">\n <image :src=\"active ? icon.active : icon.inactive\" mode=\"aspectFit\" style=\"width: 30px; height: 18px\" />\n </template>\n 自定义\n </em-tabbar-item>\n <em-tabbar-item icon=\"search\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
108
- },
109
- {
110
- "title": "自定义颜色",
111
- "code": "<em-tabbar v-model=\"active5\" active-color=\"#07c160\" inactive-color=\"#000\" @change=\"onChange\">\n <em-tabbar-item icon=\"home-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"search\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"friends-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
112
- }
113
- ],
114
- "vue3": [
115
- {
116
- "title": "基础用法",
117
- "code": "<em-tabbar v-model=\"active\">\n <em-tabbar-item icon=\"home-o\">标签1</em-tabbar-item>\n <em-tabbar-item icon=\"search\">标签1</em-tabbar-item>\n <em-tabbar-item icon=\"friends-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
118
- },
119
- {
120
- "title": "通过名称匹配",
121
- "code": "<em-tabbar v-model=\"active2\" @change=\"onChange\">\n <em-tabbar-item name=\"home\" icon=\"home-o\">标签</em-tabbar-item>\n <em-tabbar-item name=\"search\" icon=\"search\">标签</em-tabbar-item>\n <em-tabbar-item name=\"friends\" icon=\"friends-o\">标签</em-tabbar-item>\n <em-tabbar-item name=\"setting\" icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
122
- },
123
- {
124
- "title": "徽标提示",
125
- "code": "<em-tabbar v-model=\"active3\" @change=\"onChange\">\n <em-tabbar-item icon=\"home-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"search\" dot>标签</em-tabbar-item>\n <em-tabbar-item icon=\"friends-o\" badge=\"5\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\" badge=\"20\">标签</em-tabbar-item>\n</em-tabbar>"
126
- },
127
- {
128
- "title": "自定义图标",
129
- "code": "<em-tabbar v-model=\"active4\" @change=\"onChange\">\n <em-tabbar-item badge=\"3\">\n <template #icon=\"{active}\">\n <image :src=\"active ? icon.active : icon.inactive\" mode=\"aspectFit\" style=\"width: 30px; height: 18px\" />\n </template>\n 自定义\n </em-tabbar-item>\n <em-tabbar-item icon=\"search\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
130
- },
131
- {
132
- "title": "自定义颜色",
133
- "code": "<em-tabbar v-model=\"active5\" active-color=\"#07c160\" inactive-color=\"#000\" @change=\"onChange\">\n <em-tabbar-item icon=\"home-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"search\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"friends-o\">标签</em-tabbar-item>\n <em-tabbar-item icon=\"setting-o\">标签</em-tabbar-item>\n</em-tabbar>"
134
- }
135
- ]
136
- }
137
- }
@@ -1,149 +0,0 @@
1
- {
2
- "id": "table",
3
- "name": "em-table",
4
- "title": "表格",
5
- "description": "表格组件",
6
- "props": [
7
- {
8
- "name": "data",
9
- "type": "array",
10
- "default": "-",
11
- "required": false,
12
- "description": "表格数据源"
13
- },
14
- {
15
- "name": "border",
16
- "type": "boolean",
17
- "default": "false",
18
- "required": false,
19
- "description": "是否带有边框"
20
- },
21
- {
22
- "name": "stripe",
23
- "type": "boolean",
24
- "default": "true",
25
- "required": false,
26
- "description": "是否为斑马纹表"
27
- },
28
- {
29
- "name": "height",
30
- "type": "number / string",
31
- "default": "-",
32
- "required": false,
33
- "description": "Table 的高度,无默认值,设置后自动开启固定表头,默认单位 px"
34
- },
35
- {
36
- "name": "rowHeight",
37
- "type": "number / string",
38
- "default": "50",
39
- "required": false,
40
- "description": "行高,默认单位 px"
41
- },
42
- {
43
- "name": "showHeader",
44
- "type": "boolean",
45
- "default": "true",
46
- "required": false,
47
- "description": "是否显示表头"
48
- },
49
- {
50
- "name": "ellipsis",
51
- "type": "boolean",
52
- "default": "true",
53
- "required": false,
54
- "description": "文字较长时是否超出 2 行隐藏"
55
- },
56
- {
57
- "name": "index",
58
- "type": "boolean /",
59
- "default": "false",
60
- "required": false,
61
- "description": "是否显示索引列,可传入 boolean 也可传入列配置,参数参考 `table-col`组件的 props"
62
- },
63
- {
64
- "name": "fixed-header",
65
- "type": "boolean",
66
- "default": "true",
67
- "required": false,
68
- "description": "是否固定表头,需要结合 height 才可以实现固定表头的效果。"
69
- },
70
- {
71
- "name": "clickable",
72
- "type": "boolean",
73
- "default": "false",
74
- "required": false,
75
- "description": "是否开启点击反馈"
76
- },
77
- {
78
- "name": "align",
79
- "type": "string",
80
- "default": "left",
81
- "required": false,
82
- "description": "表格所有列对齐方式,可选值:`left`、`center`、`right`"
83
- }
84
- ],
85
- "events": [
86
- {
87
- "name": "sort",
88
- "parameters": "点击排序时触发,当表格列 sortable 设置为 true 的时候有效",
89
- "description": "e: { sortDirection: number (0--未排序, -1--箭头向下, 1--箭头向上), ...`TableColumn`(参考 `table-col`组件的 props)}"
90
- },
91
- {
92
- "name": "row-click",
93
- "parameters": "当某一行被点击时会触发该事件",
94
- "description": "e: { rowIndex: number(点击行的下标)}"
95
- }
96
- ],
97
- "slots": [
98
- {
99
- "name": "value",
100
- "description": "自定义列每项的内容"
101
- }
102
- ],
103
- "examples": {
104
- "vue2": [
105
- {
106
- "title": "基础用法",
107
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\">\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
108
- },
109
- {
110
- "title": "有边框",
111
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\" border>\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
112
- },
113
- {
114
- "title": "无斑马纹",
115
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\" border :stripe=\"false\">\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
116
- },
117
- {
118
- "title": "不展示表头",
119
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\" :showHeader=\"false\">\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
120
- },
121
- {
122
- "title": "固定列",
123
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\">\n <em-table-col prop=\"name\" label=\"姓名\" fixed></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" fixed></em-table-col>\n <em-table-col prop=\"school\" label=\"求学之所\"></em-table-col>\n <em-table-col prop=\"major\" label=\"专业\" width=\"150\"></em-table-col>\n <em-table-col prop=\"grade\" label=\"年级\"></em-table-col>\n</em-table>"
124
- }
125
- ],
126
- "vue3": [
127
- {
128
- "title": "基础用法",
129
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\">\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
130
- },
131
- {
132
- "title": "有边框",
133
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\" border>\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
134
- },
135
- {
136
- "title": "无斑马纹",
137
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\" border :stripe=\"false\">\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
138
- },
139
- {
140
- "title": "不展示表头",
141
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\" :showHeader=\"false\">\n <em-table-col prop=\"name\" label=\"姓名\" width=\"50%\"></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" width=\"50%\"></em-table-col>\n</em-table>"
142
- },
143
- {
144
- "title": "固定列",
145
- "code": "<em-table :data=\"origin\" :height=\"400\" align=\"center\">\n <em-table-col prop=\"name\" label=\"姓名\" fixed></em-table-col>\n <em-table-col prop=\"score\" label=\"分数\" fixed></em-table-col>\n <em-table-col prop=\"school\" label=\"求学之所\"></em-table-col>\n <em-table-col prop=\"major\" label=\"专业\" width=\"150\"></em-table-col>\n <em-table-col prop=\"grade\" label=\"年级\"></em-table-col>\n</em-table>"
146
- }
147
- ]
148
- }
149
- }