m8-mcp-server 1.0.5 → 1.0.7
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 +2 -2
- package/dist/cli.js +1 -13
- package/dist/docs/apis.d.ts +2 -2
- package/dist/docs/apis.js +9 -326
- package/dist/docs/components.d.ts +2 -2
- package/dist/docs/components.js +2 -186
- package/dist/docs/index.d.ts +2 -2
- package/dist/docs/index.js +18 -177
- package/dist/docs/loader.d.ts +2 -2
- package/dist/docs/loader.js +1 -165
- package/dist/docs/search.d.ts +2 -2
- package/dist/docs/search.js +2 -196
- package/dist/docs/standards.d.ts +2 -2
- package/dist/docs/standards.js +3 -134
- package/dist/docs/utils.d.ts +2 -2
- package/dist/docs/utils.js +3 -129
- package/dist/generator/header.d.ts +2 -2
- package/dist/generator/header.js +3 -83
- package/dist/generator/index.d.ts +2 -2
- package/dist/generator/index.js +283 -648
- package/dist/generator/vue-template.d.ts +2 -2
- package/dist/generator/vue-template.js +336 -1016
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -73
- package/dist/recommend/index.d.ts +2 -2
- package/dist/recommend/index.js +2 -412
- package/dist/tools/generate-code.d.ts +2 -2
- package/dist/tools/generate-code.js +39 -211
- package/dist/tools/get-api-info.d.ts +2 -2
- package/dist/tools/get-api-info.js +1 -65
- package/dist/tools/get-coding-standard.d.ts +2 -2
- package/dist/tools/get-coding-standard.js +1 -66
- package/dist/tools/get-component-info.d.ts +2 -2
- package/dist/tools/get-component-info.js +1 -60
- package/dist/tools/get-util-info.d.ts +2 -2
- package/dist/tools/get-util-info.js +1 -65
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +3 -101
- package/dist/tools/recommend-solution.d.ts +2 -2
- package/dist/tools/recommend-solution.js +1 -67
- package/dist/tools/search-docs.d.ts +2 -2
- package/dist/tools/search-docs.js +1 -71
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +0 -8
- package/package.json +6 -5
- package/dist/cli.js.map +0 -1
- package/dist/docs/apis.js.map +0 -1
- package/dist/docs/components.js.map +0 -1
- package/dist/docs/index.js.map +0 -1
- package/dist/docs/loader.js.map +0 -1
- package/dist/docs/search.js.map +0 -1
- package/dist/docs/standards.js.map +0 -1
- package/dist/docs/utils.js.map +0 -1
- package/dist/generator/header.js.map +0 -1
- package/dist/generator/index.js.map +0 -1
- package/dist/generator/vue-template.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/recommend/index.js.map +0 -1
- package/dist/tools/generate-code.js.map +0 -1
- package/dist/tools/get-api-info.js.map +0 -1
- package/dist/tools/get-coding-standard.js.map +0 -1
- package/dist/tools/get-component-info.js.map +0 -1
- package/dist/tools/get-util-info.js.map +0 -1
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/recommend-solution.js.map +0 -1
- package/dist/tools/search-docs.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- 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,159 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "slider",
|
|
3
|
-
"name": "em-slider",
|
|
4
|
-
"title": "滑块",
|
|
5
|
-
"description": "滑块组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "number",
|
|
10
|
-
"default": "0",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "当前进度百分比"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "max",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "100",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "最大值"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "min",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "0",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "最小值"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "step",
|
|
30
|
-
"type": "number / string",
|
|
31
|
-
"default": "1",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "步长"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "bar-height",
|
|
37
|
-
"type": "number / string",
|
|
38
|
-
"default": "2px",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "进度条高度,默认单位为`px`"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "button-size",
|
|
44
|
-
"type": "number / string",
|
|
45
|
-
"default": "24px",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "滑块按钮大小,默认单位为`px`"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "active-color",
|
|
51
|
-
"type": "string",
|
|
52
|
-
"default": "#2e6be5",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "进度条激活态颜色"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "inactive-color",
|
|
58
|
-
"type": "string",
|
|
59
|
-
"default": "#dde0e4",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "进度条非激活态颜色"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "range",
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": "false",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "是否开启双滑块模式"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "disabled",
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"default": "false",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "是否禁用滑块"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "vertical",
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"default": "false",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "是否垂直展示"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"events": [
|
|
86
|
-
{
|
|
87
|
-
"name": "input",
|
|
88
|
-
"parameters": "进度变化时实时触发",
|
|
89
|
-
"description": "value: 当前进度"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "change",
|
|
93
|
-
"parameters": "进度变化且结束拖动后触发",
|
|
94
|
-
"description": "value: 当前进度"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "drag-start",
|
|
98
|
-
"parameters": "开始拖动时触发",
|
|
99
|
-
"description": "-"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"name": "drag-end",
|
|
103
|
-
"parameters": "结束拖动时触发",
|
|
104
|
-
"description": "-"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"slots": [
|
|
108
|
-
{
|
|
109
|
-
"name": "button",
|
|
110
|
-
"description": "自定义滑动按钮"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"examples": {
|
|
114
|
-
"vue2": [
|
|
115
|
-
{
|
|
116
|
-
"title": "基础用法",
|
|
117
|
-
"code": "<em-slider v-model=\"value\" @change=\"onChange\" />"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"title": "指定选择范围",
|
|
121
|
-
"code": "<em-slider v-model=\"value\" :min=\"-50\" :max=\"50\" />"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"title": "禁用",
|
|
125
|
-
"code": "<em-slider v-model=\"value\" disabled />"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"title": "指定步长",
|
|
129
|
-
"code": "<em-slider v-model=\"value\" :step=\"10\" />"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"title": "自定义样式",
|
|
133
|
-
"code": "<em-slider v-model=\"value\" bar-height=\"4px\" active-color=\"#ee0a24\" />"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"vue3": [
|
|
137
|
-
{
|
|
138
|
-
"title": "基础用法",
|
|
139
|
-
"code": "<em-slider v-model=\"value\" @change=\"onChange\" />"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"title": "指定选择范围",
|
|
143
|
-
"code": "<em-slider v-model=\"value\" :min=\"-50\" :max=\"50\" />"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"title": "禁用",
|
|
147
|
-
"code": "<em-slider v-model=\"value\" disabled />"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"title": "指定步长",
|
|
151
|
-
"code": "<em-slider v-model=\"value\" :step=\"10\" />"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"title": "自定义样式",
|
|
155
|
-
"code": "<em-slider v-model=\"value\" bar-height=\"4px\" active-color=\"#ee0a24\" />"
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "stepper",
|
|
3
|
-
"name": "em-stepper",
|
|
4
|
-
"title": "步进器",
|
|
5
|
-
"description": "步进器由增加按钮、减少按钮和输入框组成,用于在一定范围内输入、调整数字。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "v-model",
|
|
9
|
-
"type": "number / string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "当前输入的值"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "min",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "1",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "最小值"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "max",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "-",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "最大值"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "default-value",
|
|
30
|
-
"type": "number / string",
|
|
31
|
-
"default": "1",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "初始值"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "step",
|
|
37
|
-
"type": "number / string",
|
|
38
|
-
"default": "1",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "步长,每次点击时改变的值"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "name",
|
|
44
|
-
"type": "number / string",
|
|
45
|
-
"default": "-",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "标识符,可以在`change`事件回调参数中获取"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "input-width",
|
|
51
|
-
"type": "number / string",
|
|
52
|
-
"default": "32px",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "输入框宽度,默认单位为`px`"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "button-size",
|
|
58
|
-
"type": "number / string",
|
|
59
|
-
"default": "28px",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "按钮大小以及输入框高度,默认单位为`px`"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "decimal-length",
|
|
65
|
-
"type": "number / string",
|
|
66
|
-
"default": "-",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "固定显示的小数位数"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "theme",
|
|
72
|
-
"type": "string",
|
|
73
|
-
"default": "-",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "样式风格,可选值为 `round`"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "placeholder",
|
|
79
|
-
"type": "string",
|
|
80
|
-
"default": "-",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "输入框占位提示文字"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "integer",
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"default": "false",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "是否只允许输入整数"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "disabled",
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"default": "false",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "是否禁用步进器"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "disable-plus",
|
|
100
|
-
"type": "boolean",
|
|
101
|
-
"default": "false",
|
|
102
|
-
"required": false,
|
|
103
|
-
"description": "是否禁用增加按钮"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "disable-minus",
|
|
107
|
-
"type": "boolean",
|
|
108
|
-
"default": "false",
|
|
109
|
-
"required": false,
|
|
110
|
-
"description": "是否禁用减少按钮"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "disable-input",
|
|
114
|
-
"type": "boolean",
|
|
115
|
-
"default": "false",
|
|
116
|
-
"required": false,
|
|
117
|
-
"description": "是否禁用输入框"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "async-change",
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"default": "false",
|
|
123
|
-
"required": false,
|
|
124
|
-
"description": "是否开启异步变更,开启后需要手动控制输入值"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "show-plus",
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"default": "true",
|
|
130
|
-
"required": false,
|
|
131
|
-
"description": "是否显示增加按钮"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "show-minus",
|
|
135
|
-
"type": "boolean",
|
|
136
|
-
"default": "true",
|
|
137
|
-
"required": false,
|
|
138
|
-
"description": "是否显示减少按钮"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "show-input",
|
|
142
|
-
"type": "boolean",
|
|
143
|
-
"default": "true",
|
|
144
|
-
"required": false,
|
|
145
|
-
"description": "是否显示输入框"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "long-press",
|
|
149
|
-
"type": "boolean",
|
|
150
|
-
"default": "true",
|
|
151
|
-
"required": false,
|
|
152
|
-
"description": "是否开启长按手势"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "allow-empty",
|
|
156
|
-
"type": "boolean",
|
|
157
|
-
"default": "false",
|
|
158
|
-
"required": false,
|
|
159
|
-
"description": "是否允许输入的值为空"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"events": [
|
|
163
|
-
{
|
|
164
|
-
"name": "change",
|
|
165
|
-
"parameters": "当绑定值变化时触发的事件",
|
|
166
|
-
"description": "value: string, detail: { name: string }"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "overlimit",
|
|
170
|
-
"parameters": "点击不可用的按钮时触发",
|
|
171
|
-
"description": "-"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "plus",
|
|
175
|
-
"parameters": "点击增加按钮时触发",
|
|
176
|
-
"description": "-"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "minus",
|
|
180
|
-
"parameters": "点击减少按钮时触发",
|
|
181
|
-
"description": "-"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"name": "focus",
|
|
185
|
-
"parameters": "输入框聚焦时触发",
|
|
186
|
-
"description": "event: Event"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "blur",
|
|
190
|
-
"parameters": "输入框失焦时触发",
|
|
191
|
-
"description": "event: Event"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"slots": [],
|
|
195
|
-
"examples": {
|
|
196
|
-
"vue2": [
|
|
197
|
-
{
|
|
198
|
-
"title": "基础用法",
|
|
199
|
-
"code": "<em-stepper :value=\"value\" />"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"title": "步长设置",
|
|
203
|
-
"code": "<em-stepper :value=\"value\" step=\"2\" />"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"title": "限制输入范围",
|
|
207
|
-
"code": "<em-stepper :value=\"value\" min=\"5\" max=\"8\" />"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"title": "限制输入整数",
|
|
211
|
-
"code": "<em-stepper :value=\"value\" integer />"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"title": "禁用状态",
|
|
215
|
-
"code": "<em-stepper :value=\"value\" disabled />"
|
|
216
|
-
}
|
|
217
|
-
],
|
|
218
|
-
"vue3": [
|
|
219
|
-
{
|
|
220
|
-
"title": "基础用法",
|
|
221
|
-
"code": "<em-stepper :value=\"value\" />"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"title": "步长设置",
|
|
225
|
-
"code": "<em-stepper :value=\"value\" step=\"2\" />"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"title": "限制输入范围",
|
|
229
|
-
"code": "<em-stepper :value=\"value\" min=\"5\" max=\"8\" />"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"title": "限制输入整数",
|
|
233
|
-
"code": "<em-stepper :value=\"value\" integer />"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"title": "禁用状态",
|
|
237
|
-
"code": "<em-stepper :value=\"value\" disabled />"
|
|
238
|
-
}
|
|
239
|
-
]
|
|
240
|
-
}
|
|
241
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "steps",
|
|
3
|
-
"name": "em-steps",
|
|
4
|
-
"title": "步骤条",
|
|
5
|
-
"description": "步骤条。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "active",
|
|
9
|
-
"type": "number / string",
|
|
10
|
-
"default": "0",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "当前步骤"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "direction",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "horizontal",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "显示方向,可选值为 `vertical`"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "active-color",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "#36B389",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "激活状态颜色"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "inactive-color",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "#999",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "未激活状态颜色"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "active-icon",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "checked",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "激活状态底部图标,可选值见 `Icon` 组件"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "inactive-icon",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"default": "-",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "未激活状态底部图标,可选值见 `Icon` 组件"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "finish-icon",
|
|
51
|
-
"type": "string",
|
|
52
|
-
"default": "-",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "已完成步骤对应的底部图标,优先级高于 `inactive-icon`,可选值见 `em-icon` 组件"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"events": [
|
|
58
|
-
{
|
|
59
|
-
"name": "click-step",
|
|
60
|
-
"parameters": "点击步骤的标题或图标时触发",
|
|
61
|
-
"description": "index: number"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"slots": [
|
|
65
|
-
{
|
|
66
|
-
"name": "activeIcon",
|
|
67
|
-
"description": "自定义激活状态图标"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "inactiveIcon",
|
|
71
|
-
"description": "自定义未激活状态图标"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "finishIcon",
|
|
75
|
-
"description": "自定义已完成步骤对应的底部图标,优先级高于 `inactiveIcon`"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"examples": {
|
|
79
|
-
"vue2": [
|
|
80
|
-
{
|
|
81
|
-
"title": "基础用法",
|
|
82
|
-
"code": "<em-steps :active=\"active\">\n <em-step>买家下单</em-step>\n <em-step>商家接单</em-step>\n <em-step>买家提货</em-step>\n <em-step>交易完成</em-step>\n</em-steps>"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"title": "自定义样式",
|
|
86
|
-
"code": "<em-steps :active=\"active\" active-icon=\"success\" active-color=\"#38f\" inactive-color=\"#f00\">\n <em-step>买家下单</em-step>\n <em-step>商家接单</em-step>\n <em-step>买家提货</em-step>\n <em-step>交易完成</em-step>\n</em-steps>"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"title": "竖向步骤条",
|
|
90
|
-
"code": "<em-steps direction=\"vertical\" :active=\"active\">\n <em-step>\n <h5>【城市】物流状态1</h5>\n <p>2016-07-12 12:40</p>\n </em-step>\n <em-step>\n <h5>【城市】物流状态2</h5>\n <p>2016-07-11 10:00</p>\n </em-step>\n <em-step>\n <h5>【城市】物流状态3</h5>\n <p>2016-07-11 10:00</p>\n </em-step>\n <em-step>\n <h5>快件已发货</h5>\n <p>2016-07-10 09:30</p>\n </em-step>\n</em-steps>"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"vue3": [
|
|
94
|
-
{
|
|
95
|
-
"title": "基础用法",
|
|
96
|
-
"code": "<em-steps :active=\"active\">\n <em-step>买家下单</em-step>\n <em-step>商家接单</em-step>\n <em-step>买家提货</em-step>\n <em-step>交易完成</em-step>\n</em-steps>"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"title": "自定义样式",
|
|
100
|
-
"code": "<em-steps :active=\"active\" active-icon=\"success\" active-color=\"#38f\" inactive-color=\"#f00\">\n <em-step>买家下单</em-step>\n <em-step>商家接单</em-step>\n <em-step>买家提货</em-step>\n <em-step>交易完成</em-step>\n</em-steps>"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"title": "竖向步骤条",
|
|
104
|
-
"code": "<em-steps direction=\"vertical\" :active=\"active\">\n <em-step>\n <h5>【城市】物流状态1</h5>\n <p>2016-07-12 12:40</p>\n </em-step>\n <em-step>\n <h5>【城市】物流状态2</h5>\n <p>2016-07-11 10:00</p>\n </em-step>\n <em-step>\n <h5>【城市】物流状态3</h5>\n <p>2016-07-11 10:00</p>\n </em-step>\n <em-step>\n <h5>快件已发货</h5>\n <p>2016-07-10 09:30</p>\n </em-step>\n</em-steps>"
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "sticky",
|
|
3
|
-
"name": "em-sticky",
|
|
4
|
-
"title": "粘性布局",
|
|
5
|
-
"description": "`Sticky` 组件与 `CSS` 中`position: sticky`属性实现的效果一致,当组件在屏幕范围内时,会按照正常的布局排列,当组件滚出屏幕范围时,始终会固定在屏幕顶部。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "offset-top",
|
|
9
|
-
"type": "number / string",
|
|
10
|
-
"default": "0",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "吸顶时与顶部的距离,支持 `px` `vw` `rem` `vh` 单位,默认 `px`"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "z-index",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "99",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "吸顶时的 `z-index`"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "container",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "-",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "指定容器"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"events": [
|
|
30
|
-
{
|
|
31
|
-
"name": "change",
|
|
32
|
-
"parameters": "当吸顶状态改变时触发",
|
|
33
|
-
"description": "isFixed: boolean"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "scroll",
|
|
37
|
-
"parameters": "滚动时触发",
|
|
38
|
-
"description": "{ scrollTop: 距离顶部位置, isFixed: 是否吸顶 }"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"slots": [],
|
|
42
|
-
"examples": {
|
|
43
|
-
"vue2": [
|
|
44
|
-
{
|
|
45
|
-
"title": "基础用法",
|
|
46
|
-
"code": "<em-sticky>\n <em-button type=\"primary\">基础用法</em-button>\n</em-sticky>"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"title": "吸顶距离",
|
|
50
|
-
"code": "<em-sticky :offset-top=\"50\">\n <em-button type=\"info\">吸顶距离</em-button>\n</em-sticky>"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"title": "指定容器",
|
|
54
|
-
"code": "<div :id=\"id\" style=\"height: 150px; background-color: #fff\">\n <em-sticky ref=\"emSticky\" :container=\"container\">\n <em-button type=\"warning\" custom-style=\"margin-left: 215px;\">指定容器</em-button>\n </em-sticky>\n</div>"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"vue3": [
|
|
58
|
-
{
|
|
59
|
-
"title": "基础用法",
|
|
60
|
-
"code": "<em-sticky>\n <em-button type=\"primary\">基础用法</em-button>\n</em-sticky>"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"title": "吸顶距离",
|
|
64
|
-
"code": "<em-sticky :offset-top=\"50\">\n <em-button type=\"info\">吸顶距离</em-button>\n</em-sticky>"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"title": "指定容器",
|
|
68
|
-
"code": "<div :id=\"id\" style=\"height: 150px; background-color: #fff\">\n <em-sticky ref=\"emSticky\" :container=\"container\">\n <em-button type=\"warning\" custom-style=\"margin-left: 215px;\">指定容器</em-button>\n </em-sticky>\n</div>"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
}
|