yc-pro-components 0.0.82 → 0.0.83
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 +38 -38
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +39 -39
- package/es/components/check-card-group/src/index.vue.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +29 -29
- package/es/components/date-picker/src/index.vue.d.ts +21 -21
- package/es/components/dialog/index.d.ts +57 -57
- package/es/components/dialog/src/index.vue.d.ts +5 -5
- package/es/components/dialog-form/index.d.ts +18 -18
- package/es/components/dialog-form/src/index.vue.d.ts +12 -12
- package/es/components/display-item/index.d.ts +50 -50
- package/es/components/display-item/src/index.vue.d.ts +31 -31
- package/es/components/drawer-form/index.d.ts +121 -121
- package/es/components/drawer-form/src/index.vue.d.ts +33 -33
- package/es/components/form/index.d.ts +47 -47
- package/es/components/form/src/form-content.vue.d.ts +39 -39
- package/es/components/form/src/index.vue.d.ts +22 -22
- package/es/components/form-item/index.d.ts +62 -62
- package/es/components/form-item/src/index.vue.d.ts +19 -19
- package/es/components/header/index.d.ts +19 -19
- 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 +3 -3
- 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 +347 -347
- package/es/components/page/src/index.vue.d.ts +121 -121
- package/es/components/pagination/index.d.ts +38 -38
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/popover/index.d.ts +42 -42
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +33 -33
- package/es/components/radio/src/index.vue.d.ts +25 -25
- 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 +156 -156
- package/es/components/search/src/index.vue.d.ts +53 -53
- 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 +19 -19
- package/es/components/steps-form/src/index.vue.d.ts +1 -1
- package/es/components/table/src/index.vue2.mjs +11 -5
- package/es/components/table/src/table-column.vue.d.ts +46 -46
- package/es/components/table/src/use-table-density.d.ts +8 -0
- package/es/components/table/src/use-table-density.mjs +24 -0
- package/es/components/yc-card/index.d.ts +19 -19
- package/es/components/yc-card/src/index.vue.d.ts +1 -1
- 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-dialog/index.d.ts +24 -24
- package/es/components/yc-drawer/store.d.ts +5 -5
- package/es/components/yc-more-actions/index.d.ts +36 -36
- package/es/components/yc-more-actions/src/index.vue.d.ts +2 -2
- package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +236 -236
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/es/components/yc-segmented/index.d.ts +1 -1
- package/es/components/yc-segmented/src/index.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.d.ts +5 -5
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/hooks/usePlusFormReset.d.ts +345 -345
- package/es/index.css +9 -9
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.js +32 -6
- package/index.min.js +12 -12
- package/index.min.mjs +12 -12
- package/index.mjs +32 -6
- package/lib/components/check-card/index.d.ts +38 -38
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +39 -39
- package/lib/components/check-card-group/src/index.vue.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +29 -29
- package/lib/components/date-picker/src/index.vue.d.ts +21 -21
- package/lib/components/dialog/index.d.ts +57 -57
- package/lib/components/dialog/src/index.vue.d.ts +5 -5
- package/lib/components/dialog-form/index.d.ts +18 -18
- package/lib/components/dialog-form/src/index.vue.d.ts +12 -12
- package/lib/components/display-item/index.d.ts +50 -50
- package/lib/components/display-item/src/index.vue.d.ts +31 -31
- package/lib/components/drawer-form/index.d.ts +121 -121
- package/lib/components/drawer-form/src/index.vue.d.ts +33 -33
- package/lib/components/form/index.d.ts +47 -47
- package/lib/components/form/src/form-content.vue.d.ts +39 -39
- package/lib/components/form/src/index.vue.d.ts +22 -22
- package/lib/components/form-item/index.d.ts +62 -62
- package/lib/components/form-item/src/index.vue.d.ts +19 -19
- package/lib/components/header/index.d.ts +19 -19
- 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 +3 -3
- 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 +347 -347
- package/lib/components/page/src/index.vue.d.ts +121 -121
- package/lib/components/pagination/index.d.ts +38 -38
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/popover/index.d.ts +42 -42
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +33 -33
- package/lib/components/radio/src/index.vue.d.ts +25 -25
- 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 +156 -156
- package/lib/components/search/src/index.vue.d.ts +53 -53
- 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 +19 -19
- package/lib/components/steps-form/src/index.vue.d.ts +1 -1
- package/lib/components/table/src/index.vue2.js +10 -4
- package/lib/components/table/src/table-column.vue.d.ts +46 -46
- package/lib/components/table/src/use-table-density.d.ts +8 -0
- package/lib/components/table/src/use-table-density.js +28 -0
- package/lib/components/yc-card/index.d.ts +19 -19
- package/lib/components/yc-card/src/index.vue.d.ts +1 -1
- 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-dialog/index.d.ts +24 -24
- package/lib/components/yc-drawer/store.d.ts +5 -5
- package/lib/components/yc-more-actions/index.d.ts +36 -36
- package/lib/components/yc-more-actions/src/index.vue.d.ts +2 -2
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +236 -236
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/lib/components/yc-segmented/index.d.ts +1 -1
- package/lib/components/yc-segmented/src/index.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +5 -5
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/hooks/usePlusFormReset.d.ts +345 -345
- package/lib/index.css +9 -9
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, shallowRef, reactive, watchEffect, computed, provide,
|
|
1
|
+
import { defineComponent, ref, shallowRef, reactive, watch, watchEffect, computed, provide, unref, onMounted, onBeforeUnmount, toRefs, openBlock, createElementBlock, createBlock, createSlots, withCtx, renderSlot, createCommentVNode, withDirectives, mergeProps, createVNode, createElementVNode, renderList, normalizeProps, guardReactiveProps, isRef, nextTick } from 'vue';
|
|
2
2
|
import { PlusPagination } from '../../pagination/index.mjs';
|
|
3
3
|
import { PlusRadio } from '../../radio/index.mjs';
|
|
4
4
|
import { DefaultPageInfo } from '../../../constants/page.mjs';
|
|
@@ -11,6 +11,7 @@ import PlusTableColumn from './table-column.vue.mjs';
|
|
|
11
11
|
import PlusTableTableColumnIndex from './table-column-index.vue.mjs';
|
|
12
12
|
import PlusTableColumnDragSort from './table-column-drag-sort.vue.mjs';
|
|
13
13
|
import PlusTableTitleBar from './table-title-bar.vue.mjs';
|
|
14
|
+
import { sharedTableDensity, applyTableDensity } from './use-table-density.mjs';
|
|
14
15
|
import { isPlainObject, isSVGElement } from '../../utils/is.mjs';
|
|
15
16
|
|
|
16
17
|
const _hoisted_1 = { class: "plus-table-expand-col" };
|
|
@@ -58,7 +59,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
59
|
},
|
|
59
60
|
emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
|
|
60
61
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
61
|
-
var _a, _b;
|
|
62
|
+
var _a, _b, _c;
|
|
62
63
|
const props = __props;
|
|
63
64
|
const emit = __emit;
|
|
64
65
|
const radioRow = ref();
|
|
@@ -77,9 +78,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
78
|
subPageInfo: {
|
|
78
79
|
...((_a = props.pagination) == null ? void 0 : _a.modelValue) || DefaultPageInfo
|
|
79
80
|
},
|
|
80
|
-
size: props.defaultSize
|
|
81
|
+
size: (_b = sharedTableDensity.value) != null ? _b : props.defaultSize
|
|
81
82
|
});
|
|
82
83
|
const cachedTableData = ref([]);
|
|
84
|
+
watch(sharedTableDensity, (val) => {
|
|
85
|
+
if (val) {
|
|
86
|
+
state.size = val;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
83
89
|
watchEffect(() => {
|
|
84
90
|
var _a2;
|
|
85
91
|
cachedTableData.value = ((_a2 = props.tableData) == null ? void 0 : _a2.length) ? props.tableData : props.data;
|
|
@@ -136,7 +142,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
142
|
);
|
|
137
143
|
};
|
|
138
144
|
const handleClickDensity = (size2) => {
|
|
139
|
-
|
|
145
|
+
applyTableDensity(size2);
|
|
140
146
|
};
|
|
141
147
|
const handleDragSortEnd = (newIndex, oldIndex) => {
|
|
142
148
|
emit("dragSortEnd", newIndex, oldIndex);
|
|
@@ -219,7 +225,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
219
225
|
};
|
|
220
226
|
const debounceSetAdaptive = debounce(
|
|
221
227
|
setAdaptive,
|
|
222
|
-
isPlainObject(props.adaptive) ? (
|
|
228
|
+
isPlainObject(props.adaptive) ? (_c = props.adaptive.timeout) != null ? _c : 60 : 60
|
|
223
229
|
);
|
|
224
230
|
onMounted(() => {
|
|
225
231
|
if (hasAdaptive.value) {
|
|
@@ -26,15 +26,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
26
26
|
$data: {};
|
|
27
27
|
$props: Partial<{
|
|
28
28
|
index: number;
|
|
29
|
-
formProps: PlusFormProps;
|
|
30
29
|
rest: RecordType;
|
|
30
|
+
formProps: PlusFormProps;
|
|
31
31
|
column: PlusColumn;
|
|
32
32
|
row: RecordType;
|
|
33
33
|
editable: boolean | "click" | "dblclick";
|
|
34
34
|
}> & Omit<{
|
|
35
35
|
readonly index: number;
|
|
36
|
-
readonly formProps: PlusFormProps;
|
|
37
36
|
readonly rest: RecordType;
|
|
37
|
+
readonly formProps: PlusFormProps;
|
|
38
38
|
readonly column: PlusColumn;
|
|
39
39
|
readonly row: RecordType;
|
|
40
40
|
readonly editable: boolean | "click" | "dblclick";
|
|
@@ -48,14 +48,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
48
48
|
type: PropType<number>;
|
|
49
49
|
default: number;
|
|
50
50
|
};
|
|
51
|
-
formProps: {
|
|
52
|
-
type: PropType<PlusFormProps>;
|
|
53
|
-
default: () => {};
|
|
54
|
-
};
|
|
55
51
|
rest: {
|
|
56
52
|
type: PropType<RecordType>;
|
|
57
53
|
default: () => {};
|
|
58
54
|
};
|
|
55
|
+
formProps: {
|
|
56
|
+
type: PropType<PlusFormProps>;
|
|
57
|
+
default: () => {};
|
|
58
|
+
};
|
|
59
59
|
column: {
|
|
60
60
|
type: PropType<PlusColumn>;
|
|
61
61
|
required: true;
|
|
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
79
79
|
prop: string;
|
|
80
80
|
row: RecordType;
|
|
81
81
|
}) => any) | undefined;
|
|
82
|
-
}, "index" | "
|
|
82
|
+
}, "index" | "rest" | "formProps" | "column" | "row" | "editable">;
|
|
83
83
|
$attrs: {
|
|
84
84
|
[x: string]: unknown;
|
|
85
85
|
};
|
|
@@ -102,14 +102,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
102
102
|
type: PropType<number>;
|
|
103
103
|
default: number;
|
|
104
104
|
};
|
|
105
|
-
formProps: {
|
|
106
|
-
type: PropType<PlusFormProps>;
|
|
107
|
-
default: () => {};
|
|
108
|
-
};
|
|
109
105
|
rest: {
|
|
110
106
|
type: PropType<RecordType>;
|
|
111
107
|
default: () => {};
|
|
112
108
|
};
|
|
109
|
+
formProps: {
|
|
110
|
+
type: PropType<PlusFormProps>;
|
|
111
|
+
default: () => {};
|
|
112
|
+
};
|
|
113
113
|
column: {
|
|
114
114
|
type: PropType<PlusColumn>;
|
|
115
115
|
required: true;
|
|
@@ -152,8 +152,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
152
152
|
}) => void;
|
|
153
153
|
}, string, {
|
|
154
154
|
index: number;
|
|
155
|
-
formProps: PlusFormProps;
|
|
156
155
|
rest: RecordType;
|
|
156
|
+
formProps: PlusFormProps;
|
|
157
157
|
column: PlusColumn;
|
|
158
158
|
row: RecordType;
|
|
159
159
|
editable: boolean | "click" | "dblclick";
|
|
@@ -182,14 +182,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
182
182
|
type: PropType<number>;
|
|
183
183
|
default: number;
|
|
184
184
|
};
|
|
185
|
-
formProps: {
|
|
186
|
-
type: PropType<PlusFormProps>;
|
|
187
|
-
default: () => {};
|
|
188
|
-
};
|
|
189
185
|
rest: {
|
|
190
186
|
type: PropType<RecordType>;
|
|
191
187
|
default: () => {};
|
|
192
188
|
};
|
|
189
|
+
formProps: {
|
|
190
|
+
type: PropType<PlusFormProps>;
|
|
191
|
+
default: () => {};
|
|
192
|
+
};
|
|
193
193
|
column: {
|
|
194
194
|
type: PropType<PlusColumn>;
|
|
195
195
|
required: true;
|
|
@@ -226,14 +226,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
226
226
|
};
|
|
227
227
|
}> & {} & ComponentCustomProperties & {} & {
|
|
228
228
|
$slots: Partial<Record<string, (_: {
|
|
229
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "
|
|
229
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
230
230
|
readonly label: string | ComputedRef<string>;
|
|
231
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
232
|
-
readonly hasLabel: boolean |
|
|
233
|
-
readonly tooltip: string |
|
|
231
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
232
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
233
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
234
234
|
style?: CSSProperties | undefined;
|
|
235
235
|
class?: any;
|
|
236
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
236
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
237
237
|
style?: CSSProperties | undefined;
|
|
238
238
|
class?: any;
|
|
239
239
|
} & RecordType>>;
|
|
@@ -255,7 +255,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
255
255
|
};
|
|
256
256
|
rows: number;
|
|
257
257
|
autocomplete: string;
|
|
258
|
-
type: "" | "number" | "default" | "
|
|
258
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
259
259
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
260
260
|
step: string | number;
|
|
261
261
|
format: string | ProgressFn | undefined;
|
|
@@ -300,12 +300,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
300
300
|
fieldInstance?: any;
|
|
301
301
|
valueIsReady?: Ref<boolean> | undefined;
|
|
302
302
|
prop: string;
|
|
303
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
304
|
-
hasLabel: boolean |
|
|
305
|
-
tooltip: string |
|
|
303
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
304
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
305
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
306
306
|
style?: CSSProperties | undefined;
|
|
307
307
|
class?: any;
|
|
308
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
308
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
309
309
|
style?: CSSProperties | undefined;
|
|
310
310
|
class?: any;
|
|
311
311
|
} & RecordType>>;
|
|
@@ -334,14 +334,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
334
334
|
clearable: boolean;
|
|
335
335
|
index: number;
|
|
336
336
|
}) => any>> & Partial<Record<string, (_: {
|
|
337
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "
|
|
337
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
338
338
|
readonly label: string | ComputedRef<string>;
|
|
339
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
340
|
-
readonly hasLabel: boolean |
|
|
341
|
-
readonly tooltip: string |
|
|
339
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
340
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
341
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
342
342
|
style?: CSSProperties | undefined;
|
|
343
343
|
class?: any;
|
|
344
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
344
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
345
345
|
style?: CSSProperties | undefined;
|
|
346
346
|
class?: any;
|
|
347
347
|
} & RecordType>>;
|
|
@@ -363,7 +363,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
363
363
|
};
|
|
364
364
|
rows: number;
|
|
365
365
|
autocomplete: string;
|
|
366
|
-
type: "" | "number" | "default" | "
|
|
366
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
367
367
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
368
368
|
step: string | number;
|
|
369
369
|
format: string | ProgressFn | undefined;
|
|
@@ -408,12 +408,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
408
408
|
fieldInstance?: any;
|
|
409
409
|
valueIsReady?: Ref<boolean> | undefined;
|
|
410
410
|
prop: string;
|
|
411
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
412
|
-
hasLabel: boolean |
|
|
413
|
-
tooltip: string |
|
|
411
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
412
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
413
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
414
414
|
style?: CSSProperties | undefined;
|
|
415
415
|
class?: any;
|
|
416
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
416
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
417
417
|
style?: CSSProperties | undefined;
|
|
418
418
|
class?: any;
|
|
419
419
|
} & RecordType>>;
|
|
@@ -442,14 +442,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
442
442
|
clearable: boolean;
|
|
443
443
|
index: number;
|
|
444
444
|
}) => any>> & Partial<Record<string, (_: {
|
|
445
|
-
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "
|
|
445
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
446
446
|
readonly label: string | ComputedRef<string>;
|
|
447
|
-
readonly modelValue: string | number | boolean | string[] | [string, string] |
|
|
448
|
-
readonly hasLabel: boolean |
|
|
449
|
-
readonly tooltip: string |
|
|
447
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
448
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
449
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
450
450
|
style?: CSSProperties | undefined;
|
|
451
451
|
class?: any;
|
|
452
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
452
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
453
453
|
style?: CSSProperties | undefined;
|
|
454
454
|
class?: any;
|
|
455
455
|
} & RecordType>>;
|
|
@@ -471,7 +471,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
471
471
|
};
|
|
472
472
|
rows: number;
|
|
473
473
|
autocomplete: string;
|
|
474
|
-
type: "" | "number" | "default" | "
|
|
474
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
|
|
475
475
|
loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
476
476
|
step: string | number;
|
|
477
477
|
format: string | ProgressFn | undefined;
|
|
@@ -516,12 +516,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
516
516
|
fieldInstance?: any;
|
|
517
517
|
valueIsReady?: Ref<boolean> | undefined;
|
|
518
518
|
prop: string;
|
|
519
|
-
modelValue: string | number | boolean | string[] | [string, string] |
|
|
520
|
-
hasLabel: boolean |
|
|
521
|
-
tooltip: string |
|
|
519
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
520
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
521
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
522
522
|
style?: CSSProperties | undefined;
|
|
523
523
|
class?: any;
|
|
524
|
-
} & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
524
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
525
525
|
style?: CSSProperties | undefined;
|
|
526
526
|
class?: any;
|
|
527
527
|
} & RecordType>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ComponentSize } from 'element-plus/es/constants';
|
|
3
|
+
|
|
4
|
+
/** 跨页面共享的表格密度,与列设置缓存一样写入 localStorage */
|
|
5
|
+
export declare const TABLE_DENSITY_STORAGE_KEY = "yc-table-density";
|
|
6
|
+
/** 模块级共享,已挂载的 PlusTable(含 keep-alive)会同步更新 */
|
|
7
|
+
export declare const sharedTableDensity: Ref<"" | "default" | "small" | "large" | null>;
|
|
8
|
+
export declare const applyTableDensity: (nextSize: ComponentSize) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
const TABLE_DENSITY_STORAGE_KEY = "yc-table-density";
|
|
4
|
+
const VALID_TABLE_DENSITY = ["default", "large", "small"];
|
|
5
|
+
const readStoredTableDensity = () => {
|
|
6
|
+
try {
|
|
7
|
+
const value = localStorage.getItem(TABLE_DENSITY_STORAGE_KEY);
|
|
8
|
+
if (value && VALID_TABLE_DENSITY.includes(value)) {
|
|
9
|
+
return value;
|
|
10
|
+
}
|
|
11
|
+
} catch (e) {
|
|
12
|
+
}
|
|
13
|
+
return null;
|
|
14
|
+
};
|
|
15
|
+
const sharedTableDensity = ref(readStoredTableDensity());
|
|
16
|
+
const applyTableDensity = (nextSize) => {
|
|
17
|
+
sharedTableDensity.value = nextSize;
|
|
18
|
+
try {
|
|
19
|
+
localStorage.setItem(TABLE_DENSITY_STORAGE_KEY, nextSize);
|
|
20
|
+
} catch (e) {
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { TABLE_DENSITY_STORAGE_KEY, applyTableDensity, sharedTableDensity };
|
|
@@ -8,10 +8,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
8
8
|
width: {
|
|
9
9
|
type: PropType<string | number>;
|
|
10
10
|
};
|
|
11
|
-
bodyClass: {
|
|
12
|
-
type: PropType<string>;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
11
|
background: {
|
|
16
12
|
type: PropType<string>;
|
|
17
13
|
default: string;
|
|
@@ -22,6 +18,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
22
18
|
padding: {
|
|
23
19
|
type: PropType<string | number>;
|
|
24
20
|
};
|
|
21
|
+
bodyClass: {
|
|
22
|
+
type: PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
25
|
shadow: {
|
|
26
26
|
type: PropType<"hover" | "always" | "never">;
|
|
27
27
|
default: string;
|
|
@@ -34,10 +34,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
34
34
|
width: {
|
|
35
35
|
type: PropType<string | number>;
|
|
36
36
|
};
|
|
37
|
-
bodyClass: {
|
|
38
|
-
type: PropType<string>;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
37
|
background: {
|
|
42
38
|
type: PropType<string>;
|
|
43
39
|
default: string;
|
|
@@ -48,6 +44,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
48
44
|
padding: {
|
|
49
45
|
type: PropType<string | number>;
|
|
50
46
|
};
|
|
47
|
+
bodyClass: {
|
|
48
|
+
type: PropType<string>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
51
|
shadow: {
|
|
52
52
|
type: PropType<"hover" | "always" | "never">;
|
|
53
53
|
default: string;
|
|
@@ -57,8 +57,8 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
57
57
|
default: number;
|
|
58
58
|
};
|
|
59
59
|
}>>, {
|
|
60
|
-
bodyClass: string;
|
|
61
60
|
background: string;
|
|
61
|
+
bodyClass: string;
|
|
62
62
|
shadow: "hover" | "always" | "never";
|
|
63
63
|
radius: string | number;
|
|
64
64
|
}, true, {}, {}, {
|
|
@@ -72,10 +72,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
72
72
|
width: {
|
|
73
73
|
type: PropType<string | number>;
|
|
74
74
|
};
|
|
75
|
-
bodyClass: {
|
|
76
|
-
type: PropType<string>;
|
|
77
|
-
default: string;
|
|
78
|
-
};
|
|
79
75
|
background: {
|
|
80
76
|
type: PropType<string>;
|
|
81
77
|
default: string;
|
|
@@ -86,6 +82,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
86
82
|
padding: {
|
|
87
83
|
type: PropType<string | number>;
|
|
88
84
|
};
|
|
85
|
+
bodyClass: {
|
|
86
|
+
type: PropType<string>;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
89
|
shadow: {
|
|
90
90
|
type: PropType<"hover" | "always" | "never">;
|
|
91
91
|
default: string;
|
|
@@ -95,8 +95,8 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
95
95
|
default: number;
|
|
96
96
|
};
|
|
97
97
|
}>>, {}, {}, {}, {}, {
|
|
98
|
-
bodyClass: string;
|
|
99
98
|
background: string;
|
|
99
|
+
bodyClass: string;
|
|
100
100
|
shadow: "hover" | "always" | "never";
|
|
101
101
|
radius: string | number;
|
|
102
102
|
}>;
|
|
@@ -107,10 +107,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
107
107
|
width: {
|
|
108
108
|
type: PropType<string | number>;
|
|
109
109
|
};
|
|
110
|
-
bodyClass: {
|
|
111
|
-
type: PropType<string>;
|
|
112
|
-
default: string;
|
|
113
|
-
};
|
|
114
110
|
background: {
|
|
115
111
|
type: PropType<string>;
|
|
116
112
|
default: string;
|
|
@@ -121,6 +117,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
121
117
|
padding: {
|
|
122
118
|
type: PropType<string | number>;
|
|
123
119
|
};
|
|
120
|
+
bodyClass: {
|
|
121
|
+
type: PropType<string>;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
124
|
shadow: {
|
|
125
125
|
type: PropType<"hover" | "always" | "never">;
|
|
126
126
|
default: string;
|
|
@@ -130,8 +130,8 @@ export declare const YcCardWithInstall: SFCWithInstall<{
|
|
|
130
130
|
default: number;
|
|
131
131
|
};
|
|
132
132
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
133
|
-
bodyClass: string;
|
|
134
133
|
background: string;
|
|
134
|
+
bodyClass: string;
|
|
135
135
|
shadow: "hover" | "always" | "never";
|
|
136
136
|
radius: string | number;
|
|
137
137
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
@@ -12,8 +12,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
12
12
|
shadow: string;
|
|
13
13
|
bodyClass: string;
|
|
14
14
|
}>>>, {
|
|
15
|
-
bodyClass: string;
|
|
16
15
|
background: string;
|
|
16
|
+
bodyClass: string;
|
|
17
17
|
shadow: "hover" | "always" | "never";
|
|
18
18
|
radius: string | number;
|
|
19
19
|
}, {}>, {
|
|
@@ -126,8 +126,8 @@ declare const YcCountTo: SFCWithInstall<DefineComponent<{
|
|
|
126
126
|
onMounted?: ((...args: any[]) => any) | undefined;
|
|
127
127
|
onCallback?: ((...args: any[]) => any) | undefined;
|
|
128
128
|
}, {
|
|
129
|
-
color: string;
|
|
130
129
|
duration: number;
|
|
130
|
+
color: string;
|
|
131
131
|
prefix: string;
|
|
132
132
|
fontSize: string;
|
|
133
133
|
separator: string;
|
|
@@ -119,8 +119,8 @@ declare const _default: DefineComponent<{
|
|
|
119
119
|
onMounted?: ((...args: any[]) => any) | undefined;
|
|
120
120
|
onCallback?: ((...args: any[]) => any) | undefined;
|
|
121
121
|
}, {
|
|
122
|
-
color: string;
|
|
123
122
|
duration: number;
|
|
123
|
+
color: string;
|
|
124
124
|
prefix: string;
|
|
125
125
|
fontSize: string;
|
|
126
126
|
separator: string;
|
|
@@ -6,12 +6,12 @@ export * from './src/type';
|
|
|
6
6
|
export type YcDialogInstance = InstanceType<typeof YcDialogComponent>;
|
|
7
7
|
export declare const YcDialog: {
|
|
8
8
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
9
|
-
size: {
|
|
10
|
-
type: PropType<DialogSize>;
|
|
11
|
-
};
|
|
12
9
|
width: {
|
|
13
10
|
type: PropType<string | number>;
|
|
14
11
|
};
|
|
12
|
+
size: {
|
|
13
|
+
type: PropType<DialogSize>;
|
|
14
|
+
};
|
|
15
15
|
maxHeight: {
|
|
16
16
|
type: PropType<string | number | false>;
|
|
17
17
|
default: string;
|
|
@@ -21,12 +21,12 @@ export declare const YcDialog: {
|
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
24
|
-
size: {
|
|
25
|
-
type: PropType<DialogSize>;
|
|
26
|
-
};
|
|
27
24
|
width: {
|
|
28
25
|
type: PropType<string | number>;
|
|
29
26
|
};
|
|
27
|
+
size: {
|
|
28
|
+
type: PropType<DialogSize>;
|
|
29
|
+
};
|
|
30
30
|
maxHeight: {
|
|
31
31
|
type: PropType<string | number | false>;
|
|
32
32
|
default: string;
|
|
@@ -46,12 +46,12 @@ export declare const YcDialog: {
|
|
|
46
46
|
M: {};
|
|
47
47
|
Defaults: {};
|
|
48
48
|
}, Readonly< ExtractPropTypes<{
|
|
49
|
-
size: {
|
|
50
|
-
type: PropType<DialogSize>;
|
|
51
|
-
};
|
|
52
49
|
width: {
|
|
53
50
|
type: PropType<string | number>;
|
|
54
51
|
};
|
|
52
|
+
size: {
|
|
53
|
+
type: PropType<DialogSize>;
|
|
54
|
+
};
|
|
55
55
|
maxHeight: {
|
|
56
56
|
type: PropType<string | number | false>;
|
|
57
57
|
default: string;
|
|
@@ -68,12 +68,12 @@ export declare const YcDialog: {
|
|
|
68
68
|
__isTeleport?: undefined;
|
|
69
69
|
__isSuspense?: undefined;
|
|
70
70
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
71
|
-
size: {
|
|
72
|
-
type: PropType<DialogSize>;
|
|
73
|
-
};
|
|
74
71
|
width: {
|
|
75
72
|
type: PropType<string | number>;
|
|
76
73
|
};
|
|
74
|
+
size: {
|
|
75
|
+
type: PropType<DialogSize>;
|
|
76
|
+
};
|
|
77
77
|
maxHeight: {
|
|
78
78
|
type: PropType<string | number | false>;
|
|
79
79
|
default: string;
|
|
@@ -94,12 +94,12 @@ export declare const YcDialog: {
|
|
|
94
94
|
});
|
|
95
95
|
export declare const ReDialog: {
|
|
96
96
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
97
|
-
size: {
|
|
98
|
-
type: PropType<DialogSize>;
|
|
99
|
-
};
|
|
100
97
|
width: {
|
|
101
98
|
type: PropType<string | number>;
|
|
102
99
|
};
|
|
100
|
+
size: {
|
|
101
|
+
type: PropType<DialogSize>;
|
|
102
|
+
};
|
|
103
103
|
maxHeight: {
|
|
104
104
|
type: PropType<string | number | false>;
|
|
105
105
|
default: string;
|
|
@@ -109,12 +109,12 @@ export declare const ReDialog: {
|
|
|
109
109
|
default: boolean;
|
|
110
110
|
};
|
|
111
111
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
112
|
-
size: {
|
|
113
|
-
type: PropType<DialogSize>;
|
|
114
|
-
};
|
|
115
112
|
width: {
|
|
116
113
|
type: PropType<string | number>;
|
|
117
114
|
};
|
|
115
|
+
size: {
|
|
116
|
+
type: PropType<DialogSize>;
|
|
117
|
+
};
|
|
118
118
|
maxHeight: {
|
|
119
119
|
type: PropType<string | number | false>;
|
|
120
120
|
default: string;
|
|
@@ -134,12 +134,12 @@ export declare const ReDialog: {
|
|
|
134
134
|
M: {};
|
|
135
135
|
Defaults: {};
|
|
136
136
|
}, Readonly< ExtractPropTypes<{
|
|
137
|
-
size: {
|
|
138
|
-
type: PropType<DialogSize>;
|
|
139
|
-
};
|
|
140
137
|
width: {
|
|
141
138
|
type: PropType<string | number>;
|
|
142
139
|
};
|
|
140
|
+
size: {
|
|
141
|
+
type: PropType<DialogSize>;
|
|
142
|
+
};
|
|
143
143
|
maxHeight: {
|
|
144
144
|
type: PropType<string | number | false>;
|
|
145
145
|
default: string;
|
|
@@ -156,12 +156,12 @@ export declare const ReDialog: {
|
|
|
156
156
|
__isTeleport?: undefined;
|
|
157
157
|
__isSuspense?: undefined;
|
|
158
158
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
159
|
-
size: {
|
|
160
|
-
type: PropType<DialogSize>;
|
|
161
|
-
};
|
|
162
159
|
width: {
|
|
163
160
|
type: PropType<string | number>;
|
|
164
161
|
};
|
|
162
|
+
size: {
|
|
163
|
+
type: PropType<DialogSize>;
|
|
164
|
+
};
|
|
165
165
|
maxHeight: {
|
|
166
166
|
type: PropType<string | number | false>;
|
|
167
167
|
default: string;
|
|
@@ -12,8 +12,8 @@ export declare const drawerStore: Ref<{
|
|
|
12
12
|
title?: string | undefined;
|
|
13
13
|
confirmButtonText?: string | undefined;
|
|
14
14
|
cancelButtonText?: string | undefined;
|
|
15
|
-
confirmButtonType?: ("text" | "
|
|
16
|
-
cancelButtonType?: ("text" | "
|
|
15
|
+
confirmButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
|
|
16
|
+
cancelButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
|
|
17
17
|
icon?: string | FunctionalComponent<any, {}, any, {}> | {
|
|
18
18
|
new (...args: any[]): any;
|
|
19
19
|
__isFragment?: undefined;
|
|
@@ -166,7 +166,7 @@ export declare const drawerStore: Ref<{
|
|
|
166
166
|
footerButtons?: {
|
|
167
167
|
label: string;
|
|
168
168
|
size?: "default" | "small" | "large" | undefined;
|
|
169
|
-
type?: "
|
|
169
|
+
type?: "primary" | "success" | "warning" | "info" | "danger" | undefined;
|
|
170
170
|
plain?: boolean | undefined;
|
|
171
171
|
text?: boolean | undefined;
|
|
172
172
|
bg?: boolean | undefined;
|
|
@@ -177,8 +177,8 @@ export declare const drawerStore: Ref<{
|
|
|
177
177
|
title?: string | undefined;
|
|
178
178
|
confirmButtonText?: string | undefined;
|
|
179
179
|
cancelButtonText?: string | undefined;
|
|
180
|
-
confirmButtonType?: ("text" | "
|
|
181
|
-
cancelButtonType?: ("text" | "
|
|
180
|
+
confirmButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
|
|
181
|
+
cancelButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
|
|
182
182
|
icon?: string | FunctionalComponent<any, {}, any, {}> | {
|
|
183
183
|
new (...args: any[]): any;
|
|
184
184
|
__isFragment?: undefined;
|