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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed, provide, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, createTextVNode, toDisplayString, renderList, normalizeClass, normalizeStyle, resolveDynamicComponent } from 'vue';
|
|
1
|
+
import { defineComponent, ref, watch, computed, provide, inject, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, createTextVNode, toDisplayString, renderList, normalizeClass, normalizeStyle, resolveDynamicComponent } from 'vue';
|
|
2
2
|
import { cloneDeep } from 'lodash-es';
|
|
3
3
|
import { DocumentCopy, Select } from '@element-plus/icons-vue';
|
|
4
4
|
import { PlusForm } from '../../form/index.mjs';
|
|
5
5
|
import { getValue, setValue, getCustomProps, getFieldSlotName, getExtraSlotName, getPreviousSlotName, getTableCellSlotName } from '../../utils/index.mjs';
|
|
6
6
|
import { useGetOptions } from '../../../hooks/useGetOptions.mjs';
|
|
7
7
|
import { ElIcon, ElDivider } from 'element-plus';
|
|
8
|
-
import { TableFormRowInfoInjectionKey } from '../../../constants/form.mjs';
|
|
8
|
+
import { TableFormRowInfoInjectionKey, TableColumnsEmptyTextInjectionKey } from '../../../constants/form.mjs';
|
|
9
9
|
import { selectValueTypeList } from '../../../constants/display-item.mjs';
|
|
10
10
|
import 'sortablejs';
|
|
11
11
|
import { PlusRender } from '../../render/index.mjs';
|
|
@@ -108,16 +108,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
108
|
const value = props.column.valueType === "link" ? props.column.linkText || displayValue.value : displayValue.value;
|
|
109
109
|
if (!selectValueTypeList.includes(props.column.valueType) && !isEdit.value) {
|
|
110
110
|
if (props.column.formatter && isFunction(props.column.formatter)) {
|
|
111
|
-
|
|
111
|
+
const formattedValue = props.column.formatter(value, renderParams.value);
|
|
112
|
+
return handleEmptyValue(formattedValue);
|
|
112
113
|
}
|
|
113
114
|
if (displayComponent.value.format && isFunction(displayComponent.value.format)) {
|
|
114
|
-
|
|
115
|
+
const formattedValue = displayComponent.value.format(
|
|
115
116
|
value,
|
|
116
117
|
customFieldProps.value.format || customFieldProps.value.valueFormat
|
|
117
118
|
);
|
|
119
|
+
return handleEmptyValue(formattedValue);
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
|
-
return value;
|
|
122
|
+
return handleEmptyValue(value);
|
|
121
123
|
});
|
|
122
124
|
const modelValues = computed({
|
|
123
125
|
get() {
|
|
@@ -149,6 +151,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
151
|
column: { ...props.rest.column, ...props.column }
|
|
150
152
|
}));
|
|
151
153
|
provide(TableFormRowInfoInjectionKey, tableRowInfo);
|
|
154
|
+
const injectedColumnsEmptyText = inject(TableColumnsEmptyTextInjectionKey, computed(() => "-"));
|
|
155
|
+
const handleEmptyValue = (value) => {
|
|
156
|
+
var _a;
|
|
157
|
+
if (value === null || value === void 0 || value === "") {
|
|
158
|
+
if (props.column.emptyText !== void 0) {
|
|
159
|
+
return props.column.emptyText;
|
|
160
|
+
}
|
|
161
|
+
return (_a = injectedColumnsEmptyText.value) != null ? _a : "-";
|
|
162
|
+
}
|
|
163
|
+
return value;
|
|
164
|
+
};
|
|
152
165
|
const imageUrl = computed(() => {
|
|
153
166
|
const option = formatterValue.value;
|
|
154
167
|
if (option && isString(option)) {
|
|
@@ -124,6 +124,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
124
124
|
}) => RenderTypes) | undefined;
|
|
125
125
|
order?: number | ComputedRef<number> | undefined;
|
|
126
126
|
children?: PlusColumn[] | undefined;
|
|
127
|
+
emptyText?: string | undefined;
|
|
127
128
|
autoDict?: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
128
129
|
store?: any;
|
|
129
130
|
method?: string | undefined;
|
|
@@ -465,6 +466,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
465
466
|
}) => RenderTypes) | undefined;
|
|
466
467
|
order?: number | ComputedRef<number> | undefined;
|
|
467
468
|
children?: PlusColumn[] | undefined;
|
|
469
|
+
emptyText?: string | undefined;
|
|
468
470
|
autoDict?: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
469
471
|
store?: any;
|
|
470
472
|
method?: string | undefined;
|
|
@@ -51,6 +51,10 @@ export declare const PlusPage: {
|
|
|
51
51
|
type: PropType<false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">>;
|
|
52
52
|
default: () => {};
|
|
53
53
|
};
|
|
54
|
+
columnsEmptyText: {
|
|
55
|
+
type: PropType<string>;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
54
58
|
postData: {
|
|
55
59
|
type: PropType<(<T = RecordType[]>(data: T[]) => T[])>;
|
|
56
60
|
default: undefined;
|
|
@@ -3297,6 +3301,7 @@ export declare const PlusPage: {
|
|
|
3297
3301
|
offsetBottom?: number | undefined;
|
|
3298
3302
|
timeout?: number | undefined;
|
|
3299
3303
|
};
|
|
3304
|
+
columnsEmptyText: string;
|
|
3300
3305
|
}> & Omit<{
|
|
3301
3306
|
readonly data: RecordType[];
|
|
3302
3307
|
readonly columns: PlusColumn[];
|
|
@@ -3338,6 +3343,7 @@ export declare const PlusPage: {
|
|
|
3338
3343
|
offsetBottom?: number | undefined;
|
|
3339
3344
|
timeout?: number | undefined;
|
|
3340
3345
|
};
|
|
3346
|
+
readonly columnsEmptyText: string;
|
|
3341
3347
|
readonly height?: string | number | undefined;
|
|
3342
3348
|
readonly radioProps?: Partial< PlusRadioProps & {
|
|
3343
3349
|
style?: CSSProperties | undefined;
|
|
@@ -3489,6 +3495,10 @@ export declare const PlusPage: {
|
|
|
3489
3495
|
filterTableHeaderOverflowLabelLength: {
|
|
3490
3496
|
type: PropType<number>;
|
|
3491
3497
|
};
|
|
3498
|
+
columnsEmptyText: {
|
|
3499
|
+
type: PropType<string>;
|
|
3500
|
+
default: string;
|
|
3501
|
+
};
|
|
3492
3502
|
}>> & {
|
|
3493
3503
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3494
3504
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -3501,7 +3511,7 @@ export declare const PlusPage: {
|
|
|
3501
3511
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3502
3512
|
onEdited?: (() => any) | undefined;
|
|
3503
3513
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
3504
|
-
}, "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">;
|
|
3514
|
+
}, "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">;
|
|
3505
3515
|
$attrs: {
|
|
3506
3516
|
[x: string]: unknown;
|
|
3507
3517
|
};
|
|
@@ -3648,6 +3658,10 @@ export declare const PlusPage: {
|
|
|
3648
3658
|
filterTableHeaderOverflowLabelLength: {
|
|
3649
3659
|
type: PropType<number>;
|
|
3650
3660
|
};
|
|
3661
|
+
columnsEmptyText: {
|
|
3662
|
+
type: PropType<string>;
|
|
3663
|
+
default: string;
|
|
3664
|
+
};
|
|
3651
3665
|
}>> & {
|
|
3652
3666
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3653
3667
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -4269,6 +4283,7 @@ export declare const PlusPage: {
|
|
|
4269
4283
|
offsetBottom?: number | undefined;
|
|
4270
4284
|
timeout?: number | undefined;
|
|
4271
4285
|
};
|
|
4286
|
+
columnsEmptyText: string;
|
|
4272
4287
|
}, {}, string, {}> & {
|
|
4273
4288
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
4274
4289
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -4422,6 +4437,10 @@ export declare const PlusPage: {
|
|
|
4422
4437
|
filterTableHeaderOverflowLabelLength: {
|
|
4423
4438
|
type: PropType<number>;
|
|
4424
4439
|
};
|
|
4440
|
+
columnsEmptyText: {
|
|
4441
|
+
type: PropType<string>;
|
|
4442
|
+
default: string;
|
|
4443
|
+
};
|
|
4425
4444
|
}>> & {
|
|
4426
4445
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
4427
4446
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -5063,6 +5082,10 @@ export declare const PlusPage: {
|
|
|
5063
5082
|
type: PropType<false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">>;
|
|
5064
5083
|
default: () => {};
|
|
5065
5084
|
};
|
|
5085
|
+
columnsEmptyText: {
|
|
5086
|
+
type: PropType<string>;
|
|
5087
|
+
default: string;
|
|
5088
|
+
};
|
|
5066
5089
|
postData: {
|
|
5067
5090
|
type: PropType<(<T = RecordType[]>(data: T[]) => T[])>;
|
|
5068
5091
|
default: undefined;
|
|
@@ -5137,6 +5160,7 @@ export declare const PlusPage: {
|
|
|
5137
5160
|
immediate: boolean;
|
|
5138
5161
|
params: RecordType;
|
|
5139
5162
|
pagination: false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
5163
|
+
columnsEmptyText: string;
|
|
5140
5164
|
postData: <T = RecordType[]>(data: T[]) => T[];
|
|
5141
5165
|
beforeSearchSubmit: <T_1 = RecordType>(params: T_1) => T_1;
|
|
5142
5166
|
isCard: boolean;
|
|
@@ -5202,6 +5226,10 @@ export declare const PlusPage: {
|
|
|
5202
5226
|
type: PropType<false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">>;
|
|
5203
5227
|
default: () => {};
|
|
5204
5228
|
};
|
|
5229
|
+
columnsEmptyText: {
|
|
5230
|
+
type: PropType<string>;
|
|
5231
|
+
default: string;
|
|
5232
|
+
};
|
|
5205
5233
|
postData: {
|
|
5206
5234
|
type: PropType<(<T = RecordType[]>(data: T[]) => T[])>;
|
|
5207
5235
|
default: undefined;
|
|
@@ -8448,6 +8476,7 @@ export declare const PlusPage: {
|
|
|
8448
8476
|
offsetBottom?: number | undefined;
|
|
8449
8477
|
timeout?: number | undefined;
|
|
8450
8478
|
};
|
|
8479
|
+
columnsEmptyText: string;
|
|
8451
8480
|
}> & Omit<{
|
|
8452
8481
|
readonly data: RecordType[];
|
|
8453
8482
|
readonly columns: PlusColumn[];
|
|
@@ -8489,6 +8518,7 @@ export declare const PlusPage: {
|
|
|
8489
8518
|
offsetBottom?: number | undefined;
|
|
8490
8519
|
timeout?: number | undefined;
|
|
8491
8520
|
};
|
|
8521
|
+
readonly columnsEmptyText: string;
|
|
8492
8522
|
readonly height?: string | number | undefined;
|
|
8493
8523
|
readonly radioProps?: Partial< PlusRadioProps & {
|
|
8494
8524
|
style?: CSSProperties | undefined;
|
|
@@ -8640,6 +8670,10 @@ export declare const PlusPage: {
|
|
|
8640
8670
|
filterTableHeaderOverflowLabelLength: {
|
|
8641
8671
|
type: PropType<number>;
|
|
8642
8672
|
};
|
|
8673
|
+
columnsEmptyText: {
|
|
8674
|
+
type: PropType<string>;
|
|
8675
|
+
default: string;
|
|
8676
|
+
};
|
|
8643
8677
|
}>> & {
|
|
8644
8678
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
8645
8679
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -8652,7 +8686,7 @@ export declare const PlusPage: {
|
|
|
8652
8686
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
8653
8687
|
onEdited?: (() => any) | undefined;
|
|
8654
8688
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
8655
|
-
}, "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">;
|
|
8689
|
+
}, "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">;
|
|
8656
8690
|
$attrs: {
|
|
8657
8691
|
[x: string]: unknown;
|
|
8658
8692
|
};
|
|
@@ -8799,6 +8833,10 @@ export declare const PlusPage: {
|
|
|
8799
8833
|
filterTableHeaderOverflowLabelLength: {
|
|
8800
8834
|
type: PropType<number>;
|
|
8801
8835
|
};
|
|
8836
|
+
columnsEmptyText: {
|
|
8837
|
+
type: PropType<string>;
|
|
8838
|
+
default: string;
|
|
8839
|
+
};
|
|
8802
8840
|
}>> & {
|
|
8803
8841
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
8804
8842
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -9420,6 +9458,7 @@ export declare const PlusPage: {
|
|
|
9420
9458
|
offsetBottom?: number | undefined;
|
|
9421
9459
|
timeout?: number | undefined;
|
|
9422
9460
|
};
|
|
9461
|
+
columnsEmptyText: string;
|
|
9423
9462
|
}, {}, string, {}> & {
|
|
9424
9463
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
9425
9464
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -9573,6 +9612,10 @@ export declare const PlusPage: {
|
|
|
9573
9612
|
filterTableHeaderOverflowLabelLength: {
|
|
9574
9613
|
type: PropType<number>;
|
|
9575
9614
|
};
|
|
9615
|
+
columnsEmptyText: {
|
|
9616
|
+
type: PropType<string>;
|
|
9617
|
+
default: string;
|
|
9618
|
+
};
|
|
9576
9619
|
}>> & {
|
|
9577
9620
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
9578
9621
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -10182,6 +10225,7 @@ export declare const PlusPage: {
|
|
|
10182
10225
|
immediate: boolean;
|
|
10183
10226
|
params: RecordType;
|
|
10184
10227
|
pagination: false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
10228
|
+
columnsEmptyText: string;
|
|
10185
10229
|
postData: <T = RecordType[]>(data: T[]) => T[];
|
|
10186
10230
|
beforeSearchSubmit: <T_1 = RecordType>(params: T_1) => T_1;
|
|
10187
10231
|
isCard: boolean;
|
|
@@ -10244,6 +10288,10 @@ export declare const PlusPage: {
|
|
|
10244
10288
|
type: PropType<false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">>;
|
|
10245
10289
|
default: () => {};
|
|
10246
10290
|
};
|
|
10291
|
+
columnsEmptyText: {
|
|
10292
|
+
type: PropType<string>;
|
|
10293
|
+
default: string;
|
|
10294
|
+
};
|
|
10247
10295
|
postData: {
|
|
10248
10296
|
type: PropType<(<T = RecordType[]>(data: T[]) => T[])>;
|
|
10249
10297
|
default: undefined;
|
|
@@ -13490,6 +13538,7 @@ export declare const PlusPage: {
|
|
|
13490
13538
|
offsetBottom?: number | undefined;
|
|
13491
13539
|
timeout?: number | undefined;
|
|
13492
13540
|
};
|
|
13541
|
+
columnsEmptyText: string;
|
|
13493
13542
|
}> & Omit<{
|
|
13494
13543
|
readonly data: RecordType[];
|
|
13495
13544
|
readonly columns: PlusColumn[];
|
|
@@ -13531,6 +13580,7 @@ export declare const PlusPage: {
|
|
|
13531
13580
|
offsetBottom?: number | undefined;
|
|
13532
13581
|
timeout?: number | undefined;
|
|
13533
13582
|
};
|
|
13583
|
+
readonly columnsEmptyText: string;
|
|
13534
13584
|
readonly height?: string | number | undefined;
|
|
13535
13585
|
readonly radioProps?: Partial< PlusRadioProps & {
|
|
13536
13586
|
style?: CSSProperties | undefined;
|
|
@@ -13682,6 +13732,10 @@ export declare const PlusPage: {
|
|
|
13682
13732
|
filterTableHeaderOverflowLabelLength: {
|
|
13683
13733
|
type: PropType<number>;
|
|
13684
13734
|
};
|
|
13735
|
+
columnsEmptyText: {
|
|
13736
|
+
type: PropType<string>;
|
|
13737
|
+
default: string;
|
|
13738
|
+
};
|
|
13685
13739
|
}>> & {
|
|
13686
13740
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
13687
13741
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -13694,7 +13748,7 @@ export declare const PlusPage: {
|
|
|
13694
13748
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
13695
13749
|
onEdited?: (() => any) | undefined;
|
|
13696
13750
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
13697
|
-
}, "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">;
|
|
13751
|
+
}, "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">;
|
|
13698
13752
|
$attrs: {
|
|
13699
13753
|
[x: string]: unknown;
|
|
13700
13754
|
};
|
|
@@ -13841,6 +13895,10 @@ export declare const PlusPage: {
|
|
|
13841
13895
|
filterTableHeaderOverflowLabelLength: {
|
|
13842
13896
|
type: PropType<number>;
|
|
13843
13897
|
};
|
|
13898
|
+
columnsEmptyText: {
|
|
13899
|
+
type: PropType<string>;
|
|
13900
|
+
default: string;
|
|
13901
|
+
};
|
|
13844
13902
|
}>> & {
|
|
13845
13903
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
13846
13904
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -14462,6 +14520,7 @@ export declare const PlusPage: {
|
|
|
14462
14520
|
offsetBottom?: number | undefined;
|
|
14463
14521
|
timeout?: number | undefined;
|
|
14464
14522
|
};
|
|
14523
|
+
columnsEmptyText: string;
|
|
14465
14524
|
}, {}, string, {}> & {
|
|
14466
14525
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
14467
14526
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -14615,6 +14674,10 @@ export declare const PlusPage: {
|
|
|
14615
14674
|
filterTableHeaderOverflowLabelLength: {
|
|
14616
14675
|
type: PropType<number>;
|
|
14617
14676
|
};
|
|
14677
|
+
columnsEmptyText: {
|
|
14678
|
+
type: PropType<string>;
|
|
14679
|
+
default: string;
|
|
14680
|
+
};
|
|
14618
14681
|
}>> & {
|
|
14619
14682
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
14620
14683
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -15230,6 +15293,7 @@ export declare const PlusPage: {
|
|
|
15230
15293
|
immediate: boolean;
|
|
15231
15294
|
params: RecordType;
|
|
15232
15295
|
pagination: false | Omit< PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
15296
|
+
columnsEmptyText: string;
|
|
15233
15297
|
postData: <T = RecordType[]>(data: T[]) => T[];
|
|
15234
15298
|
beforeSearchSubmit: <T_1 = RecordType>(params: T_1) => T_1;
|
|
15235
15299
|
isCard: boolean;
|
|
@@ -86,6 +86,15 @@ export interface PlusPageProps {
|
|
|
86
86
|
* @default false
|
|
87
87
|
*/
|
|
88
88
|
searchSlot?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 所有列字段为空时显示的默认文本(全局配置)
|
|
91
|
+
* @version v0.2.0
|
|
92
|
+
* @default "-"
|
|
93
|
+
* @desc 当字段值为 null、undefined 或空字符串时,显示此文本
|
|
94
|
+
* @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
|
|
95
|
+
* @desc 仅对未定义 render/renderHTML 的字段生效
|
|
96
|
+
*/
|
|
97
|
+
columnsEmptyText?: string;
|
|
89
98
|
}
|
|
90
99
|
export interface PlusPageEmits {
|
|
91
100
|
(e: 'search', data: FieldValues): void;
|
|
@@ -126,6 +135,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
126
135
|
pageSize: string;
|
|
127
136
|
};
|
|
128
137
|
searchSlot: boolean;
|
|
138
|
+
columnsEmptyText: string;
|
|
129
139
|
}>, {
|
|
130
140
|
plusSearchInstance: Ref<({
|
|
131
141
|
$: ComponentInternalInstance;
|
|
@@ -812,10 +822,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
812
822
|
getField: (prop: string) => FormItemContext | undefined;
|
|
813
823
|
addField: (field: FormItemContext) => void;
|
|
814
824
|
removeField: (field: FormItemContext) => void;
|
|
815
|
-
/**
|
|
816
|
-
* 设置搜索的值
|
|
817
|
-
* @version v0.1.17
|
|
818
|
-
*/
|
|
819
825
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
820
826
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
821
827
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -825,9 +831,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
825
831
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
826
832
|
scrollToField: (prop: FormItemProp) => void;
|
|
827
833
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
828
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
829
|
-
* TODO: 将会在v0.2.0中移除
|
|
830
|
-
*/
|
|
834
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
831
835
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
832
836
|
readonly model: ObjectConstructor;
|
|
833
837
|
readonly rules: {
|
|
@@ -980,10 +984,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
980
984
|
getField: (prop: string) => FormItemContext | undefined;
|
|
981
985
|
addField: (field: FormItemContext) => void;
|
|
982
986
|
removeField: (field: FormItemContext) => void;
|
|
983
|
-
/**
|
|
984
|
-
* 设置搜索的值
|
|
985
|
-
* @version v0.1.17
|
|
986
|
-
*/
|
|
987
987
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
988
988
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
989
989
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -1276,10 +1276,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1276
1276
|
getField: (prop: string) => FormItemContext | undefined;
|
|
1277
1277
|
addField: (field: FormItemContext) => void;
|
|
1278
1278
|
removeField: (field: FormItemContext) => void;
|
|
1279
|
-
/**
|
|
1280
|
-
* 设置搜索的值
|
|
1281
|
-
* @version v0.1.17
|
|
1282
|
-
*/
|
|
1283
1279
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1284
1280
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1285
1281
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -1289,9 +1285,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1289
1285
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
1290
1286
|
scrollToField: (prop: FormItemProp) => void;
|
|
1291
1287
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1292
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
1293
|
-
* TODO: 将会在v0.2.0中移除
|
|
1294
|
-
*/
|
|
1288
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
1295
1289
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
1296
1290
|
readonly model: ObjectConstructor;
|
|
1297
1291
|
readonly rules: {
|
|
@@ -1444,10 +1438,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
1444
1438
|
getField: (prop: string) => FormItemContext | undefined;
|
|
1445
1439
|
addField: (field: FormItemContext) => void;
|
|
1446
1440
|
removeField: (field: FormItemContext) => void;
|
|
1447
|
-
/**
|
|
1448
|
-
* 设置搜索的值
|
|
1449
|
-
* @version v0.1.17
|
|
1450
|
-
*/
|
|
1451
1441
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1452
1442
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
1453
1443
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2278,10 +2268,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2278
2268
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2279
2269
|
addField: (field: FormItemContext) => void;
|
|
2280
2270
|
removeField: (field: FormItemContext) => void;
|
|
2281
|
-
/**
|
|
2282
|
-
* 设置搜索的值
|
|
2283
|
-
* @version v0.1.17
|
|
2284
|
-
*/
|
|
2285
2271
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2286
2272
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2287
2273
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2291,9 +2277,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2291
2277
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
2292
2278
|
scrollToField: (prop: FormItemProp) => void;
|
|
2293
2279
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2294
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2295
|
-
* TODO: 将会在v0.2.0中移除
|
|
2296
|
-
*/
|
|
2280
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2297
2281
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2298
2282
|
readonly model: ObjectConstructor;
|
|
2299
2283
|
readonly rules: {
|
|
@@ -2446,10 +2430,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2446
2430
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2447
2431
|
addField: (field: FormItemContext) => void;
|
|
2448
2432
|
removeField: (field: FormItemContext) => void;
|
|
2449
|
-
/**
|
|
2450
|
-
* 设置搜索的值
|
|
2451
|
-
* @version v0.1.17
|
|
2452
|
-
*/
|
|
2453
2433
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2454
2434
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2455
2435
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2742,10 +2722,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2742
2722
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2743
2723
|
addField: (field: FormItemContext) => void;
|
|
2744
2724
|
removeField: (field: FormItemContext) => void;
|
|
2745
|
-
/**
|
|
2746
|
-
* 设置搜索的值
|
|
2747
|
-
* @version v0.1.17
|
|
2748
|
-
*/
|
|
2749
2725
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2750
2726
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2751
2727
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -2755,9 +2731,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2755
2731
|
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
2756
2732
|
scrollToField: (prop: FormItemProp) => void;
|
|
2757
2733
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2758
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2759
|
-
* TODO: 将会在v0.2.0中移除
|
|
2760
|
-
*/
|
|
2734
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
2761
2735
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2762
2736
|
readonly model: ObjectConstructor;
|
|
2763
2737
|
readonly rules: {
|
|
@@ -2910,10 +2884,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
2910
2884
|
getField: (prop: string) => FormItemContext | undefined;
|
|
2911
2885
|
addField: (field: FormItemContext) => void;
|
|
2912
2886
|
removeField: (field: FormItemContext) => void;
|
|
2913
|
-
/**
|
|
2914
|
-
* 设置搜索的值
|
|
2915
|
-
* @version v0.1.17
|
|
2916
|
-
*/
|
|
2917
2887
|
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2918
2888
|
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
2919
2889
|
isValidatable: ComputedRef<boolean>;
|
|
@@ -3351,6 +3321,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3351
3321
|
offsetBottom?: number | undefined;
|
|
3352
3322
|
timeout?: number | undefined;
|
|
3353
3323
|
};
|
|
3324
|
+
columnsEmptyText: string;
|
|
3354
3325
|
}> & Omit<{
|
|
3355
3326
|
readonly data: RecordType[];
|
|
3356
3327
|
readonly columns: PlusColumn[];
|
|
@@ -3392,6 +3363,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3392
3363
|
offsetBottom?: number | undefined;
|
|
3393
3364
|
timeout?: number | undefined;
|
|
3394
3365
|
};
|
|
3366
|
+
readonly columnsEmptyText: string;
|
|
3395
3367
|
readonly height?: string | number | undefined;
|
|
3396
3368
|
readonly radioProps?: Partial< PlusRadioProps & {
|
|
3397
3369
|
style?: CSSProperties | undefined;
|
|
@@ -3543,6 +3515,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3543
3515
|
filterTableHeaderOverflowLabelLength: {
|
|
3544
3516
|
type: PropType<number>;
|
|
3545
3517
|
};
|
|
3518
|
+
columnsEmptyText: {
|
|
3519
|
+
type: PropType<string>;
|
|
3520
|
+
default: string;
|
|
3521
|
+
};
|
|
3546
3522
|
}>> & {
|
|
3547
3523
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3548
3524
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -3555,7 +3531,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3555
3531
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
3556
3532
|
onEdited?: (() => any) | undefined;
|
|
3557
3533
|
onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
|
|
3558
|
-
}, "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">;
|
|
3534
|
+
}, "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">;
|
|
3559
3535
|
$attrs: {
|
|
3560
3536
|
[x: string]: unknown;
|
|
3561
3537
|
};
|
|
@@ -3702,6 +3678,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3702
3678
|
filterTableHeaderOverflowLabelLength: {
|
|
3703
3679
|
type: PropType<number>;
|
|
3704
3680
|
};
|
|
3681
|
+
columnsEmptyText: {
|
|
3682
|
+
type: PropType<string>;
|
|
3683
|
+
default: string;
|
|
3684
|
+
};
|
|
3705
3685
|
}>> & {
|
|
3706
3686
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
3707
3687
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -3882,7 +3862,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
3882
3862
|
setDragVisible: (visible: boolean) => void;
|
|
3883
3863
|
context: Table<any>;
|
|
3884
3864
|
computedSumText: ComputedRef<string>;
|
|
3885
|
-
computedEmptyText: ComputedRef<string>;
|
|
3865
|
+
computedEmptyText: ComputedRef<string>; /**
|
|
3866
|
+
* 分页组件的其他参数,不包含total,modelValue,pageSizeList
|
|
3867
|
+
*/
|
|
3886
3868
|
tableLayout: ComputedRef<"fixed" | "auto" | undefined>;
|
|
3887
3869
|
scrollbarViewStyle: {
|
|
3888
3870
|
display: string;
|
|
@@ -4213,7 +4195,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4213
4195
|
setDragVisible: (visible: boolean) => void;
|
|
4214
4196
|
context: Table<any>;
|
|
4215
4197
|
computedSumText: ComputedRef<string>;
|
|
4216
|
-
computedEmptyText: ComputedRef<string>;
|
|
4198
|
+
computedEmptyText: ComputedRef<string>; /**
|
|
4199
|
+
* 分页组件的其他参数,不包含total,modelValue,pageSizeList
|
|
4200
|
+
*/
|
|
4217
4201
|
tableLayout: ComputedRef<"fixed" | "auto" | undefined>;
|
|
4218
4202
|
scrollbarViewStyle: {
|
|
4219
4203
|
display: string;
|
|
@@ -4323,6 +4307,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4323
4307
|
offsetBottom?: number | undefined;
|
|
4324
4308
|
timeout?: number | undefined;
|
|
4325
4309
|
};
|
|
4310
|
+
columnsEmptyText: string;
|
|
4326
4311
|
}, {}, string, {}> & {
|
|
4327
4312
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
4328
4313
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -4476,6 +4461,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4476
4461
|
filterTableHeaderOverflowLabelLength: {
|
|
4477
4462
|
type: PropType<number>;
|
|
4478
4463
|
};
|
|
4464
|
+
columnsEmptyText: {
|
|
4465
|
+
type: PropType<string>;
|
|
4466
|
+
default: string;
|
|
4467
|
+
};
|
|
4479
4468
|
}>> & {
|
|
4480
4469
|
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
4481
4470
|
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
|
|
@@ -4656,7 +4645,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4656
4645
|
setDragVisible: (visible: boolean) => void;
|
|
4657
4646
|
context: Table<any>;
|
|
4658
4647
|
computedSumText: ComputedRef<string>;
|
|
4659
|
-
computedEmptyText: ComputedRef<string>;
|
|
4648
|
+
computedEmptyText: ComputedRef<string>; /**
|
|
4649
|
+
* 分页组件的其他参数,不包含total,modelValue,pageSizeList
|
|
4650
|
+
*/
|
|
4660
4651
|
tableLayout: ComputedRef<"fixed" | "auto" | undefined>;
|
|
4661
4652
|
scrollbarViewStyle: {
|
|
4662
4653
|
display: string;
|
|
@@ -4987,7 +4978,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
4987
4978
|
setDragVisible: (visible: boolean) => void;
|
|
4988
4979
|
context: Table<any>;
|
|
4989
4980
|
computedSumText: ComputedRef<string>;
|
|
4990
|
-
computedEmptyText: ComputedRef<string>;
|
|
4981
|
+
computedEmptyText: ComputedRef<string>; /**
|
|
4982
|
+
* 分页组件的其他参数,不包含total,modelValue,pageSizeList
|
|
4983
|
+
*/
|
|
4991
4984
|
tableLayout: ComputedRef<"fixed" | "auto" | undefined>;
|
|
4992
4985
|
scrollbarViewStyle: {
|
|
4993
4986
|
display: string;
|
|
@@ -5110,6 +5103,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5110
5103
|
pageSize: string;
|
|
5111
5104
|
};
|
|
5112
5105
|
searchSlot: boolean;
|
|
5106
|
+
columnsEmptyText: string;
|
|
5113
5107
|
}>>> & {
|
|
5114
5108
|
onReset?: ((data: FieldValues) => any) | undefined;
|
|
5115
5109
|
onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
|
|
@@ -5129,6 +5123,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
5129
5123
|
immediate: boolean;
|
|
5130
5124
|
params: RecordType;
|
|
5131
5125
|
pagination: false | Omit<PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
|
|
5126
|
+
columnsEmptyText: string;
|
|
5132
5127
|
postData: <T_1 = RecordType[]>(data: T_1[]) => T_1[];
|
|
5133
5128
|
beforeSearchSubmit: <T_2 = RecordType>(params: T_2) => T_2;
|
|
5134
5129
|
isCard: boolean;
|
|
@@ -35,7 +35,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
page: "page",
|
|
36
36
|
pageSize: "pageSize"
|
|
37
37
|
}) },
|
|
38
|
-
searchSlot: { type: Boolean, default: false }
|
|
38
|
+
searchSlot: { type: Boolean, default: false },
|
|
39
|
+
columnsEmptyText: { default: "-" }
|
|
39
40
|
},
|
|
40
41
|
emits: ["search", "reset", "paginationChange", "requestError", "requestComplete"],
|
|
41
42
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -224,6 +225,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
224
225
|
"table-data": unref(tableData),
|
|
225
226
|
"loading-status": unref(loadingStatus),
|
|
226
227
|
columns: _ctx.columns,
|
|
228
|
+
"columns-empty-text": _ctx.columnsEmptyText,
|
|
227
229
|
pagination: _ctx.pagination === false ? void 0 : {
|
|
228
230
|
..._ctx.pagination,
|
|
229
231
|
total: unref(total),
|
|
@@ -279,7 +281,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
279
281
|
])
|
|
280
282
|
};
|
|
281
283
|
})
|
|
282
|
-
]), 1040, ["table-data", "loading-status", "columns", "pagination"])
|
|
284
|
+
]), 1040, ["table-data", "loading-status", "columns", "columns-empty-text", "pagination"])
|
|
283
285
|
]),
|
|
284
286
|
_: 3
|
|
285
287
|
/* FORWARDED */
|