mrxy-yk 0.0.1-beta.11 → 1.0.0
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/README.md +10 -5
- package/package.json +4 -8
- package/{web-types-yk.json → web-types.json} +15 -0
- package/web-types-mr.json +0 -923
package/README.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# mrxy-yk
|
|
2
2
|
|
|
3
|
+
## 快速开始
|
|
4
|
+
```shell
|
|
5
|
+
npm i mrxy-yk
|
|
6
|
+
```
|
|
7
|
+
|
|
3
8
|
## 全量引入
|
|
4
9
|
```typescript
|
|
5
10
|
// main.ts
|
|
6
|
-
import 'yk/styles/index.css'
|
|
7
|
-
import Yk from 'yk'
|
|
11
|
+
import 'mrxy-yk/styles/index.css'
|
|
12
|
+
import Yk from 'mrxy-yk'
|
|
8
13
|
|
|
9
14
|
const app = createApp(App)
|
|
10
15
|
app.use(Yk)
|
|
@@ -15,7 +20,7 @@ app.use(Yk)
|
|
|
15
20
|
```typescript
|
|
16
21
|
// vite.config.ts
|
|
17
22
|
import Components from 'unplugin-vue-components/vite'
|
|
18
|
-
import YkResolver from 'yk/resolver'
|
|
23
|
+
import YkResolver from 'mrxy-yk/resolver'
|
|
19
24
|
|
|
20
25
|
export default defineConfig({
|
|
21
26
|
plugins: [
|
|
@@ -28,7 +33,7 @@ export default defineConfig({
|
|
|
28
33
|
})
|
|
29
34
|
```
|
|
30
35
|
|
|
31
|
-
##
|
|
36
|
+
## `TypeScript`项目推荐在`env.d.ts`中引入全局类型
|
|
32
37
|
```typescript
|
|
33
|
-
/// <reference types="yk/global" />
|
|
38
|
+
/// <reference types="mrxy-yk/global" />
|
|
34
39
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mrxy-yk",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A collection of Vue 3 components and utilities",
|
|
@@ -69,15 +69,11 @@
|
|
|
69
69
|
],
|
|
70
70
|
"files": [
|
|
71
71
|
"dist",
|
|
72
|
-
"web-types
|
|
73
|
-
"web-types-yk.json",
|
|
72
|
+
"web-types.json",
|
|
74
73
|
"global.d.ts"
|
|
75
74
|
],
|
|
76
75
|
"style": "dist/styles/index.css",
|
|
77
|
-
"web-types":
|
|
78
|
-
"web-types-mr.json",
|
|
79
|
-
"web-types-yk.json"
|
|
80
|
-
],
|
|
76
|
+
"web-types": "web-types.json",
|
|
81
77
|
"repository": {
|
|
82
78
|
"type": "git",
|
|
83
79
|
"url": "https://gitee.com/cscake/mrxy-yk.git"
|
|
@@ -93,7 +89,7 @@
|
|
|
93
89
|
"lint": "eslint . --fix"
|
|
94
90
|
},
|
|
95
91
|
"peerDependencies": {
|
|
96
|
-
"element-plus": "^2.
|
|
92
|
+
"element-plus": "^2.6.0",
|
|
97
93
|
"vue": "^3.5.0"
|
|
98
94
|
},
|
|
99
95
|
"dependencies": {
|
|
@@ -493,6 +493,21 @@
|
|
|
493
493
|
"name": "fullscreen",
|
|
494
494
|
"type": ["boolean"],
|
|
495
495
|
"description": "el-dialog的fullscreen"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "close-on-click-modal",
|
|
499
|
+
"type": ["boolean"],
|
|
500
|
+
"description": "是否可以通过点击 modal 关闭 Dialog"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "dialog-center",
|
|
504
|
+
"type": ["boolean"],
|
|
505
|
+
"description": "是否让 Dialog 的 header 和 footer 部分居中排列"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "show-close",
|
|
509
|
+
"type": ["boolean"],
|
|
510
|
+
"description": "Dialog右上角是否显示关闭按钮"
|
|
496
511
|
}
|
|
497
512
|
],
|
|
498
513
|
"slots":[
|
package/web-types-mr.json
DELETED
|
@@ -1,923 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"framework": "vue",
|
|
3
|
-
"name": "mrxy-yk",
|
|
4
|
-
"js-types-syntax": "typescript",
|
|
5
|
-
"contributions": {
|
|
6
|
-
"html": {
|
|
7
|
-
"vue-components": [
|
|
8
|
-
{
|
|
9
|
-
"name": "MrAdaptiveBox",
|
|
10
|
-
"source": {
|
|
11
|
-
"symbol": "AdaptiveBox",
|
|
12
|
-
"module": "mrxy-yk/components"
|
|
13
|
-
},
|
|
14
|
-
"description": "缩放型组件,可以使插槽内的元素等比缩放。",
|
|
15
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/AdaptiveBox.md",
|
|
16
|
-
"props": [
|
|
17
|
-
{
|
|
18
|
-
"name": "reference",
|
|
19
|
-
"type": ["HTMLElement", "Window"],
|
|
20
|
-
"description": "缩放的参照物"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "min-width",
|
|
24
|
-
"type": ["number"],
|
|
25
|
-
"description": "缩放的最小宽度"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "max-width",
|
|
29
|
-
"type": ["number"],
|
|
30
|
-
"description": "缩放的最大宽度"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "update-width",
|
|
34
|
-
"type": ["boolean"],
|
|
35
|
-
"description": "是否对组件显性更新width"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "observe-node-update",
|
|
39
|
-
"type": ["boolean"],
|
|
40
|
-
"description": "是否观察子节点更新"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "mode",
|
|
44
|
-
"type": ["'equal-width' | 'contain' | 'full-height'"],
|
|
45
|
-
"description": "缩放模式:等宽 / 包含 / 高度充满"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"slots":[
|
|
49
|
-
{
|
|
50
|
-
"name": "default"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "MrPositionAnchor",
|
|
56
|
-
"source": {
|
|
57
|
-
"symbol": "PositionAnchor",
|
|
58
|
-
"module": "mrxy-yk/components"
|
|
59
|
-
},
|
|
60
|
-
"description": "锚点定位组件,普通定位的锚点做左上角,PositionAnchor改变锚点的位置",
|
|
61
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/PositionAnchor.md",
|
|
62
|
-
"props": [
|
|
63
|
-
{
|
|
64
|
-
"name": "anchor",
|
|
65
|
-
"type": ["'center' | 'top-left' | 'top-right' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom' | 'top' | 'right' | 'left'"],
|
|
66
|
-
"description": "锚点位置"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"slots":[
|
|
70
|
-
{
|
|
71
|
-
"name": "default"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "MrProgressRing",
|
|
77
|
-
"source": {
|
|
78
|
-
"symbol": "ProgressRing",
|
|
79
|
-
"module": "mrxy-yk/components"
|
|
80
|
-
},
|
|
81
|
-
"description": "环形进度条。",
|
|
82
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/ProgressRing.md",
|
|
83
|
-
"props": [
|
|
84
|
-
{
|
|
85
|
-
"name": "progress",
|
|
86
|
-
"type": ["number"],
|
|
87
|
-
"description": "进度"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "size",
|
|
91
|
-
"type": ["number"],
|
|
92
|
-
"description": "环形的直径"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "stroke-width",
|
|
96
|
-
"type": ["number"],
|
|
97
|
-
"description": "环形宽度"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "offset-angle",
|
|
101
|
-
"type": ["number"],
|
|
102
|
-
"description": "偏移角度,可以控制旋转"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "max-angle",
|
|
106
|
-
"type": ["number"],
|
|
107
|
-
"description": "最大展示角度,可以配合offset-angle模拟仪表盘形式的进度条"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "bg-color",
|
|
111
|
-
"type": ["string"],
|
|
112
|
-
"description": "进度条滑轨颜色"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "colors",
|
|
116
|
-
"type": ["string", "string[]"],
|
|
117
|
-
"description": "进度条颜色可以是以逗号分割的字符串或字符串数组"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "duration",
|
|
121
|
-
"type": ["number"],
|
|
122
|
-
"description": "动画持续时间"
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "MrCoordinatePickup",
|
|
128
|
-
"source": {
|
|
129
|
-
"symbol": "CoordinatePickup",
|
|
130
|
-
"module": "mrxy-yk/components"
|
|
131
|
-
},
|
|
132
|
-
"description": "基于高德地图的坐标拾取工具,用于拾取地图坐标,以及位置信息。",
|
|
133
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/CoordinatePickup.md",
|
|
134
|
-
"props": [
|
|
135
|
-
{
|
|
136
|
-
"name": "model-value",
|
|
137
|
-
"type": ["boolean"],
|
|
138
|
-
"description": "[必填]是否显示"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "v-model:lnglat",
|
|
142
|
-
"type": ["string"],
|
|
143
|
-
"description": "绑定拾取的坐标"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"name": "v-model:address",
|
|
147
|
-
"type": ["string"],
|
|
148
|
-
"description": "绑定位置信息"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "regeocode-required",
|
|
152
|
-
"type": ["boolean"],
|
|
153
|
-
"description": "地理逆变数据是否是必须的,逆变数据可以在change事件中获取"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"name": "map-key",
|
|
157
|
-
"type": ["string"],
|
|
158
|
-
"description": "地图Key"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "map-secret",
|
|
162
|
-
"type": ["string"],
|
|
163
|
-
"description": "地图Secret"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "modal",
|
|
167
|
-
"type": ["boolean"],
|
|
168
|
-
"description": "是否展示遮罩层"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "map-style",
|
|
172
|
-
"type": ["string"],
|
|
173
|
-
"description": "地图风格"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
"events": [
|
|
177
|
-
{
|
|
178
|
-
"name": "change",
|
|
179
|
-
"type": "(data: { value: { lnglat: string, address: string }, regeocode }) => void",
|
|
180
|
-
"description": "点击确认后触发,参数:{ value: { lnglat: string, address: string }, regeocode }"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"name": "open",
|
|
184
|
-
"type": "() => void",
|
|
185
|
-
"description": "对话框打开时触发"
|
|
186
|
-
}
|
|
187
|
-
]
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "MrDragDropBox",
|
|
191
|
-
"source": {
|
|
192
|
-
"symbol": "DragDropBox",
|
|
193
|
-
"module": "mrxy-yk/components"
|
|
194
|
-
},
|
|
195
|
-
"description": "使一个组件具有拖拽功能",
|
|
196
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/DragDropBox.md",
|
|
197
|
-
"props": [
|
|
198
|
-
{
|
|
199
|
-
"name": "v-model:top",
|
|
200
|
-
"type": ["string"],
|
|
201
|
-
"description": "双向绑定top值"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"name": "v-model:left",
|
|
205
|
-
"type": ["string"],
|
|
206
|
-
"description": "双向绑定left值"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"name": "disabled",
|
|
210
|
-
"type": ["boolean"],
|
|
211
|
-
"description": "禁用当前拖拽功能"
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
"slots":[
|
|
215
|
-
{
|
|
216
|
-
"name": "default"
|
|
217
|
-
}
|
|
218
|
-
]
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "MrDragDropContainer",
|
|
222
|
-
"source": {
|
|
223
|
-
"symbol": "DragDropContainer",
|
|
224
|
-
"module": "mrxy-yk/components"
|
|
225
|
-
},
|
|
226
|
-
"description": "简易拖拽组件,可以使插槽内的元素拖拽和缩放。",
|
|
227
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/DragDropContainer.md",
|
|
228
|
-
"props": [
|
|
229
|
-
{
|
|
230
|
-
"name": "step",
|
|
231
|
-
"type": ["number"],
|
|
232
|
-
"description": "缩放步进"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"name": "scale",
|
|
236
|
-
"type": ["boolean"],
|
|
237
|
-
"description": "允许缩放"
|
|
238
|
-
}
|
|
239
|
-
],
|
|
240
|
-
"slots":[
|
|
241
|
-
{
|
|
242
|
-
"name": "default"
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"name": "MrProgressBar",
|
|
248
|
-
"source": {
|
|
249
|
-
"symbol": "ProgressBar",
|
|
250
|
-
"module": "mrxy-yk/components"
|
|
251
|
-
},
|
|
252
|
-
"description": "一个进度条组件,支持纯色,渐变色,斑马纹,允许自定义花纹和跟随点,提供多个插槽允许多处自定义重写,组件旨在完成进度功能。",
|
|
253
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/ProgressBar.md",
|
|
254
|
-
"props": [
|
|
255
|
-
{
|
|
256
|
-
"name": "progress",
|
|
257
|
-
"type": ["number"],
|
|
258
|
-
"description": "[必填]当前进度,传入0-100的值"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "bg-color",
|
|
262
|
-
"type": ["string"],
|
|
263
|
-
"description": "轨道背景颜色,使用track插槽后无效"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"name": "colors",
|
|
267
|
-
"type": ["string", "string[]"],
|
|
268
|
-
"description": "进度条颜色,参数类型为数组时为渐变色,使用progressbar插槽后无效"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"name": "pattern",
|
|
272
|
-
"type": ["boolean"],
|
|
273
|
-
"description": "开启花纹,默认是斑马纹"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"name": "pattern-width",
|
|
277
|
-
"type": ["number"],
|
|
278
|
-
"description": "花纹宽度(包含间隙),pattern为true时有效"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"name": "pattern-gap",
|
|
282
|
-
"type": ["number"],
|
|
283
|
-
"description": "花纹间隔,pattern为true时有效,使用pattern插槽后无效"
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
"slots": [
|
|
287
|
-
{
|
|
288
|
-
"name": "progressbar",
|
|
289
|
-
"description": "自定义进度条的进度内容"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"name": "track",
|
|
293
|
-
"description": "自定义进度条的轨道内容"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"name": "pattern",
|
|
297
|
-
"description": "自定义花纹,只能时svg支持的标签,不支持HTML"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "dot",
|
|
301
|
-
"description": "自定义跟随原点(没有默认值)"
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"name": "MrYsVideo",
|
|
307
|
-
"source": {
|
|
308
|
-
"symbol": "YsVideo",
|
|
309
|
-
"module": "mrxy-yk/components"
|
|
310
|
-
},
|
|
311
|
-
"description": "萤石云H5组件。",
|
|
312
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/YsVideo.md",
|
|
313
|
-
"props": [
|
|
314
|
-
{
|
|
315
|
-
"name": "ys-video",
|
|
316
|
-
"type": ["YsVideo"],
|
|
317
|
-
"description": "[必选]萤石云视频对象"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"name": "auto-play",
|
|
321
|
-
"type": ["boolean"],
|
|
322
|
-
"description": "是否自动播放"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"name": "template",
|
|
326
|
-
"type": ["string"],
|
|
327
|
-
"description": "功能布局模板,使用themeData时,template无效"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"name": "theme-data",
|
|
331
|
-
"type": ["EZUIKitPlayerOptionsThemeData"],
|
|
332
|
-
"description": "自定义模板配置,使用themeData时,template无效"
|
|
333
|
-
}
|
|
334
|
-
]
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"name": "MrShowLog",
|
|
338
|
-
"source": {
|
|
339
|
-
"symbol": "ShowLog",
|
|
340
|
-
"module": "mrxy-yk/components"
|
|
341
|
-
},
|
|
342
|
-
"description": "一个主要用于显示实时双向绑定的调试容器,支持拖拽移动。",
|
|
343
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/ShowLog.md",
|
|
344
|
-
"props": [
|
|
345
|
-
{
|
|
346
|
-
"name": "title",
|
|
347
|
-
"type": ["string"],
|
|
348
|
-
"description": "显示的标题"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"name": "top",
|
|
352
|
-
"type": ["string"],
|
|
353
|
-
"description": "默认垂直位置"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"name": "left",
|
|
357
|
-
"type": ["string"],
|
|
358
|
-
"description": "默认水平位置"
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
"slots":[
|
|
362
|
-
{
|
|
363
|
-
"name": "default"
|
|
364
|
-
}
|
|
365
|
-
]
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"name": "MrInBody",
|
|
369
|
-
"source": {
|
|
370
|
-
"symbol": "InBody",
|
|
371
|
-
"module": "mrxy-yk/components"
|
|
372
|
-
},
|
|
373
|
-
"description": "用于将插槽里的内容渲染到body中",
|
|
374
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/InBody.md",
|
|
375
|
-
"slots":[
|
|
376
|
-
{
|
|
377
|
-
"name": "default"
|
|
378
|
-
}
|
|
379
|
-
]
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"name": "MrEChartsCanvas",
|
|
383
|
-
"source": {
|
|
384
|
-
"symbol": "EChartsCanvas",
|
|
385
|
-
"module": "mrxy-yk/components"
|
|
386
|
-
},
|
|
387
|
-
"description": "一个基于ECharts的图表组件,支持多种图表类型,如折线图、柱状图、饼图等。",
|
|
388
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/EChartsCanvas.md",
|
|
389
|
-
"props": [
|
|
390
|
-
{
|
|
391
|
-
"name": "resize",
|
|
392
|
-
"type": ["boolean"],
|
|
393
|
-
"description": "是否开启图表自适应大小"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"name": "theme",
|
|
397
|
-
"type": ["'default' | 'dark' | 'auto'"],
|
|
398
|
-
"description": "图表主题,默认是default,dark是暗黑主题,auto是根据系统主题自动切换"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"name": "option",
|
|
402
|
-
"type": ["EChartsOption", "EcBasicOption"],
|
|
403
|
-
"description": "ECharts配置"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"name": "empty-hook",
|
|
407
|
-
"type": ["UseEmptyHooksExample"],
|
|
408
|
-
"description": "缺省组件Hook实例,可以直接拥有缺省功能"
|
|
409
|
-
}
|
|
410
|
-
]
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"name": "MrScrollContainer",
|
|
414
|
-
"source": {
|
|
415
|
-
"symbol": "ScrollContainer",
|
|
416
|
-
"module": "mrxy-yk/components"
|
|
417
|
-
},
|
|
418
|
-
"description": "滚动容器,子元素内容超出容器时,会无限滚动。",
|
|
419
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/components/ScrollContainer.md",
|
|
420
|
-
"props": [
|
|
421
|
-
{
|
|
422
|
-
"name": "speed",
|
|
423
|
-
"type": ["number"],
|
|
424
|
-
"description": "每秒移动像素"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "copy-class",
|
|
428
|
-
"type": ["string"],
|
|
429
|
-
"description": "复制插槽的样式"
|
|
430
|
-
}
|
|
431
|
-
],
|
|
432
|
-
"slots":[
|
|
433
|
-
{
|
|
434
|
-
"name": "default"
|
|
435
|
-
}
|
|
436
|
-
]
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"name": "MrElFormDialog",
|
|
440
|
-
"source": {
|
|
441
|
-
"symbol": "ElFormDialog",
|
|
442
|
-
"module": "mrxy-yk/element-plus/components"
|
|
443
|
-
},
|
|
444
|
-
"description": "FormDialog将ElForm和ElDialog组件进行结合,是一个封装程度程度比较高的一个组件。主要用于解决对话框表单\n每次都需要定义form、rule、show、close、submit等等,为简化编写流程将特定流程进行封装。需要搭配useElFormDialogHooks一起使用",
|
|
445
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/FormDialog.md",
|
|
446
|
-
"props": [
|
|
447
|
-
{
|
|
448
|
-
"name": "hook",
|
|
449
|
-
"type": ["UseFormDialogHooksExample"],
|
|
450
|
-
"description": "[必填]useElFormDialogHooks的实例"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"name": "dialog-class",
|
|
454
|
-
"type": ["string"],
|
|
455
|
-
"description": "el-dialog的class"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"name": "form-class",
|
|
459
|
-
"type": ["string"],
|
|
460
|
-
"description": "el-form的class"
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"name": "title",
|
|
464
|
-
"type": ["string"],
|
|
465
|
-
"description": "el-dialog的title,不填默认从hook实例中获取"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"name": "width",
|
|
469
|
-
"type": ["string", "number"],
|
|
470
|
-
"description": "el-dialog的width"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"name": "label-position",
|
|
474
|
-
"type": ["'left' | 'right' | 'top'"],
|
|
475
|
-
"description": "el-form的label-position"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"name": "label-width",
|
|
479
|
-
"type": ["string", "number"],
|
|
480
|
-
"description": "el-form的label-width"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"name": "append-to-body",
|
|
484
|
-
"type": ["boolean"],
|
|
485
|
-
"description": "el-dialog的append-to-body"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"name": "modal",
|
|
489
|
-
"type": ["boolean"],
|
|
490
|
-
"description": "el-dialog的modal"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"name": "fullscreen",
|
|
494
|
-
"type": ["boolean"],
|
|
495
|
-
"description": "el-dialog的fullscreen"
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
"slots":[
|
|
499
|
-
{
|
|
500
|
-
"name": "default"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"name": "footer"
|
|
504
|
-
}
|
|
505
|
-
]
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
"name": "MrElDatePicker",
|
|
509
|
-
"source": {
|
|
510
|
-
"symbol": "ElDatePicker",
|
|
511
|
-
"module": "mrxy-yk/element-plus/components"
|
|
512
|
-
},
|
|
513
|
-
"description": "基于ElDatePicker二次封装的日期选取组件,支持原有功能并添加一定的语法糖",
|
|
514
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/DatePicker.md",
|
|
515
|
-
"props": [
|
|
516
|
-
{
|
|
517
|
-
"name": "model-value",
|
|
518
|
-
"type": ["string", "string[]"],
|
|
519
|
-
"description": "绑定值,单日期使用string,时间范围使用string[],或者使用start和end绑定"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"name": "v-model:start",
|
|
523
|
-
"type": ["string"],
|
|
524
|
-
"description": "绑定开始时间"
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
"name": "v-model:end",
|
|
528
|
-
"type": ["string"],
|
|
529
|
-
"description": "绑定结束时间"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"name": "type",
|
|
533
|
-
"type": ["'year' | 'month' | 'date' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange'"],
|
|
534
|
-
"description": "与原ElDatePicker组件一致,定义选择器类型"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
"name": "value-format",
|
|
538
|
-
"type": ["string"],
|
|
539
|
-
"description": "与原ElDatePicker组件一致,调整绑定值的格式"
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"name": "optional-scope",
|
|
543
|
-
"type": ["'before' | 'after' | 'none'"],
|
|
544
|
-
"description": "日期可选择的范围, before只能选择历史日期;after只能选择未来日期;none不限制"
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"name": "max-date",
|
|
548
|
-
"type": ["number"],
|
|
549
|
-
"description": "允许选择的最大日期,仅type为范围选择器时生效"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"name": "shortcuts",
|
|
553
|
-
"type": ["number[]"],
|
|
554
|
-
"description": "生成快捷选项,如昨天,近7日等,仅type为datetimerange或daterange时生效"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"name": "clearable",
|
|
558
|
-
"type": ["boolean"],
|
|
559
|
-
"description": "是否允许清空日期和手动输入"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"name": "unlink-panels",
|
|
563
|
-
"type": ["boolean"],
|
|
564
|
-
"description": "与原ElDatePicker组件一致,在范围选择器里取消两个日期面板之间的联动"
|
|
565
|
-
}
|
|
566
|
-
]
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"name": "MrElPagination",
|
|
570
|
-
"source": {
|
|
571
|
-
"symbol": "ElPagination",
|
|
572
|
-
"module": "mrxy-yk/element-plus/components"
|
|
573
|
-
},
|
|
574
|
-
"description": "分页组件",
|
|
575
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/Pagination.md",
|
|
576
|
-
"props": [
|
|
577
|
-
{
|
|
578
|
-
"name": "pages",
|
|
579
|
-
"type": ["Pages"],
|
|
580
|
-
"description": "分页绑定对象"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
"name": "tableHook",
|
|
584
|
-
"type": ["UseTableSearchHooksExample"],
|
|
585
|
-
"description": "配合表格搜索Hook更快速实现逻辑"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
"name": "background",
|
|
589
|
-
"type": ["boolean"],
|
|
590
|
-
"description": "按钮显示背景"
|
|
591
|
-
}
|
|
592
|
-
],
|
|
593
|
-
"events": [
|
|
594
|
-
{
|
|
595
|
-
"name": "change",
|
|
596
|
-
"type": "() => void",
|
|
597
|
-
"description": "分页信息更改时触发"
|
|
598
|
-
}
|
|
599
|
-
]
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"name": "MrElSelectFile",
|
|
603
|
-
"source": {
|
|
604
|
-
"symbol": "ElSelectFile",
|
|
605
|
-
"module": "mrxy-yk/element-plus/components"
|
|
606
|
-
},
|
|
607
|
-
"description": "组件用于获取一个文件。",
|
|
608
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/SelectFile.md",
|
|
609
|
-
"props": [
|
|
610
|
-
{
|
|
611
|
-
"name": "accept",
|
|
612
|
-
"type": ["string"],
|
|
613
|
-
"description": "文件类型限制"
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
"name": "max-size",
|
|
617
|
-
"type": ["number"],
|
|
618
|
-
"description": "文件最大体积"
|
|
619
|
-
}
|
|
620
|
-
],
|
|
621
|
-
"events": [
|
|
622
|
-
{
|
|
623
|
-
"name": "change",
|
|
624
|
-
"type": "(file: UploadUserFile) => void",
|
|
625
|
-
"description": "选择文件触发,参数:UploadUserFile"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"name": "error",
|
|
629
|
-
"type": "(error: Error) => void",
|
|
630
|
-
"description": "选择文件错误触发,参数:Error"
|
|
631
|
-
}
|
|
632
|
-
],
|
|
633
|
-
"slots":[
|
|
634
|
-
{
|
|
635
|
-
"name": "default"
|
|
636
|
-
}
|
|
637
|
-
]
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
"name": "MrElUploadFiles",
|
|
641
|
-
"source": {
|
|
642
|
-
"symbol": "ElUploadFiles",
|
|
643
|
-
"module": "mrxy-yk/element-plus/components"
|
|
644
|
-
},
|
|
645
|
-
"description": "多文件上传",
|
|
646
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/UploadFiles.md",
|
|
647
|
-
"props": [
|
|
648
|
-
{
|
|
649
|
-
"name": "model-value",
|
|
650
|
-
"type": ["string", "string[]"],
|
|
651
|
-
"description": "[必填]绑定文件路径"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"name": "is-join",
|
|
655
|
-
"type": ["boolean"],
|
|
656
|
-
"description": "上传后的地址是否拼接成字符串"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
"name": "upload-class",
|
|
660
|
-
"type": ["string"],
|
|
661
|
-
"description": "自定义样式"
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
"name": "accept",
|
|
665
|
-
"type": ["string"],
|
|
666
|
-
"description": "文件类型限制"
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
"name": "width",
|
|
670
|
-
"type": ["string"],
|
|
671
|
-
"description": "组件宽"
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
"name": "height",
|
|
675
|
-
"type": ["string"],
|
|
676
|
-
"description": "组件高"
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"name": "max-size",
|
|
680
|
-
"type": ["number"],
|
|
681
|
-
"description": "文件最大体积"
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
"name": "limit",
|
|
685
|
-
"type": ["number"],
|
|
686
|
-
"description": "文件最大数量"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
"name": "drag",
|
|
690
|
-
"type": ["boolean"],
|
|
691
|
-
"description": "是否支持拖拽上传"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"name": "get-url-method",
|
|
695
|
-
"type": ["(url: string) => string"],
|
|
696
|
-
"description": "获取文件完整路径的方法,类型:Function (url: string): string"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"name": "upload-method",
|
|
700
|
-
"type": ["(file: File) => Promise<string>"],
|
|
701
|
-
"description": "文件上传方法,类型:Function (file: File): Promise<string>"
|
|
702
|
-
}
|
|
703
|
-
],
|
|
704
|
-
"events": [
|
|
705
|
-
{
|
|
706
|
-
"name": "change",
|
|
707
|
-
"type": "(file: UploadUserFile) => void",
|
|
708
|
-
"description": "选择文件触发,参数:UploadUserFile"
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
"name": "error",
|
|
712
|
-
"type": "(error: Error) => void",
|
|
713
|
-
"description": "选择文件错误触发,参数:Error"
|
|
714
|
-
}
|
|
715
|
-
],
|
|
716
|
-
"slots":[
|
|
717
|
-
{
|
|
718
|
-
"name": "default"
|
|
719
|
-
}
|
|
720
|
-
]
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
"name": "MrElUploadImages",
|
|
724
|
-
"source": {
|
|
725
|
-
"symbol": "ElUploadImages",
|
|
726
|
-
"module": "mrxy-yk/element-plus/components"
|
|
727
|
-
},
|
|
728
|
-
"description": "多图片上传",
|
|
729
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/UploadImages.md",
|
|
730
|
-
"props": [
|
|
731
|
-
{
|
|
732
|
-
"name": "model-value",
|
|
733
|
-
"type": ["string", "string[]"],
|
|
734
|
-
"description": "[必填]绑定文件路径"
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
"name": "is-join",
|
|
738
|
-
"type": ["boolean"],
|
|
739
|
-
"description": "上传后的地址是否拼接成字符串"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"name": "upload-class",
|
|
743
|
-
"type": ["string"],
|
|
744
|
-
"description": "自定义样式"
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"name": "accept",
|
|
748
|
-
"type": ["string"],
|
|
749
|
-
"description": "文件类型限制"
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
"name": "width",
|
|
753
|
-
"type": ["string"],
|
|
754
|
-
"description": "组件宽"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"name": "height",
|
|
758
|
-
"type": ["string"],
|
|
759
|
-
"description": "组件高"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "max-size",
|
|
763
|
-
"type": ["number"],
|
|
764
|
-
"description": "文件最大体积"
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
"name": "limit",
|
|
768
|
-
"type": ["number"],
|
|
769
|
-
"description": "文件最大数量"
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
"name": "get-url-method",
|
|
773
|
-
"type": ["(url: string) => string"],
|
|
774
|
-
"description": "获取文件完整路径的方法,类型:Function (url: string): string"
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
"name": "upload-method",
|
|
778
|
-
"type": ["(file: File) => Promise<string>"],
|
|
779
|
-
"description": "文件上传方法,类型:Function (file: File): Promise<string>"
|
|
780
|
-
}
|
|
781
|
-
],
|
|
782
|
-
"events": [
|
|
783
|
-
{
|
|
784
|
-
"name": "change",
|
|
785
|
-
"type": "(file: UploadUserFile) => void",
|
|
786
|
-
"description": "选择文件触发,参数:UploadUserFile"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"name": "error",
|
|
790
|
-
"type": "(error: Error) => void",
|
|
791
|
-
"description": "选择文件错误触发,参数:Error"
|
|
792
|
-
}
|
|
793
|
-
],
|
|
794
|
-
"slots":[
|
|
795
|
-
{
|
|
796
|
-
"name": "default"
|
|
797
|
-
}
|
|
798
|
-
]
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
"name": "MrElEmpty",
|
|
802
|
-
"source": {
|
|
803
|
-
"symbol": "ElEmpty",
|
|
804
|
-
"module": "mrxy-yk/element-plus/components"
|
|
805
|
-
},
|
|
806
|
-
"description": "基于el-empty组件优化得来的缺省图组件,用来显示当前内容的异常时的缺省状态。组件中提供了枚举EmptyEnum,帮助你更便捷的使用各个缺省状态",
|
|
807
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/Empty.md",
|
|
808
|
-
"props": [
|
|
809
|
-
{
|
|
810
|
-
"name": "hook",
|
|
811
|
-
"type": ["UseEmptyHooksExample"],
|
|
812
|
-
"description": "[必填]当前EmptyBox的显示状态"
|
|
813
|
-
},
|
|
814
|
-
{
|
|
815
|
-
"name": "image-size",
|
|
816
|
-
"type": ["number"],
|
|
817
|
-
"description": "图片大小"
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
"name": "empty-class",
|
|
821
|
-
"type": ["string"],
|
|
822
|
-
"description": "自定义类样式"
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
"name": "empty-style",
|
|
826
|
-
"type": ["string"],
|
|
827
|
-
"description": "自定义样式"
|
|
828
|
-
}
|
|
829
|
-
],
|
|
830
|
-
"slots":[
|
|
831
|
-
{
|
|
832
|
-
"name": "default"
|
|
833
|
-
}
|
|
834
|
-
]
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
"name": "MrElImages",
|
|
838
|
-
"source": {
|
|
839
|
-
"symbol": "ElImages",
|
|
840
|
-
"module": "mrxy-yk/element-plus/components"
|
|
841
|
-
},
|
|
842
|
-
"description": "图片展示组件",
|
|
843
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/Images.md",
|
|
844
|
-
"props": [
|
|
845
|
-
{
|
|
846
|
-
"name": "src-list",
|
|
847
|
-
"type": ["string", "string[]"],
|
|
848
|
-
"description": "[必填]绑定文件路径"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"name": "width",
|
|
852
|
-
"type": ["string"],
|
|
853
|
-
"description": "图片宽"
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"name": "height",
|
|
857
|
-
"type": ["string"],
|
|
858
|
-
"description": "图片高"
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
"name": "limit",
|
|
862
|
-
"type": ["number"],
|
|
863
|
-
"description": "文件最大数量"
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
"name": "image-preview",
|
|
867
|
-
"type": ["boolean"],
|
|
868
|
-
"description": "是否支持图片预览"
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
"name": "get-url-method",
|
|
872
|
-
"type": ["(url: string) => string"],
|
|
873
|
-
"description": "获取文件完整路径的方法。参数url是上传后的路径"
|
|
874
|
-
}
|
|
875
|
-
]
|
|
876
|
-
},
|
|
877
|
-
{
|
|
878
|
-
"name": "MrElTableColumn",
|
|
879
|
-
"source": {
|
|
880
|
-
"symbol": "ElTableColumn",
|
|
881
|
-
"module": "mrxy-yk/element-plus/components"
|
|
882
|
-
},
|
|
883
|
-
"description": "与ElTableColumn用法相同,没有值时默认显示一个字符",
|
|
884
|
-
"doc-url": "https://gitee.com/cscake/mrxy-yk/blob/master/doc/element-plus/components/TableColumn.md",
|
|
885
|
-
"props": [
|
|
886
|
-
{
|
|
887
|
-
"name": "label",
|
|
888
|
-
"type": "string"
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
"name": "index",
|
|
892
|
-
"type": ["number", "(index: number) => number"]
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"name": "type",
|
|
896
|
-
"type": ["'default' | 'selection' | 'index' | 'expand'"]
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
"name": "reserve-selection",
|
|
900
|
-
"type": ["boolean"]
|
|
901
|
-
}
|
|
902
|
-
],
|
|
903
|
-
"slots":[
|
|
904
|
-
{
|
|
905
|
-
"name": "default",
|
|
906
|
-
"type": "{ column: TableColumnCtx<T>, $index: number, row: any }"
|
|
907
|
-
}
|
|
908
|
-
]
|
|
909
|
-
}
|
|
910
|
-
],
|
|
911
|
-
"vue-directives": [
|
|
912
|
-
{
|
|
913
|
-
"name": "ref-height",
|
|
914
|
-
"source": {
|
|
915
|
-
"symbol": "RefHeight"
|
|
916
|
-
},
|
|
917
|
-
"description": "以CSS变量或回调的方式获取获取当前DOM的高度"
|
|
918
|
-
}
|
|
919
|
-
],
|
|
920
|
-
"attributes": []
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
}
|