@wlydfe/pro-ui 0.2.4 → 0.2.6

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 (141) hide show
  1. package/es/components/breadcrumb/src/index.vue.d.ts +1 -1
  2. package/es/components/check-card/src/index.vue.d.ts +1 -1
  3. package/es/components/check-card-group/src/index.vue.d.ts +1 -1
  4. package/es/components/check-card-group/style/css.d.ts +1 -1
  5. package/es/components/check-card-group/style/index.d.ts +1 -1
  6. package/es/components/date-picker/src/index.vue.d.ts +1 -1
  7. package/es/components/descriptions/index.d.ts +1 -1
  8. package/es/components/descriptions/src/index.vue.d.ts +13 -13
  9. package/es/components/descriptions/style/css.d.ts +1 -1
  10. package/es/components/descriptions/style/index.d.ts +1 -1
  11. package/es/components/dialog/src/index.vue.d.ts +1 -1
  12. package/es/components/dialog-form/src/index.vue.d.ts +14 -14
  13. package/es/components/dialog-form/style/css.d.ts +2 -2
  14. package/es/components/dialog-form/style/index.d.ts +2 -2
  15. package/es/components/display-item/index.d.ts +1 -1
  16. package/es/components/display-item/src/index.vue.d.ts +16 -10
  17. package/es/components/display-item/src/index.vue2.mjs +81 -31
  18. package/es/components/display-item/style/css.d.ts +1 -1
  19. package/es/components/display-item/style/index.d.ts +1 -1
  20. package/es/components/drawer-form/src/index.vue.d.ts +12 -12
  21. package/es/components/drawer-form/style/css.d.ts +1 -1
  22. package/es/components/drawer-form/style/index.d.ts +1 -1
  23. package/es/components/form/src/form-content.vue.d.ts +4 -4
  24. package/es/components/form/src/index.vue.d.ts +10 -10
  25. package/es/components/form/style/css.d.ts +1 -1
  26. package/es/components/form/style/index.d.ts +1 -1
  27. package/es/components/form-item/src/index.vue.d.ts +7 -7
  28. package/es/components/form-item/style/css.d.ts +3 -3
  29. package/es/components/form-item/style/index.d.ts +3 -3
  30. package/es/components/header/src/index.vue.d.ts +1 -1
  31. package/es/components/input-tag/src/index.vue.d.ts +2 -2
  32. package/es/components/layout/src/index.vue.d.ts +16 -16
  33. package/es/components/layout/style/css.d.ts +3 -3
  34. package/es/components/layout/style/index.d.ts +3 -3
  35. package/es/components/page/index.d.ts +1 -0
  36. package/es/components/page/src/index.vue.d.ts +4 -3
  37. package/es/components/page/src/index.vue2.mjs +9 -2
  38. package/es/components/page/style/css.d.ts +2 -2
  39. package/es/components/page/style/index.d.ts +2 -2
  40. package/es/components/pagination/src/index.vue.d.ts +1 -1
  41. package/es/components/popover/src/index.vue.d.ts +1 -1
  42. package/es/components/radio/src/index.vue.d.ts +1 -1
  43. package/es/components/render/src/index.vue.d.ts +1 -1
  44. package/es/components/search/src/index.vue.d.ts +11 -11
  45. package/es/components/search/style/css.d.ts +1 -1
  46. package/es/components/search/style/index.d.ts +1 -1
  47. package/es/components/sidebar/src/index.vue.d.ts +1 -1
  48. package/es/components/sidebar/src/sidebar-item.vue.d.ts +1 -1
  49. package/es/components/steps-form/src/index.vue.d.ts +12 -12
  50. package/es/components/steps-form/style/css.d.ts +1 -1
  51. package/es/components/steps-form/style/index.d.ts +1 -1
  52. package/es/components/table/src/index.vue2.mjs +2 -1
  53. package/es/components/table/src/table-title-bar.vue.d.ts +3 -3
  54. package/es/components/table/src/type.d.ts +1 -1
  55. package/es/components/table/style/css.d.ts +3 -3
  56. package/es/components/table/style/index.d.ts +3 -3
  57. package/es/components/utils/index.d.ts +1 -1
  58. package/es/constants/page.d.ts +1 -1
  59. package/es/hooks/useGetOptions.d.ts +1 -1
  60. package/es/hooks/useTable.d.ts +2 -2
  61. package/es/index.css +14 -14
  62. package/es/index.d.ts +5 -5
  63. package/es/pro-ui/index.d.ts +5 -5
  64. package/es/types/form.d.ts +4 -4
  65. package/index.js +92 -34
  66. package/index.min.js +3 -3
  67. package/index.min.mjs +3 -3
  68. package/index.mjs +92 -34
  69. package/lib/components/breadcrumb/src/index.vue.d.ts +1 -1
  70. package/lib/components/check-card/src/index.vue.d.ts +1 -1
  71. package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
  72. package/lib/components/check-card-group/style/css.d.ts +1 -1
  73. package/lib/components/check-card-group/style/index.d.ts +1 -1
  74. package/lib/components/date-picker/src/index.vue.d.ts +1 -1
  75. package/lib/components/descriptions/index.d.ts +1 -1
  76. package/lib/components/descriptions/src/index.vue.d.ts +13 -13
  77. package/lib/components/descriptions/style/css.d.ts +1 -1
  78. package/lib/components/descriptions/style/index.d.ts +1 -1
  79. package/lib/components/dialog/src/index.vue.d.ts +1 -1
  80. package/lib/components/dialog-form/src/index.vue.d.ts +14 -14
  81. package/lib/components/dialog-form/style/css.d.ts +2 -2
  82. package/lib/components/dialog-form/style/index.d.ts +2 -2
  83. package/lib/components/display-item/index.d.ts +1 -1
  84. package/lib/components/display-item/src/index.vue.d.ts +16 -10
  85. package/lib/components/display-item/src/index.vue2.js +81 -31
  86. package/lib/components/display-item/style/css.d.ts +1 -1
  87. package/lib/components/display-item/style/index.d.ts +1 -1
  88. package/lib/components/drawer-form/src/index.vue.d.ts +12 -12
  89. package/lib/components/drawer-form/style/css.d.ts +1 -1
  90. package/lib/components/drawer-form/style/index.d.ts +1 -1
  91. package/lib/components/form/src/form-content.vue.d.ts +4 -4
  92. package/lib/components/form/src/index.vue.d.ts +10 -10
  93. package/lib/components/form/style/css.d.ts +1 -1
  94. package/lib/components/form/style/index.d.ts +1 -1
  95. package/lib/components/form-item/src/index.vue.d.ts +7 -7
  96. package/lib/components/form-item/style/css.d.ts +3 -3
  97. package/lib/components/form-item/style/index.d.ts +3 -3
  98. package/lib/components/header/src/index.vue.d.ts +1 -1
  99. package/lib/components/input-tag/src/index.vue.d.ts +2 -2
  100. package/lib/components/layout/src/index.vue.d.ts +16 -16
  101. package/lib/components/layout/style/css.d.ts +3 -3
  102. package/lib/components/layout/style/index.d.ts +3 -3
  103. package/lib/components/page/index.d.ts +1 -0
  104. package/lib/components/page/src/index.vue.d.ts +4 -3
  105. package/lib/components/page/src/index.vue2.js +9 -2
  106. package/lib/components/page/style/css.d.ts +2 -2
  107. package/lib/components/page/style/index.d.ts +2 -2
  108. package/lib/components/pagination/src/index.vue.d.ts +1 -1
  109. package/lib/components/popover/src/index.vue.d.ts +1 -1
  110. package/lib/components/radio/src/index.vue.d.ts +1 -1
  111. package/lib/components/render/src/index.vue.d.ts +1 -1
  112. package/lib/components/search/src/index.vue.d.ts +11 -11
  113. package/lib/components/search/style/css.d.ts +1 -1
  114. package/lib/components/search/style/index.d.ts +1 -1
  115. package/lib/components/sidebar/src/index.vue.d.ts +1 -1
  116. package/lib/components/sidebar/src/sidebar-item.vue.d.ts +1 -1
  117. package/lib/components/steps-form/src/index.vue.d.ts +12 -12
  118. package/lib/components/steps-form/style/css.d.ts +1 -1
  119. package/lib/components/steps-form/style/index.d.ts +1 -1
  120. package/lib/components/table/src/index.vue2.js +2 -1
  121. package/lib/components/table/src/table-title-bar.vue.d.ts +3 -3
  122. package/lib/components/table/src/type.d.ts +1 -1
  123. package/lib/components/table/style/css.d.ts +3 -3
  124. package/lib/components/table/style/index.d.ts +3 -3
  125. package/lib/components/utils/index.d.ts +1 -1
  126. package/lib/constants/page.d.ts +1 -1
  127. package/lib/hooks/useGetOptions.d.ts +1 -1
  128. package/lib/hooks/useTable.d.ts +2 -2
  129. package/lib/index.css +13 -13
  130. package/lib/index.d.ts +5 -5
  131. package/lib/pro-ui/index.d.ts +5 -5
  132. package/lib/types/form.d.ts +4 -4
  133. package/locale/en.js +1 -1
  134. package/locale/en.min.js +1 -1
  135. package/locale/en.min.mjs +1 -1
  136. package/locale/en.mjs +1 -1
  137. package/locale/zh-cn.js +1 -1
  138. package/locale/zh-cn.min.js +1 -1
  139. package/locale/zh-cn.min.mjs +1 -1
  140. package/locale/zh-cn.mjs +1 -1
  141. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import type { VNode } from 'vue';
2
2
  import type { RouteLocationMatched } from 'vue-router';
3
- import type { PlusRouteRecordRaw } from '@wlydfe/pro-ui-types';
3
+ import type { PlusRouteRecordRaw } from '@wlydfe/pro-ui/es/types';
4
4
  export interface PlusBreadcrumbProps {
5
5
  routes?: PlusRouteRecordRaw[];
6
6
  replace?: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { VNode } from 'vue';
2
2
  import type { ComponentSize } from 'element-plus';
3
- import type { RecordType } from '@wlydfe/pro-ui-types';
3
+ import type { RecordType } from '@wlydfe/pro-ui/es/types';
4
4
  export interface PlusCheckCardProps {
5
5
  modelValue?: boolean;
6
6
  size?: ComponentSize;
@@ -1,4 +1,4 @@
1
- import type { PlusCheckCardProps } from '@wlydfe/pro-ui/es/es/components/check-card';
1
+ import type { PlusCheckCardProps } from '@wlydfe/pro-ui/es/components/check-card';
2
2
  import type { ComponentSize } from 'element-plus';
3
3
  export type ArrayValueType = (string | number)[];
4
4
  export type SingleValueType = string | number;
@@ -1,2 +1,2 @@
1
- import '@wlydfe/pro-ui/es/es/components/check-card/style/css';
1
+ import '@wlydfe/pro-ui/es/components/check-card/style/css';
2
2
  import '@wlydfe/pro-ui/es/theme-chalk/plus-check-card-group.css';
@@ -1,2 +1,2 @@
1
- import '@wlydfe/pro-ui/es/es/components/check-card/style/index';
1
+ import '@wlydfe/pro-ui/es/components/check-card/style/index';
2
2
  import '@wlydfe/pro-ui/es/theme-chalk/src/check-card-group.scss';
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
67
67
  }>, {
68
68
  props: any;
69
69
  emit: (event: "update:modelValue" | "change" | "focus", ...args: any[]) => void;
70
- t: import("@wlydfe/pro-ui-hooks").Translator;
70
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
71
71
  startPickerInstance: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
72
72
  readonly type: {
73
73
  readonly type: import("vue").PropType<"datetimerange" | "daterange" | "monthrange" | "years" | "dates" | "datetime" | "date" | "year" | "month" | "months" | "week" | "yearrange">;
@@ -689,6 +689,7 @@ export declare const PlusDescriptions: import("vue").DefineComponent<import("vue
689
689
  columns: import("vue").Ref<import("../..").PlusColumn[], import("../..").PlusColumn[]>;
690
690
  subRow: import("vue").Ref<any, any>;
691
691
  customFieldPropsIsReady: import("vue").Ref<boolean, boolean>;
692
+ rawValue: import("vue").ComputedRef<any>;
692
693
  displayValue: import("vue").WritableComputedRef<any, any>;
693
694
  modelValues: import("vue").WritableComputedRef<{
694
695
  [x: number]: any;
@@ -8574,7 +8575,6 @@ export declare const PlusDescriptions: import("vue").DefineComponent<import("vue
8574
8575
  resetText: string;
8575
8576
  submitLoading: boolean;
8576
8577
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8577
- readonly formatDate: typeof import("../utils").formatDate;
8578
8578
  readonly formatMoney: typeof import("../utils").formatMoney;
8579
8579
  readonly isFunction: (val: any) => boolean;
8580
8580
  readonly getTableCellSlotName: (prop?: string | number | undefined) => string;
@@ -1,6 +1,6 @@
1
1
  import type { ExtractPropTypes } from 'vue';
2
2
  import type { descriptionProps } from 'element-plus';
3
- import type { PlusColumn, RecordType, Mutable } from '@wlydfe/pro-ui-types';
3
+ import type { PlusColumn, RecordType, Mutable } from '@wlydfe/pro-ui/es/types';
4
4
  export type DescriptionProps = Partial<Mutable<ExtractPropTypes<typeof descriptionProps>>>;
5
5
  export interface PlusDescriptionsProps extends /* @vue-ignore */ Partial<DescriptionProps> {
6
6
  data: RecordType;
@@ -696,10 +696,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
696
696
  isForm: import("vue").ComputedRef<boolean>;
697
697
  customFieldProps: import("vue").Ref<RecordType, RecordType>;
698
698
  formInstance: import("vue").Ref<any, any>;
699
- options: import("vue").Ref<import("@wlydfe/pro-ui-types").OptionsRow[], import("@wlydfe/pro-ui-types").OptionsRow[]>;
699
+ options: import("vue").Ref<import("@wlydfe/pro-ui/es/types").OptionsRow[], import("@wlydfe/pro-ui/es/types").OptionsRow[]>;
700
700
  columns: import("vue").Ref<PlusColumn[], PlusColumn[]>;
701
701
  subRow: import("vue").Ref<any, any>;
702
702
  customFieldPropsIsReady: import("vue").Ref<boolean, boolean>;
703
+ rawValue: import("vue").ComputedRef<any>;
703
704
  displayValue: import("vue").WritableComputedRef<any, any>;
704
705
  modelValues: import("vue").WritableComputedRef<{
705
706
  [x: number]: any;
@@ -715,10 +716,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
715
716
  options: any[];
716
717
  url: any;
717
718
  }>;
718
- getStatus: import("vue").ComputedRef<import("@wlydfe/pro-ui-types").OptionsRow>;
719
+ getStatus: import("vue").ComputedRef<import("@wlydfe/pro-ui/es/types").OptionsRow>;
719
720
  copy: (data: string) => void;
720
721
  handelClickCopy: (item: PlusColumn, row: RecordType) => void;
721
- handleChange: (values: import("@wlydfe/pro-ui-types").FieldValues) => void;
722
+ handleChange: (values: import("@wlydfe/pro-ui/es/types").FieldValues) => void;
722
723
  startCellEdit: () => void;
723
724
  stopCellEdit: () => void;
724
725
  getDisplayItemInstance: () => {
@@ -824,9 +825,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
824
825
  emit: (event: "reset" | "submit" | "update:modelValue" | "change" | "submitError", ...args: any[]) => void;
825
826
  t: import("../../..").Translator;
826
827
  formInstance: import("vue").Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>;
827
- values: import("vue").Ref<import("@wlydfe/pro-ui-types").FieldValues, import("@wlydfe/pro-ui-types").FieldValues>;
828
+ values: import("vue").Ref<import("@wlydfe/pro-ui/es/types").FieldValues, import("@wlydfe/pro-ui/es/types").FieldValues>;
828
829
  filterHide: (columns: PlusColumn[]) => PlusColumn[];
829
- model: import("vue").ComputedRef<import("@wlydfe/pro-ui-types").FieldValues>;
830
+ model: import("vue").ComputedRef<import("@wlydfe/pro-ui/es/types").FieldValues>;
830
831
  style: import("vue").ComputedRef<{
831
832
  justifyContent: string;
832
833
  }>;
@@ -843,7 +844,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
843
844
  extraSlots: Readonly<{
844
845
  [name: string]: import("vue").Slot<any> | undefined;
845
846
  }>;
846
- handleChange: (_: import("@wlydfe/pro-ui-types").FieldValues, column: PlusColumn) => void;
847
+ handleChange: (_: import("@wlydfe/pro-ui/es/types").FieldValues, column: PlusColumn) => void;
847
848
  clearValidate: () => void;
848
849
  handleSubmit: () => Promise<boolean>;
849
850
  handleReset: () => void;
@@ -2060,9 +2061,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
2060
2061
  }>, {
2061
2062
  props: any;
2062
2063
  emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
2063
- values: import("vue").Ref<import("@wlydfe/pro-ui-types").FieldValues, import("@wlydfe/pro-ui-types").FieldValues>;
2064
+ values: import("vue").Ref<import("@wlydfe/pro-ui/es/types").FieldValues, import("@wlydfe/pro-ui/es/types").FieldValues>;
2064
2065
  getHasLabel: (hasLabel?: boolean | import("vue").Ref<boolean, boolean> | import("vue").ComputedRef<boolean> | undefined) => any;
2065
- handleChange: (value: import("@wlydfe/pro-ui-types").FieldValueType, column: PlusColumn) => void;
2066
+ handleChange: (value: import("@wlydfe/pro-ui/es/types").FieldValueType, column: PlusColumn) => void;
2066
2067
  readonly ElRow: {
2067
2068
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
2068
2069
  readonly tag: {
@@ -2573,7 +2574,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
2573
2574
  props: any;
2574
2575
  emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
2575
2576
  t: import("../../..").Translator;
2576
- customOptions: import("vue").Ref<import("@wlydfe/pro-ui-types").OptionsRow[], import("@wlydfe/pro-ui-types").OptionsRow[]>;
2577
+ customOptions: import("vue").Ref<import("@wlydfe/pro-ui/es/types").OptionsRow[], import("@wlydfe/pro-ui/es/types").OptionsRow[]>;
2577
2578
  customOptionsIsReady: import("vue").Ref<boolean, boolean>;
2578
2579
  formItemInstance: import("vue").Ref<({
2579
2580
  $: import("vue").ComponentInternalInstance;
@@ -3037,7 +3038,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
3037
3038
  fieldInstance: import("vue").Ref<any, any>;
3038
3039
  customFormItemProps: import("vue").Ref<any, any>;
3039
3040
  customFieldProps: import("vue").Ref<any, any>;
3040
- state: import("vue").Ref<import("@wlydfe/pro-ui-types").FieldValueType, import("@wlydfe/pro-ui-types").FieldValueType>;
3041
+ state: import("vue").Ref<import("@wlydfe/pro-ui/es/types").FieldValueType, import("@wlydfe/pro-ui/es/types").FieldValueType>;
3041
3042
  customFieldPropsIsReady: import("vue").Ref<boolean, boolean>;
3042
3043
  valueIsReady: import("vue").Ref<boolean, boolean>;
3043
3044
  isArrayValue: import("vue").ComputedRef<boolean>;
@@ -8585,8 +8586,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
8585
8586
  resetText: string;
8586
8587
  submitLoading: boolean;
8587
8588
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8588
- readonly formatDate: typeof import("@wlydfe/pro-ui/es/es/components/utils").formatDate;
8589
- readonly formatMoney: typeof import("@wlydfe/pro-ui/es/es/components/utils").formatMoney;
8589
+ readonly formatMoney: typeof import("@wlydfe/pro-ui/es/components/utils").formatMoney;
8590
8590
  readonly isFunction: (val: any) => boolean;
8591
8591
  readonly getTableCellSlotName: (prop?: string | number | undefined) => string;
8592
8592
  readonly getFieldSlotName: (prop?: string | number | undefined) => string;
@@ -1,3 +1,3 @@
1
1
  import 'element-plus/es/components/descriptions/style/css';
2
- import '@wlydfe/pro-ui/es/es/components/display-item/style/css';
2
+ import '@wlydfe/pro-ui/es/components/display-item/style/css';
3
3
  import '@wlydfe/pro-ui/es/theme-chalk/plus-descriptions.css';
@@ -1,3 +1,3 @@
1
1
  import 'element-plus/es/components/descriptions/style/index';
2
- import '@wlydfe/pro-ui/es/es/components/display-item/style/index';
2
+ import '@wlydfe/pro-ui/es/components/display-item/style/index';
3
3
  import '@wlydfe/pro-ui/es/theme-chalk/src/descriptions.scss';
@@ -68,7 +68,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
68
68
  justifyContent: string;
69
69
  }>;
70
70
  subVisible: import("vue").Ref<boolean, boolean>;
71
- t: import("@wlydfe/pro-ui-hooks").Translator;
71
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
72
72
  handleConfirm: () => void;
73
73
  handleCancel: () => void;
74
74
  readonly ElDialog: {
@@ -1,6 +1,6 @@
1
- import type { PlusFormProps } from '@wlydfe/pro-ui/es/es/components/form';
2
- import type { PlusDialogProps } from '@wlydfe/pro-ui/es/es/components/dialog';
3
- import type { FieldValues, PlusColumn } from '@wlydfe/pro-ui-types';
1
+ import type { PlusFormProps } from '@wlydfe/pro-ui/es/components/form';
2
+ import type { PlusDialogProps } from '@wlydfe/pro-ui/es/components/dialog';
3
+ import type { FieldValues, PlusColumn } from '@wlydfe/pro-ui/es/types';
4
4
  import type { FormInstance } from 'element-plus';
5
5
  export interface PlusDialogFormProps {
6
6
  modelValue?: FieldValues;
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
39
  }>, {
40
40
  props: any;
41
41
  emit: (event: "update:modelValue" | "cancel" | "confirm" | "change" | "update:visible", ...args: any[]) => void;
42
- t: import("@wlydfe/pro-ui-hooks").Translator;
42
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
43
43
  formInstance: import("vue").Ref<any, any>;
44
44
  computedFormInstance: import("vue").ComputedRef<FormInstance>;
45
45
  state: import("vue").Ref<FieldValues, FieldValues>;
@@ -153,7 +153,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
153
153
  }>, {
154
154
  props: any;
155
155
  emit: (event: "reset" | "submit" | "update:modelValue" | "change" | "submitError", ...args: any[]) => void;
156
- t: import("@wlydfe/pro-ui-hooks").Translator;
156
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
157
157
  formInstance: import("vue").Ref<FormInstance | undefined, FormInstance | undefined>;
158
158
  values: import("vue").Ref<FieldValues, FieldValues>;
159
159
  filterHide: (columns: PlusColumn[]) => PlusColumn[];
@@ -1393,7 +1393,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1393
1393
  emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
1394
1394
  values: import("vue").Ref<FieldValues, FieldValues>;
1395
1395
  getHasLabel: (hasLabel?: boolean | import("vue").Ref<boolean, boolean> | import("vue").ComputedRef<boolean> | undefined) => any;
1396
- handleChange: (value: import("@wlydfe/pro-ui-types").FieldValueType, column: PlusColumn) => void;
1396
+ handleChange: (value: import("@wlydfe/pro-ui/es/types").FieldValueType, column: PlusColumn) => void;
1397
1397
  readonly ElRow: {
1398
1398
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
1399
1399
  readonly tag: {
@@ -1903,8 +1903,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1903
1903
  ElText: import("vue").Component;
1904
1904
  props: any;
1905
1905
  emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
1906
- t: import("@wlydfe/pro-ui-hooks").Translator;
1907
- customOptions: import("vue").Ref<import("@wlydfe/pro-ui-types").OptionsRow[], import("@wlydfe/pro-ui-types").OptionsRow[]>;
1906
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
1907
+ customOptions: import("vue").Ref<import("@wlydfe/pro-ui/es/types").OptionsRow[], import("@wlydfe/pro-ui/es/types").OptionsRow[]>;
1908
1908
  customOptionsIsReady: import("vue").Ref<boolean, boolean>;
1909
1909
  formItemInstance: import("vue").Ref<({
1910
1910
  $: import("vue").ComponentInternalInstance;
@@ -2368,7 +2368,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2368
2368
  fieldInstance: import("vue").Ref<any, any>;
2369
2369
  customFormItemProps: import("vue").Ref<any, any>;
2370
2370
  customFieldProps: import("vue").Ref<any, any>;
2371
- state: import("vue").Ref<import("@wlydfe/pro-ui-types").FieldValueType, import("@wlydfe/pro-ui-types").FieldValueType>;
2371
+ state: import("vue").Ref<import("@wlydfe/pro-ui/es/types").FieldValueType, import("@wlydfe/pro-ui/es/types").FieldValueType>;
2372
2372
  customFieldPropsIsReady: import("vue").Ref<boolean, boolean>;
2373
2373
  valueIsReady: import("vue").Ref<boolean, boolean>;
2374
2374
  isArrayValue: import("vue").ComputedRef<boolean>;
@@ -2378,7 +2378,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2378
2378
  handleChange: (val: any) => void;
2379
2379
  handleSelect: ({ value }: any) => void;
2380
2380
  readonly isFunction: (val: any) => boolean;
2381
- readonly getTooltip: (tooltip: string | import("element-plus").ElTooltipProps | undefined) => import("@wlydfe/pro-ui-types").RecordType | undefined;
2381
+ readonly getTooltip: (tooltip: string | import("element-plus").ElTooltipProps | undefined) => import("@wlydfe/pro-ui/es/types").RecordType | undefined;
2382
2382
  readonly getLabelSlotName: (prop?: string | number | undefined) => string;
2383
2383
  readonly getFieldSlotName: (prop?: string | number | undefined) => string;
2384
2384
  readonly versionIsLessThan260: boolean;
@@ -3148,7 +3148,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3148
3148
  attrs: {
3149
3149
  [x: string]: unknown;
3150
3150
  };
3151
- radioClick: (e: MouseEvent, val: string | number | boolean, fieldItemProps: import("@wlydfe/pro-ui-types").RecordType | undefined) => void;
3151
+ radioClick: (e: MouseEvent, val: string | number | boolean, fieldItemProps: import("@wlydfe/pro-ui/es/types").RecordType | undefined) => void;
3152
3152
  change: (val: string | number | boolean) => void;
3153
3153
  readonly ElRadio: ({
3154
3154
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
@@ -4025,7 +4025,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4025
4025
  }>, {
4026
4026
  props: any;
4027
4027
  emit: (event: "update:modelValue" | "change" | "focus", ...args: any[]) => void;
4028
- t: import("@wlydfe/pro-ui-hooks").Translator;
4028
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
4029
4029
  startPickerInstance: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4030
4030
  readonly type: {
4031
4031
  readonly type: import("vue").PropType<"datetimerange" | "daterange" | "monthrange" | "years" | "dates" | "datetime" | "date" | "year" | "month" | "months" | "week" | "yearrange">;
@@ -6761,7 +6761,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6761
6761
  inputValue: string;
6762
6762
  isFocus: boolean;
6763
6763
  };
6764
- t: import("@wlydfe/pro-ui-hooks").Translator;
6764
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
6765
6765
  onClickOutside: () => void;
6766
6766
  handleClick: () => void;
6767
6767
  handleClose: (tag: string) => void;
@@ -7973,7 +7973,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7973
7973
  justifyContent: string;
7974
7974
  }>;
7975
7975
  subVisible: import("vue").Ref<boolean, boolean>;
7976
- t: import("@wlydfe/pro-ui-hooks").Translator;
7976
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
7977
7977
  handleConfirm: () => void;
7978
7978
  handleCancel: () => void;
7979
7979
  readonly ElDialog: {
@@ -1,3 +1,3 @@
1
- import '@wlydfe/pro-ui/es/es/components/dialog/style/css';
2
- import '@wlydfe/pro-ui/es/es/components/form/style/css';
1
+ import '@wlydfe/pro-ui/es/components/dialog/style/css';
2
+ import '@wlydfe/pro-ui/es/components/form/style/css';
3
3
  import '@wlydfe/pro-ui/es/theme-chalk/plus-dialog-form.css';
@@ -1,3 +1,3 @@
1
- import '@wlydfe/pro-ui/es/es/components/dialog/style/index';
2
- import '@wlydfe/pro-ui/es/es/components/form/style/index';
1
+ import '@wlydfe/pro-ui/es/components/dialog/style/index';
2
+ import '@wlydfe/pro-ui/es/components/form/style/index';
3
3
  import '@wlydfe/pro-ui/es/theme-chalk/src/dialog-form.scss';
@@ -31,6 +31,7 @@ export declare const PlusDisplayItem: import("vue").DefineComponent<import("vue"
31
31
  columns: import("vue").Ref<import("../..").PlusColumn[], import("../..").PlusColumn[]>;
32
32
  subRow: import("vue").Ref<any, any>;
33
33
  customFieldPropsIsReady: import("vue").Ref<boolean, boolean>;
34
+ rawValue: import("vue").ComputedRef<any>;
34
35
  displayValue: import("vue").WritableComputedRef<any, any>;
35
36
  modelValues: import("vue").WritableComputedRef<{
36
37
  [x: number]: any;
@@ -7916,7 +7917,6 @@ export declare const PlusDisplayItem: import("vue").DefineComponent<import("vue"
7916
7917
  resetText: string;
7917
7918
  submitLoading: boolean;
7918
7919
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7919
- readonly formatDate: typeof import("../utils").formatDate;
7920
7920
  readonly formatMoney: typeof import("../utils").formatMoney;
7921
7921
  readonly isFunction: (val: any) => boolean;
7922
7922
  readonly getTableCellSlotName: (prop?: string | number | undefined) => string;
@@ -1,6 +1,6 @@
1
- import { formatDate, formatMoney } from '@wlydfe/pro-ui/es/es/components/utils';
1
+ import { formatMoney } from '@wlydfe/pro-ui/es/components/utils';
2
2
  import type { Ref } from 'vue';
3
- import type { PlusColumn, RecordType, FieldValueType, FieldValues } from '@wlydfe/pro-ui-types';
3
+ import type { PlusColumn, RecordType, FieldValueType, FieldValues } from '@wlydfe/pro-ui/es/types';
4
4
  export interface PlusDisplayItemProps {
5
5
  column: PlusColumn;
6
6
  row: RecordType;
@@ -39,10 +39,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
39
39
  isForm: import("vue").ComputedRef<boolean>;
40
40
  customFieldProps: Ref<RecordType, RecordType>;
41
41
  formInstance: Ref<any, any>;
42
- options: Ref<import("@wlydfe/pro-ui-types").OptionsRow[], import("@wlydfe/pro-ui-types").OptionsRow[]>;
42
+ options: Ref<import("@wlydfe/pro-ui/es/types").OptionsRow[], import("@wlydfe/pro-ui/es/types").OptionsRow[]>;
43
43
  columns: Ref<PlusColumn[], PlusColumn[]>;
44
44
  subRow: Ref<any, any>;
45
45
  customFieldPropsIsReady: Ref<boolean, boolean>;
46
+ rawValue: import("vue").ComputedRef<any>;
46
47
  displayValue: import("vue").WritableComputedRef<any, any>;
47
48
  modelValues: import("vue").WritableComputedRef<{
48
49
  [x: number]: any;
@@ -58,7 +59,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
58
59
  options: any[];
59
60
  url: any;
60
61
  }>;
61
- getStatus: import("vue").ComputedRef<import("@wlydfe/pro-ui-types").OptionsRow>;
62
+ getStatus: import("vue").ComputedRef<import("@wlydfe/pro-ui/es/types").OptionsRow>;
62
63
  copy: (data: string) => void;
63
64
  handelClickCopy: (item: PlusColumn, row: RecordType) => void;
64
65
  handleChange: (values: FieldValues) => void;
@@ -129,6 +130,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
129
130
  };
130
131
  hasLabel: {
131
132
  type: BooleanConstructor;
133
+ /**
134
+ * 表单绑定值处理
135
+ */
132
136
  required: false;
133
137
  default: boolean;
134
138
  };
@@ -165,7 +169,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
165
169
  }>, {
166
170
  props: any;
167
171
  emit: (event: "reset" | "submit" | "update:modelValue" | "change" | "submitError", ...args: any[]) => void;
168
- t: import("@wlydfe/pro-ui-hooks").Translator;
172
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
169
173
  formInstance: Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>;
170
174
  values: Ref<FieldValues, FieldValues>;
171
175
  filterHide: (columns: PlusColumn[]) => PlusColumn[];
@@ -1915,8 +1919,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1915
1919
  ElText: import("vue").Component;
1916
1920
  props: any;
1917
1921
  emit: (event: "update:modelValue" | "change", ...args: any[]) => void;
1918
- t: import("@wlydfe/pro-ui-hooks").Translator;
1919
- customOptions: Ref<import("@wlydfe/pro-ui-types").OptionsRow[], import("@wlydfe/pro-ui-types").OptionsRow[]>;
1922
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
1923
+ customOptions: Ref<import("@wlydfe/pro-ui/es/types").OptionsRow[], import("@wlydfe/pro-ui/es/types").OptionsRow[]>;
1920
1924
  customOptionsIsReady: Ref<boolean, boolean>;
1921
1925
  formItemInstance: Ref<({
1922
1926
  $: import("vue").ComponentInternalInstance;
@@ -4035,7 +4039,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4035
4039
  }>, {
4036
4040
  props: any;
4037
4041
  emit: (event: "update:modelValue" | "change" | "focus", ...args: any[]) => void;
4038
- t: import("@wlydfe/pro-ui-hooks").Translator;
4042
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
4039
4043
  startPickerInstance: Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
4040
4044
  readonly type: {
4041
4045
  readonly type: import("vue").PropType<"datetimerange" | "daterange" | "monthrange" | "years" | "dates" | "datetime" | "date" | "year" | "month" | "months" | "week" | "yearrange">;
@@ -6769,7 +6773,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6769
6773
  inputValue: string;
6770
6774
  isFocus: boolean;
6771
6775
  };
6772
- t: import("@wlydfe/pro-ui-hooks").Translator;
6776
+ t: import("@wlydfe/pro-ui/es/hooks").Translator;
6773
6777
  onClickOutside: () => void;
6774
6778
  handleClick: () => void;
6775
6779
  handleClose: (tag: string) => void;
@@ -7869,6 +7873,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7869
7873
  };
7870
7874
  hasLabel: {
7871
7875
  type: BooleanConstructor;
7876
+ /**
7877
+ * 表单绑定值处理
7878
+ */
7872
7879
  required: false;
7873
7880
  default: boolean;
7874
7881
  };
@@ -7928,7 +7935,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7928
7935
  resetText: string;
7929
7936
  submitLoading: boolean;
7930
7937
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7931
- readonly formatDate: typeof formatDate;
7932
7938
  readonly formatMoney: typeof formatMoney;
7933
7939
  readonly isFunction: (val: any) => boolean;
7934
7940
  readonly getTableCellSlotName: (prop?: string | number | undefined) => string;
@@ -6,11 +6,15 @@ import '../../../hooks/index.mjs';
6
6
  import { PlusRender } from '../../render/index.mjs';
7
7
  import { ElImage, ElLink, ElTag, ElProgress, ElIcon } from 'element-plus';
8
8
  import { useGetOptions } from '../../../hooks/useGetOptions.mjs';
9
- import { isArray, isFunction } from '../../utils/is.mjs';
10
9
  import { formatDate, formatMoney } from '../../utils/format.mjs';
10
+ import { isArray, isFunction } from '../../utils/is.mjs';
11
11
 
12
12
  const _hoisted_1 = ["innerHTML"];
13
- const _hoisted_2 = { class: "plus-display-item" };
13
+ const _hoisted_2 = {
14
+ key: 1,
15
+ class: "plus-display-item"
16
+ };
17
+ const _hoisted_3 = { class: "plus-display-item" };
14
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
19
  ...{
16
20
  name: "PlusDisplayItem"
@@ -33,9 +37,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
37
  const columns = ref([]);
34
38
  const subRow = ref(props.row);
35
39
  const customFieldPropsIsReady = ref(false);
40
+ const rawValue = computed(() => getValue(subRow.value, props.column.prop));
36
41
  const displayValue = computed({
37
42
  get() {
38
- return getValue(subRow.value, props.column.prop);
43
+ var _a, _b;
44
+ const value = rawValue.value;
45
+ const isEmpty = value === "" || value === null || value === void 0;
46
+ if (isEmpty) {
47
+ switch (props.column.valueType) {
48
+ case "progress":
49
+ return 0;
50
+ default:
51
+ return ((_a = props.column.tableColumnProps) == null ? void 0 : _a.emptyText) || "-";
52
+ }
53
+ }
54
+ switch (props.column.valueType) {
55
+ case "date-picker":
56
+ return value ? formatDate(value) : ((_b = props.column.tableColumnProps) == null ? void 0 : _b.emptyText) || "-";
57
+ default:
58
+ return value;
59
+ }
39
60
  },
40
61
  set(value) {
41
62
  setValue(subRow.value, props.column.prop, value);
@@ -314,7 +335,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
314
335
  ],
315
336
  2112
316
337
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
317
- )) : _ctx.column.valueType === "date-picker" && displayValue.value ? (openBlock(), createElementBlock(
338
+ )) : _ctx.column.valueType === "date-picker" ? (openBlock(), createElementBlock(
318
339
  Fragment,
319
340
  { key: 6 },
320
341
  [
@@ -322,7 +343,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
322
343
  createElementVNode(
323
344
  "span",
324
345
  mergeProps({ class: "plus-display-item" }, customFieldProps.value),
325
- toDisplayString(unref(formatDate)(displayValue.value)),
346
+ toDisplayString(displayValue.value),
326
347
  17
327
348
  /* TEXT, FULL_PROPS */
328
349
  )
@@ -353,25 +374,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
353
374
  "span",
354
375
  mergeProps({ class: "plus-display-item plus-display-item__badge" }, customFieldProps.value),
355
376
  [
356
- getStatus.value.color || getStatus.value.type ? (openBlock(), createElementBlock(
357
- "span",
358
- {
359
- key: 0,
360
- class: normalizeClass([
361
- "plus-display-item__badge__dot",
362
- getStatus.value.type && !getStatus.value.color ? "plus-display-item__badge__dot--" + getStatus.value.type : ""
363
- ]),
364
- style: normalizeStyle({ backgroundColor: getStatus.value.color })
365
- },
366
- null,
367
- 6
368
- /* CLASS, STYLE */
369
- )) : createCommentVNode("v-if", true),
370
- createTextVNode(
371
- " " + toDisplayString(getStatus.value.label),
372
- 1
373
- /* TEXT */
374
- )
377
+ rawValue.value !== "" && rawValue.value !== null && rawValue.value !== void 0 ? (openBlock(), createElementBlock(
378
+ Fragment,
379
+ { key: 0 },
380
+ [
381
+ getStatus.value.color || getStatus.value.type ? (openBlock(), createElementBlock(
382
+ "span",
383
+ {
384
+ key: 0,
385
+ class: normalizeClass([
386
+ "plus-display-item__badge__dot",
387
+ getStatus.value.type && !getStatus.value.color ? "plus-display-item__badge__dot--" + getStatus.value.type : ""
388
+ ]),
389
+ style: normalizeStyle({ backgroundColor: getStatus.value.color })
390
+ },
391
+ null,
392
+ 6
393
+ /* CLASS, STYLE */
394
+ )) : createCommentVNode("v-if", true),
395
+ createTextVNode(
396
+ " " + toDisplayString(getStatus.value.label),
397
+ 1
398
+ /* TEXT */
399
+ )
400
+ ],
401
+ 64
402
+ /* STABLE_FRAGMENT */
403
+ )) : (openBlock(), createElementBlock(
404
+ Fragment,
405
+ { key: 1 },
406
+ [
407
+ createTextVNode(
408
+ toDisplayString(displayValue.value),
409
+ 1
410
+ /* TEXT */
411
+ )
412
+ ],
413
+ 64
414
+ /* STABLE_FRAGMENT */
415
+ ))
375
416
  ],
376
417
  16
377
418
  /* FULL_PROPS */
@@ -379,14 +420,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
379
420
  ],
380
421
  2112
381
422
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
382
- )) : _ctx.column.valueType === "tag" && displayValue.value ? (openBlock(), createElementBlock(
423
+ )) : _ctx.column.valueType === "tag" ? (openBlock(), createElementBlock(
383
424
  Fragment,
384
425
  { key: 9 },
385
426
  [
386
427
  createCommentVNode(" \u6807\u7B7E "),
387
- createVNode(
428
+ rawValue.value !== "" && rawValue.value !== null && rawValue.value !== void 0 ? (openBlock(), createBlock(
388
429
  unref(ElTag),
389
- mergeProps({ class: "plus-display-item" }, customFieldProps.value),
430
+ mergeProps({
431
+ key: 0,
432
+ class: "plus-display-item"
433
+ }, customFieldProps.value),
390
434
  createSlots({
391
435
  default: withCtx(() => [
392
436
  createTextVNode(
@@ -415,10 +459,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
415
459
  ]),
416
460
  1040
417
461
  /* FULL_PROPS, DYNAMIC_SLOTS */
418
- )
462
+ )) : (openBlock(), createElementBlock(
463
+ "span",
464
+ _hoisted_2,
465
+ toDisplayString(displayValue.value),
466
+ 1
467
+ /* TEXT */
468
+ ))
419
469
  ],
420
- 2112
421
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
470
+ 64
471
+ /* STABLE_FRAGMENT */
422
472
  )) : _ctx.column.valueType === "progress" ? (openBlock(), createElementBlock(
423
473
  Fragment,
424
474
  { key: 10 },
@@ -454,7 +504,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
454
504
  { key: 11 },
455
505
  [
456
506
  createCommentVNode(" \u590D\u5236 "),
457
- createElementVNode("span", _hoisted_2, [
507
+ createElementVNode("span", _hoisted_3, [
458
508
  createTextVNode(
459
509
  toDisplayString(displayValue.value) + " ",
460
510
  1
@@ -2,5 +2,5 @@ import 'element-plus/es/components/image/style/css';
2
2
  import 'element-plus/es/components/link/style/css';
3
3
  import 'element-plus/es/components/tag/style/css';
4
4
  import 'element-plus/es/components/progress/style/css';
5
- import '@wlydfe/pro-ui/es/es/components/form/style/css';
5
+ import '@wlydfe/pro-ui/es/components/form/style/css';
6
6
  import '@wlydfe/pro-ui/es/theme-chalk/plus-display-item.css';
@@ -2,5 +2,5 @@ import 'element-plus/es/components/image/style/index';
2
2
  import 'element-plus/es/components/link/style/index';
3
3
  import 'element-plus/es/components/tag/style/index';
4
4
  import 'element-plus/es/components/progress/style/index';
5
- import '@wlydfe/pro-ui/es/es/components/form/style/index';
5
+ import '@wlydfe/pro-ui/es/components/form/style/index';
6
6
  import '@wlydfe/pro-ui/es/theme-chalk/src/display-item.scss';