@wlydfe/pro-ui 0.2.20 → 0.2.23
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 +1 -0
- package/es/components/page/index.d.ts +48 -3
- package/es/components/page/src/index.vue.d.ts +16 -1
- package/es/components/search/index.d.ts +19 -0
- package/es/components/search/src/index.vue.d.ts +3 -0
- package/es/components/search/src/index.vue2.mjs +83 -57
- package/es/components/search/src/type.d.ts +6 -0
- package/es/components/table/src/table-action-bar.vue.d.ts +46 -2
- package/es/components/table/src/table-action-bar.vue2.mjs +7 -6
- package/es/components/table/src/type.d.ts +8 -2
- package/es/index.css +9 -9
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.js +91 -64
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +91 -64
- package/lib/components/page/index.d.ts +48 -3
- package/lib/components/page/src/index.vue.d.ts +16 -1
- package/lib/components/search/index.d.ts +19 -0
- package/lib/components/search/src/index.vue.d.ts +3 -0
- package/lib/components/search/src/index.vue2.js +82 -56
- package/lib/components/search/src/type.d.ts +6 -0
- package/lib/components/table/src/table-action-bar.vue.d.ts +46 -2
- package/lib/components/table/src/table-action-bar.vue2.js +7 -6
- package/lib/components/table/src/type.d.ts +8 -2
- package/lib/{page.css → display-item.css} +14 -14
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,6 +124,7 @@ export declare const PlusPage: {
|
|
|
124
124
|
retractText: string;
|
|
125
125
|
expandText: string;
|
|
126
126
|
searchLoading: boolean;
|
|
127
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
127
128
|
needValidate: boolean;
|
|
128
129
|
}> & Omit<{
|
|
129
130
|
readonly columns: PlusColumn[];
|
|
@@ -143,6 +144,7 @@ export declare const PlusPage: {
|
|
|
143
144
|
readonly retractText: string;
|
|
144
145
|
readonly expandText: string;
|
|
145
146
|
readonly searchLoading: boolean;
|
|
147
|
+
readonly buttonOrder: ("search" | "reset" | "fold")[];
|
|
146
148
|
readonly needValidate: boolean;
|
|
147
149
|
readonly labelPosition?: "top" | "right" | "left" | undefined;
|
|
148
150
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -231,6 +233,10 @@ export declare const PlusPage: {
|
|
|
231
233
|
type: PropType<boolean>;
|
|
232
234
|
default: boolean;
|
|
233
235
|
};
|
|
236
|
+
buttonOrder: {
|
|
237
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
238
|
+
default: () => string[];
|
|
239
|
+
};
|
|
234
240
|
needValidate: {
|
|
235
241
|
type: PropType<boolean>;
|
|
236
242
|
default: boolean;
|
|
@@ -241,7 +247,7 @@ export declare const PlusPage: {
|
|
|
241
247
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
242
248
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
243
249
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
244
|
-
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate">;
|
|
250
|
+
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "buttonOrder" | "needValidate">;
|
|
245
251
|
$attrs: {
|
|
246
252
|
[x: string]: unknown;
|
|
247
253
|
};
|
|
@@ -336,6 +342,10 @@ export declare const PlusPage: {
|
|
|
336
342
|
type: PropType<boolean>;
|
|
337
343
|
default: boolean;
|
|
338
344
|
};
|
|
345
|
+
buttonOrder: {
|
|
346
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
347
|
+
default: () => string[];
|
|
348
|
+
};
|
|
339
349
|
needValidate: {
|
|
340
350
|
type: PropType<boolean>;
|
|
341
351
|
default: boolean;
|
|
@@ -1540,6 +1550,7 @@ export declare const PlusPage: {
|
|
|
1540
1550
|
retractText: string;
|
|
1541
1551
|
expandText: string;
|
|
1542
1552
|
searchLoading: boolean;
|
|
1553
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
1543
1554
|
needValidate: boolean;
|
|
1544
1555
|
}, {}, string, {}> & {
|
|
1545
1556
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -1642,6 +1653,10 @@ export declare const PlusPage: {
|
|
|
1642
1653
|
type: PropType<boolean>;
|
|
1643
1654
|
default: boolean;
|
|
1644
1655
|
};
|
|
1656
|
+
buttonOrder: {
|
|
1657
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
1658
|
+
default: () => string[];
|
|
1659
|
+
};
|
|
1645
1660
|
needValidate: {
|
|
1646
1661
|
type: PropType<boolean>;
|
|
1647
1662
|
default: boolean;
|
|
@@ -4906,6 +4921,7 @@ export declare const PlusPage: {
|
|
|
4906
4921
|
retractText: string;
|
|
4907
4922
|
expandText: string;
|
|
4908
4923
|
searchLoading: boolean;
|
|
4924
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
4909
4925
|
needValidate: boolean;
|
|
4910
4926
|
}> & Omit<{
|
|
4911
4927
|
readonly columns: PlusColumn[];
|
|
@@ -4925,6 +4941,7 @@ export declare const PlusPage: {
|
|
|
4925
4941
|
readonly retractText: string;
|
|
4926
4942
|
readonly expandText: string;
|
|
4927
4943
|
readonly searchLoading: boolean;
|
|
4944
|
+
readonly buttonOrder: ("search" | "reset" | "fold")[];
|
|
4928
4945
|
readonly needValidate: boolean;
|
|
4929
4946
|
readonly labelPosition?: "top" | "right" | "left" | undefined;
|
|
4930
4947
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -5013,6 +5030,10 @@ export declare const PlusPage: {
|
|
|
5013
5030
|
type: PropType<boolean>;
|
|
5014
5031
|
default: boolean;
|
|
5015
5032
|
};
|
|
5033
|
+
buttonOrder: {
|
|
5034
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
5035
|
+
default: () => string[];
|
|
5036
|
+
};
|
|
5016
5037
|
needValidate: {
|
|
5017
5038
|
type: PropType<boolean>;
|
|
5018
5039
|
default: boolean;
|
|
@@ -5023,7 +5044,7 @@ export declare const PlusPage: {
|
|
|
5023
5044
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
5024
5045
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
5025
5046
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
5026
|
-
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate">;
|
|
5047
|
+
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "buttonOrder" | "needValidate">;
|
|
5027
5048
|
$attrs: {
|
|
5028
5049
|
[x: string]: unknown;
|
|
5029
5050
|
};
|
|
@@ -5118,6 +5139,10 @@ export declare const PlusPage: {
|
|
|
5118
5139
|
type: PropType<boolean>;
|
|
5119
5140
|
default: boolean;
|
|
5120
5141
|
};
|
|
5142
|
+
buttonOrder: {
|
|
5143
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
5144
|
+
default: () => string[];
|
|
5145
|
+
};
|
|
5121
5146
|
needValidate: {
|
|
5122
5147
|
type: PropType<boolean>;
|
|
5123
5148
|
default: boolean;
|
|
@@ -6322,6 +6347,7 @@ export declare const PlusPage: {
|
|
|
6322
6347
|
retractText: string;
|
|
6323
6348
|
expandText: string;
|
|
6324
6349
|
searchLoading: boolean;
|
|
6350
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
6325
6351
|
needValidate: boolean;
|
|
6326
6352
|
}, {}, string, {}> & {
|
|
6327
6353
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -6424,6 +6450,10 @@ export declare const PlusPage: {
|
|
|
6424
6450
|
type: PropType<boolean>;
|
|
6425
6451
|
default: boolean;
|
|
6426
6452
|
};
|
|
6453
|
+
buttonOrder: {
|
|
6454
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
6455
|
+
default: () => string[];
|
|
6456
|
+
};
|
|
6427
6457
|
needValidate: {
|
|
6428
6458
|
type: PropType<boolean>;
|
|
6429
6459
|
default: boolean;
|
|
@@ -9591,6 +9621,7 @@ export declare const PlusPage: {
|
|
|
9591
9621
|
retractText: string;
|
|
9592
9622
|
expandText: string;
|
|
9593
9623
|
searchLoading: boolean;
|
|
9624
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
9594
9625
|
needValidate: boolean;
|
|
9595
9626
|
}> & Omit<{
|
|
9596
9627
|
readonly columns: PlusColumn[];
|
|
@@ -9610,6 +9641,7 @@ export declare const PlusPage: {
|
|
|
9610
9641
|
readonly retractText: string;
|
|
9611
9642
|
readonly expandText: string;
|
|
9612
9643
|
readonly searchLoading: boolean;
|
|
9644
|
+
readonly buttonOrder: ("search" | "reset" | "fold")[];
|
|
9613
9645
|
readonly needValidate: boolean;
|
|
9614
9646
|
readonly labelPosition?: "top" | "right" | "left" | undefined;
|
|
9615
9647
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -9698,6 +9730,10 @@ export declare const PlusPage: {
|
|
|
9698
9730
|
type: PropType<boolean>;
|
|
9699
9731
|
default: boolean;
|
|
9700
9732
|
};
|
|
9733
|
+
buttonOrder: {
|
|
9734
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
9735
|
+
default: () => string[];
|
|
9736
|
+
};
|
|
9701
9737
|
needValidate: {
|
|
9702
9738
|
type: PropType<boolean>;
|
|
9703
9739
|
default: boolean;
|
|
@@ -9708,7 +9744,7 @@ export declare const PlusPage: {
|
|
|
9708
9744
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
9709
9745
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
9710
9746
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
9711
|
-
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate">;
|
|
9747
|
+
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "buttonOrder" | "needValidate">;
|
|
9712
9748
|
$attrs: {
|
|
9713
9749
|
[x: string]: unknown;
|
|
9714
9750
|
};
|
|
@@ -9803,6 +9839,10 @@ export declare const PlusPage: {
|
|
|
9803
9839
|
type: PropType<boolean>;
|
|
9804
9840
|
default: boolean;
|
|
9805
9841
|
};
|
|
9842
|
+
buttonOrder: {
|
|
9843
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
9844
|
+
default: () => string[];
|
|
9845
|
+
};
|
|
9806
9846
|
needValidate: {
|
|
9807
9847
|
type: PropType<boolean>;
|
|
9808
9848
|
default: boolean;
|
|
@@ -11007,6 +11047,7 @@ export declare const PlusPage: {
|
|
|
11007
11047
|
retractText: string;
|
|
11008
11048
|
expandText: string;
|
|
11009
11049
|
searchLoading: boolean;
|
|
11050
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
11010
11051
|
needValidate: boolean;
|
|
11011
11052
|
}, {}, string, {}> & {
|
|
11012
11053
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -11109,6 +11150,10 @@ export declare const PlusPage: {
|
|
|
11109
11150
|
type: PropType<boolean>;
|
|
11110
11151
|
default: boolean;
|
|
11111
11152
|
};
|
|
11153
|
+
buttonOrder: {
|
|
11154
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
11155
|
+
default: () => string[];
|
|
11156
|
+
};
|
|
11112
11157
|
needValidate: {
|
|
11113
11158
|
type: PropType<boolean>;
|
|
11114
11159
|
default: boolean;
|
|
@@ -149,6 +149,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
149
149
|
retractText: string;
|
|
150
150
|
expandText: string;
|
|
151
151
|
searchLoading: boolean;
|
|
152
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
152
153
|
needValidate: boolean;
|
|
153
154
|
}> & Omit<{
|
|
154
155
|
readonly columns: PlusColumn[];
|
|
@@ -168,6 +169,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
168
169
|
readonly retractText: string;
|
|
169
170
|
readonly expandText: string;
|
|
170
171
|
readonly searchLoading: boolean;
|
|
172
|
+
readonly buttonOrder: ("search" | "reset" | "fold")[];
|
|
171
173
|
readonly needValidate: boolean;
|
|
172
174
|
readonly labelPosition?: "top" | "right" | "left" | undefined;
|
|
173
175
|
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
@@ -256,6 +258,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
256
258
|
type: PropType<boolean>;
|
|
257
259
|
default: boolean;
|
|
258
260
|
};
|
|
261
|
+
buttonOrder: {
|
|
262
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
263
|
+
default: () => string[];
|
|
264
|
+
};
|
|
259
265
|
needValidate: {
|
|
260
266
|
type: PropType<boolean>;
|
|
261
267
|
default: boolean;
|
|
@@ -266,7 +272,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
266
272
|
onReset?: ((values: FieldValues) => any) | undefined;
|
|
267
273
|
onSearch?: ((values: FieldValues) => any) | undefined;
|
|
268
274
|
onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
|
|
269
|
-
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate">;
|
|
275
|
+
}, "columns" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasSearchIcon" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "buttonOrder" | "needValidate">;
|
|
270
276
|
$attrs: {
|
|
271
277
|
[x: string]: unknown;
|
|
272
278
|
};
|
|
@@ -361,6 +367,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
361
367
|
type: PropType<boolean>;
|
|
362
368
|
default: boolean;
|
|
363
369
|
};
|
|
370
|
+
buttonOrder: {
|
|
371
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
372
|
+
default: () => string[];
|
|
373
|
+
};
|
|
364
374
|
needValidate: {
|
|
365
375
|
type: PropType<boolean>;
|
|
366
376
|
default: boolean;
|
|
@@ -1573,6 +1583,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1573
1583
|
retractText: string;
|
|
1574
1584
|
expandText: string;
|
|
1575
1585
|
searchLoading: boolean;
|
|
1586
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
1576
1587
|
needValidate: boolean;
|
|
1577
1588
|
}, {}, string, {}> & {
|
|
1578
1589
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -1675,6 +1686,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1675
1686
|
type: PropType<boolean>;
|
|
1676
1687
|
default: boolean;
|
|
1677
1688
|
};
|
|
1689
|
+
buttonOrder: {
|
|
1690
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
1691
|
+
default: () => string[];
|
|
1692
|
+
};
|
|
1678
1693
|
needValidate: {
|
|
1679
1694
|
type: PropType<boolean>;
|
|
1680
1695
|
default: boolean;
|
|
@@ -91,6 +91,10 @@ export declare const PlusSearch: {
|
|
|
91
91
|
type: PropType<boolean>;
|
|
92
92
|
default: boolean;
|
|
93
93
|
};
|
|
94
|
+
buttonOrder: {
|
|
95
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
96
|
+
default: () => string[];
|
|
97
|
+
};
|
|
94
98
|
needValidate: {
|
|
95
99
|
type: PropType<boolean>;
|
|
96
100
|
default: boolean;
|
|
@@ -1357,6 +1361,10 @@ export declare const PlusSearch: {
|
|
|
1357
1361
|
type: PropType<boolean>;
|
|
1358
1362
|
default: boolean;
|
|
1359
1363
|
};
|
|
1364
|
+
buttonOrder: {
|
|
1365
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
1366
|
+
default: () => string[];
|
|
1367
|
+
};
|
|
1360
1368
|
needValidate: {
|
|
1361
1369
|
type: PropType<boolean>;
|
|
1362
1370
|
default: boolean;
|
|
@@ -1386,6 +1394,7 @@ export declare const PlusSearch: {
|
|
|
1386
1394
|
retractText: string;
|
|
1387
1395
|
expandText: string;
|
|
1388
1396
|
searchLoading: boolean;
|
|
1397
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
1389
1398
|
needValidate: boolean;
|
|
1390
1399
|
}, true, {}, {}, {
|
|
1391
1400
|
P: {};
|
|
@@ -1475,6 +1484,10 @@ export declare const PlusSearch: {
|
|
|
1475
1484
|
type: PropType<boolean>;
|
|
1476
1485
|
default: boolean;
|
|
1477
1486
|
};
|
|
1487
|
+
buttonOrder: {
|
|
1488
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
1489
|
+
default: () => string[];
|
|
1490
|
+
};
|
|
1478
1491
|
needValidate: {
|
|
1479
1492
|
type: PropType<boolean>;
|
|
1480
1493
|
default: boolean;
|
|
@@ -2673,6 +2686,7 @@ export declare const PlusSearch: {
|
|
|
2673
2686
|
retractText: string;
|
|
2674
2687
|
expandText: string;
|
|
2675
2688
|
searchLoading: boolean;
|
|
2689
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
2676
2690
|
needValidate: boolean;
|
|
2677
2691
|
}>;
|
|
2678
2692
|
__isFragment?: undefined;
|
|
@@ -2759,6 +2773,10 @@ export declare const PlusSearch: {
|
|
|
2759
2773
|
type: PropType<boolean>;
|
|
2760
2774
|
default: boolean;
|
|
2761
2775
|
};
|
|
2776
|
+
buttonOrder: {
|
|
2777
|
+
type: PropType<("search" | "reset" | "fold")[]>;
|
|
2778
|
+
default: () => string[];
|
|
2779
|
+
};
|
|
2762
2780
|
needValidate: {
|
|
2763
2781
|
type: PropType<boolean>;
|
|
2764
2782
|
default: boolean;
|
|
@@ -3963,6 +3981,7 @@ export declare const PlusSearch: {
|
|
|
3963
3981
|
retractText: string;
|
|
3964
3982
|
expandText: string;
|
|
3965
3983
|
searchLoading: boolean;
|
|
3984
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
3966
3985
|
needValidate: boolean;
|
|
3967
3986
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3968
3987
|
$slots: Partial<Record<NonNullable<string | number>, (_: {
|
|
@@ -28,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
28
28
|
rowProps: () => {
|
|
29
29
|
gutter: number;
|
|
30
30
|
};
|
|
31
|
+
buttonOrder: () => string[];
|
|
31
32
|
colProps: () => {
|
|
32
33
|
xs: number;
|
|
33
34
|
sm: number;
|
|
@@ -1231,6 +1232,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1231
1232
|
rowProps: () => {
|
|
1232
1233
|
gutter: number;
|
|
1233
1234
|
};
|
|
1235
|
+
buttonOrder: () => string[];
|
|
1234
1236
|
colProps: () => {
|
|
1235
1237
|
xs: number;
|
|
1236
1238
|
sm: number;
|
|
@@ -1264,6 +1266,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1264
1266
|
retractText: string;
|
|
1265
1267
|
expandText: string;
|
|
1266
1268
|
searchLoading: boolean;
|
|
1269
|
+
buttonOrder: ("search" | "reset" | "fold")[];
|
|
1267
1270
|
needValidate: boolean;
|
|
1268
1271
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
1269
1272
|
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, useAttrs, computed, unref, watch, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode,
|
|
1
|
+
import { defineComponent, ref, useAttrs, computed, unref, watch, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, createVNode, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
2
|
import { PlusForm } from '../../form/index.mjs';
|
|
3
3
|
import { RefreshRight, Search, ArrowUp, ArrowDown } from '@element-plus/icons-vue';
|
|
4
4
|
import '../../../hooks/index.mjs';
|
|
@@ -28,6 +28,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
searchLoading: { type: Boolean, default: false },
|
|
29
29
|
inline: { type: Boolean, default: true },
|
|
30
30
|
showNumber: { default: 2 },
|
|
31
|
+
buttonOrder: { default: () => ["reset", "search", "fold"] },
|
|
31
32
|
labelPosition: { default: void 0 },
|
|
32
33
|
rowProps: { default: () => ({
|
|
33
34
|
gutter: 20
|
|
@@ -141,62 +142,87 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
142
|
handleUnfold,
|
|
142
143
|
searchLoading: _ctx.searchLoading
|
|
143
144
|
}, () => [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
145
|
+
(openBlock(true), createElementBlock(
|
|
146
|
+
Fragment,
|
|
147
|
+
null,
|
|
148
|
+
renderList(_ctx.buttonOrder, (button) => {
|
|
149
|
+
return openBlock(), createElementBlock(
|
|
150
|
+
Fragment,
|
|
151
|
+
{ key: button },
|
|
152
|
+
[
|
|
153
|
+
button === "reset" && _ctx.hasReset ? (openBlock(), createBlock(unref(ElButton), {
|
|
154
|
+
key: 0,
|
|
155
|
+
icon: _ctx.hasSearchIcon ? unref(RefreshRight) : void 0,
|
|
156
|
+
onClick: handleReset
|
|
157
|
+
}, {
|
|
158
|
+
default: withCtx(() => [
|
|
159
|
+
createTextVNode(
|
|
160
|
+
toDisplayString(_ctx.resetText || unref(t)("plus.search.resetText")),
|
|
161
|
+
1
|
|
162
|
+
/* TEXT */
|
|
163
|
+
)
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
/* STABLE */
|
|
167
|
+
}, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
168
|
+
button === "search" ? (openBlock(), createBlock(unref(ElButton), {
|
|
169
|
+
key: 1,
|
|
170
|
+
type: "primary",
|
|
171
|
+
loading: _ctx.searchLoading,
|
|
172
|
+
icon: _ctx.hasSearchIcon ? unref(Search) : void 0,
|
|
173
|
+
onClick: handleSearch.value
|
|
174
|
+
}, {
|
|
175
|
+
default: withCtx(() => [
|
|
176
|
+
createTextVNode(
|
|
177
|
+
toDisplayString(_ctx.searchText || unref(t)("plus.search.searchText")),
|
|
178
|
+
1
|
|
179
|
+
/* TEXT */
|
|
180
|
+
)
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
/* STABLE */
|
|
184
|
+
}, 8, ["loading", "icon", "onClick"])) : createCommentVNode("v-if", true),
|
|
185
|
+
button === "fold" ? (openBlock(), createElementBlock(
|
|
186
|
+
Fragment,
|
|
187
|
+
{ key: 2 },
|
|
188
|
+
[
|
|
189
|
+
_ctx.hasUnfold && originData.value.length > _ctx.showNumber ? (openBlock(), createBlock(unref(ElLink), {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: "plus-search__unfold",
|
|
192
|
+
type: "primary",
|
|
193
|
+
underline: unref(versionIsLessThan299) ? false : "never",
|
|
194
|
+
href: "javaScript:;",
|
|
195
|
+
onClick: handleUnfold
|
|
196
|
+
}, {
|
|
197
|
+
default: withCtx(() => [
|
|
198
|
+
createTextVNode(
|
|
199
|
+
toDisplayString(unfoldText.value) + " ",
|
|
200
|
+
1
|
|
201
|
+
/* TEXT */
|
|
202
|
+
),
|
|
203
|
+
createVNode(unref(ElIcon), null, {
|
|
204
|
+
default: withCtx(() => [
|
|
205
|
+
isShowUnfold.value ? (openBlock(), createBlock(unref(ArrowUp), { key: 0 })) : (openBlock(), createBlock(unref(ArrowDown), { key: 1 }))
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
/* STABLE */
|
|
209
|
+
})
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
/* STABLE */
|
|
213
|
+
}, 8, ["underline"])) : createCommentVNode("v-if", true)
|
|
214
|
+
],
|
|
215
|
+
64
|
|
216
|
+
/* STABLE_FRAGMENT */
|
|
217
|
+
)) : createCommentVNode("v-if", true)
|
|
218
|
+
],
|
|
219
|
+
64
|
|
220
|
+
/* STABLE_FRAGMENT */
|
|
221
|
+
);
|
|
222
|
+
}),
|
|
223
|
+
128
|
|
224
|
+
/* KEYED_FRAGMENT */
|
|
225
|
+
))
|
|
200
226
|
])
|
|
201
227
|
]),
|
|
202
228
|
_: 3
|
|
@@ -28,6 +28,12 @@ export type PlusSearchSelfProps = {
|
|
|
28
28
|
searchLoading?: boolean;
|
|
29
29
|
inline?: boolean;
|
|
30
30
|
showNumber?: number;
|
|
31
|
+
/**
|
|
32
|
+
* 搜索按钮排列顺序
|
|
33
|
+
* @version 0.2.18
|
|
34
|
+
* @default ['reset', 'search', 'fold']
|
|
35
|
+
*/
|
|
36
|
+
buttonOrder?: ('reset' | 'search' | 'fold')[];
|
|
31
37
|
labelPosition?: 'left' | 'right' | 'top';
|
|
32
38
|
rowProps?: Partial<Mutable<RowProps>>;
|
|
33
39
|
colProps?: Partial<Mutable<ColProps>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EpPropFinalized, Arrayable, EpPropMergeType } from 'element-plus/es/utils';
|
|
2
|
+
import { TableColumnCtx, TooltipTriggerType, Placement, Options, ButtonProps } from 'element-plus';
|
|
2
3
|
import { ButtonsCallBackParams, ActionBarButtonsRow, ActionBarProps } from './type';
|
|
3
|
-
import { RecordType } from '@wlydfe/pro-ui/es/types';
|
|
4
|
+
import { RecordType, Mutable } from '@wlydfe/pro-ui/es/types';
|
|
4
5
|
import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
5
6
|
|
|
6
7
|
export interface PlusTableActionBarEmits {
|
|
@@ -14,6 +15,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
14
15
|
buttons: () => never[];
|
|
15
16
|
width: number;
|
|
16
17
|
showNumber: number;
|
|
18
|
+
triggerMoreProps: () => {
|
|
19
|
+
trigger: string;
|
|
20
|
+
};
|
|
17
21
|
actionBarTableColumnProps: () => {
|
|
18
22
|
align: string;
|
|
19
23
|
};
|
|
@@ -29,6 +33,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
29
33
|
buttons: () => never[];
|
|
30
34
|
width: number;
|
|
31
35
|
showNumber: number;
|
|
36
|
+
triggerMoreProps: () => {
|
|
37
|
+
trigger: string;
|
|
38
|
+
};
|
|
32
39
|
actionBarTableColumnProps: () => {
|
|
33
40
|
align: string;
|
|
34
41
|
};
|
|
@@ -47,6 +54,43 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
47
54
|
buttons: ActionBarButtonsRow[];
|
|
48
55
|
actionBarTableColumnProps: Partial< TableColumnCtx<RecordType>>;
|
|
49
56
|
confirmType: "messageBox" | "popconfirm";
|
|
57
|
+
triggerMoreProps: Partial< Mutable<ExtractPropTypes<{
|
|
58
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
59
|
+
readonly effect: {
|
|
60
|
+
readonly default: "light";
|
|
61
|
+
readonly type: PropType<string>;
|
|
62
|
+
readonly required: false;
|
|
63
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
+
readonly __epPropKey: true;
|
|
65
|
+
};
|
|
66
|
+
readonly type: {
|
|
67
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
|
68
|
+
readonly required: false;
|
|
69
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
+
__epPropKey: true;
|
|
71
|
+
};
|
|
72
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
73
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial< Options>) | (() => Partial< Options>) | ((new (...args: any[]) => Partial< Options>) | (() => Partial< Options>))[], unknown, unknown, () => {}, boolean>;
|
|
74
|
+
readonly id: StringConstructor;
|
|
75
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
76
|
+
readonly splitButton: BooleanConstructor;
|
|
77
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
78
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
79
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
80
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
81
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
82
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
83
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
84
|
+
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
85
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
86
|
+
readonly buttonProps: {
|
|
87
|
+
readonly type: PropType<ButtonProps>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
};
|
|
92
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
93
|
+
}>>>;
|
|
50
94
|
}, {}>, {
|
|
51
95
|
"action-bar-more-icon"?(_: {}): any;
|
|
52
96
|
}>;
|
|
@@ -26,7 +26,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
actionBarTableColumnProps: { default: () => ({
|
|
27
27
|
align: "center"
|
|
28
28
|
}) },
|
|
29
|
-
confirmType: { default: "messageBox" }
|
|
29
|
+
confirmType: { default: "messageBox" },
|
|
30
|
+
triggerMoreProps: { default: () => ({
|
|
31
|
+
trigger: "click"
|
|
32
|
+
}) }
|
|
30
33
|
},
|
|
31
34
|
emits: ["clickAction", "clickActionConfirmCancel"],
|
|
32
35
|
setup(__props, { emit: __emit }) {
|
|
@@ -283,12 +286,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
283
286
|
/* KEYED_FRAGMENT */
|
|
284
287
|
)),
|
|
285
288
|
createCommentVNode(" \u9690\u85CF\u7684\u6309\u94AE "),
|
|
286
|
-
getSubButtons(row, $index).showMore ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
287
|
-
key: 0,
|
|
288
|
-
trigger: "click",
|
|
289
|
+
getSubButtons(row, $index).showMore ? (openBlock(), createBlock(unref(ElDropdown), mergeProps({ key: 0 }, _ctx.triggerMoreProps, {
|
|
289
290
|
class: "plus-table-action-bar__dropdown",
|
|
290
291
|
"hide-on-click": hideOnClick.value
|
|
291
|
-
}, {
|
|
292
|
+
}), {
|
|
292
293
|
dropdown: withCtx(() => [
|
|
293
294
|
createVNode(
|
|
294
295
|
unref(ElDropdownMenu),
|
|
@@ -348,7 +349,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
348
349
|
]),
|
|
349
350
|
_: 2
|
|
350
351
|
/* DYNAMIC */
|
|
351
|
-
},
|
|
352
|
+
}, 1040, ["hide-on-click"])) : createCommentVNode("v-if", true)
|
|
352
353
|
]),
|
|
353
354
|
_: 3
|
|
354
355
|
/* FORWARDED */
|