yc-pro-components 0.0.49 → 0.0.50
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/yc-config-provider/src/type.d.ts +2 -0
- package/es/components/yc-config-provider/src/type.mjs +2 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +60 -172
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +21 -3
- package/es/index.css +10 -10
- package/index.css +6 -6
- package/index.js +24 -5
- package/index.min.css +1 -1
- package/index.min.js +9 -9
- package/index.min.mjs +11 -11
- package/index.mjs +24 -5
- package/lib/components/yc-config-provider/src/type.d.ts +2 -0
- package/lib/components/yc-config-provider/src/type.js +2 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +60 -172
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +20 -2
- package/lib/index.css +9 -9
- 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
|
@@ -63,6 +63,11 @@ interface Props {
|
|
|
63
63
|
* @default false(默认启用缓存)
|
|
64
64
|
*/
|
|
65
65
|
disableColumnCache?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 列设置工具栏文案(字段管理按钮旁文字)
|
|
68
|
+
* @description 不传时使用 YcConfigProvider 的 components.plusPage.columnSettingsText,再缺省为「字段管理」
|
|
69
|
+
*/
|
|
70
|
+
columnSettingsText?: string;
|
|
66
71
|
}
|
|
67
72
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
68
73
|
isCard: boolean;
|
|
@@ -78,6 +83,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
78
83
|
hideHeaderFilter: boolean;
|
|
79
84
|
columnCacheKey: undefined;
|
|
80
85
|
disableColumnCache: boolean;
|
|
86
|
+
columnSettingsText: undefined;
|
|
81
87
|
}>, {
|
|
82
88
|
plusPageRef: Ref<({
|
|
83
89
|
$: ComponentInternalInstance;
|
|
@@ -988,6 +994,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
988
994
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
989
995
|
}, {
|
|
990
996
|
formInstance: Ref< FormInstance | null>;
|
|
997
|
+
/**
|
|
998
|
+
* 默认每页条数(公共配置)
|
|
999
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
1000
|
+
*/
|
|
991
1001
|
handleSubmit: () => void;
|
|
992
1002
|
handleReset: () => void;
|
|
993
1003
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1050,10 +1060,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1050
1060
|
};
|
|
1051
1061
|
$forceUpdate: () => void;
|
|
1052
1062
|
$nextTick: typeof nextTick;
|
|
1053
|
-
/**
|
|
1054
|
-
* 搜索表单显示状态
|
|
1055
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
1056
|
-
*/
|
|
1057
1063
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
1058
1064
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
1059
1065
|
collapseDuration: {
|
|
@@ -1170,6 +1176,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1170
1176
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
1171
1177
|
}, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
|
|
1172
1178
|
formInstance: Ref< FormInstance | null>;
|
|
1179
|
+
/**
|
|
1180
|
+
* 默认每页条数(公共配置)
|
|
1181
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
1182
|
+
*/
|
|
1173
1183
|
handleSubmit: () => void;
|
|
1174
1184
|
handleReset: () => void;
|
|
1175
1185
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -1177,10 +1187,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1177
1187
|
index: number;
|
|
1178
1188
|
title: string | ComputedRef<string>;
|
|
1179
1189
|
name?: string | undefined;
|
|
1180
|
-
icon?: Component | undefined;
|
|
1181
|
-
* 是否禁用列设置本地缓存
|
|
1182
|
-
* @default false(默认启用缓存)
|
|
1183
|
-
*/
|
|
1190
|
+
icon?: Component | undefined;
|
|
1184
1191
|
cardProps?: Partial< Mutable<CardProps> & {
|
|
1185
1192
|
style?: CSSProperties | undefined;
|
|
1186
1193
|
class?: any;
|
|
@@ -1473,10 +1480,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1473
1480
|
};
|
|
1474
1481
|
$forceUpdate: () => void;
|
|
1475
1482
|
$nextTick: typeof nextTick;
|
|
1476
|
-
/**
|
|
1477
|
-
* 搜索表单显示状态
|
|
1478
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
1479
|
-
*/
|
|
1480
1483
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
1481
1484
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
1482
1485
|
columns: {
|
|
@@ -1903,6 +1906,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1903
1906
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
1904
1907
|
}, {
|
|
1905
1908
|
formInstance: Ref< FormInstance | null>;
|
|
1909
|
+
/**
|
|
1910
|
+
* 默认每页条数(公共配置)
|
|
1911
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
1912
|
+
*/
|
|
1906
1913
|
handleSubmit: () => void;
|
|
1907
1914
|
handleReset: () => void;
|
|
1908
1915
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1965,10 +1972,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1965
1972
|
};
|
|
1966
1973
|
$forceUpdate: () => void;
|
|
1967
1974
|
$nextTick: typeof nextTick;
|
|
1968
|
-
/**
|
|
1969
|
-
* 搜索表单显示状态
|
|
1970
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
1971
|
-
*/
|
|
1972
1975
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
1973
1976
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
1974
1977
|
collapseDuration: {
|
|
@@ -2085,6 +2088,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2085
2088
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
2086
2089
|
}, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
|
|
2087
2090
|
formInstance: Ref< FormInstance | null>;
|
|
2091
|
+
/**
|
|
2092
|
+
* 默认每页条数(公共配置)
|
|
2093
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
2094
|
+
*/
|
|
2088
2095
|
handleSubmit: () => void;
|
|
2089
2096
|
handleReset: () => void;
|
|
2090
2097
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -2092,10 +2099,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2092
2099
|
index: number;
|
|
2093
2100
|
title: string | ComputedRef<string>;
|
|
2094
2101
|
name?: string | undefined;
|
|
2095
|
-
icon?: Component | undefined;
|
|
2096
|
-
* 是否禁用列设置本地缓存
|
|
2097
|
-
* @default false(默认启用缓存)
|
|
2098
|
-
*/
|
|
2102
|
+
icon?: Component | undefined;
|
|
2099
2103
|
cardProps?: Partial< Mutable<CardProps> & {
|
|
2100
2104
|
style?: CSSProperties | undefined;
|
|
2101
2105
|
class?: any;
|
|
@@ -2461,12 +2465,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2461
2465
|
data: RecordType[];
|
|
2462
2466
|
columns: PlusColumn[];
|
|
2463
2467
|
headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
2464
|
-
/**
|
|
2465
|
-
* 表头筛选配置
|
|
2466
|
-
* - 传入 true 启用默认配置
|
|
2467
|
-
* - 传入对象自定义配置
|
|
2468
|
-
* - 不传或传入 false 禁用(默认)
|
|
2469
|
-
*/
|
|
2470
2468
|
row: any[];
|
|
2471
2469
|
rowIndex: number;
|
|
2472
2470
|
column: TableColumnCtx<any[]>;
|
|
@@ -2514,12 +2512,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2514
2512
|
readonly data: RecordType[];
|
|
2515
2513
|
readonly columns: PlusColumn[];
|
|
2516
2514
|
readonly headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
2517
|
-
/**
|
|
2518
|
-
* 表头筛选配置
|
|
2519
|
-
* - 传入 true 启用默认配置
|
|
2520
|
-
* - 传入对象自定义配置
|
|
2521
|
-
* - 不传或传入 false 禁用(默认)
|
|
2522
|
-
*/
|
|
2523
2515
|
row: any[];
|
|
2524
2516
|
rowIndex: number;
|
|
2525
2517
|
column: TableColumnCtx<any[]>;
|
|
@@ -2590,12 +2582,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2590
2582
|
};
|
|
2591
2583
|
headerCellStyle: {
|
|
2592
2584
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
2593
|
-
/**
|
|
2594
|
-
* 表头筛选配置
|
|
2595
|
-
* - 传入 true 启用默认配置
|
|
2596
|
-
* - 传入对象自定义配置
|
|
2597
|
-
* - 不传或传入 false 禁用(默认)
|
|
2598
|
-
*/
|
|
2599
2585
|
row: any[];
|
|
2600
2586
|
rowIndex: number;
|
|
2601
2587
|
column: TableColumnCtx<any[]>;
|
|
@@ -2759,12 +2745,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2759
2745
|
};
|
|
2760
2746
|
headerCellStyle: {
|
|
2761
2747
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
2762
|
-
/**
|
|
2763
|
-
* 表头筛选配置
|
|
2764
|
-
* - 传入 true 启用默认配置
|
|
2765
|
-
* - 传入对象自定义配置
|
|
2766
|
-
* - 不传或传入 false 禁用(默认)
|
|
2767
|
-
*/
|
|
2768
2748
|
row: any[];
|
|
2769
2749
|
rowIndex: number;
|
|
2770
2750
|
column: TableColumnCtx<any[]>;
|
|
@@ -2919,12 +2899,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2919
2899
|
data: RecordType[];
|
|
2920
2900
|
columns: PlusColumn[];
|
|
2921
2901
|
headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
2922
|
-
/**
|
|
2923
|
-
* 表头筛选配置
|
|
2924
|
-
* - 传入 true 启用默认配置
|
|
2925
|
-
* - 传入对象自定义配置
|
|
2926
|
-
* - 不传或传入 false 禁用(默认)
|
|
2927
|
-
*/
|
|
2928
2902
|
row: any[];
|
|
2929
2903
|
rowIndex: number;
|
|
2930
2904
|
column: TableColumnCtx<any[]>;
|
|
@@ -2987,10 +2961,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2987
2961
|
};
|
|
2988
2962
|
$forceUpdate: () => void;
|
|
2989
2963
|
$nextTick: typeof nextTick;
|
|
2990
|
-
/**
|
|
2991
|
-
* 搜索表单显示状态
|
|
2992
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
2993
|
-
*/
|
|
2994
2964
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
2995
2965
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
2996
2966
|
data: {
|
|
@@ -3006,12 +2976,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3006
2976
|
};
|
|
3007
2977
|
headerCellStyle: {
|
|
3008
2978
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
3009
|
-
/**
|
|
3010
|
-
* 表头筛选配置
|
|
3011
|
-
* - 传入 true 启用默认配置
|
|
3012
|
-
* - 传入对象自定义配置
|
|
3013
|
-
* - 不传或传入 false 禁用(默认)
|
|
3014
|
-
*/
|
|
3015
2979
|
row: any[];
|
|
3016
2980
|
rowIndex: number;
|
|
3017
2981
|
column: TableColumnCtx<any[]>;
|
|
@@ -3158,6 +3122,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3158
3122
|
row: RecordType;
|
|
3159
3123
|
index: number;
|
|
3160
3124
|
rowIndex: number;
|
|
3125
|
+
/**
|
|
3126
|
+
* 使用表头筛选 Hook
|
|
3127
|
+
* 使用 getter 函数传递 props 以保持响应性
|
|
3128
|
+
*/
|
|
3161
3129
|
fieldProps: RecordType;
|
|
3162
3130
|
options: OptionsRow<undefined>[];
|
|
3163
3131
|
value: any;
|
|
@@ -3579,10 +3547,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3579
3547
|
};
|
|
3580
3548
|
$forceUpdate: () => void;
|
|
3581
3549
|
$nextTick: typeof nextTick;
|
|
3582
|
-
/**
|
|
3583
|
-
* 搜索表单显示状态
|
|
3584
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
3585
|
-
*/
|
|
3586
3550
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
3587
3551
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
3588
3552
|
fixed: {
|
|
@@ -3787,10 +3751,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3787
3751
|
};
|
|
3788
3752
|
$forceUpdate: () => void;
|
|
3789
3753
|
$nextTick: typeof nextTick;
|
|
3790
|
-
/**
|
|
3791
|
-
* 搜索表单显示状态
|
|
3792
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
3793
|
-
*/
|
|
3794
3754
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
3795
3755
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
3796
3756
|
search: {
|
|
@@ -4505,6 +4465,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4505
4465
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
4506
4466
|
}, {
|
|
4507
4467
|
formInstance: Ref< FormInstance | null>;
|
|
4468
|
+
/**
|
|
4469
|
+
* 默认每页条数(公共配置)
|
|
4470
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
4471
|
+
*/
|
|
4508
4472
|
handleSubmit: () => void;
|
|
4509
4473
|
handleReset: () => void;
|
|
4510
4474
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -4567,10 +4531,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4567
4531
|
};
|
|
4568
4532
|
$forceUpdate: () => void;
|
|
4569
4533
|
$nextTick: typeof nextTick;
|
|
4570
|
-
/**
|
|
4571
|
-
* 搜索表单显示状态
|
|
4572
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
4573
|
-
*/
|
|
4574
4534
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
4575
4535
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
4576
4536
|
collapseDuration: {
|
|
@@ -4687,6 +4647,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4687
4647
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
4688
4648
|
}, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
|
|
4689
4649
|
formInstance: Ref< FormInstance | null>;
|
|
4650
|
+
/**
|
|
4651
|
+
* 默认每页条数(公共配置)
|
|
4652
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
4653
|
+
*/
|
|
4690
4654
|
handleSubmit: () => void;
|
|
4691
4655
|
handleReset: () => void;
|
|
4692
4656
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -4694,10 +4658,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4694
4658
|
index: number;
|
|
4695
4659
|
title: string | ComputedRef<string>;
|
|
4696
4660
|
name?: string | undefined;
|
|
4697
|
-
icon?: Component | undefined;
|
|
4698
|
-
* 是否禁用列设置本地缓存
|
|
4699
|
-
* @default false(默认启用缓存)
|
|
4700
|
-
*/
|
|
4661
|
+
icon?: Component | undefined;
|
|
4701
4662
|
cardProps?: Partial< Mutable<CardProps> & {
|
|
4702
4663
|
style?: CSSProperties | undefined;
|
|
4703
4664
|
class?: any;
|
|
@@ -4990,10 +4951,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4990
4951
|
};
|
|
4991
4952
|
$forceUpdate: () => void;
|
|
4992
4953
|
$nextTick: typeof nextTick;
|
|
4993
|
-
/**
|
|
4994
|
-
* 搜索表单显示状态
|
|
4995
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
4996
|
-
*/
|
|
4997
4954
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
4998
4955
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
4999
4956
|
columns: {
|
|
@@ -5420,6 +5377,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5420
5377
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
5421
5378
|
}, {
|
|
5422
5379
|
formInstance: Ref< FormInstance | null>;
|
|
5380
|
+
/**
|
|
5381
|
+
* 默认每页条数(公共配置)
|
|
5382
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
5383
|
+
*/
|
|
5423
5384
|
handleSubmit: () => void;
|
|
5424
5385
|
handleReset: () => void;
|
|
5425
5386
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -5482,10 +5443,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5482
5443
|
};
|
|
5483
5444
|
$forceUpdate: () => void;
|
|
5484
5445
|
$nextTick: typeof nextTick;
|
|
5485
|
-
/**
|
|
5486
|
-
* 搜索表单显示状态
|
|
5487
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
5488
|
-
*/
|
|
5489
5446
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
5490
5447
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
5491
5448
|
collapseDuration: {
|
|
@@ -5602,6 +5559,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5602
5559
|
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
5603
5560
|
}, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
|
|
5604
5561
|
formInstance: Ref< FormInstance | null>;
|
|
5562
|
+
/**
|
|
5563
|
+
* 默认每页条数(公共配置)
|
|
5564
|
+
* @description 统一管理所有使用 YcPlusPage 的页面的默认分页大小
|
|
5565
|
+
*/
|
|
5605
5566
|
handleSubmit: () => void;
|
|
5606
5567
|
handleReset: () => void;
|
|
5607
5568
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -5609,10 +5570,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5609
5570
|
index: number;
|
|
5610
5571
|
title: string | ComputedRef<string>;
|
|
5611
5572
|
name?: string | undefined;
|
|
5612
|
-
icon?: Component | undefined;
|
|
5613
|
-
* 是否禁用列设置本地缓存
|
|
5614
|
-
* @default false(默认启用缓存)
|
|
5615
|
-
*/
|
|
5573
|
+
icon?: Component | undefined;
|
|
5616
5574
|
cardProps?: Partial< Mutable<CardProps> & {
|
|
5617
5575
|
style?: CSSProperties | undefined;
|
|
5618
5576
|
class?: any;
|
|
@@ -5978,12 +5936,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5978
5936
|
data: RecordType[];
|
|
5979
5937
|
columns: PlusColumn[];
|
|
5980
5938
|
headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
5981
|
-
/**
|
|
5982
|
-
* 表头筛选配置
|
|
5983
|
-
* - 传入 true 启用默认配置
|
|
5984
|
-
* - 传入对象自定义配置
|
|
5985
|
-
* - 不传或传入 false 禁用(默认)
|
|
5986
|
-
*/
|
|
5987
5939
|
row: any[];
|
|
5988
5940
|
rowIndex: number;
|
|
5989
5941
|
column: TableColumnCtx<any[]>;
|
|
@@ -6031,12 +5983,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6031
5983
|
readonly data: RecordType[];
|
|
6032
5984
|
readonly columns: PlusColumn[];
|
|
6033
5985
|
readonly headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
6034
|
-
/**
|
|
6035
|
-
* 表头筛选配置
|
|
6036
|
-
* - 传入 true 启用默认配置
|
|
6037
|
-
* - 传入对象自定义配置
|
|
6038
|
-
* - 不传或传入 false 禁用(默认)
|
|
6039
|
-
*/
|
|
6040
5986
|
row: any[];
|
|
6041
5987
|
rowIndex: number;
|
|
6042
5988
|
column: TableColumnCtx<any[]>;
|
|
@@ -6107,12 +6053,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6107
6053
|
};
|
|
6108
6054
|
headerCellStyle: {
|
|
6109
6055
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
6110
|
-
/**
|
|
6111
|
-
* 表头筛选配置
|
|
6112
|
-
* - 传入 true 启用默认配置
|
|
6113
|
-
* - 传入对象自定义配置
|
|
6114
|
-
* - 不传或传入 false 禁用(默认)
|
|
6115
|
-
*/
|
|
6116
6056
|
row: any[];
|
|
6117
6057
|
rowIndex: number;
|
|
6118
6058
|
column: TableColumnCtx<any[]>;
|
|
@@ -6276,12 +6216,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6276
6216
|
};
|
|
6277
6217
|
headerCellStyle: {
|
|
6278
6218
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
6279
|
-
/**
|
|
6280
|
-
* 表头筛选配置
|
|
6281
|
-
* - 传入 true 启用默认配置
|
|
6282
|
-
* - 传入对象自定义配置
|
|
6283
|
-
* - 不传或传入 false 禁用(默认)
|
|
6284
|
-
*/
|
|
6285
6219
|
row: any[];
|
|
6286
6220
|
rowIndex: number;
|
|
6287
6221
|
column: TableColumnCtx<any[]>;
|
|
@@ -6436,12 +6370,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6436
6370
|
data: RecordType[];
|
|
6437
6371
|
columns: PlusColumn[];
|
|
6438
6372
|
headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
6439
|
-
/**
|
|
6440
|
-
* 表头筛选配置
|
|
6441
|
-
* - 传入 true 启用默认配置
|
|
6442
|
-
* - 传入对象自定义配置
|
|
6443
|
-
* - 不传或传入 false 禁用(默认)
|
|
6444
|
-
*/
|
|
6445
6373
|
row: any[];
|
|
6446
6374
|
rowIndex: number;
|
|
6447
6375
|
column: TableColumnCtx<any[]>;
|
|
@@ -6504,10 +6432,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6504
6432
|
};
|
|
6505
6433
|
$forceUpdate: () => void;
|
|
6506
6434
|
$nextTick: typeof nextTick;
|
|
6507
|
-
/**
|
|
6508
|
-
* 搜索表单显示状态
|
|
6509
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
6510
|
-
*/
|
|
6511
6435
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
6512
6436
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
6513
6437
|
data: {
|
|
@@ -6523,12 +6447,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6523
6447
|
};
|
|
6524
6448
|
headerCellStyle: {
|
|
6525
6449
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
6526
|
-
/**
|
|
6527
|
-
* 表头筛选配置
|
|
6528
|
-
* - 传入 true 启用默认配置
|
|
6529
|
-
* - 传入对象自定义配置
|
|
6530
|
-
* - 不传或传入 false 禁用(默认)
|
|
6531
|
-
*/
|
|
6532
6450
|
row: any[];
|
|
6533
6451
|
rowIndex: number;
|
|
6534
6452
|
column: TableColumnCtx<any[]>;
|
|
@@ -6675,6 +6593,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
6675
6593
|
row: RecordType;
|
|
6676
6594
|
index: number;
|
|
6677
6595
|
rowIndex: number;
|
|
6596
|
+
/**
|
|
6597
|
+
* 使用表头筛选 Hook
|
|
6598
|
+
* 使用 getter 函数传递 props 以保持响应性
|
|
6599
|
+
*/
|
|
6678
6600
|
fieldProps: RecordType;
|
|
6679
6601
|
options: OptionsRow<undefined>[];
|
|
6680
6602
|
value: any;
|
|
@@ -7096,10 +7018,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7096
7018
|
};
|
|
7097
7019
|
$forceUpdate: () => void;
|
|
7098
7020
|
$nextTick: typeof nextTick;
|
|
7099
|
-
/**
|
|
7100
|
-
* 搜索表单显示状态
|
|
7101
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
7102
|
-
*/
|
|
7103
7021
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
7104
7022
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
7105
7023
|
fixed: {
|
|
@@ -7362,6 +7280,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7362
7280
|
row: RecordType;
|
|
7363
7281
|
index: number;
|
|
7364
7282
|
rowIndex: number;
|
|
7283
|
+
/**
|
|
7284
|
+
* 使用表头筛选 Hook
|
|
7285
|
+
* 使用 getter 函数传递 props 以保持响应性
|
|
7286
|
+
*/
|
|
7365
7287
|
fieldProps: RecordType;
|
|
7366
7288
|
options: OptionsRow<undefined>[];
|
|
7367
7289
|
value: any;
|
|
@@ -7390,12 +7312,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7390
7312
|
data: RecordType[];
|
|
7391
7313
|
columns: PlusColumn[];
|
|
7392
7314
|
headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
7393
|
-
/**
|
|
7394
|
-
* 表头筛选配置
|
|
7395
|
-
* - 传入 true 启用默认配置
|
|
7396
|
-
* - 传入对象自定义配置
|
|
7397
|
-
* - 不传或传入 false 禁用(默认)
|
|
7398
|
-
*/
|
|
7399
7315
|
row: any[];
|
|
7400
7316
|
rowIndex: number;
|
|
7401
7317
|
column: TableColumnCtx<any[]>;
|
|
@@ -7443,12 +7359,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7443
7359
|
readonly data: RecordType[];
|
|
7444
7360
|
readonly columns: PlusColumn[];
|
|
7445
7361
|
readonly headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
7446
|
-
/**
|
|
7447
|
-
* 表头筛选配置
|
|
7448
|
-
* - 传入 true 启用默认配置
|
|
7449
|
-
* - 传入对象自定义配置
|
|
7450
|
-
* - 不传或传入 false 禁用(默认)
|
|
7451
|
-
*/
|
|
7452
7362
|
row: any[];
|
|
7453
7363
|
rowIndex: number;
|
|
7454
7364
|
column: TableColumnCtx<any[]>;
|
|
@@ -7519,12 +7429,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7519
7429
|
};
|
|
7520
7430
|
headerCellStyle: {
|
|
7521
7431
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
7522
|
-
/**
|
|
7523
|
-
* 表头筛选配置
|
|
7524
|
-
* - 传入 true 启用默认配置
|
|
7525
|
-
* - 传入对象自定义配置
|
|
7526
|
-
* - 不传或传入 false 禁用(默认)
|
|
7527
|
-
*/
|
|
7528
7432
|
row: any[];
|
|
7529
7433
|
rowIndex: number;
|
|
7530
7434
|
column: TableColumnCtx<any[]>;
|
|
@@ -7688,12 +7592,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7688
7592
|
};
|
|
7689
7593
|
headerCellStyle: {
|
|
7690
7594
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
7691
|
-
/**
|
|
7692
|
-
* 表头筛选配置
|
|
7693
|
-
* - 传入 true 启用默认配置
|
|
7694
|
-
* - 传入对象自定义配置
|
|
7695
|
-
* - 不传或传入 false 禁用(默认)
|
|
7696
|
-
*/
|
|
7697
7595
|
row: any[];
|
|
7698
7596
|
rowIndex: number;
|
|
7699
7597
|
column: TableColumnCtx<any[]>;
|
|
@@ -7848,12 +7746,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7848
7746
|
data: RecordType[];
|
|
7849
7747
|
columns: PlusColumn[];
|
|
7850
7748
|
headerCellStyle: Partial< CSSProperties> | Partial<(data: {
|
|
7851
|
-
/**
|
|
7852
|
-
* 表头筛选配置
|
|
7853
|
-
* - 传入 true 启用默认配置
|
|
7854
|
-
* - 传入对象自定义配置
|
|
7855
|
-
* - 不传或传入 false 禁用(默认)
|
|
7856
|
-
*/
|
|
7857
7749
|
row: any[];
|
|
7858
7750
|
rowIndex: number;
|
|
7859
7751
|
column: TableColumnCtx<any[]>;
|
|
@@ -7916,10 +7808,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7916
7808
|
};
|
|
7917
7809
|
$forceUpdate: () => void;
|
|
7918
7810
|
$nextTick: typeof nextTick;
|
|
7919
|
-
/**
|
|
7920
|
-
* 搜索表单显示状态
|
|
7921
|
-
* 优先级:props.showSearch > 全局配置 showPageSearch > 默认 true
|
|
7922
|
-
*/
|
|
7923
7811
|
$watch<T_2 extends string | ((...args: any) => any)>(source: T_2, cb: T_2 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
7924
7812
|
} & Omit<Readonly< ExtractPropTypes<{
|
|
7925
7813
|
data: {
|
|
@@ -7935,12 +7823,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
7935
7823
|
};
|
|
7936
7824
|
headerCellStyle: {
|
|
7937
7825
|
type: PropType<Partial< CSSProperties> | Partial<(data: {
|
|
7938
|
-
/**
|
|
7939
|
-
* 表头筛选配置
|
|
7940
|
-
* - 传入 true 启用默认配置
|
|
7941
|
-
* - 传入对象自定义配置
|
|
7942
|
-
* - 不传或传入 false 禁用(默认)
|
|
7943
|
-
*/
|
|
7944
7826
|
row: any[];
|
|
7945
7827
|
rowIndex: number;
|
|
7946
7828
|
column: TableColumnCtx<any[]>;
|
|
@@ -8087,6 +7969,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8087
7969
|
row: RecordType;
|
|
8088
7970
|
index: number;
|
|
8089
7971
|
rowIndex: number;
|
|
7972
|
+
/**
|
|
7973
|
+
* 使用表头筛选 Hook
|
|
7974
|
+
* 使用 getter 函数传递 props 以保持响应性
|
|
7975
|
+
*/
|
|
8090
7976
|
fieldProps: RecordType;
|
|
8091
7977
|
options: OptionsRow<undefined>[];
|
|
8092
7978
|
value: any;
|
|
@@ -8132,6 +8018,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8132
8018
|
hideHeaderFilter: boolean;
|
|
8133
8019
|
columnCacheKey: undefined;
|
|
8134
8020
|
disableColumnCache: boolean;
|
|
8021
|
+
columnSettingsText: undefined;
|
|
8135
8022
|
}>>> & {
|
|
8136
8023
|
"onHeader-filter-confirm"?: ((payload: HeaderFilterPayload) => any) | undefined;
|
|
8137
8024
|
"onHeader-filter-reset"?: ((payload: HeaderFilterResetPayload) => any) | undefined;
|
|
@@ -8140,6 +8027,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
8140
8027
|
headerFilter: boolean | HeaderFilterConfig;
|
|
8141
8028
|
pagination: false | Record<string, unknown>;
|
|
8142
8029
|
showSearch: boolean;
|
|
8030
|
+
columnSettingsText: string;
|
|
8143
8031
|
isCard: boolean;
|
|
8144
8032
|
hideHeaderFilter: boolean;
|
|
8145
8033
|
hideColumnSettingsIcon: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _sfc_main from './index.vue2.mjs';
|
|
2
2
|
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
3
|
|
|
4
|
-
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bc9aafd7"], ["__file", "index.vue"]]);
|
|
5
5
|
|
|
6
6
|
export { YcPlusPageComponent as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, useSlots, h, watch, onMounted, nextTick, onUnmounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, renderList, normalizeProps, createCommentVNode } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed, useSlots, h, watch, onMounted, nextTick, onUnmounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, mergeProps, createSlots, withCtx, renderSlot, createElementVNode, toDisplayString, renderList, normalizeProps, createCommentVNode } from 'vue';
|
|
2
2
|
import { merge } from 'lodash-es';
|
|
3
3
|
import { PlusPage } from '../../page/index.mjs';
|
|
4
4
|
import YcSvgIcon from '../../yc-svg-icon/src/index.vue.mjs';
|
|
@@ -34,7 +34,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
headerFilter: { type: [Object, Boolean], default: false },
|
|
35
35
|
hideHeaderFilter: { type: Boolean, default: true },
|
|
36
36
|
columnCacheKey: { default: void 0 },
|
|
37
|
-
disableColumnCache: { type: Boolean, default: false }
|
|
37
|
+
disableColumnCache: { type: Boolean, default: false },
|
|
38
|
+
columnSettingsText: { default: void 0 }
|
|
38
39
|
},
|
|
39
40
|
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
40
41
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -176,6 +177,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
177
|
if (customIcon) return customIcon;
|
|
177
178
|
return getCdnUrl("images", "table_value_setting.svg");
|
|
178
179
|
});
|
|
180
|
+
const resolvedColumnSettingsText = computed(() => {
|
|
181
|
+
if (props.columnSettingsText !== void 0) {
|
|
182
|
+
return props.columnSettingsText;
|
|
183
|
+
}
|
|
184
|
+
const fromGlobal = plusPageConfig == null ? void 0 : plusPageConfig.columnSettingsText;
|
|
185
|
+
if (fromGlobal !== void 0) {
|
|
186
|
+
return fromGlobal;
|
|
187
|
+
}
|
|
188
|
+
return "\u5B57\u6BB5\u7BA1\u7406";
|
|
189
|
+
});
|
|
179
190
|
watch(
|
|
180
191
|
showSearch,
|
|
181
192
|
() => {
|
|
@@ -419,6 +430,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
419
430
|
return !((tableConfig == null ? void 0 : tableConfig.border) === true);
|
|
420
431
|
});
|
|
421
432
|
void fieldSettingIconUrl.value;
|
|
433
|
+
void resolvedColumnSettingsText.value;
|
|
422
434
|
void hasRequest.value;
|
|
423
435
|
void showDefaultColumnSettingsIcon.value;
|
|
424
436
|
__expose({
|
|
@@ -484,7 +496,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
484
496
|
src: fieldSettingIconUrl.value,
|
|
485
497
|
size: 16
|
|
486
498
|
}, null, 8, ["src"]),
|
|
487
|
-
createElementVNode(
|
|
499
|
+
createElementVNode(
|
|
500
|
+
"span",
|
|
501
|
+
{ class: "column-settings-text" },
|
|
502
|
+
toDisplayString(resolvedColumnSettingsText.value),
|
|
503
|
+
1
|
|
504
|
+
/* TEXT */
|
|
505
|
+
)
|
|
488
506
|
])
|
|
489
507
|
]),
|
|
490
508
|
key: "1"
|