br-dionysus 1.7.2-beta.7 → 1.7.3
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/.eslintrc.cjs +3 -2
- package/README.md +148 -98
- package/build/base.config.ts +2 -2
- package/createWebTypes.mjs +6 -6
- package/dist/br-dionysus.es.js +3053 -3051
- package/dist/br-dionysus.umd.js +8 -8
- package/dist/index.css +1 -1
- package/package.json +1 -1
- package/packages/Hook/usePackageConfig/demo.vue +1 -0
- package/packages/Hook/useTableConfig/demo.vue +12 -10
- package/packages/MDialog/docs/demo.vue +27 -12
- package/packages/MSelectTable/docs/demo.vue +1 -1
- package/packages/MSelectTableV1/docs/demo.vue +1 -0
- package/packages/MTable/docs/demo.vue +42 -32
- package/packages/MTableColumn/docs/demo.vue +1 -3
- package/packages/MTableColumn/src/MTableColumn.vue +2 -2
- package/packages/MTableColumnSet/src/MTableColumnSet.vue +7 -0
- package/packages/SkinConfig/docs/demo.vue +2 -1
- package/packages/SkinConfig/src/SkinConfig.vue +2 -2
- package/script/copyDir.js +1 -1
- package/web-types.json +1 -1
package/.eslintrc.cjs
CHANGED
|
@@ -88,7 +88,7 @@ module.exports = {
|
|
|
88
88
|
'vue/use-v-on-exact': 'error',
|
|
89
89
|
// 强制执行有效的nextTick函数调用
|
|
90
90
|
'vue/valid-next-tick': 'error',
|
|
91
|
-
'vue/valid-attribute-name': '
|
|
91
|
+
'vue/valid-attribute-name': 'warn',
|
|
92
92
|
'vue/return-in-emits-validator': 'warn',
|
|
93
93
|
// template必须有内容
|
|
94
94
|
'vue/valid-template-root': 'error',
|
|
@@ -105,7 +105,8 @@ module.exports = {
|
|
|
105
105
|
'vue/valid-v-once': 'error',
|
|
106
106
|
'vue/valid-v-pre': 'error',
|
|
107
107
|
'vue/valid-v-show': 'error',
|
|
108
|
-
|
|
108
|
+
// 执行有效v-slot指令 标记,关闭此规则,组件需允许非法操作
|
|
109
|
+
'vue/valid-v-slot': 'off',
|
|
109
110
|
'vue/valid-v-text': 'error',
|
|
110
111
|
'vue/no-parsing-error': [
|
|
111
112
|
2, {
|
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<div>
|
|
49
49
|
<p>弹窗</p>
|
|
50
50
|
<el-button @click="open">默认</el-button>
|
|
51
|
-
<
|
|
51
|
+
<MDialog
|
|
52
52
|
v-model="dialogVisible"
|
|
53
53
|
draggable
|
|
54
54
|
title="这是标题"
|
|
@@ -67,14 +67,19 @@
|
|
|
67
67
|
<template #footer>
|
|
68
68
|
<div class="dialog-footer">
|
|
69
69
|
<el-button @click="dialogVisible = false">取消</el-button>
|
|
70
|
-
<el-button
|
|
70
|
+
<el-button
|
|
71
|
+
type="primary"
|
|
72
|
+
@click="dialogVisible = false"
|
|
73
|
+
>
|
|
74
|
+
确认
|
|
75
|
+
</el-button>
|
|
71
76
|
</div>
|
|
72
77
|
</template>
|
|
73
|
-
</
|
|
78
|
+
</MDialog>
|
|
74
79
|
|
|
75
80
|
<p>设置弹窗高(弹框高度为{{ insideHeight }})</p>
|
|
76
81
|
<el-button @click="open2">设置容器高度为300px</el-button>
|
|
77
|
-
<
|
|
82
|
+
<MDialog
|
|
78
83
|
v-model="dialogVisible2"
|
|
79
84
|
draggable
|
|
80
85
|
title="这是标题"
|
|
@@ -91,19 +96,24 @@
|
|
|
91
96
|
useRemainingSpace计算高度{{ height }}
|
|
92
97
|
</p>
|
|
93
98
|
<div>这是干扰元素</div>
|
|
94
|
-
<div class="u-pa">这是绝对<br/>定位元素</div>
|
|
99
|
+
<div class="u-pa">这是绝对<br />定位元素</div>
|
|
95
100
|
</div>
|
|
96
101
|
<template #footer>
|
|
97
102
|
<div class="dialog-footer">
|
|
98
103
|
<el-button @click="dialogVisible2 = false">取消</el-button>
|
|
99
|
-
<el-button
|
|
104
|
+
<el-button
|
|
105
|
+
type="primary"
|
|
106
|
+
@click="dialogVisible2 = false"
|
|
107
|
+
>
|
|
108
|
+
确认
|
|
109
|
+
</el-button>
|
|
100
110
|
</div>
|
|
101
111
|
</template>
|
|
102
|
-
</
|
|
112
|
+
</MDialog>
|
|
103
113
|
|
|
104
114
|
<p>设置弹窗高对话框的最小高度(弹框高度为{{ insideHeight3 }})</p>
|
|
105
115
|
<el-button @click="open3">对话框的最小高度为100px</el-button>
|
|
106
|
-
<
|
|
116
|
+
<MDialog
|
|
107
117
|
v-model="dialogVisible3"
|
|
108
118
|
draggable
|
|
109
119
|
title="这是标题"
|
|
@@ -116,10 +126,15 @@
|
|
|
116
126
|
<template #footer>
|
|
117
127
|
<div class="dialog-footer">
|
|
118
128
|
<el-button @click="dialogVisible3 = false">取消</el-button>
|
|
119
|
-
<el-button
|
|
129
|
+
<el-button
|
|
130
|
+
type="primary"
|
|
131
|
+
@click="dialogVisible3 = false"
|
|
132
|
+
>
|
|
133
|
+
确认
|
|
134
|
+
</el-button>
|
|
120
135
|
</div>
|
|
121
136
|
</template>
|
|
122
|
-
</
|
|
137
|
+
</MDialog>
|
|
123
138
|
</div>
|
|
124
139
|
</template>
|
|
125
140
|
|
|
@@ -139,7 +154,7 @@ const showText = ref<boolean>(false)
|
|
|
139
154
|
|
|
140
155
|
const dialogVisible2 = ref<boolean>(false)
|
|
141
156
|
const test = (size: { width: number, height: number }) => {
|
|
142
|
-
|
|
157
|
+
console.log('size', size)
|
|
143
158
|
}
|
|
144
159
|
const { height, init } = useRemainingSpace('j-box', 'j-table')
|
|
145
160
|
const opened = () => {
|
|
@@ -153,7 +168,7 @@ const open2 = () => {
|
|
|
153
168
|
|
|
154
169
|
const dialogVisible3 = ref<boolean>(false)
|
|
155
170
|
const insideHeight3 = ref<number>(0)
|
|
156
|
-
const minHeight = ref<number>(0)
|
|
171
|
+
// const minHeight = ref<number>(0)
|
|
157
172
|
const minInsideHeight = ref<number>(0)
|
|
158
173
|
const open3 = () => {
|
|
159
174
|
minInsideHeight.value = 100
|
|
@@ -655,7 +670,7 @@ setTimeout(() => {
|
|
|
655
670
|
}, 1000)
|
|
656
671
|
|
|
657
672
|
const selected = (value: string | number | Array<number | string>) => {
|
|
658
|
-
|
|
673
|
+
console.log(value)
|
|
659
674
|
// code.value = value
|
|
660
675
|
// console.log('selected',value)
|
|
661
676
|
// // console.log('selected', row)
|
|
@@ -851,6 +866,7 @@ const clearCall = (e: any) => {
|
|
|
851
866
|
console.log('!@#@#')
|
|
852
867
|
}
|
|
853
868
|
const remoteMethod = async (query: string = '', page: Page) => {
|
|
869
|
+
console.log('query', query)
|
|
854
870
|
console.log('page', page)
|
|
855
871
|
options.value = mockData.map(item => ({
|
|
856
872
|
label: item.fileName,
|
|
@@ -1015,15 +1031,25 @@ const options: Option[] = [{
|
|
|
1015
1031
|
type="expand"
|
|
1016
1032
|
width="1"
|
|
1017
1033
|
>
|
|
1018
|
-
<template #default>
|
|
1034
|
+
<template #default="props">
|
|
1035
|
+
<h1>index{{ props.index }}</h1>
|
|
1036
|
+
<h1>$index{{ props.$index }}</h1>
|
|
1019
1037
|
<h1>测试</h1>
|
|
1020
1038
|
</template>
|
|
1021
1039
|
</MTableColumn>
|
|
1022
|
-
<
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1040
|
+
<el-table-column
|
|
1041
|
+
prop="name"
|
|
1042
|
+
label="名称"
|
|
1043
|
+
>
|
|
1044
|
+
<el-table-column
|
|
1045
|
+
prop="date"
|
|
1046
|
+
label="时间"
|
|
1047
|
+
></el-table-column>
|
|
1048
|
+
<el-table-column
|
|
1049
|
+
prop="address"
|
|
1050
|
+
label="地址"
|
|
1051
|
+
></el-table-column>
|
|
1052
|
+
</el-table-column>
|
|
1027
1053
|
<MTableColumn
|
|
1028
1054
|
v-for="item in tableTitle"
|
|
1029
1055
|
:key="item.prop"
|
|
@@ -1082,9 +1108,9 @@ const privateExpandChange = (row: any, expandedRows: any[]) => {
|
|
|
1082
1108
|
console.log('expandedRows', expandedRows)
|
|
1083
1109
|
}
|
|
1084
1110
|
|
|
1085
|
-
const test = (data: any) => {
|
|
1086
|
-
|
|
1087
|
-
}
|
|
1111
|
+
// const test = (data: any) => {
|
|
1112
|
+
// console.log('data', data)
|
|
1113
|
+
// }
|
|
1088
1114
|
|
|
1089
1115
|
const tableData = ref<any[]>([])
|
|
1090
1116
|
const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
|
|
@@ -1093,37 +1119,37 @@ const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig(
|
|
|
1093
1119
|
minWidth: 200,
|
|
1094
1120
|
fixed: 'left'
|
|
1095
1121
|
}, {
|
|
1096
|
-
label: '
|
|
1122
|
+
label: '时间',
|
|
1097
1123
|
prop: 'date',
|
|
1098
1124
|
minWidth: 200
|
|
1099
1125
|
}, {
|
|
1100
|
-
label: '
|
|
1126
|
+
label: '地址',
|
|
1101
1127
|
prop: 'address',
|
|
1102
1128
|
minWidth: 200
|
|
1103
1129
|
}, {
|
|
1104
|
-
label: '
|
|
1130
|
+
label: '名称',
|
|
1105
1131
|
prop: 'name',
|
|
1106
1132
|
minWidth: 200
|
|
1107
1133
|
}], tableData)
|
|
1108
1134
|
|
|
1109
|
-
const childTableTitle: TableTitle[] = [{
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
}, {
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
}, {
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
}, {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
}]
|
|
1135
|
+
// const childTableTitle: TableTitle[] = [{
|
|
1136
|
+
// label: '序号',
|
|
1137
|
+
// prop: 'sn',
|
|
1138
|
+
// minWidth: 200,
|
|
1139
|
+
// fixed: 'left'
|
|
1140
|
+
// }, {
|
|
1141
|
+
// label: '时间',
|
|
1142
|
+
// prop: 'date',
|
|
1143
|
+
// minWidth: 200
|
|
1144
|
+
// }, {
|
|
1145
|
+
// label: '地址',
|
|
1146
|
+
// prop: 'address',
|
|
1147
|
+
// minWidth: 200
|
|
1148
|
+
// }, {
|
|
1149
|
+
// label: '名称',
|
|
1150
|
+
// prop: 'name',
|
|
1151
|
+
// minWidth: 200
|
|
1152
|
+
// }]
|
|
1127
1153
|
|
|
1128
1154
|
tableData.value = [{
|
|
1129
1155
|
id: 1,
|
|
@@ -1147,14 +1173,14 @@ tableData.value = [{
|
|
|
1147
1173
|
date: '2016-05-02',
|
|
1148
1174
|
name: 'Tom21',
|
|
1149
1175
|
address: 'No. 189, Grove St, Los Angeles',
|
|
1150
|
-
tag: 'Office'
|
|
1176
|
+
tag: 'Office'
|
|
1151
1177
|
}, {
|
|
1152
1178
|
id: 22,
|
|
1153
1179
|
sn: 2,
|
|
1154
1180
|
date: '2016-05-02',
|
|
1155
1181
|
name: 'Tom22',
|
|
1156
1182
|
address: 'No. 189, Grove St, Los Angeles',
|
|
1157
|
-
tag: 'Office'
|
|
1183
|
+
tag: 'Office'
|
|
1158
1184
|
}]
|
|
1159
1185
|
}, {
|
|
1160
1186
|
id: 3,
|
|
@@ -1234,9 +1260,7 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
|
|
|
1234
1260
|
|
|
1235
1261
|
<template>
|
|
1236
1262
|
<div class="g-box">
|
|
1237
|
-
<el-table
|
|
1238
|
-
:data="tableData"
|
|
1239
|
-
>
|
|
1263
|
+
<el-table :data="tableData">
|
|
1240
1264
|
<MTableColumn
|
|
1241
1265
|
v-for="item in tableTitle"
|
|
1242
1266
|
:key="item.prop"
|
|
@@ -1462,7 +1486,8 @@ const tableConfig = ref({
|
|
|
1462
1486
|
<ul>
|
|
1463
1487
|
<li
|
|
1464
1488
|
class="u-li"
|
|
1465
|
-
v-for="item in list"
|
|
1489
|
+
v-for="(item, index) in list"
|
|
1490
|
+
:key="index"
|
|
1466
1491
|
:class="item.className"
|
|
1467
1492
|
>
|
|
1468
1493
|
{{ item.name }}
|
|
@@ -2324,7 +2349,7 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
2324
2349
|
<div>
|
|
2325
2350
|
<p>弹窗</p>
|
|
2326
2351
|
<el-button @click="open">默认</el-button>
|
|
2327
|
-
<
|
|
2352
|
+
<MDialog
|
|
2328
2353
|
v-model="dialogVisible"
|
|
2329
2354
|
draggable
|
|
2330
2355
|
title="这是标题"
|
|
@@ -2343,14 +2368,19 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
2343
2368
|
<template #footer>
|
|
2344
2369
|
<div class="dialog-footer">
|
|
2345
2370
|
<el-button @click="dialogVisible = false">取消</el-button>
|
|
2346
|
-
<el-button
|
|
2371
|
+
<el-button
|
|
2372
|
+
type="primary"
|
|
2373
|
+
@click="dialogVisible = false"
|
|
2374
|
+
>
|
|
2375
|
+
确认
|
|
2376
|
+
</el-button>
|
|
2347
2377
|
</div>
|
|
2348
2378
|
</template>
|
|
2349
|
-
</
|
|
2379
|
+
</MDialog>
|
|
2350
2380
|
|
|
2351
2381
|
<p>设置弹窗高(弹框高度为{{ insideHeight }})</p>
|
|
2352
2382
|
<el-button @click="open2">设置容器高度为300px</el-button>
|
|
2353
|
-
<
|
|
2383
|
+
<MDialog
|
|
2354
2384
|
v-model="dialogVisible2"
|
|
2355
2385
|
draggable
|
|
2356
2386
|
title="这是标题"
|
|
@@ -2367,19 +2397,24 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
2367
2397
|
useRemainingSpace计算高度{{ height }}
|
|
2368
2398
|
</p>
|
|
2369
2399
|
<div>这是干扰元素</div>
|
|
2370
|
-
<div class="u-pa">这是绝对<br/>定位元素</div>
|
|
2400
|
+
<div class="u-pa">这是绝对<br />定位元素</div>
|
|
2371
2401
|
</div>
|
|
2372
2402
|
<template #footer>
|
|
2373
2403
|
<div class="dialog-footer">
|
|
2374
2404
|
<el-button @click="dialogVisible2 = false">取消</el-button>
|
|
2375
|
-
<el-button
|
|
2405
|
+
<el-button
|
|
2406
|
+
type="primary"
|
|
2407
|
+
@click="dialogVisible2 = false"
|
|
2408
|
+
>
|
|
2409
|
+
确认
|
|
2410
|
+
</el-button>
|
|
2376
2411
|
</div>
|
|
2377
2412
|
</template>
|
|
2378
|
-
</
|
|
2413
|
+
</MDialog>
|
|
2379
2414
|
|
|
2380
2415
|
<p>设置弹窗高对话框的最小高度(弹框高度为{{ insideHeight3 }})</p>
|
|
2381
2416
|
<el-button @click="open3">对话框的最小高度为100px</el-button>
|
|
2382
|
-
<
|
|
2417
|
+
<MDialog
|
|
2383
2418
|
v-model="dialogVisible3"
|
|
2384
2419
|
draggable
|
|
2385
2420
|
title="这是标题"
|
|
@@ -2392,10 +2427,15 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
2392
2427
|
<template #footer>
|
|
2393
2428
|
<div class="dialog-footer">
|
|
2394
2429
|
<el-button @click="dialogVisible3 = false">取消</el-button>
|
|
2395
|
-
<el-button
|
|
2430
|
+
<el-button
|
|
2431
|
+
type="primary"
|
|
2432
|
+
@click="dialogVisible3 = false"
|
|
2433
|
+
>
|
|
2434
|
+
确认
|
|
2435
|
+
</el-button>
|
|
2396
2436
|
</div>
|
|
2397
2437
|
</template>
|
|
2398
|
-
</
|
|
2438
|
+
</MDialog>
|
|
2399
2439
|
</div>
|
|
2400
2440
|
</template>
|
|
2401
2441
|
|
|
@@ -2415,7 +2455,7 @@ const showText = ref<boolean>(false)
|
|
|
2415
2455
|
|
|
2416
2456
|
const dialogVisible2 = ref<boolean>(false)
|
|
2417
2457
|
const test = (size: { width: number, height: number }) => {
|
|
2418
|
-
|
|
2458
|
+
console.log('size', size)
|
|
2419
2459
|
}
|
|
2420
2460
|
const { height, init } = useRemainingSpace('j-box', 'j-table')
|
|
2421
2461
|
const opened = () => {
|
|
@@ -2429,7 +2469,7 @@ const open2 = () => {
|
|
|
2429
2469
|
|
|
2430
2470
|
const dialogVisible3 = ref<boolean>(false)
|
|
2431
2471
|
const insideHeight3 = ref<number>(0)
|
|
2432
|
-
const minHeight = ref<number>(0)
|
|
2472
|
+
// const minHeight = ref<number>(0)
|
|
2433
2473
|
const minInsideHeight = ref<number>(0)
|
|
2434
2474
|
const open3 = () => {
|
|
2435
2475
|
minInsideHeight.value = 100
|
|
@@ -2931,7 +2971,7 @@ setTimeout(() => {
|
|
|
2931
2971
|
}, 1000)
|
|
2932
2972
|
|
|
2933
2973
|
const selected = (value: string | number | Array<number | string>) => {
|
|
2934
|
-
|
|
2974
|
+
console.log(value)
|
|
2935
2975
|
// code.value = value
|
|
2936
2976
|
// console.log('selected',value)
|
|
2937
2977
|
// // console.log('selected', row)
|
|
@@ -3127,6 +3167,7 @@ const clearCall = (e: any) => {
|
|
|
3127
3167
|
console.log('!@#@#')
|
|
3128
3168
|
}
|
|
3129
3169
|
const remoteMethod = async (query: string = '', page: Page) => {
|
|
3170
|
+
console.log('query', query)
|
|
3130
3171
|
console.log('page', page)
|
|
3131
3172
|
options.value = mockData.map(item => ({
|
|
3132
3173
|
label: item.fileName,
|
|
@@ -3291,15 +3332,25 @@ const options: Option[] = [{
|
|
|
3291
3332
|
type="expand"
|
|
3292
3333
|
width="1"
|
|
3293
3334
|
>
|
|
3294
|
-
<template #default>
|
|
3335
|
+
<template #default="props">
|
|
3336
|
+
<h1>index{{ props.index }}</h1>
|
|
3337
|
+
<h1>$index{{ props.$index }}</h1>
|
|
3295
3338
|
<h1>测试</h1>
|
|
3296
3339
|
</template>
|
|
3297
3340
|
</MTableColumn>
|
|
3298
|
-
<
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3341
|
+
<el-table-column
|
|
3342
|
+
prop="name"
|
|
3343
|
+
label="名称"
|
|
3344
|
+
>
|
|
3345
|
+
<el-table-column
|
|
3346
|
+
prop="date"
|
|
3347
|
+
label="时间"
|
|
3348
|
+
></el-table-column>
|
|
3349
|
+
<el-table-column
|
|
3350
|
+
prop="address"
|
|
3351
|
+
label="地址"
|
|
3352
|
+
></el-table-column>
|
|
3353
|
+
</el-table-column>
|
|
3303
3354
|
<MTableColumn
|
|
3304
3355
|
v-for="item in tableTitle"
|
|
3305
3356
|
:key="item.prop"
|
|
@@ -3358,9 +3409,9 @@ const privateExpandChange = (row: any, expandedRows: any[]) => {
|
|
|
3358
3409
|
console.log('expandedRows', expandedRows)
|
|
3359
3410
|
}
|
|
3360
3411
|
|
|
3361
|
-
const test = (data: any) => {
|
|
3362
|
-
|
|
3363
|
-
}
|
|
3412
|
+
// const test = (data: any) => {
|
|
3413
|
+
// console.log('data', data)
|
|
3414
|
+
// }
|
|
3364
3415
|
|
|
3365
3416
|
const tableData = ref<any[]>([])
|
|
3366
3417
|
const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
|
|
@@ -3369,37 +3420,37 @@ const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig(
|
|
|
3369
3420
|
minWidth: 200,
|
|
3370
3421
|
fixed: 'left'
|
|
3371
3422
|
}, {
|
|
3372
|
-
label: '
|
|
3423
|
+
label: '时间',
|
|
3373
3424
|
prop: 'date',
|
|
3374
3425
|
minWidth: 200
|
|
3375
3426
|
}, {
|
|
3376
|
-
label: '
|
|
3427
|
+
label: '地址',
|
|
3377
3428
|
prop: 'address',
|
|
3378
3429
|
minWidth: 200
|
|
3379
3430
|
}, {
|
|
3380
|
-
label: '
|
|
3431
|
+
label: '名称',
|
|
3381
3432
|
prop: 'name',
|
|
3382
3433
|
minWidth: 200
|
|
3383
3434
|
}], tableData)
|
|
3384
3435
|
|
|
3385
|
-
const childTableTitle: TableTitle[] = [{
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
}, {
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
}, {
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
}, {
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
}]
|
|
3436
|
+
// const childTableTitle: TableTitle[] = [{
|
|
3437
|
+
// label: '序号',
|
|
3438
|
+
// prop: 'sn',
|
|
3439
|
+
// minWidth: 200,
|
|
3440
|
+
// fixed: 'left'
|
|
3441
|
+
// }, {
|
|
3442
|
+
// label: '时间',
|
|
3443
|
+
// prop: 'date',
|
|
3444
|
+
// minWidth: 200
|
|
3445
|
+
// }, {
|
|
3446
|
+
// label: '地址',
|
|
3447
|
+
// prop: 'address',
|
|
3448
|
+
// minWidth: 200
|
|
3449
|
+
// }, {
|
|
3450
|
+
// label: '名称',
|
|
3451
|
+
// prop: 'name',
|
|
3452
|
+
// minWidth: 200
|
|
3453
|
+
// }]
|
|
3403
3454
|
|
|
3404
3455
|
tableData.value = [{
|
|
3405
3456
|
id: 1,
|
|
@@ -3423,14 +3474,14 @@ tableData.value = [{
|
|
|
3423
3474
|
date: '2016-05-02',
|
|
3424
3475
|
name: 'Tom21',
|
|
3425
3476
|
address: 'No. 189, Grove St, Los Angeles',
|
|
3426
|
-
tag: 'Office'
|
|
3477
|
+
tag: 'Office'
|
|
3427
3478
|
}, {
|
|
3428
3479
|
id: 22,
|
|
3429
3480
|
sn: 2,
|
|
3430
3481
|
date: '2016-05-02',
|
|
3431
3482
|
name: 'Tom22',
|
|
3432
3483
|
address: 'No. 189, Grove St, Los Angeles',
|
|
3433
|
-
tag: 'Office'
|
|
3484
|
+
tag: 'Office'
|
|
3434
3485
|
}]
|
|
3435
3486
|
}, {
|
|
3436
3487
|
id: 3,
|
|
@@ -3510,9 +3561,7 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
|
|
|
3510
3561
|
|
|
3511
3562
|
<template>
|
|
3512
3563
|
<div class="g-box">
|
|
3513
|
-
<el-table
|
|
3514
|
-
:data="tableData"
|
|
3515
|
-
>
|
|
3564
|
+
<el-table :data="tableData">
|
|
3516
3565
|
<MTableColumn
|
|
3517
3566
|
v-for="item in tableTitle"
|
|
3518
3567
|
:key="item.prop"
|
|
@@ -3738,7 +3787,8 @@ const tableConfig = ref({
|
|
|
3738
3787
|
<ul>
|
|
3739
3788
|
<li
|
|
3740
3789
|
class="u-li"
|
|
3741
|
-
v-for="item in list"
|
|
3790
|
+
v-for="(item, index) in list"
|
|
3791
|
+
:key="index"
|
|
3742
3792
|
:class="item.className"
|
|
3743
3793
|
>
|
|
3744
3794
|
{{ item.name }}
|
package/build/base.config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolve } from 'path'
|
|
2
2
|
import { defineConfig } from 'vite'
|
|
3
|
-
|
|
3
|
+
import eslint from 'vite-plugin-eslint'
|
|
4
4
|
import vue from '@vitejs/plugin-vue'
|
|
5
5
|
import Markdown from 'vite-plugin-md'
|
|
6
6
|
import VueDevTools from 'vite-plugin-vue-devtools'
|
|
@@ -17,7 +17,7 @@ export default defineConfig({
|
|
|
17
17
|
vue({
|
|
18
18
|
include: [/\.vue$/, /\.md$/]
|
|
19
19
|
}),
|
|
20
|
-
|
|
20
|
+
eslint(),
|
|
21
21
|
Markdown(),
|
|
22
22
|
VueDevTools(),
|
|
23
23
|
{
|
package/createWebTypes.mjs
CHANGED
|
@@ -138,7 +138,7 @@ const createWebTypes = (vueComponents = []) => {
|
|
|
138
138
|
contributions: {
|
|
139
139
|
html: {
|
|
140
140
|
'vue-components': vueComponents,
|
|
141
|
-
attributes
|
|
141
|
+
attributes
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -178,11 +178,11 @@ const main = () => {
|
|
|
178
178
|
symbol: fileName
|
|
179
179
|
},
|
|
180
180
|
description: `这是一个${fileName}`,
|
|
181
|
-
docUrl
|
|
181
|
+
docUrl,
|
|
182
182
|
props: props.map(node => ({
|
|
183
183
|
name: node.name,
|
|
184
184
|
description: node.jsDoc,
|
|
185
|
-
docUrl
|
|
185
|
+
docUrl,
|
|
186
186
|
type: [
|
|
187
187
|
`${node.type}`
|
|
188
188
|
]
|
|
@@ -191,7 +191,7 @@ const main = () => {
|
|
|
191
191
|
events: events.map(node => ({
|
|
192
192
|
name: node.name,
|
|
193
193
|
description: node.jsDoc,
|
|
194
|
-
docUrl
|
|
194
|
+
docUrl,
|
|
195
195
|
type: [
|
|
196
196
|
`${node.type}`
|
|
197
197
|
]
|
|
@@ -213,7 +213,7 @@ const main = () => {
|
|
|
213
213
|
|
|
214
214
|
const filePath = item.fullPath
|
|
215
215
|
const fileContent = fs.readFileSync(filePath, 'utf-8')
|
|
216
|
-
const {descriptor} = parse(fileContent)
|
|
216
|
+
const { descriptor } = parse(fileContent)
|
|
217
217
|
const fileName = item.name.substring(0, item.name.lastIndexOf('.vue'))
|
|
218
218
|
if (!descriptor.scriptSetup) continue
|
|
219
219
|
const { props, events } = analyzeScriptPart(descriptor.scriptSetup.content)
|
|
@@ -235,7 +235,7 @@ const main = () => {
|
|
|
235
235
|
|
|
236
236
|
const filePath = item.fullPath
|
|
237
237
|
const fileContent = fs.readFileSync(filePath, 'utf-8')
|
|
238
|
-
const {descriptor} = parse(fileContent)
|
|
238
|
+
const { descriptor } = parse(fileContent)
|
|
239
239
|
const fileName = item.name.substring(0, item.name.lastIndexOf('.vue'))
|
|
240
240
|
if (!descriptor.scriptSetup) continue
|
|
241
241
|
const { props, events } = analyzeScriptPart(descriptor.scriptSetup.content)
|