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.
Files changed (65) hide show
  1. package/es/components/display-item/src/index.vue2.mjs +18 -5
  2. package/es/components/form/src/form-content.vue.d.ts +2 -0
  3. package/es/components/page/index.d.ts +67 -3
  4. package/es/components/page/src/index.vue.d.ts +44 -49
  5. package/es/components/page/src/index.vue2.mjs +4 -2
  6. package/es/components/table/index.d.ts +19 -0
  7. package/es/components/table/src/index.vue.d.ts +3 -0
  8. package/es/components/table/src/index.vue2.mjs +4 -2
  9. package/es/components/table/src/type.d.ts +9 -0
  10. package/es/components/yc-plus-page/src/index.vue.d.ts +64 -4
  11. package/es/components/yc-select-v2/src/directive.d.ts +0 -4
  12. package/es/components/yc-select-v2/src/directive.mjs +70 -17
  13. package/es/components/yc-select-v2/src/index.vue2.mjs +18 -6
  14. package/es/constants/form.d.ts +5 -0
  15. package/es/constants/form.mjs +2 -1
  16. package/es/constants/index.mjs +1 -1
  17. package/es/index.css +1 -0
  18. package/es/index.mjs +1 -1
  19. package/es/types/plus.d.ts +29 -0
  20. package/index.css +14 -0
  21. package/index.js +113 -27
  22. package/index.min.css +1 -0
  23. package/index.min.js +7 -7
  24. package/index.min.mjs +7 -7
  25. package/index.mjs +113 -28
  26. package/lib/components/display-item/src/index.vue2.js +16 -3
  27. package/lib/components/form/src/form-content.vue.d.ts +2 -0
  28. package/lib/components/page/index.d.ts +67 -3
  29. package/lib/components/page/src/index.vue.d.ts +44 -49
  30. package/lib/components/page/src/index.vue2.js +4 -2
  31. package/lib/components/table/index.d.ts +19 -0
  32. package/lib/components/table/src/index.vue.d.ts +3 -0
  33. package/lib/components/table/src/index.vue2.js +3 -1
  34. package/lib/components/table/src/type.d.ts +9 -0
  35. package/lib/components/yc-plus-page/src/index.vue.d.ts +64 -4
  36. package/lib/components/yc-select-v2/src/directive.d.ts +0 -4
  37. package/lib/components/yc-select-v2/src/directive.js +70 -17
  38. package/lib/components/yc-select-v2/src/index.vue2.js +17 -5
  39. package/lib/constants/form.d.ts +5 -0
  40. package/lib/constants/form.js +2 -0
  41. package/lib/constants/index.js +1 -0
  42. package/lib/index.css +1 -0
  43. package/lib/index.js +1 -0
  44. package/lib/types/plus.d.ts +29 -0
  45. package/locale/en.js +1 -1
  46. package/locale/en.min.js +1 -1
  47. package/locale/en.min.mjs +1 -1
  48. package/locale/en.mjs +1 -1
  49. package/locale/ja.js +1 -1
  50. package/locale/ja.min.js +1 -1
  51. package/locale/ja.min.mjs +1 -1
  52. package/locale/ja.mjs +1 -1
  53. package/locale/ko.js +1 -1
  54. package/locale/ko.min.js +1 -1
  55. package/locale/ko.min.mjs +1 -1
  56. package/locale/ko.mjs +1 -1
  57. package/locale/zh-cn.js +1 -1
  58. package/locale/zh-cn.min.js +1 -1
  59. package/locale/zh-cn.min.mjs +1 -1
  60. package/locale/zh-cn.mjs +1 -1
  61. package/locale/zh-tw.js +1 -1
  62. package/locale/zh-tw.min.js +1 -1
  63. package/locale/zh-tw.min.mjs +1 -1
  64. package/locale/zh-tw.mjs +1 -1
  65. package/package.json +1 -1
@@ -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;
@@ -39,7 +39,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
39
39
  page: "page",
40
40
  pageSize: "pageSize"
41
41
  }) },
42
- searchSlot: { type: Boolean, default: false }
42
+ searchSlot: { type: Boolean, default: false },
43
+ columnsEmptyText: { default: "-" }
43
44
  },
44
45
  emits: ["search", "reset", "paginationChange", "requestError", "requestComplete"],
45
46
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -228,6 +229,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
228
229
  "table-data": vue.unref(tableData),
229
230
  "loading-status": vue.unref(loadingStatus),
230
231
  columns: _ctx.columns,
232
+ "columns-empty-text": _ctx.columnsEmptyText,
231
233
  pagination: _ctx.pagination === false ? void 0 : {
232
234
  ..._ctx.pagination,
233
235
  total: vue.unref(total),
@@ -283,7 +285,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
283
285
  ])
284
286
  };
285
287
  })
286
- ]), 1040, ["table-data", "loading-status", "columns", "pagination"])
288
+ ]), 1040, ["table-data", "loading-status", "columns", "columns-empty-text", "pagination"])
287
289
  ]),
288
290
  _: 3
289
291
  /* FORWARDED */
@@ -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;
@@ -56,7 +56,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
56
56
  indexContentStyle: { type: [Object, Function], default: () => ({}) },
57
57
  editable: { type: [Boolean, String], default: false },
58
58
  adaptive: { type: [Boolean, Object], default: false },
59
- filterTableHeaderOverflowLabelLength: {}
59
+ filterTableHeaderOverflowLabelLength: {},
60
+ columnsEmptyText: { default: "-" }
60
61
  },
61
62
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
62
63
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -88,6 +89,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
88
89
  vue.provide(form.TableFormRefInjectionKey, formRefs);
89
90
  const formFieldRefs = vue.shallowRef({});
90
91
  vue.provide(form.TableFormFieldRefInjectionKey, formFieldRefs);
92
+ vue.provide(form.TableColumnsEmptyTextInjectionKey, vue.computed(() => props.columnsEmptyText));
91
93
  vue.watch(
92
94
  () => props.columns,
93
95
  (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
  /**