@dfsj/components 3.1.3 → 3.2.1
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/CHANGELOG.md +24 -4
- package/dist/components/Boards/src/Boards.vue2.js +9 -6
- package/dist/components/DatePicker/src/composables/use-range-picker.d.ts +1 -1
- package/dist/components/DatePicker/src/index.d.ts +10 -3
- package/dist/components/Descriptions/index.d.ts +3 -0
- package/dist/components/Descriptions/src/Descriptions.vue.d.ts +97 -0
- package/dist/components/Descriptions/src/Descriptions.vue.js +5 -0
- package/dist/components/Descriptions/src/Descriptions.vue2.js +151 -0
- package/dist/components/Descriptions/src/types/index.d.ts +17 -0
- package/dist/components/Form/src/Form.vue.d.ts +5 -15
- package/dist/components/Form/src/Form.vue2.js +16 -17
- package/dist/components/Modal/src/hooks/useTimeout.js +1 -1
- package/dist/components/Modal/src/utils/index.js +1 -1
- package/dist/components/NodeAxis/src/AbstractNodeProvider.js +1 -2
- package/dist/components/NodeAxis/src/CanvasNodeRender.js +7 -9
- package/dist/components/NodeAxis/src/NodeModel.js +1 -2
- package/dist/components/NodeAxis/src/NodeRender.js +1 -2
- package/dist/components/NodeAxis/src/NullLayerProvider.js +4 -5
- package/dist/components/NodeAxis/src/NullProvider.js +4 -5
- package/dist/components/NodeAxis/src/TimerNodePlayer.js +1 -2
- package/dist/components/Stateful/src/State.js +18 -21
- package/dist/components/Stateful/src/Stateful.vue.d.ts +9 -31
- package/dist/components/Stateful/src/props.d.ts +4 -14
- package/dist/components/Table/src/Table.vue.d.ts +1 -1
- package/dist/components/Table/src/Table.vue2.js +6 -4
- package/dist/components/UnifyChart/index.d.ts +3 -1
- package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +7 -25
- package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +37 -127
- package/dist/components/UnifyChart/src/UnifyChart.vue2.js +5 -1
- package/dist/components/UnifyChart/src/hooks/useLoader.js +93 -0
- package/dist/components/UnifyChart/src/hooks/useRender.js +2 -1
- package/dist/components/UnifyChart/src/props.d.ts +21 -77
- package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +1 -1
- package/dist/components/Video/src/abstract/VideoControl.js +16 -18
- package/dist/components/Video/src/control/DaHua.js +4 -6
- package/dist/components/Video/src/control/Hikvision.js +7 -9
- package/dist/components/Video/src/control/VideoFactory.js +1 -2
- package/dist/components/Visual/src/BufferLayerPlayer.js +1 -2
- package/dist/components/Visual/src/ResolvableLayerProvider.js +14 -16
- package/dist/components/Visual/src/resolvers/IntervalResolver.js +1 -2
- package/dist/components/Visual/src/utils/NodeMath.js +1 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/index.min.css +3 -3
- package/dist/node_modules/.pnpm/{@vueuse_core@10.7.2_vue@3.4.21 → @vueuse_core@10.11.0_vue@3.4.31_typescript@5.2.2_}/node_modules/@vueuse/core/index.js +25 -17
- package/dist/node_modules/.pnpm/{@vueuse_shared@10.7.2_vue@3.4.21 → @vueuse_shared@10.11.0_vue@3.4.31_typescript@5.2.2_}/node_modules/@vueuse/shared/index.js +7 -3
- package/dist/utils/propTypes.js +2 -3
- package/package.json +69 -67
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [3.2.0](http://10.10.12.18/dfsj/dfsj/compare/@dfsj/components@3.1.3...@dfsj/components@3.2.0) (2024-07-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* (components) UnifyChart.vue ([9a5d4db](http://10.10.12.18/dfsj/dfsj/commits/9a5d4dbe80b10bf9de80718e0b6e18c22cbd0205))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* (components) BasicModal支持vh、vw、px、rem ([866c6d2](http://10.10.12.18/dfsj/dfsj/commits/866c6d2447a203329ba3783f6a3edababf91a50c))
|
|
17
|
+
* (components) Descriptions ([5873c14](http://10.10.12.18/dfsj/dfsj/commits/5873c14bc746596c536b203551147de8d2c097c0))
|
|
18
|
+
* (components) UnifyChart.vue 导出方法 ([d4065b9](http://10.10.12.18/dfsj/dfsj/commits/d4065b984d4f97dad21bb55474bb616f2149a16e))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
4
24
|
|
|
5
25
|
## 3.1.3 (2024-07-01)
|
|
6
26
|
|
|
@@ -278,4 +298,4 @@ All notable changes to this project will be documented in this file. See [Conven
|
|
|
278
298
|
|
|
279
299
|
## [1.1.3](https://gitee.com/verdaccio/ec/compare/@dfsj/components@1.1.2...@dfsj/components@1.1.3) (2023-06-11)
|
|
280
300
|
|
|
281
|
-
**Note:** Version bump only for package @dfsj/components
|
|
301
|
+
**Note:** Version bump only for package @dfsj/components
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
|
-
import { defineComponent, toRefs, ref, computed, unref, onMounted, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, withModifiers, createVNode, Fragment, withCtx, renderList, createBlock, toDisplayString, withDirectives, resolveDynamicComponent, markRaw,
|
|
4
|
+
import { defineComponent, toRefs, ref, computed, unref, onMounted, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, withModifiers, createVNode, Fragment, withCtx, renderList, createBlock, toDisplayString, withDirectives, resolveDynamicComponent, markRaw, mergeProps, vShow, defineAsyncComponent } from 'vue';
|
|
5
5
|
import { BoardProps, BoardPosition } from './props.js';
|
|
6
6
|
import '../../Icon/src/Icon.vue.js';
|
|
7
7
|
import '../../Icon/src/SvgIcon.vue.js';
|
|
8
|
-
import { useElementBounding } from '../../../node_modules/.pnpm/@vueuse_core@10.
|
|
8
|
+
import { useElementBounding } from '../../../node_modules/.pnpm/@vueuse_core@10.11.0_vue@3.4.31_typescript@5.2.2_/node_modules/@vueuse/core/index.js';
|
|
9
9
|
import { isString } from '../../../utils/is.js';
|
|
10
10
|
import script$1 from '../../Icon/src/Icon.vue2.js';
|
|
11
11
|
|
|
@@ -201,11 +201,14 @@ var script = defineComponent({
|
|
|
201
201
|
"class": normalizeClass(["board--panel-container", {
|
|
202
202
|
active: unref(board).value === item.id
|
|
203
203
|
}])
|
|
204
|
-
}, [withDirectives((openBlock(), createBlock(resolveDynamicComponent(markRaw(resolve(item.content))),
|
|
204
|
+
}, [withDirectives((openBlock(), createBlock(resolveDynamicComponent(markRaw(resolve(item.content))), mergeProps({
|
|
205
|
+
ref_for: true
|
|
206
|
+
}, item.props), null, 16)), [[vShow, unref(board).value === item.id]])], 2);
|
|
205
207
|
}), 128))])], 64)) : (openBlock(), createElementBlock("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(board).items, function (item) {
|
|
206
|
-
return withDirectives((openBlock(), createBlock(resolveDynamicComponent(markRaw(resolve(item.content))),
|
|
207
|
-
key: item.id
|
|
208
|
-
|
|
208
|
+
return withDirectives((openBlock(), createBlock(resolveDynamicComponent(markRaw(resolve(item.content))), mergeProps({
|
|
209
|
+
key: item.id,
|
|
210
|
+
ref_for: true
|
|
211
|
+
}, item.props), null, 16)), [[vShow, unref(board).value === item.id]]);
|
|
209
212
|
}), 128))]))], 2)], 6);
|
|
210
213
|
};
|
|
211
214
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
readonly type: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType) | ((new (...args: any[]) => "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType))[], unknown, unknown, "date", boolean>;
|
|
3
|
+
readonly ariaLabel: StringConstructor;
|
|
4
|
+
readonly emptyValues: ArrayConstructor;
|
|
5
|
+
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
3
6
|
readonly disabledDate: {
|
|
4
7
|
readonly type: import("vue").PropType<Function>;
|
|
5
8
|
readonly required: false;
|
|
@@ -67,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
70
|
readonly disabled: BooleanConstructor;
|
|
68
71
|
readonly placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
69
72
|
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
70
|
-
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
73
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
71
74
|
readonly rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
72
75
|
readonly startPlaceholder: StringConstructor;
|
|
73
76
|
readonly endPlaceholder: StringConstructor;
|
|
@@ -86,6 +89,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
89
|
readonly isRange: BooleanConstructor;
|
|
87
90
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
91
|
readonly type: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType) | ((new (...args: any[]) => "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType))[], unknown, unknown, "date", boolean>;
|
|
92
|
+
readonly ariaLabel: StringConstructor;
|
|
93
|
+
readonly emptyValues: ArrayConstructor;
|
|
94
|
+
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
89
95
|
readonly disabledDate: {
|
|
90
96
|
readonly type: import("vue").PropType<Function>;
|
|
91
97
|
readonly required: false;
|
|
@@ -153,7 +159,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
159
|
readonly disabled: BooleanConstructor;
|
|
154
160
|
readonly placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
155
161
|
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
156
|
-
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
162
|
+
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
157
163
|
readonly rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
158
164
|
readonly startPlaceholder: StringConstructor;
|
|
159
165
|
readonly endPlaceholder: StringConstructor;
|
|
@@ -175,6 +181,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
175
181
|
}, {
|
|
176
182
|
readonly name: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>;
|
|
177
183
|
readonly type: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType) | ((new (...args: any[]) => "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType))[], unknown, unknown>;
|
|
184
|
+
readonly valueOnClear: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown>;
|
|
178
185
|
readonly shortcuts: unknown[];
|
|
179
186
|
readonly arrowControl: boolean;
|
|
180
187
|
readonly label: string;
|
|
@@ -189,7 +196,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
196
|
readonly disabled: boolean;
|
|
190
197
|
readonly placeholder: string;
|
|
191
198
|
readonly popperOptions: {};
|
|
192
|
-
readonly modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
199
|
+
readonly modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown>;
|
|
193
200
|
readonly rangeSeparator: string;
|
|
194
201
|
readonly isRange: boolean;
|
|
195
202
|
}, {}>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { DescriptionsSchema } from './types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
title: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
|
|
5
|
+
default: string;
|
|
6
|
+
} & {
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
message: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
|
|
10
|
+
default: string;
|
|
11
|
+
} & {
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
collapse: import("vue-types").VueTypeValidableDef<boolean, import("vue-types/dist/types").ValidatorFunction<boolean>> & {
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
border: import("vue-types").VueTypeValidableDef<boolean, import("vue-types/dist/types").ValidatorFunction<boolean>> & {
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
column: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/types").ValidatorFunction<number>> & {
|
|
21
|
+
default: number;
|
|
22
|
+
} & {
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
extra: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
|
|
32
|
+
default: string;
|
|
33
|
+
} & {
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
schema: {
|
|
37
|
+
type: PropType<DescriptionsSchema[]>;
|
|
38
|
+
default: () => any[];
|
|
39
|
+
};
|
|
40
|
+
data: {
|
|
41
|
+
type: PropType<any>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
title: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
|
|
46
|
+
default: string;
|
|
47
|
+
} & {
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
message: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
|
|
51
|
+
default: string;
|
|
52
|
+
} & {
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
collapse: import("vue-types").VueTypeValidableDef<boolean, import("vue-types/dist/types").ValidatorFunction<boolean>> & {
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
border: import("vue-types").VueTypeValidableDef<boolean, import("vue-types/dist/types").ValidatorFunction<boolean>> & {
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
column: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/types").ValidatorFunction<number>> & {
|
|
62
|
+
default: number;
|
|
63
|
+
} & {
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
extra: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
|
|
73
|
+
default: string;
|
|
74
|
+
} & {
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
schema: {
|
|
78
|
+
type: PropType<DescriptionsSchema[]>;
|
|
79
|
+
default: () => any[];
|
|
80
|
+
};
|
|
81
|
+
data: {
|
|
82
|
+
type: PropType<any>;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
}>>, {
|
|
86
|
+
title: string;
|
|
87
|
+
message: string;
|
|
88
|
+
collapse: boolean;
|
|
89
|
+
border: boolean;
|
|
90
|
+
column: number;
|
|
91
|
+
size: string;
|
|
92
|
+
direction: string;
|
|
93
|
+
extra: string;
|
|
94
|
+
schema: DescriptionsSchema[];
|
|
95
|
+
data: any;
|
|
96
|
+
}, {}>;
|
|
97
|
+
export default _default;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import { ref, defineComponent, computed, unref, createVNode, withDirectives, mergeProps, vShow, isVNode } from 'vue';
|
|
3
|
+
import { ElTooltip, ElIcon, ElCollapseTransition, ElRow, ElCol } from 'element-plus';
|
|
4
|
+
import { QuestionFilled, ArrowDown, ArrowUp } from '@element-plus/icons-vue';
|
|
5
|
+
import { propTypes } from '@dfsj/utils';
|
|
6
|
+
import { get } from 'lodash-es';
|
|
7
|
+
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
12
|
+
}
|
|
13
|
+
var mobile = ref(false);
|
|
14
|
+
var prefixCls = "ec-descriptions-component";
|
|
15
|
+
var defaultData = '--';
|
|
16
|
+
var script = defineComponent({
|
|
17
|
+
name: 'Descriptions',
|
|
18
|
+
props: {
|
|
19
|
+
title: propTypes.string.def(''),
|
|
20
|
+
message: propTypes.string.def(''),
|
|
21
|
+
collapse: propTypes.bool.def(true),
|
|
22
|
+
border: propTypes.bool.def(true),
|
|
23
|
+
column: propTypes.number.def(2),
|
|
24
|
+
size: propTypes.oneOf(['large', 'default', 'small']).def('default'),
|
|
25
|
+
direction: propTypes.oneOf(['horizontal', 'vertical']).def('horizontal'),
|
|
26
|
+
extra: propTypes.string.def(''),
|
|
27
|
+
schema: {
|
|
28
|
+
type: Array,
|
|
29
|
+
"default": function _default() {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
data: {
|
|
34
|
+
type: Object,
|
|
35
|
+
"default": function _default() {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup: function setup(props, _ref) {
|
|
41
|
+
var attrs = _ref.attrs;
|
|
42
|
+
var getBindValue = computed(function () {
|
|
43
|
+
var delArr = ['title', 'message', 'collapse', 'schema', 'data', 'class'];
|
|
44
|
+
var obj = _objectSpread(_objectSpread({}, attrs), props);
|
|
45
|
+
for (var key in obj) {
|
|
46
|
+
if (delArr.indexOf(key) !== -1) {
|
|
47
|
+
delete obj[key];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (unref(mobile)) {
|
|
51
|
+
obj.direction = 'vertical';
|
|
52
|
+
}
|
|
53
|
+
return obj;
|
|
54
|
+
});
|
|
55
|
+
var getBindItemValue = function getBindItemValue(item) {
|
|
56
|
+
var delArr = ['field'];
|
|
57
|
+
var obj = _objectSpread({}, item);
|
|
58
|
+
for (var key in obj) {
|
|
59
|
+
if (delArr.indexOf(key) !== -1) {
|
|
60
|
+
delete obj[key];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return _objectSpread({
|
|
64
|
+
labelClassName: "".concat(prefixCls, "-label")
|
|
65
|
+
}, obj);
|
|
66
|
+
};
|
|
67
|
+
var show = ref(true);
|
|
68
|
+
var toggleClick = function toggleClick() {
|
|
69
|
+
if (props.collapse) {
|
|
70
|
+
show.value = !unref(show);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return function () {
|
|
74
|
+
var _slot;
|
|
75
|
+
return createVNode("div", {
|
|
76
|
+
"class": [prefixCls, "".concat(prefixCls, "__").concat(props.size), 'bg-[var(--el-color-white)] dark:bg-[var(--el-bg-color)] dark:border-[var(--el-border-color)] dark:border-1px']
|
|
77
|
+
}, [props.title ? createVNode("div", {
|
|
78
|
+
"class": ["".concat(prefixCls, "-header"), "".concat(prefixCls, "-header__").concat(props.size), 'relative flex justify-between items-center layout-border__bottom px-10px cursor-pointer'],
|
|
79
|
+
"onClick": toggleClick
|
|
80
|
+
}, [createVNode("div", {
|
|
81
|
+
"class": ["".concat(prefixCls, "-header__title"), 'relative font-18px font-bold ml-10px']
|
|
82
|
+
}, [createVNode("div", {
|
|
83
|
+
"class": "flex items-center"
|
|
84
|
+
}, [props.title, props.message ? createVNode(ElTooltip, {
|
|
85
|
+
"content": props.message,
|
|
86
|
+
"placement": "right"
|
|
87
|
+
}, {
|
|
88
|
+
"default": function _default() {
|
|
89
|
+
return [createVNode(ElIcon, {
|
|
90
|
+
"size": 18
|
|
91
|
+
}, {
|
|
92
|
+
"default": function _default() {
|
|
93
|
+
return [createVNode(QuestionFilled, null, null)];
|
|
94
|
+
}
|
|
95
|
+
})];
|
|
96
|
+
}
|
|
97
|
+
}) : null])]), props.collapse ? show.value ? createVNode(ElIcon, {
|
|
98
|
+
"size": 16
|
|
99
|
+
}, {
|
|
100
|
+
"default": function _default() {
|
|
101
|
+
return [createVNode(ArrowDown, null, null)];
|
|
102
|
+
}
|
|
103
|
+
}) : createVNode(ElIcon, {
|
|
104
|
+
"size": 16
|
|
105
|
+
}, {
|
|
106
|
+
"default": function _default() {
|
|
107
|
+
return [createVNode(ArrowUp, null, null)];
|
|
108
|
+
}
|
|
109
|
+
}) : null]) : null, createVNode(ElCollapseTransition, null, {
|
|
110
|
+
"default": function _default() {
|
|
111
|
+
return [withDirectives(createVNode("div", {
|
|
112
|
+
"class": ["".concat(prefixCls, "-content")]
|
|
113
|
+
}, [createVNode(ElRow, mergeProps({
|
|
114
|
+
"gutter": 0
|
|
115
|
+
}, unref(getBindValue), {
|
|
116
|
+
"class": "outline-1px outline-[var(--el-border-color-lighter)] outline-solid"
|
|
117
|
+
}), _isSlot(_slot = props.schema.map(function (item) {
|
|
118
|
+
var _item$slots, _item$slots2, _item$slots2$prepend, _item$slots3, _item$slots4, _get, _item$slots5, _item$slots6, _item$slots6$append, _item$slots7, _item$slots8, _item$slots8$prepend, _item$slots9, _item$slots10, _get2, _item$slots11, _item$slots12, _item$slots12$append;
|
|
119
|
+
return createVNode(ElCol, {
|
|
120
|
+
"key": item.field,
|
|
121
|
+
"span": item.span || 24 / props.column,
|
|
122
|
+
"class": "flex items-stretch"
|
|
123
|
+
}, {
|
|
124
|
+
"default": function _default() {
|
|
125
|
+
return [props.direction === 'horizontal' ? createVNode("div", {
|
|
126
|
+
"class": "flex items-stretch bg-[var(--el-fill-color-light)] outline-1px outline-[var(--el-border-color-lighter)] outline-solid flex-1"
|
|
127
|
+
}, [createVNode("div", mergeProps(getBindItemValue(item), {
|
|
128
|
+
"class": "item flex items-center w-120px text-left font-700 color-[var(--el-text-color-regular)] border-r-1px border-r-[var(--el-border-color-lighter)] border-r-solid "
|
|
129
|
+
}), [item.label]), createVNode("div", {
|
|
130
|
+
"class": "item flex-1 bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px"
|
|
131
|
+
}, [((_item$slots = item.slots) === null || _item$slots === void 0 ? void 0 : _item$slots.prepend) && ((_item$slots2 = item.slots) === null || _item$slots2 === void 0 || (_item$slots2$prepend = _item$slots2.prepend) === null || _item$slots2$prepend === void 0 ? void 0 : _item$slots2$prepend.call(_item$slots2, get(props.data, item.field), props.data)), (_item$slots3 = item.slots) !== null && _item$slots3 !== void 0 && _item$slots3["default"] ? (_item$slots4 = item.slots) === null || _item$slots4 === void 0 ? void 0 : _item$slots4["default"](props.data) : (_get = get(props.data, item.field)) !== null && _get !== void 0 ? _get : defaultData, ((_item$slots5 = item.slots) === null || _item$slots5 === void 0 ? void 0 : _item$slots5.append) && ((_item$slots6 = item.slots) === null || _item$slots6 === void 0 || (_item$slots6$append = _item$slots6.append) === null || _item$slots6$append === void 0 ? void 0 : _item$slots6$append.call(_item$slots6, get(props.data, item.field), props.data))])]) : createVNode("div", {
|
|
132
|
+
"class": "bg-[var(--el-fill-color-light)] outline-1px outline-[var(--el-border-color-lighter)] outline-solid flex-1"
|
|
133
|
+
}, [createVNode("div", mergeProps(getBindItemValue(item), {
|
|
134
|
+
"class": "item text-left font-700 color-[var(--el-text-color-regular)] border-b-1px border-b-[var(--el-border-color-lighter)] border-b-solid"
|
|
135
|
+
}), [item.label]), createVNode("div", {
|
|
136
|
+
"class": "item flex-1 bg-[var(--el-bg-color)] color-[var(--el-text-color-primary)] text-size-14px"
|
|
137
|
+
}, [((_item$slots7 = item.slots) === null || _item$slots7 === void 0 ? void 0 : _item$slots7.prepend) && ((_item$slots8 = item.slots) === null || _item$slots8 === void 0 || (_item$slots8$prepend = _item$slots8.prepend) === null || _item$slots8$prepend === void 0 ? void 0 : _item$slots8$prepend.call(_item$slots8, get(props.data, item.field), props.data)), (_item$slots9 = item.slots) !== null && _item$slots9 !== void 0 && _item$slots9["default"] ? (_item$slots10 = item.slots) === null || _item$slots10 === void 0 ? void 0 : _item$slots10["default"](props.data) : (_get2 = get(props.data, item.field)) !== null && _get2 !== void 0 ? _get2 : defaultData, ((_item$slots11 = item.slots) === null || _item$slots11 === void 0 ? void 0 : _item$slots11.append) && ((_item$slots12 = item.slots) === null || _item$slots12 === void 0 || (_item$slots12$append = _item$slots12.append) === null || _item$slots12$append === void 0 ? void 0 : _item$slots12$append.call(_item$slots12, get(props.data, item.field), props.data))])])];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
})) ? _slot : {
|
|
141
|
+
"default": function _default() {
|
|
142
|
+
return [_slot];
|
|
143
|
+
}
|
|
144
|
+
})]), [[vShow, unref(show)]])];
|
|
145
|
+
}
|
|
146
|
+
})]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
export { script as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DescriptionsSchema {
|
|
2
|
+
span?: number;
|
|
3
|
+
field: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
minWidth?: string | number;
|
|
7
|
+
align?: 'left' | 'center' | 'right';
|
|
8
|
+
labelAlign?: 'left' | 'center' | 'right';
|
|
9
|
+
className?: string;
|
|
10
|
+
labelClassName?: string;
|
|
11
|
+
slots?: {
|
|
12
|
+
default?: (...args: any[]) => JSX.Element | null;
|
|
13
|
+
label?: (...args: any[]) => JSX.Element | null;
|
|
14
|
+
prepend?: (...args: any[]) => JSX.Element | null;
|
|
15
|
+
append?: (...args: any[]) => JSX.Element | null;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -61,12 +61,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
scrollToError: import("vue-types").VueTypeValidableDef<boolean, import("vue-types/dist/types").ValidatorFunction<boolean>> & {
|
|
62
62
|
default: boolean;
|
|
63
63
|
};
|
|
64
|
-
scrollToErrorOffset: import("vue-types").VueTypeDef<boolean | {
|
|
65
|
-
|
|
66
|
-
}> & {
|
|
67
|
-
default: boolean | (() => {
|
|
68
|
-
[key: string]: any;
|
|
69
|
-
});
|
|
64
|
+
scrollToErrorOffset: import("vue-types").VueTypeDef<boolean | Record<string, any>> & {
|
|
65
|
+
default: boolean | (() => Record<string, any>);
|
|
70
66
|
};
|
|
71
67
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "register"[], "register", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
68
|
schema: {
|
|
@@ -129,12 +125,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
125
|
scrollToError: import("vue-types").VueTypeValidableDef<boolean, import("vue-types/dist/types").ValidatorFunction<boolean>> & {
|
|
130
126
|
default: boolean;
|
|
131
127
|
};
|
|
132
|
-
scrollToErrorOffset: import("vue-types").VueTypeDef<boolean | {
|
|
133
|
-
|
|
134
|
-
}> & {
|
|
135
|
-
default: boolean | (() => {
|
|
136
|
-
[key: string]: any;
|
|
137
|
-
});
|
|
128
|
+
scrollToErrorOffset: import("vue-types").VueTypeDef<boolean | Record<string, any>> & {
|
|
129
|
+
default: boolean | (() => Record<string, any>);
|
|
138
130
|
};
|
|
139
131
|
}>> & {
|
|
140
132
|
onRegister?: (...args: any[]) => any;
|
|
@@ -157,8 +149,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
149
|
isCol: boolean;
|
|
158
150
|
autoSetPlaceholder: boolean;
|
|
159
151
|
isCustom: boolean;
|
|
160
|
-
scrollToErrorOffset: boolean |
|
|
161
|
-
[key: string]: any;
|
|
162
|
-
};
|
|
152
|
+
scrollToErrorOffset: boolean | Record<string, any>;
|
|
163
153
|
}, {}>;
|
|
164
154
|
export default _default;
|
|
@@ -14,9 +14,9 @@ import { findIndex } from '../../../utils/index.js';
|
|
|
14
14
|
import { set, get } from 'lodash-es';
|
|
15
15
|
import { ComponentNameEnum } from './types/index.js';
|
|
16
16
|
|
|
17
|
-
function _createForOfIteratorHelper(
|
|
18
|
-
function _unsupportedIterableToArray(
|
|
19
|
-
function _arrayLikeToArray(
|
|
17
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
19
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
22
|
function _isSlot(s) {
|
|
@@ -85,7 +85,6 @@ var script = defineComponent({
|
|
|
85
85
|
var getProps = computed(function () {
|
|
86
86
|
var propsObj = _objectSpread({}, props);
|
|
87
87
|
Object.assign(propsObj, unref(mergeProps$1));
|
|
88
|
-
console.log('propsObj', propsObj);
|
|
89
88
|
return propsObj;
|
|
90
89
|
});
|
|
91
90
|
var formComponents = ref({});
|
|
@@ -245,8 +244,8 @@ var script = defineComponent({
|
|
|
245
244
|
});
|
|
246
245
|
};
|
|
247
246
|
var renderFormItem = function renderFormItem(item) {
|
|
248
|
-
var _item$formItemProps3, _item$formItemProps5;
|
|
249
|
-
if (item.optionApi) {
|
|
247
|
+
var _item$componentProps, _item$componentProps2, _item$formItemProps3, _item$formItemProps5;
|
|
248
|
+
if (item.optionApi && (!((_item$componentProps = item.componentProps) !== null && _item$componentProps !== void 0 && _item$componentProps.options) || !((_item$componentProps2 = item.componentProps) !== null && _item$componentProps2 !== void 0 && _item$componentProps2.options.length))) {
|
|
250
249
|
getOptions(item.optionApi, item);
|
|
251
250
|
}
|
|
252
251
|
var formItemSlots = {
|
|
@@ -256,18 +255,18 @@ var script = defineComponent({
|
|
|
256
255
|
var _item$formItemProps2;
|
|
257
256
|
return item === null || item === void 0 || (_item$formItemProps2 = item.formItemProps) === null || _item$formItemProps2 === void 0 || (_item$formItemProps2 = _item$formItemProps2.slots) === null || _item$formItemProps2 === void 0 ? void 0 : _item$formItemProps2["default"](formModel.value);
|
|
258
257
|
} else {
|
|
259
|
-
var _item$
|
|
258
|
+
var _item$componentProps3;
|
|
260
259
|
var Com = componentMap[item.component];
|
|
261
260
|
var _unref7 = unref(getProps),
|
|
262
261
|
autoSetPlaceholder = _unref7.autoSetPlaceholder;
|
|
263
|
-
var componentSlots = (item === null || item === void 0 || (_item$
|
|
262
|
+
var componentSlots = (item === null || item === void 0 || (_item$componentProps3 = item.componentProps) === null || _item$componentProps3 === void 0 ? void 0 : _item$componentProps3.slots) || {};
|
|
264
263
|
var slotsMap = _objectSpread({}, setItemComponentSlots(componentSlots));
|
|
265
264
|
if (item.component === ComponentNameEnum.SELECT) {
|
|
266
265
|
slotsMap["default"] = !componentSlots["default"] ? function () {
|
|
267
266
|
return renderSelectOptions(item);
|
|
268
267
|
} : function () {
|
|
269
|
-
var _item$
|
|
270
|
-
return componentSlots["default"](unref(item === null || item === void 0 || (_item$
|
|
268
|
+
var _item$componentProps4;
|
|
269
|
+
return componentSlots["default"](unref(item === null || item === void 0 || (_item$componentProps4 = item.componentProps) === null || _item$componentProps4 === void 0 ? void 0 : _item$componentProps4.options));
|
|
271
270
|
};
|
|
272
271
|
}
|
|
273
272
|
if (item.component === ComponentNameEnum.SELECT_V2 && componentSlots["default"]) {
|
|
@@ -280,20 +279,20 @@ var script = defineComponent({
|
|
|
280
279
|
slotsMap["default"] = !componentSlots["default"] ? function () {
|
|
281
280
|
return renderRadioOptions(item);
|
|
282
281
|
} : function () {
|
|
283
|
-
var _item$
|
|
284
|
-
return componentSlots["default"](unref(item === null || item === void 0 || (_item$
|
|
282
|
+
var _item$componentProps5;
|
|
283
|
+
return componentSlots["default"](unref(item === null || item === void 0 || (_item$componentProps5 = item.componentProps) === null || _item$componentProps5 === void 0 ? void 0 : _item$componentProps5.options));
|
|
285
284
|
};
|
|
286
285
|
}
|
|
287
286
|
if (item.component === ComponentNameEnum.CHECKBOX_GROUP || item.component === ComponentNameEnum.CHECKBOX_BUTTON) {
|
|
288
287
|
slotsMap["default"] = !componentSlots["default"] ? function () {
|
|
289
288
|
return renderCheckboxOptions(item);
|
|
290
289
|
} : function () {
|
|
291
|
-
var _item$
|
|
292
|
-
return componentSlots["default"](unref(item === null || item === void 0 || (_item$
|
|
290
|
+
var _item$componentProps6;
|
|
291
|
+
return componentSlots["default"](unref(item === null || item === void 0 || (_item$componentProps6 = item.componentProps) === null || _item$componentProps6 === void 0 ? void 0 : _item$componentProps6.options));
|
|
293
292
|
};
|
|
294
293
|
}
|
|
295
294
|
var Comp = function Comp() {
|
|
296
|
-
var _item$
|
|
295
|
+
var _item$componentProps7, _item$componentProps8;
|
|
297
296
|
var itemVal = computed({
|
|
298
297
|
get: function get$1() {
|
|
299
298
|
return get(formModel.value, item.field);
|
|
@@ -311,7 +310,7 @@ var script = defineComponent({
|
|
|
311
310
|
return setComponentRefMap(el, item.field);
|
|
312
311
|
}
|
|
313
312
|
}, autoSetPlaceholder && setTextPlaceholder(item), setComponentProps(item), {
|
|
314
|
-
"style": ((_item$
|
|
313
|
+
"style": ((_item$componentProps7 = item.componentProps) === null || _item$componentProps7 === void 0 ? void 0 : _item$componentProps7.style) || {
|
|
315
314
|
width: '100%'
|
|
316
315
|
}
|
|
317
316
|
}), slotsMap) : createVNode(Com, mergeProps({
|
|
@@ -323,7 +322,7 @@ var script = defineComponent({
|
|
|
323
322
|
return setComponentRefMap(el, item.field);
|
|
324
323
|
}
|
|
325
324
|
}, autoSetPlaceholder && setTextPlaceholder(item), setComponentProps(item), {
|
|
326
|
-
"style": ((_item$
|
|
325
|
+
"style": ((_item$componentProps8 = item.componentProps) === null || _item$componentProps8 === void 0 ? void 0 : _item$componentProps8.style) || {}
|
|
327
326
|
}), slotsMap);
|
|
328
327
|
};
|
|
329
328
|
return createVNode(Fragment, null, [Comp()]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watch, ref } from 'vue';
|
|
2
|
-
import { tryOnUnmounted } from '../../../../node_modules/.pnpm/@vueuse_shared@10.
|
|
2
|
+
import { tryOnUnmounted } from '../../../../node_modules/.pnpm/@vueuse_shared@10.11.0_vue@3.4.31_typescript@5.2.2_/node_modules/@vueuse/shared/index.js';
|
|
3
3
|
|
|
4
4
|
function isFunction(val) {
|
|
5
5
|
return typeof val === 'function';
|
|
@@ -7,7 +7,7 @@ function ensure(value) {
|
|
|
7
7
|
return value == null ? null : isNaN(value) ? value : "".concat(value, "px");
|
|
8
8
|
}
|
|
9
9
|
function isp(value) {
|
|
10
|
-
return typeof value === 'string' && !!value.match(/^.+(%|vh|vw)$/);
|
|
10
|
+
return typeof value === 'string' && !!value.match(/^.+(%|vh|vw|px|rem)$/);
|
|
11
11
|
}
|
|
12
12
|
function doLocator(offset, sizes, locator, offsetable, sizeable) {
|
|
13
13
|
var siz = sizes && sizes.map(function (v) {
|
|
@@ -6,7 +6,7 @@ var AbstractNodeProvider = /*#__PURE__*/function () {
|
|
|
6
6
|
function AbstractNodeProvider() {
|
|
7
7
|
_classCallCheck(this, AbstractNodeProvider);
|
|
8
8
|
}
|
|
9
|
-
_createClass(AbstractNodeProvider, [{
|
|
9
|
+
return _createClass(AbstractNodeProvider, [{
|
|
10
10
|
key: "extract",
|
|
11
11
|
value: function extract(range, count, nodes) {
|
|
12
12
|
return NodeMath.extract(range, count, nodes);
|
|
@@ -17,7 +17,6 @@ var AbstractNodeProvider = /*#__PURE__*/function () {
|
|
|
17
17
|
return NodeMath.scale(offset, range, length, direction);
|
|
18
18
|
}
|
|
19
19
|
}]);
|
|
20
|
-
return AbstractNodeProvider;
|
|
21
20
|
}();
|
|
22
21
|
|
|
23
22
|
export { AbstractNodeProvider as default };
|