yc-pro-components 0.0.18 → 0.0.20
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/es/components/display-item/src/index.vue2.mjs +18 -5
- package/es/components/form/src/form-content.vue.d.ts +2 -0
- package/es/components/page/index.d.ts +67 -3
- package/es/components/page/src/index.vue.d.ts +44 -49
- package/es/components/page/src/index.vue2.mjs +4 -2
- package/es/components/table/index.d.ts +19 -0
- package/es/components/table/src/index.vue.d.ts +3 -0
- package/es/components/table/src/index.vue2.mjs +4 -2
- package/es/components/table/src/type.d.ts +9 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +64 -4
- package/es/components/yc-select-v2/src/directive.d.ts +0 -4
- package/es/components/yc-select-v2/src/directive.mjs +70 -17
- package/es/components/yc-select-v2/src/index.vue2.mjs +18 -6
- package/es/constants/form.d.ts +5 -0
- package/es/constants/form.mjs +2 -1
- package/es/constants/index.mjs +1 -1
- package/es/index.css +1 -0
- package/es/index.mjs +1 -1
- package/es/types/plus.d.ts +29 -0
- package/index.css +14 -0
- package/index.js +113 -27
- package/index.min.css +1 -0
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +113 -28
- package/lib/components/display-item/src/index.vue2.js +16 -3
- package/lib/components/form/src/form-content.vue.d.ts +2 -0
- package/lib/components/page/index.d.ts +67 -3
- package/lib/components/page/src/index.vue.d.ts +44 -49
- package/lib/components/page/src/index.vue2.js +4 -2
- package/lib/components/table/index.d.ts +19 -0
- package/lib/components/table/src/index.vue.d.ts +3 -0
- package/lib/components/table/src/index.vue2.js +3 -1
- package/lib/components/table/src/type.d.ts +9 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +64 -4
- package/lib/components/yc-select-v2/src/directive.d.ts +0 -4
- package/lib/components/yc-select-v2/src/directive.js +70 -17
- package/lib/components/yc-select-v2/src/index.vue2.js +17 -5
- package/lib/constants/form.d.ts +5 -0
- package/lib/constants/form.js +2 -0
- package/lib/constants/index.js +1 -0
- package/lib/index.css +1 -0
- package/lib/index.js +1 -0
- package/lib/types/plus.d.ts +29 -0
- 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
|
@@ -144,6 +144,10 @@ export declare const PlusTable: {
|
|
|
144
144
|
filterTableHeaderOverflowLabelLength: {
|
|
145
145
|
type: PropType<number>;
|
|
146
146
|
};
|
|
147
|
+
columnsEmptyText: {
|
|
148
|
+
type: PropType<string>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
147
151
|
}>> & {
|
|
148
152
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
149
153
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -852,6 +856,10 @@ export declare const PlusTable: {
|
|
|
852
856
|
filterTableHeaderOverflowLabelLength: {
|
|
853
857
|
type: PropType<number>;
|
|
854
858
|
};
|
|
859
|
+
columnsEmptyText: {
|
|
860
|
+
type: PropType<string>;
|
|
861
|
+
default: string;
|
|
862
|
+
};
|
|
855
863
|
}>> & {
|
|
856
864
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
857
865
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -910,6 +918,7 @@ export declare const PlusTable: {
|
|
|
910
918
|
offsetBottom?: number | undefined;
|
|
911
919
|
timeout?: number | undefined;
|
|
912
920
|
};
|
|
921
|
+
columnsEmptyText: string;
|
|
913
922
|
}, true, {}, {}, {
|
|
914
923
|
P: {};
|
|
915
924
|
B: {};
|
|
@@ -1050,6 +1059,10 @@ export declare const PlusTable: {
|
|
|
1050
1059
|
filterTableHeaderOverflowLabelLength: {
|
|
1051
1060
|
type: PropType<number>;
|
|
1052
1061
|
};
|
|
1062
|
+
columnsEmptyText: {
|
|
1063
|
+
type: PropType<string>;
|
|
1064
|
+
default: string;
|
|
1065
|
+
};
|
|
1053
1066
|
}>> & {
|
|
1054
1067
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
1055
1068
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -1659,6 +1672,7 @@ export declare const PlusTable: {
|
|
|
1659
1672
|
offsetBottom?: number | undefined;
|
|
1660
1673
|
timeout?: number | undefined;
|
|
1661
1674
|
};
|
|
1675
|
+
columnsEmptyText: string;
|
|
1662
1676
|
}>;
|
|
1663
1677
|
__isFragment?: undefined;
|
|
1664
1678
|
__isTeleport?: undefined;
|
|
@@ -1796,6 +1810,10 @@ export declare const PlusTable: {
|
|
|
1796
1810
|
filterTableHeaderOverflowLabelLength: {
|
|
1797
1811
|
type: PropType<number>;
|
|
1798
1812
|
};
|
|
1813
|
+
columnsEmptyText: {
|
|
1814
|
+
type: PropType<string>;
|
|
1815
|
+
default: string;
|
|
1816
|
+
};
|
|
1799
1817
|
}>> & {
|
|
1800
1818
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
1801
1819
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -2417,6 +2435,7 @@ export declare const PlusTable: {
|
|
|
2417
2435
|
offsetBottom?: number | undefined;
|
|
2418
2436
|
timeout?: number | undefined;
|
|
2419
2437
|
};
|
|
2438
|
+
columnsEmptyText: string;
|
|
2420
2439
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2421
2440
|
$slots: Partial<Record<NonNullable<string | number>, (_: {
|
|
2422
2441
|
column: any;
|
|
@@ -41,6 +41,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
41
41
|
expandTableColumnProps: () => {};
|
|
42
42
|
editable: boolean;
|
|
43
43
|
adaptive: boolean;
|
|
44
|
+
columnsEmptyText: string;
|
|
44
45
|
}>, {
|
|
45
46
|
formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
|
|
46
47
|
tableInstance: ShallowRef< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -636,6 +637,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
636
637
|
expandTableColumnProps: () => {};
|
|
637
638
|
editable: boolean;
|
|
638
639
|
adaptive: boolean;
|
|
640
|
+
columnsEmptyText: string;
|
|
639
641
|
}>>> & {
|
|
640
642
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
641
643
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -694,6 +696,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
694
696
|
offsetBottom?: number | undefined;
|
|
695
697
|
timeout?: number | undefined;
|
|
696
698
|
};
|
|
699
|
+
columnsEmptyText: string;
|
|
697
700
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
698
701
|
column: any;
|
|
699
702
|
prop: string;
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, shallowRef, reactive, watchEffect, computed, prov
|
|
|
2
2
|
import { PlusPagination } from '../../pagination/index.mjs';
|
|
3
3
|
import { PlusRadio } from '../../radio/index.mjs';
|
|
4
4
|
import { DefaultPageInfo } from '../../../constants/page.mjs';
|
|
5
|
-
import { TableFormRefInjectionKey, TableFormFieldRefInjectionKey } from '../../../constants/form.mjs';
|
|
5
|
+
import { TableFormRefInjectionKey, TableFormFieldRefInjectionKey, TableColumnsEmptyTextInjectionKey } from '../../../constants/form.mjs';
|
|
6
6
|
import { ElTable, ElTableColumn, vLoading } from 'element-plus';
|
|
7
7
|
import { debounce, isEqual } from 'lodash-es';
|
|
8
8
|
import PlusTableActionBar from './table-action-bar.vue.mjs';
|
|
@@ -52,7 +52,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
indexContentStyle: { type: [Object, Function], default: () => ({}) },
|
|
53
53
|
editable: { type: [Boolean, String], default: false },
|
|
54
54
|
adaptive: { type: [Boolean, Object], default: false },
|
|
55
|
-
filterTableHeaderOverflowLabelLength: {}
|
|
55
|
+
filterTableHeaderOverflowLabelLength: {},
|
|
56
|
+
columnsEmptyText: { default: "-" }
|
|
56
57
|
},
|
|
57
58
|
emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
|
|
58
59
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -84,6 +85,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
85
|
provide(TableFormRefInjectionKey, formRefs);
|
|
85
86
|
const formFieldRefs = shallowRef({});
|
|
86
87
|
provide(TableFormFieldRefInjectionKey, formFieldRefs);
|
|
88
|
+
provide(TableColumnsEmptyTextInjectionKey, computed(() => props.columnsEmptyText));
|
|
87
89
|
watch(
|
|
88
90
|
() => props.columns,
|
|
89
91
|
(val) => {
|
|
@@ -454,6 +454,15 @@ export type PlusTableSelfProps = {
|
|
|
454
454
|
* @version 0.1.23
|
|
455
455
|
*/
|
|
456
456
|
filterTableHeaderOverflowLabelLength?: number;
|
|
457
|
+
/**
|
|
458
|
+
* 所有列字段为空时显示的默认文本(全局配置)
|
|
459
|
+
* @version v0.2.0
|
|
460
|
+
* @default "-"
|
|
461
|
+
* @desc 当字段值为 null、undefined 或空字符串时,显示此文本
|
|
462
|
+
* @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
|
|
463
|
+
* @desc 仅对未定义 render/renderHTML 的字段生效
|
|
464
|
+
*/
|
|
465
|
+
columnsEmptyText?: string;
|
|
457
466
|
};
|
|
458
467
|
export type PlusTableProps = PlusTableSelfProps & Partial<TableProps<any[]>> & RecordType;
|
|
459
468
|
/**
|
|
@@ -67,6 +67,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
67
67
|
immediate: boolean;
|
|
68
68
|
params: RecordType;
|
|
69
69
|
pagination: false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
70
|
+
columnsEmptyText: string;
|
|
70
71
|
postData: <T = RecordType[]>(data: T[]) => T[];
|
|
71
72
|
beforeSearchSubmit: <T_1 = RecordType>(params: T_1) => T_1;
|
|
72
73
|
isCard: boolean;
|
|
@@ -103,6 +104,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
103
104
|
total: number;
|
|
104
105
|
}>;
|
|
105
106
|
readonly pagination: false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
107
|
+
readonly columnsEmptyText: string;
|
|
106
108
|
readonly isCard: boolean;
|
|
107
109
|
readonly searchCardProps: Partial< Mutable<CardProps> & {
|
|
108
110
|
style?: CSSProperties | undefined;
|
|
@@ -166,6 +168,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
166
168
|
type: PropType<false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">>;
|
|
167
169
|
default: () => {};
|
|
168
170
|
};
|
|
171
|
+
columnsEmptyText: {
|
|
172
|
+
type: PropType<string>;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
169
175
|
postData: {
|
|
170
176
|
type: PropType<(<T = RecordType[]>(data: T[]) => T[])>;
|
|
171
177
|
default: undefined;
|
|
@@ -227,7 +233,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
227
233
|
onSearch?: ((data: FieldValues) => any) | undefined;
|
|
228
234
|
onRequestError?: ((error: unknown) => any) | undefined;
|
|
229
235
|
onRequestComplete?: ((tableData: RecordType[]) => any) | undefined;
|
|
230
|
-
}, "search" | "table" | "columns" | "immediate" | "params" | "pagination" | "postData" | "beforeSearchSubmit" | "isCard" | "searchCardProps" | "tableCardProps" | "defaultPageInfo" | "defaultPageSizeList" | "dividerProps" | "pageInfoMap" | "searchSlot">;
|
|
236
|
+
}, "search" | "table" | "columns" | "immediate" | "params" | "pagination" | "columnsEmptyText" | "postData" | "beforeSearchSubmit" | "isCard" | "searchCardProps" | "tableCardProps" | "defaultPageInfo" | "defaultPageSizeList" | "dividerProps" | "pageInfoMap" | "searchSlot">;
|
|
231
237
|
$attrs: {
|
|
232
238
|
[x: string]: unknown;
|
|
233
239
|
};
|
|
@@ -280,6 +286,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
280
286
|
type: PropType<false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">>;
|
|
281
287
|
default: () => {};
|
|
282
288
|
};
|
|
289
|
+
columnsEmptyText: {
|
|
290
|
+
type: PropType<string>;
|
|
291
|
+
default: string;
|
|
292
|
+
};
|
|
283
293
|
postData: {
|
|
284
294
|
type: PropType<(<T = RecordType[]>(data: T[]) => T[])>;
|
|
285
295
|
default: undefined;
|
|
@@ -3526,6 +3536,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3526
3536
|
offsetBottom?: number | undefined;
|
|
3527
3537
|
timeout?: number | undefined;
|
|
3528
3538
|
};
|
|
3539
|
+
columnsEmptyText: string;
|
|
3529
3540
|
}> & Omit<{
|
|
3530
3541
|
readonly data: RecordType[];
|
|
3531
3542
|
readonly columns: PlusColumn[];
|
|
@@ -3567,6 +3578,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3567
3578
|
offsetBottom?: number | undefined;
|
|
3568
3579
|
timeout?: number | undefined;
|
|
3569
3580
|
};
|
|
3581
|
+
readonly columnsEmptyText: string;
|
|
3570
3582
|
readonly height?: string | number | undefined;
|
|
3571
3583
|
readonly radioProps?: Partial< PlusRadioProps & {
|
|
3572
3584
|
style?: CSSProperties | undefined;
|
|
@@ -3718,6 +3730,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3718
3730
|
filterTableHeaderOverflowLabelLength: {
|
|
3719
3731
|
type: PropType<number>;
|
|
3720
3732
|
};
|
|
3733
|
+
columnsEmptyText: {
|
|
3734
|
+
type: PropType<string>;
|
|
3735
|
+
default: string;
|
|
3736
|
+
};
|
|
3721
3737
|
}>> & {
|
|
3722
3738
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3723
3739
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -3730,7 +3746,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3730
3746
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3731
3747
|
onEdited?: (() => any) | undefined;
|
|
3732
3748
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
3733
|
-
}, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive">;
|
|
3749
|
+
}, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive" | "columnsEmptyText">;
|
|
3734
3750
|
$attrs: {
|
|
3735
3751
|
[x: string]: unknown;
|
|
3736
3752
|
};
|
|
@@ -3877,6 +3893,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3877
3893
|
filterTableHeaderOverflowLabelLength: {
|
|
3878
3894
|
type: PropType<number>;
|
|
3879
3895
|
};
|
|
3896
|
+
columnsEmptyText: {
|
|
3897
|
+
type: PropType<string>;
|
|
3898
|
+
default: string;
|
|
3899
|
+
};
|
|
3880
3900
|
}>> & {
|
|
3881
3901
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3882
3902
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -4498,6 +4518,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4498
4518
|
offsetBottom?: number | undefined;
|
|
4499
4519
|
timeout?: number | undefined;
|
|
4500
4520
|
};
|
|
4521
|
+
columnsEmptyText: string;
|
|
4501
4522
|
}, {}, string, {}> & {
|
|
4502
4523
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
4503
4524
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -4651,6 +4672,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4651
4672
|
filterTableHeaderOverflowLabelLength: {
|
|
4652
4673
|
type: PropType<number>;
|
|
4653
4674
|
};
|
|
4675
|
+
columnsEmptyText: {
|
|
4676
|
+
type: PropType<string>;
|
|
4677
|
+
default: string;
|
|
4678
|
+
};
|
|
4654
4679
|
}>> & {
|
|
4655
4680
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
4656
4681
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -5266,6 +5291,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5266
5291
|
immediate: boolean;
|
|
5267
5292
|
params: RecordType;
|
|
5268
5293
|
pagination: false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
5294
|
+
columnsEmptyText: string;
|
|
5269
5295
|
postData: <T = RecordType[]>(data: T[]) => T[];
|
|
5270
5296
|
beforeSearchSubmit: <T_1 = RecordType>(params: T_1) => T_1;
|
|
5271
5297
|
isCard: boolean;
|
|
@@ -5344,6 +5370,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5344
5370
|
type: PropType<false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">>;
|
|
5345
5371
|
default: () => {};
|
|
5346
5372
|
};
|
|
5373
|
+
columnsEmptyText: {
|
|
5374
|
+
type: PropType<string>;
|
|
5375
|
+
default: string;
|
|
5376
|
+
};
|
|
5347
5377
|
postData: {
|
|
5348
5378
|
type: PropType<(<T = RecordType[]>(data: T[]) => T[])>;
|
|
5349
5379
|
default: undefined;
|
|
@@ -8590,6 +8620,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8590
8620
|
offsetBottom?: number | undefined;
|
|
8591
8621
|
timeout?: number | undefined;
|
|
8592
8622
|
};
|
|
8623
|
+
columnsEmptyText: string;
|
|
8593
8624
|
}> & Omit<{
|
|
8594
8625
|
readonly data: RecordType[];
|
|
8595
8626
|
readonly columns: PlusColumn[];
|
|
@@ -8631,6 +8662,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8631
8662
|
offsetBottom?: number | undefined;
|
|
8632
8663
|
timeout?: number | undefined;
|
|
8633
8664
|
};
|
|
8665
|
+
readonly columnsEmptyText: string;
|
|
8634
8666
|
readonly height?: string | number | undefined;
|
|
8635
8667
|
readonly radioProps?: Partial< PlusRadioProps & {
|
|
8636
8668
|
style?: CSSProperties | undefined;
|
|
@@ -8782,6 +8814,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8782
8814
|
filterTableHeaderOverflowLabelLength: {
|
|
8783
8815
|
type: PropType<number>;
|
|
8784
8816
|
};
|
|
8817
|
+
columnsEmptyText: {
|
|
8818
|
+
type: PropType<string>;
|
|
8819
|
+
default: string;
|
|
8820
|
+
};
|
|
8785
8821
|
}>> & {
|
|
8786
8822
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
8787
8823
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -8794,7 +8830,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8794
8830
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
8795
8831
|
onEdited?: (() => any) | undefined;
|
|
8796
8832
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
8797
|
-
}, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive">;
|
|
8833
|
+
}, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive" | "columnsEmptyText">;
|
|
8798
8834
|
$attrs: {
|
|
8799
8835
|
[x: string]: unknown;
|
|
8800
8836
|
};
|
|
@@ -8941,6 +8977,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8941
8977
|
filterTableHeaderOverflowLabelLength: {
|
|
8942
8978
|
type: PropType<number>;
|
|
8943
8979
|
};
|
|
8980
|
+
columnsEmptyText: {
|
|
8981
|
+
type: PropType<string>;
|
|
8982
|
+
default: string;
|
|
8983
|
+
};
|
|
8944
8984
|
}>> & {
|
|
8945
8985
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
8946
8986
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -9562,6 +9602,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
9562
9602
|
offsetBottom?: number | undefined;
|
|
9563
9603
|
timeout?: number | undefined;
|
|
9564
9604
|
};
|
|
9605
|
+
columnsEmptyText: string;
|
|
9565
9606
|
}, {}, string, {}> & {
|
|
9566
9607
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
9567
9608
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -9715,6 +9756,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
9715
9756
|
filterTableHeaderOverflowLabelLength: {
|
|
9716
9757
|
type: PropType<number>;
|
|
9717
9758
|
};
|
|
9759
|
+
columnsEmptyText: {
|
|
9760
|
+
type: PropType<string>;
|
|
9761
|
+
default: string;
|
|
9762
|
+
};
|
|
9718
9763
|
}>> & {
|
|
9719
9764
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
9720
9765
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -10495,6 +10540,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10495
10540
|
offsetBottom?: number | undefined;
|
|
10496
10541
|
timeout?: number | undefined;
|
|
10497
10542
|
};
|
|
10543
|
+
columnsEmptyText: string;
|
|
10498
10544
|
}> & Omit<{
|
|
10499
10545
|
readonly data: RecordType[];
|
|
10500
10546
|
readonly columns: PlusColumn[];
|
|
@@ -10536,6 +10582,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10536
10582
|
offsetBottom?: number | undefined;
|
|
10537
10583
|
timeout?: number | undefined;
|
|
10538
10584
|
};
|
|
10585
|
+
readonly columnsEmptyText: string;
|
|
10539
10586
|
readonly height?: string | number | undefined;
|
|
10540
10587
|
readonly radioProps?: Partial< PlusRadioProps & {
|
|
10541
10588
|
style?: CSSProperties | undefined;
|
|
@@ -10687,6 +10734,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10687
10734
|
filterTableHeaderOverflowLabelLength: {
|
|
10688
10735
|
type: PropType<number>;
|
|
10689
10736
|
};
|
|
10737
|
+
columnsEmptyText: {
|
|
10738
|
+
type: PropType<string>;
|
|
10739
|
+
default: string;
|
|
10740
|
+
};
|
|
10690
10741
|
}>> & {
|
|
10691
10742
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
10692
10743
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -10699,7 +10750,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10699
10750
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
10700
10751
|
onEdited?: (() => any) | undefined;
|
|
10701
10752
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
10702
|
-
}, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive">;
|
|
10753
|
+
}, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive" | "columnsEmptyText">;
|
|
10703
10754
|
$attrs: {
|
|
10704
10755
|
[x: string]: unknown;
|
|
10705
10756
|
};
|
|
@@ -10846,6 +10897,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
10846
10897
|
filterTableHeaderOverflowLabelLength: {
|
|
10847
10898
|
type: PropType<number>;
|
|
10848
10899
|
};
|
|
10900
|
+
columnsEmptyText: {
|
|
10901
|
+
type: PropType<string>;
|
|
10902
|
+
default: string;
|
|
10903
|
+
};
|
|
10849
10904
|
}>> & {
|
|
10850
10905
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
10851
10906
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -11467,6 +11522,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
11467
11522
|
offsetBottom?: number | undefined;
|
|
11468
11523
|
timeout?: number | undefined;
|
|
11469
11524
|
};
|
|
11525
|
+
columnsEmptyText: string;
|
|
11470
11526
|
}, {}, string, {}> & {
|
|
11471
11527
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
11472
11528
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -11620,6 +11676,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
11620
11676
|
filterTableHeaderOverflowLabelLength: {
|
|
11621
11677
|
type: PropType<number>;
|
|
11622
11678
|
};
|
|
11679
|
+
columnsEmptyText: {
|
|
11680
|
+
type: PropType<string>;
|
|
11681
|
+
default: string;
|
|
11682
|
+
};
|
|
11623
11683
|
}>> & {
|
|
11624
11684
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
11625
11685
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -1,29 +1,82 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
|
-
|
|
3
1
|
const loadMoreDirective = {
|
|
4
2
|
mounted(el, binding) {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const bindScrollListener = (poperId) => {
|
|
4
|
+
const poper = document.getElementById(poperId);
|
|
5
|
+
if (!poper) return;
|
|
6
|
+
let scrollContainer = null;
|
|
7
|
+
scrollContainer = poper.querySelector(".el-scrollbar .el-select-dropdown__wrap");
|
|
8
|
+
if (!scrollContainer) {
|
|
9
|
+
scrollContainer = poper.querySelector(".el-select-dropdown__wrap");
|
|
10
|
+
}
|
|
11
|
+
if (!scrollContainer) {
|
|
12
|
+
scrollContainer = poper.querySelector('[class*="scrollbar__wrap"]');
|
|
13
|
+
}
|
|
14
|
+
if (scrollContainer && !scrollContainer.__vueLoadMoreBound__) {
|
|
15
|
+
scrollContainer.__vueLoadMoreBound__ = true;
|
|
16
|
+
let lastTriggerTime = 0;
|
|
9
17
|
const handleScroll = () => {
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
18
|
+
if (!scrollContainer) return;
|
|
19
|
+
const { scrollTop, scrollHeight, clientHeight } = scrollContainer;
|
|
20
|
+
const THRESHOLD = 100;
|
|
21
|
+
const scrollDistance = scrollHeight - scrollTop <= clientHeight + THRESHOLD;
|
|
22
|
+
const now = Date.now();
|
|
23
|
+
if (scrollDistance && binding.value && now - lastTriggerTime > 1e3) {
|
|
24
|
+
lastTriggerTime = now;
|
|
13
25
|
binding.value();
|
|
14
26
|
}
|
|
15
27
|
};
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
scrollContainer.__vueLoadMoreHandler__ = handleScroll;
|
|
29
|
+
scrollContainer.addEventListener("scroll", handleScroll);
|
|
18
30
|
}
|
|
19
|
-
}
|
|
31
|
+
};
|
|
32
|
+
const callback = (records) => {
|
|
33
|
+
records.forEach((record) => {
|
|
34
|
+
if (record.attributeName === "aria-describedby") {
|
|
35
|
+
const target = record.target;
|
|
36
|
+
const newValue = target.getAttribute("aria-describedby");
|
|
37
|
+
if (newValue) {
|
|
38
|
+
bindScrollListener(newValue);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const selectTrigger = el.querySelector(".select-trigger") || el.querySelector(".el-select__wrapper") || el.querySelector("input");
|
|
44
|
+
if (selectTrigger) {
|
|
45
|
+
const observer = new MutationObserver(callback);
|
|
46
|
+
observer.observe(selectTrigger, {
|
|
47
|
+
attributes: true,
|
|
48
|
+
attributeOldValue: true,
|
|
49
|
+
attributeFilter: ["aria-describedby"]
|
|
50
|
+
});
|
|
51
|
+
el.__vueLoadMoreObserver__ = observer;
|
|
52
|
+
}
|
|
20
53
|
},
|
|
21
54
|
beforeUnmount(el) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
55
|
+
if (el.__vueLoadMoreObserver__) {
|
|
56
|
+
el.__vueLoadMoreObserver__.disconnect();
|
|
57
|
+
delete el.__vueLoadMoreObserver__;
|
|
58
|
+
}
|
|
59
|
+
const selectTrigger = el.querySelector(".select-trigger") || el.querySelector(".el-select__wrapper") || el.querySelector("input");
|
|
60
|
+
if (selectTrigger) {
|
|
61
|
+
const ariaId = selectTrigger.getAttribute("aria-describedby");
|
|
62
|
+
if (ariaId) {
|
|
63
|
+
const poper = document.getElementById(ariaId);
|
|
64
|
+
if (poper) {
|
|
65
|
+
const scrollContainer = poper.querySelector(
|
|
66
|
+
".el-scrollbar .el-select-dropdown__wrap"
|
|
67
|
+
) || poper.querySelector(
|
|
68
|
+
".el-select-dropdown__wrap"
|
|
69
|
+
);
|
|
70
|
+
if (scrollContainer && scrollContainer.__vueLoadMoreHandler__) {
|
|
71
|
+
scrollContainer.removeEventListener(
|
|
72
|
+
"scroll",
|
|
73
|
+
scrollContainer.__vueLoadMoreHandler__
|
|
74
|
+
);
|
|
75
|
+
delete scrollContainer.__vueLoadMoreHandler__;
|
|
76
|
+
delete scrollContainer.__vueLoadMoreBound__;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
27
80
|
}
|
|
28
81
|
}
|
|
29
82
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, watch, onMounted, resolveDirective, withDirectives, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, nextTick } from 'vue';
|
|
1
|
+
import { defineComponent, computed, ref, watch, onMounted, resolveDirective, withDirectives, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, normalizeClass, nextTick } from 'vue';
|
|
2
2
|
import { ElSelect, ElOption } from 'element-plus';
|
|
3
3
|
import loadMoreDirective from './directive.mjs';
|
|
4
4
|
|
|
5
5
|
const ALL_SELECT_VALUE = "__ALL_SELECT__";
|
|
6
6
|
const ALL_SELECT_LABEL = "\u5168\u9009";
|
|
7
7
|
const ALL_UNSELECT_LABEL = "\u5168\u4E0D\u9009";
|
|
8
|
+
const LOADING_VALUE = "__LOADING__";
|
|
9
|
+
const LOADING_LABEL = "\u52A0\u8F7D\u4E2D...";
|
|
8
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
11
|
...{
|
|
10
12
|
name: "YcSelectV2",
|
|
@@ -62,14 +64,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
64
|
return innerOptions.value.every((opt) => currentValue.includes(opt.value));
|
|
63
65
|
});
|
|
64
66
|
const displayOptions = computed(() => {
|
|
65
|
-
|
|
67
|
+
let options = [...innerOptions.value];
|
|
68
|
+
if (props.allSelect && props.multiple && options.length > 0) {
|
|
66
69
|
const allSelectOption = {
|
|
67
70
|
label: isAllSelected.value ? ALL_UNSELECT_LABEL : ALL_SELECT_LABEL,
|
|
68
71
|
value: ALL_SELECT_VALUE
|
|
69
72
|
};
|
|
70
|
-
|
|
73
|
+
options = [allSelectOption, ...options];
|
|
71
74
|
}
|
|
72
|
-
|
|
75
|
+
if (loading.value && hasMore.value) {
|
|
76
|
+
const loadingOption = {
|
|
77
|
+
label: LOADING_LABEL,
|
|
78
|
+
value: LOADING_VALUE,
|
|
79
|
+
disabled: true
|
|
80
|
+
};
|
|
81
|
+
options = [...options, loadingOption];
|
|
82
|
+
}
|
|
83
|
+
return options;
|
|
73
84
|
});
|
|
74
85
|
const initData = async () => {
|
|
75
86
|
if (props.searchMode === "local" && props.options.length > 0) {
|
|
@@ -367,8 +378,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
367
378
|
key: item.value,
|
|
368
379
|
label: item.label,
|
|
369
380
|
value: item.value,
|
|
370
|
-
disabled: item.disabled
|
|
371
|
-
|
|
381
|
+
disabled: item.disabled,
|
|
382
|
+
class: normalizeClass({ "yc-select-v2-loading": item.value === "__LOADING__" })
|
|
383
|
+
}, null, 8, ["label", "value", "disabled", "class"]);
|
|
372
384
|
}),
|
|
373
385
|
128
|
|
374
386
|
/* KEYED_FRAGMENT */
|
package/es/constants/form.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export declare const TableFormFieldRefInjectionKey: unique symbol;
|
|
|
10
10
|
* 表格里表单 表格行信息 provide(inject) key
|
|
11
11
|
*/
|
|
12
12
|
export declare const TableFormRowInfoInjectionKey: unique symbol;
|
|
13
|
+
/**
|
|
14
|
+
* 表格列全局空值默认文本 provide(inject) key
|
|
15
|
+
* @version v0.2.0
|
|
16
|
+
*/
|
|
17
|
+
export declare const TableColumnsEmptyTextInjectionKey: unique symbol;
|
|
13
18
|
/**
|
|
14
19
|
* 表单ElDatePicker 组件 值是数组的type列表
|
|
15
20
|
*/
|
package/es/constants/form.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
|
|
2
2
|
const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
|
|
3
3
|
const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
|
|
4
|
+
const TableColumnsEmptyTextInjectionKey = Symbol("tableColumnsEmptyTextInjectionKey");
|
|
4
5
|
const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
|
|
5
6
|
const ValueIsNumberList = ["rate", "input-number", "slider"];
|
|
6
7
|
const ValueIsBooleanList = ["switch"];
|
|
@@ -12,4 +13,4 @@ const ValueIsArrayList = [
|
|
|
12
13
|
"transfer"
|
|
13
14
|
];
|
|
14
15
|
|
|
15
|
-
export { DatePickerValueIsArrayList, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList };
|
|
16
|
+
export { DatePickerValueIsArrayList, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList };
|
package/es/constants/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DefaultPageInfo, DefaultPageSizeList } from './page.mjs';
|
|
2
|
-
export { DatePickerValueIsArrayList, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './form.mjs';
|
|
2
|
+
export { DatePickerValueIsArrayList, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './form.mjs';
|
|
3
3
|
export { selectValueTypeList } from './display-item.mjs';
|
|
4
4
|
export { DictStoreInjectionKey } from './dict.mjs';
|
package/es/index.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.yc-svg-icon[data-v-34e1f2f7]{display:inline-block;-webkit-mask-size:contain;mask-size:contain;vertical-align:middle}.yc-svg-icon--original[data-v-34e1f2f7]{-o-object-fit:contain;object-fit:contain}
|
|
2
2
|
.yc-plus-page[data-v-7c1490fd]{height:100%}.yc-plus-page[data-v-7c1490fd] [data-v-7c1490fd] .plus-page>.el-card{border-radius:8px}[data-v-7c1490fd] .yc-search-card-body{padding-right:0}[data-v-7c1490fd] .plus-table-title-bar__toolbar__icon{font-size:16px!important;position:relative;top:-2px}.column-settings-wrapper[data-v-7c1490fd]{align-items:center;cursor:pointer;display:flex;gap:4px;margin-left:8px}.column-settings-text[data-v-7c1490fd]{font-size:14px}
|
|
3
|
+
.yc-select-v2-loading.el-select-dropdown__item{color:#909399;cursor:default;font-size:13px;pointer-events:none;text-align:center}.yc-select-v2-loading.el-select-dropdown__item.is-disabled{color:#909399;cursor:default}
|
|
3
4
|
.el-tree .el-tree-node__content{position:relative}.yc-tree-node-label-wrapper{align-items:center;display:flex;flex:1;min-width:0}.yc-tree-node-label{font-size:12px}.yc-tree-node-line-ver{border-left:1px dashed var(--el-border-color-light,#dcdfe6);display:block;height:100%;left:0;position:absolute;top:0}.yc-tree-node-line-ver.last-node-line{border-left:1px dashed transparent}.yc-tree-node-line-ver.last-node-isLeaf-line{height:50%}.yc-tree-node-line-hor{border-bottom:1px dashed var(--el-border-color-light,#dcdfe6);display:block;height:0;left:0;position:absolute;top:50%}
|
|
4
5
|
.yc-plus-tree[data-v-0043eed3]{display:flex;flex-direction:column;height:100%;overflow:auto}.yc-plus-tree[data-v-0043eed3] .search-input[data-v-0043eed3]{flex-shrink:0;margin-bottom:16px}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3]{flex:1;min-height:0;overflow:hidden}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] [data-v-0043eed3] .el-tree-v2{overflow-x:visible!important}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3]{align-items:center;display:flex;flex:1;padding-left:0;padding-right:8px;position:relative;z-index:1}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3] .inline-input[data-v-0043eed3]{flex-shrink:0;width:100%}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3] .inline-input[data-v-0043eed3] [data-v-0043eed3] .el-input__wrapper{border-radius:4px;box-shadow:0 0 0 1px var(--el-border-color) inset;font-size:14px;height:26px;line-height:18px;padding:0 8px;transition:box-shadow .2s ease}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3] .inline-input[data-v-0043eed3] [data-v-0043eed3] .el-input__wrapper[data-v-0043eed3]:hover{box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3] .inline-input[data-v-0043eed3] [data-v-0043eed3] .el-input__wrapper.is-focus[data-v-0043eed3]{box-shadow:0 0 0 1px var(--el-color-primary) inset}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3] .inline-input[data-v-0043eed3] [data-v-0043eed3] .el-input__inner{color:rgba(0,0,0,.7);font-size:14px;height:24px;line-height:18px}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3] .inline-input[data-v-0043eed3] [data-v-0043eed3] .el-input__inner[data-v-0043eed3]::-moz-placeholder{color:rgba(0,0,0,.4)}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .inline-input-node[data-v-0043eed3] .inline-input[data-v-0043eed3] [data-v-0043eed3] .el-input__inner[data-v-0043eed3]::placeholder{color:rgba(0,0,0,.4)}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] [data-v-0043eed3] .el-tree-node__content:hover{background-color:var(--el-color-primary-light-9)}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] [data-v-0043eed3] .el-tree-node__content:hover .label-text[data-v-0043eed3]{color:var(--el-color-primary)}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] [data-v-0043eed3] .el-tree-node__content:hover .label-text{color:var(--el-color-primary)}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] [data-v-0043eed3] .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] [data-v-0043eed3] .el-tree-node.is-current>.el-tree-node__content .label-text{color:var(--el-color-primary)}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3]{align-items:center;display:flex;gap:4px;width:100%}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3][data-v-0043eed3]:hover .node-actions[data-v-0043eed3]{opacity:1;pointer-events:auto}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-label[data-v-0043eed3],.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] [data-v-0043eed3] .custom-node-label{align-items:center;display:flex;flex:1;gap:4px;min-width:0}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-label[data-v-0043eed3] [data-v-0043eed3] .el-tooltip__trigger,.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] [data-v-0043eed3] .custom-node-label [data-v-0043eed3] .el-tooltip__trigger{display:block;min-width:0;overflow:hidden}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-label[data-v-0043eed3] .label-text[data-v-0043eed3],.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-label[data-v-0043eed3] .node-text[data-v-0043eed3],.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] [data-v-0043eed3] .custom-node-label .label-text[data-v-0043eed3],.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] [data-v-0043eed3] .custom-node-label .node-text[data-v-0043eed3]{color:var(--el-text-color-primary);display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-label[data-v-0043eed3] .label-text[data-v-0043eed3] [data-v-0043eed3] .highlight-keyword,.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-label[data-v-0043eed3] .node-text[data-v-0043eed3] [data-v-0043eed3] .highlight-keyword,.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] [data-v-0043eed3] .custom-node-label .label-text[data-v-0043eed3] [data-v-0043eed3] .highlight-keyword,.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] [data-v-0043eed3] .custom-node-label .node-text[data-v-0043eed3] [data-v-0043eed3] .highlight-keyword{background-color:var(--el-color-primary-light-9);border-radius:2px;color:var(--el-color-primary);font-weight:600;padding:0 2px}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-label[data-v-0043eed3] .node-count[data-v-0043eed3],.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] [data-v-0043eed3] .custom-node-label .node-count[data-v-0043eed3]{color:var(--el-text-color-secondary);font-size:12px}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-actions[data-v-0043eed3]{align-items:center;display:flex;flex-shrink:0;margin-left:auto;margin-right:8px;opacity:0;pointer-events:none;transition:opacity .2s ease}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-actions[data-v-0043eed3] .action-icon-wrapper[data-v-0043eed3]{align-items:center;cursor:pointer;display:flex;justify-content:center}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-actions[data-v-0043eed3] .action-icon[data-v-0043eed3]{align-items:center;border-radius:4px;color:var(--el-color-primary);cursor:pointer;display:flex;height:20px;justify-content:center;transition:background-color .2s ease;width:20px}.yc-plus-tree[data-v-0043eed3] .tree-container[data-v-0043eed3] .node-label-wrapper[data-v-0043eed3] .node-actions[data-v-0043eed3] .action-icon[data-v-0043eed3][data-v-0043eed3]:hover{background-color:var(--el-color-primary-light-8)}.tree-dropdown-menu[data-v-0043eed3]{border-radius:8px!important;min-width:156px!important;padding:8px!important}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .el-dropdown-menu__item{border-radius:8px;font-size:12px;height:32px;line-height:32px;margin:0;padding:0 12px;transition:background-color .2s ease}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .el-dropdown-menu__item[data-v-0043eed3]:hover{background-color:var(--el-color-primary-light-9)!important;color:var(--el-color-primary)!important}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .el-dropdown-menu__item[data-v-0043eed3]:not(:last-child){margin-bottom:4px}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .el-divider{border-top:1px solid #e5e7eb;margin:12px 0}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .sortable-ghost{background-color:var(--el-color-primary-light-9);border:1px dashed var(--el-color-primary);border-radius:4px;opacity:.4}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .sortable-chosen{background-color:var(--el-color-primary-light-8);box-shadow:0 2px 8px rgba(0,0,0,.1)}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .sortable-drag{background-color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.15);cursor:move;opacity:1;transform:rotate(2deg)}.tree-dropdown-menu[data-v-0043eed3] [data-v-0043eed3] .sortable-fallback{-webkit-user-select:none;-moz-user-select:none;user-select:none}
|
|
5
6
|
.tree-dropdown-popper{border:none!important;border-radius:8px!important;overflow:hidden!important}.yc-plus-tree .highlight-keyword{background-color:var(--el-color-primary-light-9);border-radius:2px;color:var(--el-color-primary);font-weight:600;padding:0 2px}.el-tree-node__content:has([data-input-node=true]) .el-tree-node__expand-icon{display:none!important}.sortable-ghost{opacity:.3!important;position:relative!important}.drop-target{background-color:var(--el-color-primary-light-9)!important;border-radius:4px}.drop-target:before{background:var(--el-color-primary);border-radius:1.5px;bottom:0;content:"";left:calc(var(--drop-indent, 0px) - 3px);opacity:.6;position:absolute;top:0;width:3px;z-index:1}
|
package/es/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ export { usePlusFormReset } from './hooks/usePlusFormReset.mjs';
|
|
|
9
9
|
export { useSelectWithPagination } from './hooks/useSelectWithPagination.mjs';
|
|
10
10
|
export { useDictInjection } from './hooks/useDictInjection.mjs';
|
|
11
11
|
export { DefaultPageInfo, DefaultPageSizeList } from './constants/page.mjs';
|
|
12
|
-
export { DatePickerValueIsArrayList, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './constants/form.mjs';
|
|
12
|
+
export { DatePickerValueIsArrayList, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './constants/form.mjs';
|
|
13
13
|
export { selectValueTypeList } from './constants/display-item.mjs';
|
|
14
14
|
export { DictStoreInjectionKey } from './constants/dict.mjs';
|
|
15
15
|
export { version } from './version.mjs';
|