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,150 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "imagepreview",
|
|
3
|
-
"name": "em-imagepreview",
|
|
4
|
-
"title": "图片预览",
|
|
5
|
-
"description": "图片放大预览,支持函数调用和组件调用两种方式。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "images",
|
|
9
|
-
"type": "string[]",
|
|
10
|
-
"default": "[]",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "需要预览的图片 `URL` 数组"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "start-position",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "0",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "图片预览起始位置索引"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "swipe-duration",
|
|
23
|
-
"type": "number / string",
|
|
24
|
-
"default": "500",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "动画时长,单位为 `ms`"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "show-index",
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"default": "true",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "是否显示页码"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "show-indicators",
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"default": "false",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "是否显示轮播指示器"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "loop",
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": "true",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "是否开启循环播放"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "async-close",
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": "false",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "是否开启异步关闭"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "close-on-popstate",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": "true",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "是否在页面回退时自动关闭"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "max-zoom",
|
|
65
|
-
"type": "number / string",
|
|
66
|
-
"default": "3",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "手势缩放时,最大缩放比例"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "min-zoom",
|
|
72
|
-
"type": "number / string",
|
|
73
|
-
"default": "1/3",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "手势缩放时,最小缩放比例"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "closeable",
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"default": "false",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "是否显示关闭图标"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "close-icon",
|
|
86
|
-
"type": "string",
|
|
87
|
-
"default": "clear",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "关闭图标名称或图片链接"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "close-icon-position",
|
|
93
|
-
"type": "string",
|
|
94
|
-
"default": "top-right",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "关闭图标位置,可选值为`top-left` `bottom-left` `bottom-right`"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"events": [
|
|
100
|
-
{
|
|
101
|
-
"name": "close",
|
|
102
|
-
"parameters": "关闭时触发",
|
|
103
|
-
"description": "{ index: 索引, url: 图片链接 }"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "closed",
|
|
107
|
-
"parameters": "关闭且且动画结束后触发",
|
|
108
|
-
"description": "-"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "change",
|
|
112
|
-
"parameters": "切换当前图片时触发",
|
|
113
|
-
"description": "index: 当前图片的索引"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "scale",
|
|
117
|
-
"parameters": "缩放当前图片时触发",
|
|
118
|
-
"description": "{ index: 当前图片的索引, scale: 当前缩放的值 }"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"name": "click",
|
|
122
|
-
"parameters": "点击图片时触发",
|
|
123
|
-
"description": "index: 当前图片的索引"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"slots": [
|
|
127
|
-
{
|
|
128
|
-
"name": "index",
|
|
129
|
-
"description": "自定义页码内容"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"name": "cover",
|
|
133
|
-
"description": "自定义覆盖在图片预览上方的内容"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"examples": {
|
|
137
|
-
"vue2": [
|
|
138
|
-
{
|
|
139
|
-
"title": "组件调用",
|
|
140
|
-
"code": "<em-image-preview v-model=\"show\" :images=\"images\" @change=\"onChange\">\n <template v-slot:index>第{{ index }}页</template>\n</em-image-preview>"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"vue3": [
|
|
144
|
-
{
|
|
145
|
-
"title": "组件调用",
|
|
146
|
-
"code": "<em-image-preview v-model=\"show\" :images=\"images\" @change=\"onChange\">\n <template v-slot:index>第{{ index }}页</template>\n</em-image-preview>"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
}
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "imagescale",
|
|
3
|
-
"name": "em-imagescale",
|
|
4
|
-
"title": "图片裁剪",
|
|
5
|
-
"description": "图片裁剪组件。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "image-url",
|
|
9
|
-
"type": "any",
|
|
10
|
-
"default": "string",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "图片路径"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "quality",
|
|
16
|
-
"type": "number",
|
|
17
|
-
"default": "1",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "图片的质量,取值范围为 `[0, 1]`,不在范围内时当作 `1 `处理"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "source",
|
|
23
|
-
"type": "Object",
|
|
24
|
-
"default": "-",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "`{album: '从相册中选择'}` key 为图片来源类型,value 为选项说明"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "width",
|
|
30
|
-
"type": "number",
|
|
31
|
-
"default": "400",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "裁剪框高度,默认单位为`px`"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "height",
|
|
37
|
-
"type": "number",
|
|
38
|
-
"default": "400",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "裁剪框宽度"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "min-width",
|
|
44
|
-
"type": "number",
|
|
45
|
-
"default": "200",
|
|
46
|
-
"required": false,
|
|
47
|
-
"description": "裁剪框最小高度"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "min-height",
|
|
51
|
-
"type": "number",
|
|
52
|
-
"default": "200",
|
|
53
|
-
"required": false,
|
|
54
|
-
"description": "裁剪框最小高度"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "max-width",
|
|
58
|
-
"type": "number",
|
|
59
|
-
"default": "600",
|
|
60
|
-
"required": false,
|
|
61
|
-
"description": "裁剪框最大宽度"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "max-height",
|
|
65
|
-
"type": "number",
|
|
66
|
-
"default": "600",
|
|
67
|
-
"required": false,
|
|
68
|
-
"description": "裁剪框最大高度"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "min-ratio",
|
|
72
|
-
"type": "number",
|
|
73
|
-
"default": "0.5",
|
|
74
|
-
"required": false,
|
|
75
|
-
"description": "图片最小缩放比"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "max-ratio",
|
|
79
|
-
"type": "number",
|
|
80
|
-
"default": "2",
|
|
81
|
-
"required": false,
|
|
82
|
-
"description": "图片最大缩放比"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "rotate-angle",
|
|
86
|
-
"type": "number",
|
|
87
|
-
"default": "90",
|
|
88
|
-
"required": false,
|
|
89
|
-
"description": "旋转按钮每次旋转的角度"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "scale-ratio",
|
|
93
|
-
"type": "number",
|
|
94
|
-
"default": "1",
|
|
95
|
-
"required": false,
|
|
96
|
-
"description": "生成图片相对于裁剪框的比例, 比例越高生成图片越清晰"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "is-lock-width",
|
|
100
|
-
"type": "boolean",
|
|
101
|
-
"default": "false",
|
|
102
|
-
"required": false,
|
|
103
|
-
"description": "是否锁定裁剪框宽度"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "is-lock-height",
|
|
107
|
-
"type": "boolean",
|
|
108
|
-
"default": "false",
|
|
109
|
-
"required": false,
|
|
110
|
-
"description": "是否锁定裁剪框高度上"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "is-lock-ratio",
|
|
114
|
-
"type": "boolean",
|
|
115
|
-
"default": "true",
|
|
116
|
-
"required": false,
|
|
117
|
-
"description": "是否锁定裁剪框比例"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "is-disable-scale",
|
|
121
|
-
"type": "boolean",
|
|
122
|
-
"default": "false",
|
|
123
|
-
"required": false,
|
|
124
|
-
"description": "是否禁止缩放"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "is-disable-rotate",
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"default": "false",
|
|
130
|
-
"required": false,
|
|
131
|
-
"description": "是否禁止旋转"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "is-limit-move",
|
|
135
|
-
"type": "boolean",
|
|
136
|
-
"default": "false",
|
|
137
|
-
"required": false,
|
|
138
|
-
"description": "是否限制移动范围"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "is-show-photo-btn",
|
|
142
|
-
"type": "boolean",
|
|
143
|
-
"default": "true",
|
|
144
|
-
"required": false,
|
|
145
|
-
"description": "是否显示选择图片按钮"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"name": "is-show-rotate-btn",
|
|
149
|
-
"type": "boolean",
|
|
150
|
-
"default": "true",
|
|
151
|
-
"required": false,
|
|
152
|
-
"description": "是否显示转按钮"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "is-show-confirm-btn",
|
|
156
|
-
"type": "boolean",
|
|
157
|
-
"default": "true",
|
|
158
|
-
"required": false,
|
|
159
|
-
"description": "是否显示确定按钮"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "is-show-cancel-btn",
|
|
163
|
-
"type": "boolean",
|
|
164
|
-
"default": "true",
|
|
165
|
-
"required": false,
|
|
166
|
-
"description": "是否显示关闭按钮"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"events": [
|
|
170
|
-
{
|
|
171
|
-
"name": "success",
|
|
172
|
-
"parameters": "生成图片成功",
|
|
173
|
-
"description": "` {width, height, url}`"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"name": "fail",
|
|
177
|
-
"parameters": "生成图片失败",
|
|
178
|
-
"description": "-"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"name": "cancel",
|
|
182
|
-
"parameters": "关闭",
|
|
183
|
-
"description": "-"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"name": "ready",
|
|
187
|
-
"parameters": "图片加载完成",
|
|
188
|
-
"description": "` {width, height, path, orientation, type}`"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"name": "change",
|
|
192
|
-
"parameters": "图片大小改变时触发",
|
|
193
|
-
"description": "`{width, height}`"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"name": "rotate",
|
|
197
|
-
"parameters": "图片旋转时触发",
|
|
198
|
-
"description": "-"
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"slots": [
|
|
202
|
-
{
|
|
203
|
-
"name": "default",
|
|
204
|
-
"description": "默认插槽,用于按钮栏底部插入自定义内容"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"name": "cancel",
|
|
208
|
-
"description": "用于自定义取消按钮"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"name": "photo",
|
|
212
|
-
"description": "用于自定义选择图片按钮"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "rotate",
|
|
216
|
-
"description": "用于自定义旋转按钮"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"name": "confirm",
|
|
220
|
-
"description": "用于自定义确定按钮"
|
|
221
|
-
}
|
|
222
|
-
],
|
|
223
|
-
"examples": {
|
|
224
|
-
"vue2": [
|
|
225
|
-
{
|
|
226
|
-
"title": "基础图片裁剪",
|
|
227
|
-
"code": "<image :src=\"url1\" v-if=\"url1\" mode=\"widthFix\"></image>\n<em-image-scale\n v-if=\"show1\"\n :image-url=\"imageUrl1\"\n @success=\"\n url1 = $event.url;\n show1 = false;\n \"\n @cancel=\"show1 = false\"\n/>\n<button @click=\"show1 = true\">基础图片裁剪</button>"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"title": "带功能图片裁剪",
|
|
231
|
-
"code": "<image :src=\"url2\" v-if=\"url2\" mode=\"widthFix\"></image>\n<em-image-scale\n v-if=\"show2\"\n :isLockWidth=\"isLockWidth\"\n :isLockHeight=\"isLockHeight\"\n :isLockRatio=\"isLockRatio\"\n :isLimitMove=\"isLimitMove\"\n :isDisableScale=\"isDisableScale\"\n :isDisableRotate=\"isDisableRotate\"\n :isShowCancelBtn=\"isShowCancelBtn\"\n :isShowPhotoBtn=\"isShowPhotoBtn\"\n :isShowRotateBtn=\"isShowRotateBtn\"\n :isShowConfirmBtn=\"isShowConfirmBtn\"\n :image-url=\"imageUrl2\"\n @success=\"\n url2 = $event.url;\n show2 = false;\n \"\n @cancel=\"show2 = false\"\n>\n <!-- 四个基本按钮插槽 -->\n <template #cancel>\n <em-button>取消</em-button>\n </template>\n <template #photo>\n <em-button>选择图片</em-button>\n </template>\n <template #rotate>\n <em-button>旋转</em-button>\n </template>\n <template #confirm>\n <em-button>确定</em-button>\n </template>\n <!-- 默认插槽 -->\n <em-row class=\"tools\">\n <em-col span=\"12\">\n 显示取消按钮\n <em-switch v-model=\"isShowCancelBtn\" @change=\"(value) => isShowCancelBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 显示选择图片按钮\n <em-switch v-model=\"isShowPhotoBtn\" @change=\"(value) => isShowPhotoBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 显示旋转按钮\n <em-switch v-model=\"isShowRotateBtn\" @change=\"(value) => isShowRotateBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 显示确定按钮\n <em-switch v-model=\"isShowConfirmBtn\" @change=\"(value) => isShowConfirmBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 锁定裁剪框宽度\n <em-switch v-model=\"isLockWidth\" @change=\"(value) => isLockWidth = value\" />\n </em-col>\n <em-col span=\"12\">\n 锁定裁剪框高度\n <em-switch v-model=\"isLockHeight\" @change=\"(value) => isLockHeight = value\" />\n </em-col>\n <em-col span=\"12\">\n 锁定裁剪框比例\n <em-switch v-model=\"isLockRatio\" @change=\"(value) => isLockRatio = value\" />\n </em-col>\n <em-col span=\"12\">\n 限制移动范围\n <em-switch v-model=\"isLimitMove\" @change=\"(value) => isLimitMove = value\" />\n </em-col>\n <em-col span=\"12\">\n 禁止缩放\n <em-switch v-model=\"isDisableScale\" @change=\"(value) => isDisableScale = value\" />\n </em-col>\n <em-col span=\"12\">\n 禁止旋转\n <em-switch v-model=\"isDisableRotate\" @change=\"(value) => isDisableRotate = value\" />\n </em-col>\n </em-row>\n</em-image-scale>\n<button @click=\"show2 = true\">带功能图片裁剪</button>"
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
"vue3": [
|
|
235
|
-
{
|
|
236
|
-
"title": "基础图片裁剪",
|
|
237
|
-
"code": "<image :src=\"url1\" v-if=\"url1\" mode=\"widthFix\"></image>\n<em-image-scale\n v-if=\"show1\"\n :image-url=\"imageUrl1\"\n @success=\"\n url1 = $event.url;\n show1 = false;\n \"\n @cancel=\"show1 = false\"\n/>\n<button @click=\"show1 = true\">基础图片裁剪</button>"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"title": "带功能图片裁剪",
|
|
241
|
-
"code": "<image :src=\"url2\" v-if=\"url2\" mode=\"widthFix\"></image>\n<em-image-scale\n v-if=\"show2\"\n :isLockWidth=\"isLockWidth\"\n :isLockHeight=\"isLockHeight\"\n :isLockRatio=\"isLockRatio\"\n :isLimitMove=\"isLimitMove\"\n :isDisableScale=\"isDisableScale\"\n :isDisableRotate=\"isDisableRotate\"\n :isShowCancelBtn=\"isShowCancelBtn\"\n :isShowPhotoBtn=\"isShowPhotoBtn\"\n :isShowRotateBtn=\"isShowRotateBtn\"\n :isShowConfirmBtn=\"isShowConfirmBtn\"\n :image-url=\"imageUrl2\"\n @success=\"\n url2 = $event.url;\n show2 = false;\n \"\n @cancel=\"show2 = false\"\n>\n <!-- 四个基本按钮插槽 -->\n <template #cancel>\n <em-button>取消</em-button>\n </template>\n <template #photo>\n <em-button>选择图片</em-button>\n </template>\n <template #rotate>\n <em-button>旋转</em-button>\n </template>\n <template #confirm>\n <em-button>确定</em-button>\n </template>\n <!-- 默认插槽 -->\n <em-row class=\"tools\">\n <em-col span=\"12\">\n 显示取消按钮\n <em-switch v-model=\"isShowCancelBtn\" @change=\"(value) => isShowCancelBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 显示选择图片按钮\n <em-switch v-model=\"isShowPhotoBtn\" @change=\"(value) => isShowPhotoBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 显示旋转按钮\n <em-switch v-model=\"isShowRotateBtn\" @change=\"(value) => isShowRotateBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 显示确定按钮\n <em-switch v-model=\"isShowConfirmBtn\" @change=\"(value) => isShowConfirmBtn = value\" />\n </em-col>\n <em-col span=\"12\">\n 锁定裁剪框宽度\n <em-switch v-model=\"isLockWidth\" @change=\"(value) => isLockWidth = value\" />\n </em-col>\n <em-col span=\"12\">\n 锁定裁剪框高度\n <em-switch v-model=\"isLockHeight\" @change=\"(value) => isLockHeight = value\" />\n </em-col>\n <em-col span=\"12\">\n 锁定裁剪框比例\n <em-switch v-model=\"isLockRatio\" @change=\"(value) => isLockRatio = value\" />\n </em-col>\n <em-col span=\"12\">\n 限制移动范围\n <em-switch v-model=\"isLimitMove\" @change=\"(value) => isLimitMove = value\" />\n </em-col>\n <em-col span=\"12\">\n 禁止缩放\n <em-switch v-model=\"isDisableScale\" @change=\"(value) => isDisableScale = value\" />\n </em-col>\n <em-col span=\"12\">\n 禁止旋转\n <em-switch v-model=\"isDisableRotate\" @change=\"(value) => isDisableRotate = value\" />\n </em-col>\n </em-row>\n</em-image-scale>\n<button @click=\"show2 = true\">带功能图片裁剪</button>"
|
|
242
|
-
}
|
|
243
|
-
]
|
|
244
|
-
}
|
|
245
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"components": [
|
|
3
|
-
{ "id": "actionsheet", "name": "em-actionsheet", "title": "动作面板", "file": "actionsheet.json" },
|
|
4
|
-
{ "id": "amap", "name": "em-amap", "title": "地图", "file": "amap.json" },
|
|
5
|
-
{ "id": "button", "name": "em-button", "title": "按钮", "file": "button.json" },
|
|
6
|
-
{ "id": "cell", "name": "em-cell", "title": "单元格", "file": "cell.json" },
|
|
7
|
-
{ "id": "checkbox", "name": "em-checkbox", "title": "复选框", "file": "checkbox.json" },
|
|
8
|
-
{ "id": "circle", "name": "em-circle", "title": "环形进度条", "file": "circle.json" },
|
|
9
|
-
{ "id": "datepicker", "name": "em-datepicker", "title": "日期选择", "file": "datepicker.json" },
|
|
10
|
-
{ "id": "field", "name": "em-field", "title": "输入框", "file": "field.json" },
|
|
11
|
-
{ "id": "form", "name": "em-form", "title": "表单", "file": "form.json" },
|
|
12
|
-
{ "id": "header", "name": "em-header", "title": "头部导航栏", "file": "header.json" },
|
|
13
|
-
{ "id": "icon", "name": "em-icon", "title": "图标", "file": "icon.json" },
|
|
14
|
-
{ "id": "loading", "name": "em-loading", "title": "加载", "file": "loading.json" },
|
|
15
|
-
{ "id": "noticebar", "name": "em-noticebar", "title": "通知栏", "file": "noticebar.json" },
|
|
16
|
-
{ "id": "numberkeyboard", "name": "em-numberkeyboard", "title": "数字键盘", "file": "numberkeyboard.json" },
|
|
17
|
-
{ "id": "pagination", "name": "em-pagination", "title": "分页", "file": "pagination.json" },
|
|
18
|
-
{ "id": "panel", "name": "em-panel", "title": "面板", "file": "panel.json" },
|
|
19
|
-
{ "id": "passwordinput", "name": "em-passwordinput", "title": "密码输入框", "file": "passwordinput.json" },
|
|
20
|
-
{ "id": "picker", "name": "em-picker", "title": "选择器", "file": "picker.json" },
|
|
21
|
-
{ "id": "popup", "name": "em-popup", "title": "弹出层", "file": "popup.json" },
|
|
22
|
-
{ "id": "progress", "name": "em-progress", "title": "进度条", "file": "progress.json" },
|
|
23
|
-
{ "id": "radio", "name": "em-radio", "title": "单选框", "file": "radio.json" },
|
|
24
|
-
{ "id": "rate", "name": "em-rate", "title": "评分", "file": "rate.json" },
|
|
25
|
-
{ "id": "search", "name": "em-search", "title": "搜索", "file": "search.json" },
|
|
26
|
-
{ "id": "slider", "name": "em-slider", "title": "滑块", "file": "slider.json" },
|
|
27
|
-
{ "id": "stepper", "name": "em-stepper", "title": "步进器", "file": "stepper.json" },
|
|
28
|
-
{ "id": "swipecell", "name": "em-swipecell", "title": "滑动单元格", "file": "swipecell.json" },
|
|
29
|
-
{ "id": "switch", "name": "em-switch", "title": "开关", "file": "switch.json" },
|
|
30
|
-
{ "id": "switchcell", "name": "em-switchcell", "title": "开关单元格", "file": "switchcell.json" },
|
|
31
|
-
{ "id": "tag", "name": "em-tag", "title": "标记", "file": "tag.json" },
|
|
32
|
-
{ "id": "treeselect", "name": "em-treeselect", "title": "分类选择", "file": "treeselect.json" },
|
|
33
|
-
{ "id": "uploader", "name": "em-uploader", "title": "文件上传", "file": "uploader.json" },
|
|
34
|
-
{ "id": "verifycode", "name": "em-verifycode", "title": "验证码", "file": "verifycode.json" },
|
|
35
|
-
{ "id": "minirefresh", "name": "em-minirefresh", "title": "下拉刷新", "file": "minirefresh.json" },
|
|
36
|
-
{ "id": "layout", "name": "em-layout", "title": "布局", "file": "layout.json" },
|
|
37
|
-
{ "id": "image", "name": "em-image", "title": "图片", "file": "image.json" },
|
|
38
|
-
{ "id": "toast", "name": "em-toast", "title": "轻提示", "file": "toast.json" },
|
|
39
|
-
{ "id": "calendar", "name": "em-calendar", "title": "日历", "file": "calendar.json" },
|
|
40
|
-
{ "id": "area", "name": "em-area", "title": "省市区选择", "file": "area.json" },
|
|
41
|
-
{ "id": "tab", "name": "em-tab", "title": "标签页", "file": "tab.json" },
|
|
42
|
-
{ "id": "dialog", "name": "em-dialog", "title": "弹出框", "file": "dialog.json" },
|
|
43
|
-
{ "id": "dropdownmenu", "name": "em-dropdownmenu", "title": "下拉菜单", "file": "dropdownmenu.json" },
|
|
44
|
-
{ "id": "notify", "name": "em-notify", "title": "消息通知", "file": "notify.json" },
|
|
45
|
-
{ "id": "overlay", "name": "em-overlay", "title": "遮罩层", "file": "overlay.json" },
|
|
46
|
-
{ "id": "collapse", "name": "em-collapse", "title": "折叠面板", "file": "collapse.json" },
|
|
47
|
-
{ "id": "grid", "name": "em-grid", "title": "宫格", "file": "grid.json" },
|
|
48
|
-
{ "id": "countdown", "name": "em-countdown", "title": "倒计时", "file": "countdown.json" },
|
|
49
|
-
{ "id": "divider", "name": "em-divider", "title": "分割线", "file": "divider.json" },
|
|
50
|
-
{ "id": "empty", "name": "em-empty", "title": "空状态", "file": "empty.json" },
|
|
51
|
-
{ "id": "imagepreview", "name": "em-imagepreview", "title": "图片预览", "file": "imagepreview.json" },
|
|
52
|
-
{ "id": "lazyload", "name": "em-lazyload", "title": "懒加载", "file": "lazyload.json" },
|
|
53
|
-
{ "id": "skeleton", "name": "em-skeleton", "title": "骨架屏", "file": "skeleton.json" },
|
|
54
|
-
{ "id": "steps", "name": "em-steps", "title": "步骤条", "file": "steps.json" },
|
|
55
|
-
{ "id": "sticky", "name": "em-sticky", "title": "粘性布局", "file": "sticky.json" },
|
|
56
|
-
{ "id": "indexbar", "name": "em-indexbar", "title": "索引栏", "file": "indexbar.json" },
|
|
57
|
-
{ "id": "sidebar", "name": "em-sidebar", "title": "侧边导航", "file": "sidebar.json" },
|
|
58
|
-
{ "id": "tabbar", "name": "em-tabbar", "title": "标签栏", "file": "tabbar.json" },
|
|
59
|
-
{ "id": "badge", "name": "em-badge", "title": "徽标", "file": "badge.json" },
|
|
60
|
-
{ "id": "popover", "name": "em-popover", "title": "气泡弹出框", "file": "popover.json" },
|
|
61
|
-
{ "id": "cascader", "name": "em-cascader", "title": "级联选择", "file": "cascader.json" },
|
|
62
|
-
{ "id": "selectperson", "name": "em-selectperson", "title": "选人组件", "file": "selectperson.json" },
|
|
63
|
-
{ "id": "swipe", "name": "em-swipe", "title": "轮播", "file": "swipe.json" },
|
|
64
|
-
{ "id": "easycalendar", "name": "em-easycalendar", "title": "日历", "file": "easycalendar.json" },
|
|
65
|
-
{ "id": "qrcode", "name": "em-qrcode", "title": "二维码", "file": "qrcode.json" },
|
|
66
|
-
{ "id": "imagescale", "name": "em-imagescale", "title": "图片裁剪", "file": "imagescale.json" },
|
|
67
|
-
{ "id": "dragsort", "name": "em-dragsort", "title": "拖拽排序", "file": "dragsort.json" },
|
|
68
|
-
{ "id": "chart", "name": "em-chart", "title": "图表", "file": "chart.json" },
|
|
69
|
-
{ "id": "rtc", "name": "em-rtc", "title": "音视频", "file": "rtc.json" },
|
|
70
|
-
{ "id": "table", "name": "em-table", "title": "表格", "file": "table.json" }
|
|
71
|
-
]
|
|
72
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "indexbar",
|
|
3
|
-
"name": "em-indexbar",
|
|
4
|
-
"title": "索引栏",
|
|
5
|
-
"description": "索引栏。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "index-list",
|
|
9
|
-
"type": "string[] / number[]",
|
|
10
|
-
"default": "A-Z",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "索引字符列表"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "z-index",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "1",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "`z-index` 层级"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "sticky",
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"default": "true",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "是否开启锚点自动吸顶"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "sticky-offset-top",
|
|
30
|
-
"type": "number",
|
|
31
|
-
"default": "0",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "锚点自动吸顶时与顶部的距离"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "highlight-color",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"default": "#07c160",
|
|
39
|
-
"required": false,
|
|
40
|
-
"description": "索引字符高亮颜色"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"events": [
|
|
44
|
-
{
|
|
45
|
-
"name": "select",
|
|
46
|
-
"parameters": "选中字符时触发",
|
|
47
|
-
"description": "index: number / string"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "change",
|
|
51
|
-
"parameters": "当前高亮的索引字符变化时触发",
|
|
52
|
-
"description": "index: number / string"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"slots": [
|
|
56
|
-
{
|
|
57
|
-
"name": "default",
|
|
58
|
-
"description": "锚点位置显示内容,默认为索引字符"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"examples": {
|
|
62
|
-
"vue2": [
|
|
63
|
-
{
|
|
64
|
-
"title": "基础用法",
|
|
65
|
-
"code": "<view class=\"container\">\n <em-index-bar>\n <em-index-anchor index=\"A\"></em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-index-anchor index=\"B\"></em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n\n ...\n </em-index-bar>\n</view>"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"title": "自定义索引列表",
|
|
69
|
-
"code": "<view class=\"container\">\n <em-index-bar :index-list=\"indexList\">\n <em-index-anchor index=\"A\">标题1</em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-index-anchor index=\"B\">标题2</em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n\n ...\n </em-index-bar>\n</view>"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"vue3": [
|
|
73
|
-
{
|
|
74
|
-
"title": "基础用法",
|
|
75
|
-
"code": "<view class=\"container\">\n <em-index-bar>\n <em-index-anchor index=\"A\"></em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-index-anchor index=\"B\"></em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n\n ...\n </em-index-bar>\n</view>"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"title": "自定义索引列表",
|
|
79
|
-
"code": "<view class=\"container\">\n <em-index-bar :index-list=\"indexList\">\n <em-index-anchor index=\"A\">标题1</em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-index-anchor index=\"B\">标题2</em-index-anchor>\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n <em-cell title=\"文本\" />\n\n ...\n </em-index-bar>\n</view>"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "layout",
|
|
3
|
-
"name": "em-layout",
|
|
4
|
-
"title": "布局",
|
|
5
|
-
"description": "`Layout` 提供了`em-row`和`em-col`两个组件来进行行列布局。",
|
|
6
|
-
"props": [
|
|
7
|
-
{
|
|
8
|
-
"name": "type",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"default": "-",
|
|
11
|
-
"required": false,
|
|
12
|
-
"description": "布局方式,可选值为`flex`"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "gutter",
|
|
16
|
-
"type": "number / string",
|
|
17
|
-
"default": "0",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "列元素之间的间距(单位为 `px`)"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "justify",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"default": "start",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "`Flex` 主轴对齐方式,可选值为 `end` `center` `space-around` `space-between`"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "align",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"default": "top",
|
|
32
|
-
"required": false,
|
|
33
|
-
"description": "`Flex` 交叉轴对齐方式,可选值为 `center` `bottom`"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"events": [
|
|
37
|
-
{
|
|
38
|
-
"name": "click",
|
|
39
|
-
"parameters": "点击时触发",
|
|
40
|
-
"description": "event: Event"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"slots": [],
|
|
44
|
-
"examples": {
|
|
45
|
-
"vue2": [
|
|
46
|
-
{
|
|
47
|
-
"title": "基础用法",
|
|
48
|
-
"code": "<em-row>\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n</em-row>\n\n<em-row>\n <em-col span=\"4\">span: 4</em-col>\n <em-col span=\"10\" offset=\"4\">offset: 4, span: 10</em-col>\n</em-row>\n\n<em-row>\n <em-col offset=\"12\" span=\"12\">offset: 12, span: 12</em-col>\n</em-row>"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"title": "设置列元素间距",
|
|
52
|
-
"code": "<em-row gutter=\"20\">\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n</em-row>"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"title": "Flex 布局",
|
|
56
|
-
"code": "<!-- 左对齐 -->\n<em-row type=\"flex\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 居中 -->\n<em-row type=\"flex\" justify=\"center\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 右对齐 -->\n<em-row type=\"flex\" justify=\"end\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 两端对齐 -->\n<em-row type=\"flex\" justify=\"space-between\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 每个元素的两侧间隔相等 -->\n<em-row type=\"flex\" justify=\"space-around\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"vue3": [
|
|
60
|
-
{
|
|
61
|
-
"title": "基础用法",
|
|
62
|
-
"code": "<em-row>\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n</em-row>\n\n<em-row>\n <em-col span=\"4\">span: 4</em-col>\n <em-col span=\"10\" offset=\"4\">offset: 4, span: 10</em-col>\n</em-row>\n\n<em-row>\n <em-col offset=\"12\" span=\"12\">offset: 12, span: 12</em-col>\n</em-row>"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"title": "设置列元素间距",
|
|
66
|
-
"code": "<em-row gutter=\"20\">\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n <em-col span=\"8\">span: 8</em-col>\n</em-row>"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"title": "Flex 布局",
|
|
70
|
-
"code": "<!-- 左对齐 -->\n<em-row type=\"flex\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 居中 -->\n<em-row type=\"flex\" justify=\"center\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 右对齐 -->\n<em-row type=\"flex\" justify=\"end\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 两端对齐 -->\n<em-row type=\"flex\" justify=\"space-between\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>\n\n<!-- 每个元素的两侧间隔相等 -->\n<em-row type=\"flex\" justify=\"space-around\">\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n <em-col span=\"6\">span: 6</em-col>\n</em-row>"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
}
|