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,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "lazyload",
|
|
3
|
-
"name": "em-lazyload",
|
|
4
|
-
"title": "懒加载",
|
|
5
|
-
"description": "懒加载组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "preload",
|
|
9
|
-
"type": "string/number",
|
|
10
|
-
"default": "1.1",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "预加载高度的比例"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "background-image",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "-",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "需要懒加载的背景图片,此时只对背景图片懒加载"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"events": [],
|
|
23
|
-
"slots": [],
|
|
24
|
-
"examples": {
|
|
25
|
-
"vue2": [
|
|
26
|
-
{
|
|
27
|
-
"title": "基础用法",
|
|
28
|
-
"code": "<em-lazy-component>\n <img v-for=\"img in imageList\" :src=\"img\" :key=\"img\" />\n</em-lazy-component>"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"title": "背景图懒加载",
|
|
32
|
-
"code": "<em-lazy-component\n v-for=\"img in imageList\"\n :background-image=\"img\"\n :key=\"img\"\n custom-style=\"height: 250px; width: 100%; margin-bottom: 20px; background-size: 100%;\"\n>\n 内容\n</em-lazy-component>"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"vue3": [
|
|
36
|
-
{
|
|
37
|
-
"title": "基础用法",
|
|
38
|
-
"code": "<em-lazy-component>\n <img v-for=\"img in imageList\" :src=\"img\" :key=\"img\" />\n</em-lazy-component>"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"title": "背景图懒加载",
|
|
42
|
-
"code": "<em-lazy-component\n v-for=\"img in imageList\"\n :background-image=\"img\"\n :key=\"img\"\n custom-style=\"height: 250px; width: 100%; margin-bottom: 20px; background-size: 100%;\"\n>\n 内容\n</em-lazy-component>"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "loading",
|
|
3
|
-
"name": "em-loading",
|
|
4
|
-
"title": "加载",
|
|
5
|
-
"description": "加载提示组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "color",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "#999",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "颜色"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "type",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "circular",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "类型,可选值为 `spinner` `ball` `operation` `square`"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "size",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "30px",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "加载图标大小,默认单位为`px`"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "text-size",
|
|
30
|
-
"type": "number / string",
|
|
31
|
-
"default": "14px",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "文字大小,默认单位为`px`"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "text-color",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "#999",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "文字颜色"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "vertical",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": "false",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "是否垂直排列图标和文字内容"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"events": [],
|
|
51
|
-
"slots": [
|
|
52
|
-
{
|
|
53
|
-
"name": "default",
|
|
54
|
-
"description": "加载文案"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"examples": {
|
|
58
|
-
"vue2": [
|
|
59
|
-
{
|
|
60
|
-
"title": "加载类型",
|
|
61
|
-
"code": "<em-loading />\n<em-loading type=\"spinner\" />\n<em-loading type=\"ball\" />\n<em-loading type=\"square\" />\n<em-loading type=\"operation\" />"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"title": "自定义颜色",
|
|
65
|
-
"code": "<em-loading color=\"#1989fa\" />\n<em-loading type=\"spinner\" color=\"#1989fa\" />\n<em-loading type=\"ball\" color=\"#1989fa\" />\n<em-loading type=\"square\" color=\"#2E3033\" />\n<em-loading type=\"operation\" color=\"#1989fa\" />"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "自定义大小",
|
|
69
|
-
"code": "<em-loading size=\"24\" />\n<em-loading type=\"spinner\" size=\"24px\" />\n<em-loading type=\"ball\" size=\"24px\" />\n<em-loading type=\"square\" size=\"24px\" />\n<em-loading type=\"operation\" size=\"24px\" />"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"title": "加载文案",
|
|
73
|
-
"code": "<em-loading size=\"24px\">加载中...</em-loading>"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"title": "垂直排列",
|
|
77
|
-
"code": "<em-loading size=\"24px\" vertical>加载中...</em-loading>"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"vue3": [
|
|
81
|
-
{
|
|
82
|
-
"title": "加载类型",
|
|
83
|
-
"code": "<em-loading />\n<em-loading type=\"spinner\" />\n<em-loading type=\"ball\" />\n<em-loading type=\"square\" />\n<em-loading type=\"operation\" />"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"title": "自定义颜色",
|
|
87
|
-
"code": "<em-loading color=\"#1989fa\" />\n<em-loading type=\"spinner\" color=\"#1989fa\" />\n<em-loading type=\"ball\" color=\"#1989fa\" />\n<em-loading type=\"square\" color=\"#2E3033\" />\n<em-loading type=\"operation\" color=\"#1989fa\" />"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"title": "自定义大小",
|
|
91
|
-
"code": "<em-loading size=\"24\" />\n<em-loading type=\"spinner\" size=\"24px\" />\n<em-loading type=\"ball\" size=\"24px\" />\n<em-loading type=\"square\" size=\"24px\" />\n<em-loading type=\"operation\" size=\"24px\" />"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"title": "加载文案",
|
|
95
|
-
"code": "<em-loading size=\"24px\">加载中...</em-loading>"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"title": "垂直排列",
|
|
99
|
-
"code": "<em-loading size=\"24px\" vertical>加载中...</em-loading>"
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "minirefresh",
|
|
3
|
-
"name": "em-minirefresh",
|
|
4
|
-
"title": "下拉刷新",
|
|
5
|
-
"description": "M8 下拉刷新组件",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "url",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "请求的 url"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "type",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "POST",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "请求类型"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "initPageIndex",
|
|
23
|
-
"type": "number",
|
|
24
|
-
"default": "0",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "接口请求的初始页面,根据不同项目服务器配置而不同"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "page-size",
|
|
30
|
-
"type": "number",
|
|
31
|
-
"default": "10",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "每次请求的分页大小"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "<span style=\"color: red;\">request-data</span>",
|
|
37
|
-
"type": "object",
|
|
38
|
-
"default": "-",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "请求的数据,为函数时请将数据返回出去(为了兼容小程序端,命名方式与原本不同)"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "<span style=\"color: red;\">change-data</span>",
|
|
44
|
-
"type": "object",
|
|
45
|
-
"default": "-",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "请求返回参数,请将列表数组数据返回出去(为了兼容小程序端,命名方式与原本不同)"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "timeout",
|
|
51
|
-
"type": "number",
|
|
52
|
-
"default": "6000",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "每次请求的最大超时时间"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "delay",
|
|
58
|
-
"type": "number",
|
|
59
|
-
"default": "0",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "延迟请求的时间,单位为毫秒"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "contentType",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"default": "application/x-www-form-urlencoded",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "下拉刷新请求的 contentType"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "headers",
|
|
72
|
-
"type": "object",
|
|
73
|
-
"default": "-",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "自定义请求头内容"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "isAutoProxy",
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"default": "true",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "是否使用 token 自动代理"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "downPullingText",
|
|
86
|
-
"type": "string",
|
|
87
|
-
"default": "下拉即可刷新...",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "下拉过程提示文案"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "downLoosingText",
|
|
93
|
-
"type": "string",
|
|
94
|
-
"default": "释放即可刷新...",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "下拉释放过程提示文案"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "downLoadingText",
|
|
100
|
-
"type": "string",
|
|
101
|
-
"default": "加载中...",
|
|
102
|
-
"required": false,
|
|
103
|
-
"description": "加载过程提示文案"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "downSuccessText",
|
|
107
|
-
"type": "string",
|
|
108
|
-
"default": "刷新成功",
|
|
109
|
-
"required": false,
|
|
110
|
-
"description": "刷新成功提示文案"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "downErrorText",
|
|
114
|
-
"type": "string",
|
|
115
|
-
"default": "刷新失败",
|
|
116
|
-
"required": false,
|
|
117
|
-
"description": "刷新失败提示文案"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "downSuccessDuration",
|
|
121
|
-
"type": "string/number",
|
|
122
|
-
"default": "500",
|
|
123
|
-
"required": false,
|
|
124
|
-
"description": "刷新成功提示展示时长(ms)"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "downAnimationDuration",
|
|
128
|
-
"type": "string/number",
|
|
129
|
-
"default": "300",
|
|
130
|
-
"required": false,
|
|
131
|
-
"description": "动画时长(ms)"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "downHeadHeight",
|
|
135
|
-
"type": "string/number",
|
|
136
|
-
"default": "50",
|
|
137
|
-
"required": false,
|
|
138
|
-
"description": "顶部内容高度"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "downDisabled",
|
|
142
|
-
"type": "boolean",
|
|
143
|
-
"default": "false",
|
|
144
|
-
"required": false,
|
|
145
|
-
"description": "是否禁用下拉刷新"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "downImmediatePull",
|
|
149
|
-
"type": "boolean",
|
|
150
|
-
"default": "true",
|
|
151
|
-
"required": false,
|
|
152
|
-
"description": "是否在初始化时立即执行下拉刷新"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "upOffset",
|
|
156
|
-
"type": "string/number",
|
|
157
|
-
"default": "300",
|
|
158
|
-
"required": false,
|
|
159
|
-
"description": "滚动条与底部距离小于 offset 时触发 load 事件"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "upLoadingText",
|
|
163
|
-
"type": "string",
|
|
164
|
-
"default": "加载中...",
|
|
165
|
-
"required": false,
|
|
166
|
-
"description": "上拉加载过程中的提示文案"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "upFnishedText",
|
|
170
|
-
"type": "string",
|
|
171
|
-
"default": "没有更多了",
|
|
172
|
-
"required": false,
|
|
173
|
-
"description": "上拉加载完成后的提示文案"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"name": "upErrorText",
|
|
177
|
-
"type": "string",
|
|
178
|
-
"default": "-",
|
|
179
|
-
"required": false,
|
|
180
|
-
"description": "加载失败的提示文案"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"name": "upImmediateCheck",
|
|
184
|
-
"type": "boolean",
|
|
185
|
-
"default": "false",
|
|
186
|
-
"required": false,
|
|
187
|
-
"description": "是否在初始化时立即执行滚动位置检查"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "upDirection",
|
|
191
|
-
"type": "boolean",
|
|
192
|
-
"default": "down",
|
|
193
|
-
"required": false,
|
|
194
|
-
"description": "滚动触发加载的方向,可选值为 up"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "ulMinHeight",
|
|
198
|
-
"type": "string",
|
|
199
|
-
"default": "-",
|
|
200
|
-
"required": false,
|
|
201
|
-
"description": "下拉刷新容器最小高度"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"name": "keeppos",
|
|
205
|
-
"type": "boolean",
|
|
206
|
-
"default": "false",
|
|
207
|
-
"required": false,
|
|
208
|
-
"description": "是否需要保持刷新前的滚动位置,需要刷新组件最外层设置固定高度并且内容可滚动"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"name": "description",
|
|
212
|
-
"type": "string",
|
|
213
|
-
"default": "暂无数据",
|
|
214
|
-
"required": false,
|
|
215
|
-
"description": "列表为空时, 默认缺省图文字描述"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "image",
|
|
219
|
-
"type": "string",
|
|
220
|
-
"default": "default",
|
|
221
|
-
"required": false,
|
|
222
|
-
"description": "列表为空时, 默认缺省图图标, 可选值为 `error` `network` `search`,支持传入图片 `URL`"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"name": "top",
|
|
226
|
-
"type": "string/number",
|
|
227
|
-
"default": "0",
|
|
228
|
-
"required": false,
|
|
229
|
-
"description": "顶部偏移量"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"name": "bottom",
|
|
233
|
-
"type": "string/number",
|
|
234
|
-
"default": "0",
|
|
235
|
-
"required": false,
|
|
236
|
-
"description": "底部偏移量"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "otherOptions",
|
|
240
|
-
"type": "object",
|
|
241
|
-
"default": "-",
|
|
242
|
-
"required": false,
|
|
243
|
-
"description": "ajax 其他自定义配置项"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"name": "useCustomRequest",
|
|
247
|
-
"type": "boolean",
|
|
248
|
-
"default": "false",
|
|
249
|
-
"required": false,
|
|
250
|
-
"description": "是否自定义请求数据方法"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"name": "noMoreSize",
|
|
254
|
-
"type": "number/string",
|
|
255
|
-
"default": "5",
|
|
256
|
-
"required": false,
|
|
257
|
-
"description": "如果列表已加载不出更多数据,底部是否展示无更多数据提示取决于,列表的总数量是否大于等于`noMoreSize`条"
|
|
258
|
-
}
|
|
259
|
-
],
|
|
260
|
-
"events": [
|
|
261
|
-
{
|
|
262
|
-
"name": "request-beta.0",
|
|
263
|
-
"parameters": "刷新时触发,仅在`useCustomRequest`为`true`时生效",
|
|
264
|
-
"description": "options: 请求相关的参数,successcb: 成功回调, errorcb: 失败回调"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"name": "update:listData",
|
|
268
|
-
"parameters": "用于同步 listData 事件",
|
|
269
|
-
"description": "listData: 数据列表"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"name": "update:distance",
|
|
273
|
-
"parameters": "用于同步 distance 事件",
|
|
274
|
-
"description": "distance: 距离"
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"slots": [
|
|
278
|
-
{
|
|
279
|
-
"name": "default",
|
|
280
|
-
"description": "自定义列表模板内容"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"name": "down-Normal",
|
|
284
|
-
"description": "非下拉状态时顶部内容"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"name": "downPulling",
|
|
288
|
-
"description": "下拉过程中顶部内容"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"name": "downLoosing",
|
|
292
|
-
"description": "下拉释放过程中顶部内容"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "downLoading",
|
|
296
|
-
"description": "下拉加载过程中顶部内容"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "downSuccess",
|
|
300
|
-
"description": "下拉刷新成功顶部提示内容"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"name": "upHeader",
|
|
304
|
-
"description": "自定义底部加载中内容"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "upFinished",
|
|
308
|
-
"description": "自定义加载完成后的提示"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "upError",
|
|
312
|
-
"description": "自定义加载失败后的提示"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "empty",
|
|
316
|
-
"description": "空列表内容提示"
|
|
317
|
-
}
|
|
318
|
-
],
|
|
319
|
-
"examples": {
|
|
320
|
-
"vue2": [
|
|
321
|
-
{
|
|
322
|
-
"title": "基础演示",
|
|
323
|
-
"code": "<em-minirefresh ref=\"scrollPull\" :page-size=\"pageSize\" :url=\"url\" :request-data=\"dataRequest\" :change-data=\"dataChange\">\n <!-- 定义列表模板内容 -->\n <template v-slot:default=\"{ listData }\">\n <!--listData为经过dataChange处理的返回参数 -->\n <em-cell v-for=\"(item, index) in listData\" :key=\"index\" :title=\"item.title\" @click=\"itemClick(item)\" />\n </template>\n</em-minirefresh>"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
"title": "自定义请求数据源",
|
|
327
|
-
"code": "<em-minirefresh :page-size=\"pageSize\" useCustomRequest @request=\"request\">\n <template v-slot:default=\"{ listData }\">\n <em-cell v-for=\"(item, index) in listData\" :key=\"index\" :title=\"item.title\" @click=\"itemClick(item)\" />\n </template>\n</em-minirefresh>"
|
|
328
|
-
}
|
|
329
|
-
],
|
|
330
|
-
"vue3": [
|
|
331
|
-
{
|
|
332
|
-
"title": "基础演示",
|
|
333
|
-
"code": "<em-minirefresh ref=\"scrollPull\" :page-size=\"pageSize\" :url=\"url\" :request-data=\"dataRequest\" :change-data=\"dataChange\">\n <!-- 定义列表模板内容 -->\n <template v-slot:default=\"{ listData }\">\n <!--listData为经过dataChange处理的返回参数 -->\n <em-cell v-for=\"(item, index) in listData\" :key=\"index\" :title=\"item.title\" @click=\"itemClick(item)\" />\n </template>\n</em-minirefresh>"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"title": "自定义请求数据源",
|
|
337
|
-
"code": "<em-minirefresh :page-size=\"pageSize\" useCustomRequest @request=\"request\">\n <template v-slot:default=\"{ listData }\">\n <em-cell v-for=\"(item, index) in listData\" :key=\"index\" :title=\"item.title\" @click=\"itemClick(item)\" />\n </template>\n</em-minirefresh>"
|
|
338
|
-
}
|
|
339
|
-
]
|
|
340
|
-
}
|
|
341
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "noticebar",
|
|
3
|
-
"name": "em-noticebar",
|
|
4
|
-
"title": "通知栏",
|
|
5
|
-
"description": "通知栏组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "mode",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "''",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "通知栏模式,可选值为 `closeable` `link`"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "text",
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "''",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "通知文本内容"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "color",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "#f60",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "通知文本颜色"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "background",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "#fff7cc",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "滚动条背景"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "left-icon",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "-",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "左侧图标名称或图片链接"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "delay",
|
|
44
|
-
"type": "number / string",
|
|
45
|
-
"default": "1",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "动画延迟时间 `(s)`"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "speed",
|
|
51
|
-
"type": "number / string",
|
|
52
|
-
"default": "50",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "滚动速率 `(px/s)`"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "scrollable",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": "-",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "是否开启滚动播放,内容长度溢出时默认开启"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "wrapable",
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": "false",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "是否开启文本换行,只在禁用滚动时生效"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"events": [
|
|
72
|
-
{
|
|
73
|
-
"name": "click",
|
|
74
|
-
"parameters": "点击通知栏时触发",
|
|
75
|
-
"description": "event: Event"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "close",
|
|
79
|
-
"parameters": "关闭通知栏时触发",
|
|
80
|
-
"description": "event: Event"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "replay",
|
|
84
|
-
"parameters": "每当滚动栏重新开始滚动时触发",
|
|
85
|
-
"description": "-"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"slots": [
|
|
89
|
-
{
|
|
90
|
-
"name": "default",
|
|
91
|
-
"description": "通知文本内容"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "leftIcon",
|
|
95
|
-
"description": "自定义左侧图标"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"name": "rightIcon",
|
|
99
|
-
"description": "自定义右侧图标"
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"examples": {
|
|
103
|
-
"vue2": [
|
|
104
|
-
{
|
|
105
|
-
"title": "基础用法",
|
|
106
|
-
"code": "<em-notice-bar\n left-icon=\"volume-o\"\n text=\"足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。\"\n/>"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"title": "滚动播放",
|
|
110
|
-
"code": "<!-- 文字较短时,通过设置 scrollable 属性开启滚动播放 -->\n<em-notice-bar scrollable text=\"技术是开发它的人的共同灵魂。\" />\n\n<!-- 文字较长时,通过禁用 scrollable 属性关闭滚动播放 -->\n<em-notice-bar\n :scrollable=\"false\"\n text=\"足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。\"\n/>"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"title": "多行展示",
|
|
114
|
-
"code": "<em-notice-bar\n wrapable\n :scrollable=\"false\"\n text=\"足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。\"\n/>"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"title": "通知栏模式",
|
|
118
|
-
"code": "<!-- closeable 模式,在右侧显示关闭按钮 -->\n<em-notice-bar mode=\"closeable\">技术是开发它的人的共同灵魂。</em-notice-bar>\n\n<!-- link 模式,在右侧显示链接箭头 -->\n<em-notice-bar mode=\"link\">技术是开发它的人的共同灵魂。</em-notice-bar>"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"title": "自定义样式",
|
|
122
|
-
"code": "<em-notice-bar color=\"#1989fa\" background=\"#ecf9ff\" left-icon=\"info-o\">技术是开发它的人的共同灵魂。</em-notice-bar>"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"vue3": [
|
|
126
|
-
{
|
|
127
|
-
"title": "基础用法",
|
|
128
|
-
"code": "<em-notice-bar\n left-icon=\"volume-o\"\n text=\"足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。\"\n/>"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"title": "滚动播放",
|
|
132
|
-
"code": "<!-- 文字较短时,通过设置 scrollable 属性开启滚动播放 -->\n<em-notice-bar scrollable text=\"技术是开发它的人的共同灵魂。\" />\n\n<!-- 文字较长时,通过禁用 scrollable 属性关闭滚动播放 -->\n<em-notice-bar\n :scrollable=\"false\"\n text=\"足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。\"\n/>"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"title": "多行展示",
|
|
136
|
-
"code": "<em-notice-bar\n wrapable\n :scrollable=\"false\"\n text=\"足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。\"\n/>"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"title": "通知栏模式",
|
|
140
|
-
"code": "<!-- closeable 模式,在右侧显示关闭按钮 -->\n<em-notice-bar mode=\"closeable\">技术是开发它的人的共同灵魂。</em-notice-bar>\n\n<!-- link 模式,在右侧显示链接箭头 -->\n<em-notice-bar mode=\"link\">技术是开发它的人的共同灵魂。</em-notice-bar>"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"title": "自定义样式",
|
|
144
|
-
"code": "<em-notice-bar color=\"#1989fa\" background=\"#ecf9ff\" left-icon=\"info-o\">技术是开发它的人的共同灵魂。</em-notice-bar>"
|
|
145
|
-
}
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
}
|