yc-pro-components 0.0.17 → 0.0.19
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/check-card/index.d.ts +23 -23
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +24 -24
- package/es/components/check-card-group/src/index.vue.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog/src/index.vue2.mjs +6 -3
- package/es/components/dialog-form/index.d.ts +1154 -0
- package/es/components/dialog-form/src/index.vue.d.ts +493 -0
- package/es/components/dialog-form/src/index.vue2.mjs +7 -4
- package/es/components/display-item/index.d.ts +12 -12
- package/es/components/display-item/src/index.vue.d.ts +12 -12
- package/es/components/display-item/src/index.vue2.mjs +18 -5
- package/es/components/drawer-form/index.d.ts +3467 -0
- package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/es/components/drawer-form/src/index.vue2.mjs +7 -4
- package/es/components/form/index.d.ts +1665 -1
- package/es/components/form/src/form-content.vue.d.ts +14 -12
- package/es/components/form/src/index.vue.d.ts +652 -0
- package/es/components/form/src/index.vue2.mjs +7 -4
- package/es/components/form-item/index.d.ts +36 -36
- package/es/components/form-item/src/index.vue.d.ts +8 -8
- package/es/components/header/index.d.ts +7 -7
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +15 -15
- package/es/components/input-tag/src/index.vue.d.ts +7 -7
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +15450 -0
- package/es/components/page/src/index.vue.d.ts +5301 -0
- package/es/components/page/src/index.vue2.mjs +4 -2
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/popover/src/index.vue2.mjs +6 -3
- package/es/components/radio/index.d.ts +10 -10
- package/es/components/radio/src/index.vue.d.ts +2 -2
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +4514 -0
- package/es/components/search/src/index.vue.d.ts +1539 -0
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -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/table-column.vue.d.ts +12 -12
- package/es/components/table/src/type.d.ts +9 -0
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +6 -6
- package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +12864 -0
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/constants/form.d.ts +5 -0
- package/es/constants/form.mjs +2 -1
- package/es/constants/index.mjs +1 -1
- package/es/hooks/usePlusFormReset.d.ts +9833 -5
- package/es/index.css +1 -1
- package/es/index.mjs +1 -1
- package/es/types/plus.d.ts +29 -0
- package/index.css +7 -7
- package/index.js +66 -29
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +66 -30
- package/lib/components/check-card/index.d.ts +23 -23
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +24 -24
- package/lib/components/check-card-group/src/index.vue.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/src/index.vue2.js +6 -3
- package/lib/components/dialog-form/index.d.ts +1154 -0
- package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
- package/lib/components/dialog-form/src/index.vue2.js +7 -4
- package/lib/components/display-item/index.d.ts +12 -12
- package/lib/components/display-item/src/index.vue.d.ts +12 -12
- package/lib/components/display-item/src/index.vue2.js +16 -3
- package/lib/components/drawer-form/index.d.ts +3467 -0
- package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/lib/components/drawer-form/src/index.vue2.js +7 -4
- package/lib/components/form/index.d.ts +1665 -1
- package/lib/components/form/src/form-content.vue.d.ts +14 -12
- package/lib/components/form/src/index.vue.d.ts +652 -0
- package/lib/components/form/src/index.vue2.js +7 -4
- package/lib/components/form-item/index.d.ts +36 -36
- package/lib/components/form-item/src/index.vue.d.ts +8 -8
- package/lib/components/header/index.d.ts +7 -7
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +15 -15
- package/lib/components/input-tag/src/index.vue.d.ts +7 -7
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +15450 -0
- package/lib/components/page/src/index.vue.d.ts +5301 -0
- package/lib/components/page/src/index.vue2.js +4 -2
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/popover/src/index.vue2.js +6 -3
- package/lib/components/radio/index.d.ts +10 -10
- package/lib/components/radio/src/index.vue.d.ts +2 -2
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +4514 -0
- package/lib/components/search/src/index.vue.d.ts +1539 -0
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -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/table-column.vue.d.ts +12 -12
- package/lib/components/table/src/type.d.ts +9 -0
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +6 -6
- package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +12864 -0
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/constants/form.d.ts +5 -0
- package/lib/constants/form.js +2 -0
- package/lib/constants/index.js +1 -0
- package/lib/hooks/usePlusFormReset.d.ts +9833 -5
- package/lib/index.css +1 -1
- 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 +3 -3
|
@@ -77,9 +77,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
77
77
|
row: RecordType;
|
|
78
78
|
editable: boolean | "click" | "dblclick";
|
|
79
79
|
}, {}>, Partial<Record<string, (_: {
|
|
80
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
80
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
81
81
|
readonly label: string | ComputedRef<string>;
|
|
82
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
82
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
83
83
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
84
84
|
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
85
85
|
style?: CSSProperties | undefined;
|
|
@@ -106,7 +106,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
106
106
|
};
|
|
107
107
|
rows: number;
|
|
108
108
|
autocomplete: string;
|
|
109
|
-
type: "" | "number" | "default" | "
|
|
109
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
110
110
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
111
111
|
step: string | number;
|
|
112
112
|
format: string | ProgressFn | undefined;
|
|
@@ -151,7 +151,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
151
151
|
fieldInstance?: any;
|
|
152
152
|
valueIsReady?: Ref<boolean> | undefined;
|
|
153
153
|
prop: string;
|
|
154
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
154
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
155
155
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
156
156
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
157
157
|
style?: CSSProperties | undefined;
|
|
@@ -185,9 +185,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
185
185
|
clearable: boolean;
|
|
186
186
|
index: number;
|
|
187
187
|
}) => any>> & Partial<Record<string, (_: {
|
|
188
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
188
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
189
189
|
readonly label: string | ComputedRef<string>;
|
|
190
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
190
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
191
191
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
192
192
|
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
193
193
|
style?: CSSProperties | undefined;
|
|
@@ -214,7 +214,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
214
214
|
};
|
|
215
215
|
rows: number;
|
|
216
216
|
autocomplete: string;
|
|
217
|
-
type: "" | "number" | "default" | "
|
|
217
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
218
218
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
219
219
|
step: string | number;
|
|
220
220
|
format: string | ProgressFn | undefined;
|
|
@@ -259,7 +259,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
259
259
|
fieldInstance?: any;
|
|
260
260
|
valueIsReady?: Ref<boolean> | undefined;
|
|
261
261
|
prop: string;
|
|
262
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
262
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
263
263
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
264
264
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
265
265
|
style?: CSSProperties | undefined;
|
|
@@ -293,9 +293,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
293
293
|
clearable: boolean;
|
|
294
294
|
index: number;
|
|
295
295
|
}) => any>> & Partial<Record<string, (_: {
|
|
296
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "
|
|
296
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
297
297
|
readonly label: string | ComputedRef<string>;
|
|
298
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
298
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
299
299
|
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
300
300
|
readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
301
301
|
style?: CSSProperties | undefined;
|
|
@@ -322,7 +322,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
322
322
|
};
|
|
323
323
|
rows: number;
|
|
324
324
|
autocomplete: string;
|
|
325
|
-
type: "" | "number" | "default" | "
|
|
325
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
326
326
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
327
327
|
step: string | number;
|
|
328
328
|
format: string | ProgressFn | undefined;
|
|
@@ -367,7 +367,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
367
367
|
fieldInstance?: any;
|
|
368
368
|
valueIsReady?: Ref<boolean> | undefined;
|
|
369
369
|
prop: string;
|
|
370
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
370
|
+
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
371
371
|
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
372
372
|
tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
|
|
373
373
|
style?: CSSProperties | undefined;
|
|
@@ -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)) {
|