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,146 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "swipe",
|
|
3
|
-
"name": "em-swipe",
|
|
4
|
-
"title": "轮播",
|
|
5
|
-
"description": "用于循环播放一组图片或内容。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "autoplay",
|
|
9
|
-
"type": "number / string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "自动轮播间隔,单位为 `ms`"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "duration",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "500",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "动画时长,单位为 `ms`"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "initial-swipe",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "0",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "初始位置索引值"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "width",
|
|
30
|
-
"type": "number / string",
|
|
31
|
-
"default": "auto",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "滑块宽度,单位为 `px`"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "height",
|
|
37
|
-
"type": "number / string",
|
|
38
|
-
"default": "auto",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "滑块高度,单位为 `px`"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "loop",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": "true",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "是否开启循环播放"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "show-indicators",
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": "true",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "是否显示指示器"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "vertical",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": "false",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "是否为纵向滚动"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "touchable",
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": "true",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "是否可以通过手势滑动"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "indicator-color",
|
|
72
|
-
"type": "string",
|
|
73
|
-
"default": "#2e6be5",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "指示器颜色"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"events": [
|
|
79
|
-
{
|
|
80
|
-
"name": "change",
|
|
81
|
-
"parameters": "每一页轮播结束后触发",
|
|
82
|
-
"description": "`index` 当前页的索引"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "item-click",
|
|
86
|
-
"parameters": "点击某一页轮播时触发",
|
|
87
|
-
"description": "`index` 当前页的索引"
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"slots": [
|
|
91
|
-
{
|
|
92
|
-
"name": "default",
|
|
93
|
-
"description": "轮播内容"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"name": "indicator",
|
|
97
|
-
"description": "自定义指示器"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"examples": {
|
|
101
|
-
"vue2": [
|
|
102
|
-
{
|
|
103
|
-
"title": "基础用法",
|
|
104
|
-
"code": "<em-swipe class=\"my-swipe\" :autoplay=\"3000\" indicator-color=\"white\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>\n\n<style>\n .my-swipe .em-swipe-item {\n color: #fff;\n font-size: 20px;\n line-height: 150px;\n text-align: center;\n background-color: #39a9ed;\n }\n</style>"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"title": "监听 change 事件",
|
|
108
|
-
"code": "<em-swipe @change=\"onChange\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"title": "纵向滚动",
|
|
112
|
-
"code": "<em-swipe style=\"height: 200px;\" vertical>\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"title": "自定义滑块大小",
|
|
116
|
-
"code": "<em-swipe :loop=\"false\" :width=\"300\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"title": "自定义指示器",
|
|
120
|
-
"code": "<em-swipe @change=\"onChange\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n <template #indicator>\n <div class=\"custom-indicator\">{{ current + 1 }}/4</div>\n </template>\n</em-swipe>\n\n<style>\n .custom-indicator {\n position: absolute;\n right: 5px;\n bottom: 5px;\n padding: 2px 5px;\n font-size: 12px;\n background: rgba(0, 0, 0, 0.1);\n }\n</style>"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"vue3": [
|
|
124
|
-
{
|
|
125
|
-
"title": "基础用法",
|
|
126
|
-
"code": "<em-swipe class=\"my-swipe\" :autoplay=\"3000\" indicator-color=\"white\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>\n\n<style>\n .my-swipe .em-swipe-item {\n color: #fff;\n font-size: 20px;\n line-height: 150px;\n text-align: center;\n background-color: #39a9ed;\n }\n</style>"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"title": "监听 change 事件",
|
|
130
|
-
"code": "<em-swipe @change=\"onChange\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"title": "纵向滚动",
|
|
134
|
-
"code": "<em-swipe style=\"height: 200px;\" vertical>\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"title": "自定义滑块大小",
|
|
138
|
-
"code": "<em-swipe :loop=\"false\" :width=\"300\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n</em-swipe>"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"title": "自定义指示器",
|
|
142
|
-
"code": "<em-swipe @change=\"onChange\">\n <em-swipe-item>1</em-swipe-item>\n <em-swipe-item>2</em-swipe-item>\n <em-swipe-item>3</em-swipe-item>\n <em-swipe-item>4</em-swipe-item>\n <template #indicator>\n <div class=\"custom-indicator\">{{ current + 1 }}/4</div>\n </template>\n</em-swipe>\n\n<style>\n .custom-indicator {\n position: absolute;\n right: 5px;\n bottom: 5px;\n padding: 2px 5px;\n font-size: 12px;\n background: rgba(0, 0, 0, 0.1);\n }\n</style>"
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "swipecell",
|
|
3
|
-
"name": "em-swipecell",
|
|
4
|
-
"title": "滑动单元格",
|
|
5
|
-
"description": "滑动单元格组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "name",
|
|
9
|
-
"type": "number / string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "标识符,可以在事件参数中获取到"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "left-width",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "auto",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "指定左侧滑动区域宽度,单位为`px`"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "right-width",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "auto",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "指定右侧滑动区域宽度,单位为`px`"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "before-close",
|
|
30
|
-
"type": "Function",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "关闭前的回调函数"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "disabled",
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"default": "false",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "是否禁用滑动"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "stop-propagation",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": "false",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "是否阻止滑动事件冒泡"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "threshold",
|
|
51
|
-
"type": "Number",
|
|
52
|
-
"default": "20px",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "滑动缺省距离"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"events": [
|
|
58
|
-
{
|
|
59
|
-
"name": "click",
|
|
60
|
-
"parameters": "点击时触发",
|
|
61
|
-
"description": "关闭时的点击位置 (left right cell)"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "open",
|
|
65
|
-
"parameters": "打开时触发",
|
|
66
|
-
"description": "{ position: 'left' / 'right' , name: string }"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "close",
|
|
70
|
-
"parameters": "关闭时触发",
|
|
71
|
-
"description": "{ position: string , name: string }"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"slots": [
|
|
75
|
-
{
|
|
76
|
-
"name": "default",
|
|
77
|
-
"description": "自定义显示内容"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "left",
|
|
81
|
-
"description": "左侧滑动内容"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "right",
|
|
85
|
-
"description": "右侧滑动内容"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"examples": {
|
|
89
|
-
"vue2": [
|
|
90
|
-
{
|
|
91
|
-
"title": "基础用法",
|
|
92
|
-
"code": "<em-swipe-cell>\n <template #left>\n <em-button type=\"primary\" square>选择</em-button>\n </template>\n <em-cell title=\"单元格\" value=\"内容\" :border=\"false\"></em-cell>\n <template #right>\n <em-button type=\"danger\" square>删除</em-button>\n <em-button type=\"primary\" square>收藏</em-button>\n </template>\n</em-swipe-cell>"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"title": "自定义内容",
|
|
96
|
-
"code": "<em-swipe-cell>\n <em-image width=\"100\" height=\"100\" src=\"https://img.yzcdn.cn/vant/cat.jpeg\" />\n <template #right>\n <em-button type=\"danger\" square>关闭</em-button>\n </template>\n</em-swipe-cell>"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"title": "异步关闭",
|
|
100
|
-
"code": "<em-swipe-cell\n left-width=\"100\"\n right-width=\"200\"\n :before-close=\"beforeClose\"\n ref=\"swipecell\"\n @open=\"onOpen\"\n @close=\"onClose\"\n @click=\"onClick\"\n>\n <template #left>\n <em-button type=\"primary\" square>选择</em-button>\n </template>\n <em-cell title=\"单元格\" value=\"内容\" :border=\"false\"></em-cell>\n <template #right>\n <em-button type=\"danger\" square>异步关闭</em-button>\n </template>\n</em-swipe-cell>\n<em-button type=\"primary\" square @click=\"openLeft\">打开左侧</em-button>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"vue3": [
|
|
104
|
-
{
|
|
105
|
-
"title": "基础用法",
|
|
106
|
-
"code": "<em-swipe-cell>\n <template #left>\n <em-button type=\"primary\" square>选择</em-button>\n </template>\n <em-cell title=\"单元格\" value=\"内容\" :border=\"false\"></em-cell>\n <template #right>\n <em-button type=\"danger\" square>删除</em-button>\n <em-button type=\"primary\" square>收藏</em-button>\n </template>\n</em-swipe-cell>"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"title": "自定义内容",
|
|
110
|
-
"code": "<em-swipe-cell>\n <em-image width=\"100\" height=\"100\" src=\"https://img.yzcdn.cn/vant/cat.jpeg\" />\n <template #right>\n <em-button type=\"danger\" square>关闭</em-button>\n </template>\n</em-swipe-cell>"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"title": "异步关闭",
|
|
114
|
-
"code": "<em-swipe-cell\n left-width=\"100\"\n right-width=\"200\"\n :before-close=\"beforeClose\"\n ref=\"swipecell\"\n @open=\"onOpen\"\n @close=\"onClose\"\n @click=\"onClick\"\n>\n <template #left>\n <em-button type=\"primary\" square>选择</em-button>\n </template>\n <em-cell title=\"单元格\" value=\"内容\" :border=\"false\"></em-cell>\n <template #right>\n <em-button type=\"danger\" square>异步关闭</em-button>\n </template>\n</em-swipe-cell>\n<em-button type=\"primary\" square @click=\"openLeft\">打开左侧</em-button>\n<em-toast ref=\"emToast\"></em-toast>"
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "switch",
|
|
3
|
-
"name": "em-switch",
|
|
4
|
-
"title": "开关",
|
|
5
|
-
"description": "开关组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "any",
|
|
10
|
-
"default": "false",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "开关选中状态"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "loading",
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": "false",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "是否为加载状态"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "disabled",
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"default": "false",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "是否为禁用状态"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "size",
|
|
30
|
-
"type": "number / string",
|
|
31
|
-
"default": "30px",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "开关尺寸,默认单位为`px`"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "active-color",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "#2e6be5",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "打开时的背景色"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "inactive-color",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"default": "#b8becc",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "关闭时的背景色"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "active-value",
|
|
51
|
-
"type": "any",
|
|
52
|
-
"default": "true",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "打开时对应的值"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "inactive-value",
|
|
58
|
-
"type": "any",
|
|
59
|
-
"default": "false",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "关闭时对应的值"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"events": [
|
|
65
|
-
{
|
|
66
|
-
"name": "change",
|
|
67
|
-
"parameters": "开关状态切换时触发",
|
|
68
|
-
"description": "value: any"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "click",
|
|
72
|
-
"parameters": "点击时触发",
|
|
73
|
-
"description": "event: Event"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"slots": [],
|
|
77
|
-
"examples": {
|
|
78
|
-
"vue2": [
|
|
79
|
-
{
|
|
80
|
-
"title": "基础用法",
|
|
81
|
-
"code": "<em-switch v-model=\"checked\" />"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"title": "禁用状态",
|
|
85
|
-
"code": "<em-switch v-model=\"checked\" disabled />"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"title": "加载状态",
|
|
89
|
-
"code": "<em-switch v-model=\"checked\" loading />"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"title": "自定义大小",
|
|
93
|
-
"code": "<em-switch v-model=\"checked\" size=\"24px\" />"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"title": "自定义颜色",
|
|
97
|
-
"code": "<em-switch v-model=\"checked\" active-color=\"#07c160\" inactive-color=\"#ee0a24\" />"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"vue3": [
|
|
101
|
-
{
|
|
102
|
-
"title": "基础用法",
|
|
103
|
-
"code": "<em-switch v-model=\"checked\" />"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"title": "禁用状态",
|
|
107
|
-
"code": "<em-switch v-model=\"checked\" disabled />"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"title": "加载状态",
|
|
111
|
-
"code": "<em-switch v-model=\"checked\" loading />"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"title": "自定义大小",
|
|
115
|
-
"code": "<em-switch v-model=\"checked\" size=\"24px\" />"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"title": "自定义颜色",
|
|
119
|
-
"code": "<em-switch v-model=\"checked\" active-color=\"#07c160\" inactive-color=\"#ee0a24\" />"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "switchcell",
|
|
3
|
-
"name": "em-switchcell",
|
|
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": "title",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "''",
|
|
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": "cell-size",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "-",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "单元格大小,可选值为 `large`"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "loading",
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"default": "false",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "是否为加载状态"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "disabled",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": "false",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "是否为禁用状态"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "size",
|
|
51
|
-
"type": "number / string",
|
|
52
|
-
"default": "24px",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "开关尺寸"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "active-color",
|
|
58
|
-
"type": "string",
|
|
59
|
-
"default": "#1989fa",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "开关时的背景色"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "inactive-color",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"default": "white",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "开关时的背景色"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "active-value",
|
|
72
|
-
"type": "any",
|
|
73
|
-
"default": "true",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "打开时的值"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "inactive-value",
|
|
79
|
-
"type": "any",
|
|
80
|
-
"default": "false",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "关闭时的值"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"events": [
|
|
86
|
-
{
|
|
87
|
-
"name": "change",
|
|
88
|
-
"parameters": "开关状态切换回调",
|
|
89
|
-
"description": "checked: 是否选中开关"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"slots": [],
|
|
93
|
-
"examples": {
|
|
94
|
-
"vue2": [
|
|
95
|
-
{
|
|
96
|
-
"title": "基础用法",
|
|
97
|
-
"code": "<em-cell-group>\n <em-switch-cell title=\"标题\" v-model=\"checked\"></em-switch-cell>\n</em-cell-group>"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"title": "禁用状态",
|
|
101
|
-
"code": "<em-cell-group>\n <em-switch-cell title=\"标题\" :disabled=\"true\" v-model=\"checked\"></em-switch-cell>\n</em-cell-group>"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"title": "加载状态",
|
|
105
|
-
"code": "<em-cell-group>\n <em-switch-cell title=\"标题\" :loading=\"true\" v-model=\"checked\"></em-switch-cell>\n</em-cell-group>"
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
"vue3": [
|
|
109
|
-
{
|
|
110
|
-
"title": "基础用法",
|
|
111
|
-
"code": "<em-cell-group>\n <em-switch-cell title=\"标题\" v-model=\"checked\"></em-switch-cell>\n</em-cell-group>"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"title": "禁用状态",
|
|
115
|
-
"code": "<em-cell-group>\n <em-switch-cell title=\"标题\" :disabled=\"true\" v-model=\"checked\"></em-switch-cell>\n</em-cell-group>"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"title": "加载状态",
|
|
119
|
-
"code": "<em-cell-group>\n <em-switch-cell title=\"标题\" :loading=\"true\" v-model=\"checked\"></em-switch-cell>\n</em-cell-group>"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
}
|