@dfsj/components 3.7.2-alpha.6 → 4.0.0-alpha.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 +61 -453
- package/README.md +101 -24
- package/dist/_virtual/_rollupPluginBabelHelpers.js +13 -0
- package/dist/components/Boards/src/Boards.vue.js +10 -4
- package/dist/components/Boards/src/Boards.vue2.js +10 -152
- package/dist/components/Boards/src/hooKs/useStyle.d.ts +13 -5
- package/dist/components/Boards/src/hooKs/useStyle.js +10 -104
- package/dist/components/Boards/src/props.d.ts +5 -23
- package/dist/components/Boards/src/props.js +10 -56
- package/dist/components/ClickOutSide/src/ClickOutSide.vue.js +10 -4
- package/dist/components/ClickOutSide/src/ClickOutSide.vue2.js +10 -25
- package/dist/components/Descriptions/src/Descriptions.vue.js +10 -4
- package/dist/components/Descriptions/src/Descriptions.vue2.js +10 -150
- package/dist/components/Editor/src/Editor.vue.js +10 -4
- package/dist/components/Editor/src/Editor.vue2.js +10 -137
- package/dist/components/Form/src/Form.vue.js +10 -4
- package/dist/components/Form/src/Form.vue2.js +10 -394
- package/dist/components/Form/src/components/useRenderCheckbox.js +10 -32
- package/dist/components/Form/src/components/useRenderRadio.js +10 -32
- package/dist/components/Form/src/components/useRenderSelect.js +10 -51
- package/dist/components/Form/src/helper/componentMap.js +10 -32
- package/dist/components/Form/src/helper/index.js +10 -108
- package/dist/components/Form/src/types/index.d.ts +80 -84
- package/dist/components/Form/src/types/index.js +10 -30
- package/dist/components/Form/src/useForm.js +10 -289
- package/dist/components/Highlight/src/Highlight.vue.js +10 -4
- package/dist/components/Highlight/src/Highlight.vue2.js +10 -61
- package/dist/components/Icon/src/Icon.vue.js +10 -4
- package/dist/components/Icon/src/Icon.vue2.js +10 -122
- package/dist/components/Icon/src/SvgIcon.vue.js +10 -6
- package/dist/components/Icon/src/SvgIcon.vue2.js +10 -44
- package/dist/components/Icon/src/SvgIcon.vue3.js +10 -13
- package/dist/components/InputPassword/src/InputPassword.vue.js +10 -4
- package/dist/components/InputPassword/src/InputPassword.vue2.js +10 -57
- package/dist/components/Modal/src/BasicModal.vue.js +10 -4
- package/dist/components/Modal/src/BasicModal.vue2.js +10 -154
- package/dist/components/Modal/src/components/ModalFooter.vue.js +10 -4
- package/dist/components/Modal/src/components/ModalFooter.vue2.js +10 -39
- package/dist/components/Modal/src/components/ModalHeader.vue.js +10 -4
- package/dist/components/Modal/src/components/ModalHeader.vue2.js +10 -80
- package/dist/components/Modal/src/config.d.ts +3 -2
- package/dist/components/Modal/src/config.js +10 -28
- package/dist/components/Modal/src/hooks/useModalDrag.js +10 -109
- package/dist/components/Modal/src/hooks/useTimeout.js +10 -52
- package/dist/components/Modal/src/props.d.ts +16 -56
- package/dist/components/Modal/src/props.js +10 -130
- package/dist/components/Modal/src/utils/index.js +10 -85
- package/dist/components/NodeAxis/src/AbstractNodeProvider.js +10 -21
- package/dist/components/NodeAxis/src/CanvasNodeRender.d.ts +3 -12
- package/dist/components/NodeAxis/src/CanvasNodeRender.js +10 -411
- package/dist/components/NodeAxis/src/NodeAxis.vue.js +10 -4
- package/dist/components/NodeAxis/src/NodeAxis.vue2.js +10 -68
- package/dist/components/NodeAxis/src/NodeModel.js +10 -62
- package/dist/components/NodeAxis/src/NodeRender.js +10 -28
- package/dist/components/NodeAxis/src/NullLayerProvider.js +10 -86
- package/dist/components/NodeAxis/src/NullProvider.js +10 -65
- package/dist/components/NodeAxis/src/TimerNodePlayer.js +10 -148
- package/dist/components/NodeAxis/src/config/node-axis.options.js +10 -55
- package/dist/components/NodeAxis/src/enum/index.js +10 -19
- package/dist/components/NodeAxis/src/utils/assign.js +10 -42
- package/dist/components/Stateful/src/State.js +10 -78
- package/dist/components/Stateful/src/Stateful.vue.js +10 -4
- package/dist/components/Stateful/src/Stateful.vue2.js +10 -52
- package/dist/components/Stateful/src/props.d.ts +2 -6
- package/dist/components/Stateful/src/props.js +10 -28
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/src/Table.vue.js +10 -4
- package/dist/components/Table/src/Table.vue2.js +10 -583
- package/dist/components/Table/src/components/ColumnSetting.vue.js +10 -4
- package/dist/components/Table/src/components/ColumnSetting.vue2.js +10 -263
- package/dist/components/Table/src/components/TableActions.vue.js +10 -4
- package/dist/components/Table/src/components/TableActions.vue2.js +10 -107
- package/dist/components/Table/src/helper/index.js +10 -10
- package/dist/components/Table/src/types/index.d.ts +11 -13
- package/dist/components/Table/src/useTable.d.ts +36 -1
- package/dist/components/Table/src/useTable.js +10 -283
- package/dist/components/UnifyChart/src/ChartToolbox.vue.js +10 -4
- package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +10 -82
- package/dist/components/UnifyChart/src/UnifyChart.vue.js +10 -4
- package/dist/components/UnifyChart/src/UnifyChart.vue2.js +10 -57
- package/dist/components/UnifyChart/src/hooks/useLoader.js +10 -92
- package/dist/components/UnifyChart/src/hooks/useRender.d.ts +8 -13
- package/dist/components/UnifyChart/src/hooks/useRender.js +10 -49
- package/dist/components/UnifyChart/src/props.d.ts +13 -59
- package/dist/components/UnifyChart/src/props.js +10 -32
- package/dist/components/UnifyChart/src/useDownLoad.js +10 -26
- package/dist/components/Visual/src/BufferLayerPlayer.js +10 -309
- package/dist/components/Visual/src/ResolvableLayerProvider.js +10 -252
- package/dist/components/Visual/src/config/default.manager.js +10 -6
- package/dist/components/Visual/src/config/default.provider.js +10 -17
- package/dist/components/Visual/src/mapping.js +10 -6
- package/dist/components/Visual/src/resolvers/IntervalResolver.js +10 -168
- package/dist/components/Visual/src/resolvers/tools.resolver.js +10 -151
- package/dist/components/Visual/src/utils/NodeMath.js +10 -99
- package/dist/components/Windows/src/ModalWrap.vue.js +10 -4
- package/dist/components/Windows/src/ModalWrap.vue2.js +10 -132
- package/dist/components/Windows/src/Windows.vue.js +10 -6
- package/dist/components/Windows/src/Windows.vue2.js +10 -55
- package/dist/components/Windows/src/Windows.vue3.js +10 -24
- package/dist/components/Windows/src/props.js +10 -8
- package/dist/directives/clickOutside.js +10 -70
- package/dist/directives/repeatClick.js +10 -28
- package/dist/directives/resizable.js +10 -195
- package/dist/index.d.ts +0 -1
- package/dist/index.js +11 -52
- package/dist/index.min.css +3 -3
- package/dist/themes/index.js +9 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.js +10 -23
- package/package.json +54 -25
- package/dist/components/Boards/src/Boards.vue.d.ts +0 -104
- package/dist/components/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -7
- package/dist/components/Descriptions/src/Descriptions.vue.d.ts +0 -97
- package/dist/components/Editor/src/Editor.vue.d.ts +0 -51
- package/dist/components/Form/src/Form.vue.d.ts +0 -838
- package/dist/components/Highlight/src/Highlight.vue.d.ts +0 -41
- package/dist/components/Icon/src/Icon.vue.d.ts +0 -49
- package/dist/components/Icon/src/SvgIcon.vue.d.ts +0 -45
- package/dist/components/InputPassword/src/InputPassword.vue.d.ts +0 -27
- package/dist/components/Modal/src/BasicModal.vue.d.ts +0 -419
- package/dist/components/Modal/src/components/ModalFooter.vue.d.ts +0 -86
- package/dist/components/Modal/src/components/ModalHeader.vue.d.ts +0 -241
- package/dist/components/NodeAxis/src/BCanvasNodeRender.d.ts +0 -19
- package/dist/components/NodeAxis/src/BCanvasNodeRender.js +0 -344
- package/dist/components/NodeAxis/src/NodeAxis.vue.d.ts +0 -17
- package/dist/components/Stateful/src/Stateful.vue.d.ts +0 -22
- package/dist/components/Table/src/Table.vue.d.ts +0 -1535
- package/dist/components/Table/src/components/ColumnSetting.vue.d.ts +0 -30
- package/dist/components/Table/src/components/TableActions.vue.d.ts +0 -229
- package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +0 -46
- package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +0 -95
- package/dist/components/Video/index.d.ts +0 -2
- package/dist/components/Video/src/VideoPlayer.vue.d.ts +0 -60
- package/dist/components/Video/src/VideoPlayer.vue.js +0 -5
- package/dist/components/Video/src/VideoPlayer.vue2.js +0 -107
- package/dist/components/Video/src/VideoPlayerToolbar.vue.d.ts +0 -34
- package/dist/components/Video/src/VideoPlayerToolbar.vue.js +0 -5
- package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +0 -65
- package/dist/components/Video/src/abstract/AbstractVideoControl.d.ts +0 -7
- package/dist/components/Video/src/abstract/Observable.d.ts +0 -6
- package/dist/components/Video/src/abstract/Observable.js +0 -89
- package/dist/components/Video/src/abstract/VideoControl.d.ts +0 -32
- package/dist/components/Video/src/abstract/VideoControl.js +0 -48
- package/dist/components/Video/src/control/DaHua.d.ts +0 -12
- package/dist/components/Video/src/control/DaHua.js +0 -154
- package/dist/components/Video/src/control/Hikvision.d.ts +0 -28
- package/dist/components/Video/src/control/Hikvision.js +0 -249
- package/dist/components/Video/src/control/VideoFactory.d.ts +0 -3
- package/dist/components/Video/src/control/VideoFactory.js +0 -31
- package/dist/components/Video/src/enums/CommonEnum.d.ts +0 -26
- package/dist/components/Video/src/enums/CommonEnum.js +0 -31
- package/dist/components/Windows/src/ModalWrap.vue.d.ts +0 -14
- package/dist/components/Windows/src/Windows.vue.d.ts +0 -21
- package/dist/helper/lang.d.ts +0 -1
- package/dist/helper/lang.js +0 -546
- package/dist/node_modules/.pnpm/@vueuse_core@13.9.0_vue@3.5.20_typescript@5.9.2_/node_modules/@vueuse/core/index.js +0 -393
- package/dist/node_modules/.pnpm/@vueuse_shared@13.9.0_vue@3.5.20_typescript@5.9.2_/node_modules/@vueuse/shared/index.js +0 -53
|
@@ -1,53 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.1
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-09 10:11:28
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
3
10
|
|
|
4
|
-
function
|
|
5
|
-
return typeof val === 'function';
|
|
6
|
-
}
|
|
7
|
-
function useTimeoutFn(handle, wait) {
|
|
8
|
-
var _native = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
9
|
-
if (!isFunction(handle)) {
|
|
10
|
-
throw new Error('handle is not Function!');
|
|
11
|
-
}
|
|
12
|
-
var _useTimeoutRef = useTimeoutRef(wait),
|
|
13
|
-
readyRef = _useTimeoutRef.readyRef,
|
|
14
|
-
stop = _useTimeoutRef.stop,
|
|
15
|
-
start = _useTimeoutRef.start;
|
|
16
|
-
if (_native) {
|
|
17
|
-
handle();
|
|
18
|
-
} else {
|
|
19
|
-
watch(readyRef, function (maturity) {
|
|
20
|
-
maturity && handle();
|
|
21
|
-
}, {
|
|
22
|
-
immediate: false
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
readyRef: readyRef,
|
|
27
|
-
stop: stop,
|
|
28
|
-
start: start
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function useTimeoutRef(wait) {
|
|
32
|
-
var readyRef = ref(false);
|
|
33
|
-
var timer;
|
|
34
|
-
function stop() {
|
|
35
|
-
readyRef.value = false;
|
|
36
|
-
timer && window.clearTimeout(timer);
|
|
37
|
-
}
|
|
38
|
-
function start() {
|
|
39
|
-
stop();
|
|
40
|
-
timer = setTimeout(function () {
|
|
41
|
-
readyRef.value = true;
|
|
42
|
-
}, wait);
|
|
43
|
-
}
|
|
44
|
-
start();
|
|
45
|
-
tryOnUnmounted(stop);
|
|
46
|
-
return {
|
|
47
|
-
readyRef: readyRef,
|
|
48
|
-
stop: stop,
|
|
49
|
-
start: start
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { isFunction, useTimeoutFn, useTimeoutRef };
|
|
11
|
+
import{watch as t,ref as e}from"vue";import{tryOnUnmounted as n}from"@vueuse/core";function o(t){return"function"==typeof t}function r(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!o(e))throw new Error("handle is not Function!");var u=i(n),f=u.readyRef,a=u.stop,c=u.start;return r?e():t(f,function(t){t&&e()},{immediate:!1}),{readyRef:f,stop:a,start:c}}function i(t){var o,r=e(!1);function i(){r.value=!1,o&&window.clearTimeout(o)}function u(){i(),o=setTimeout(function(){r.value=!0},t)}return u(),n(i),{readyRef:r,stop:i,start:u}}export{o as isFunction,r as useTimeoutFn,i as useTimeoutRef};
|
|
@@ -68,18 +68,10 @@ export declare const headerProps: {
|
|
|
68
68
|
type: StringConstructor;
|
|
69
69
|
default: string;
|
|
70
70
|
};
|
|
71
|
-
title:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
default: string;
|
|
76
|
-
};
|
|
77
|
-
titleBefore: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
78
|
-
default: (...args: any[]) => any;
|
|
79
|
-
};
|
|
80
|
-
titleAfter: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
81
|
-
default: (...args: any[]) => any;
|
|
82
|
-
};
|
|
71
|
+
title: any;
|
|
72
|
+
titleAlign: any;
|
|
73
|
+
titleBefore: any;
|
|
74
|
+
titleAfter: any;
|
|
83
75
|
switcherIcon: {
|
|
84
76
|
type: ObjectConstructor;
|
|
85
77
|
default: () => {
|
|
@@ -115,41 +107,17 @@ export declare const headerProps: {
|
|
|
115
107
|
color: string;
|
|
116
108
|
};
|
|
117
109
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
default: (...args: any[]) => any;
|
|
122
|
-
};
|
|
123
|
-
onSwitch: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
124
|
-
default: (...args: any[]) => any;
|
|
125
|
-
} & {
|
|
126
|
-
default: (...args: any[]) => any;
|
|
127
|
-
};
|
|
128
|
-
onClose: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
129
|
-
default: (...args: any[]) => any;
|
|
130
|
-
} & {
|
|
131
|
-
default: (...args: any[]) => any;
|
|
132
|
-
};
|
|
133
|
-
onResize: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
134
|
-
default: (...args: any[]) => any;
|
|
135
|
-
} & {
|
|
136
|
-
default: (...args: any[]) => any;
|
|
137
|
-
};
|
|
138
|
-
onModalMousemove: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
139
|
-
default: (...args: any[]) => any;
|
|
140
|
-
} & {
|
|
141
|
-
default: (...args: any[]) => any;
|
|
142
|
-
};
|
|
143
|
-
onModalMousedown: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
144
|
-
default: (...args: any[]) => any;
|
|
145
|
-
} & {
|
|
146
|
-
default: (...args: any[]) => any;
|
|
147
|
-
};
|
|
148
|
-
onModalMouseup: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
149
|
-
default: (...args: any[]) => any;
|
|
150
|
-
} & {
|
|
151
|
-
default: (...args: any[]) => any;
|
|
110
|
+
copyable: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
152
113
|
};
|
|
114
|
+
onMinimize: any;
|
|
115
|
+
onSwitch: any;
|
|
116
|
+
onClose: any;
|
|
117
|
+
onResize: any;
|
|
118
|
+
onModalMousemove: any;
|
|
119
|
+
onModalMousedown: any;
|
|
120
|
+
onModalMouseup: any;
|
|
153
121
|
};
|
|
154
122
|
export declare const footerProps: {
|
|
155
123
|
footer: {
|
|
@@ -178,14 +146,6 @@ export declare const footerProps: {
|
|
|
178
146
|
color: string;
|
|
179
147
|
};
|
|
180
148
|
};
|
|
181
|
-
onCancel:
|
|
182
|
-
|
|
183
|
-
} & {
|
|
184
|
-
default: (...args: any[]) => any;
|
|
185
|
-
};
|
|
186
|
-
onSubmit: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
|
|
187
|
-
default: (...args: any[]) => any;
|
|
188
|
-
} & {
|
|
189
|
-
default: (...args: any[]) => any;
|
|
190
|
-
};
|
|
149
|
+
onCancel: any;
|
|
150
|
+
onSubmit: any;
|
|
191
151
|
};
|
|
@@ -1,131 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.1
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-09 10:11:28
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
3
10
|
|
|
4
|
-
var zIndex =
|
|
5
|
-
var baseProps = {
|
|
6
|
-
visible: Boolean,
|
|
7
|
-
zIndex: {
|
|
8
|
-
type: Number,
|
|
9
|
-
"default": function _default() {
|
|
10
|
-
return zIndex++;
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
sizes: Array,
|
|
14
|
-
offset: Object,
|
|
15
|
-
overflow: String,
|
|
16
|
-
maximum: Boolean,
|
|
17
|
-
modally: Boolean,
|
|
18
|
-
movable: {
|
|
19
|
-
type: [Boolean, String],
|
|
20
|
-
"default": true
|
|
21
|
-
},
|
|
22
|
-
position: {
|
|
23
|
-
type: String,
|
|
24
|
-
"default": 'fixed'
|
|
25
|
-
},
|
|
26
|
-
resizeable: Boolean,
|
|
27
|
-
extent: {
|
|
28
|
-
type: Object,
|
|
29
|
-
"default": function _default() {
|
|
30
|
-
return {
|
|
31
|
-
top: 0
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
modalClass: String,
|
|
36
|
-
contentClass: String,
|
|
37
|
-
animation: Object
|
|
38
|
-
};
|
|
39
|
-
var headerProps = {
|
|
40
|
-
header: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
"default": true
|
|
43
|
-
},
|
|
44
|
-
background: {
|
|
45
|
-
type: String,
|
|
46
|
-
"default": 'linear-gradient(90deg,#125580 9%,#36b77c 51%,#125580 92%)'
|
|
47
|
-
},
|
|
48
|
-
maximizer: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
"default": true
|
|
51
|
-
},
|
|
52
|
-
closer: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
"default": true
|
|
55
|
-
},
|
|
56
|
-
maximum: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
"default": false
|
|
59
|
-
},
|
|
60
|
-
headerIcon: {
|
|
61
|
-
type: String,
|
|
62
|
-
"default": 'mdi:map-marker'
|
|
63
|
-
},
|
|
64
|
-
title: propTypes.oneOfType([propTypes.func, propTypes.string]).def('--'),
|
|
65
|
-
titleAlign: propTypes.oneOf(['start', 'center', 'end']).def('start'),
|
|
66
|
-
titleBefore: propTypes.func,
|
|
67
|
-
titleAfter: propTypes.func,
|
|
68
|
-
switcherIcon: {
|
|
69
|
-
type: Object,
|
|
70
|
-
"default": function _default() {
|
|
71
|
-
return switcher;
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
closerIcon: {
|
|
75
|
-
type: Object,
|
|
76
|
-
"default": function _default() {
|
|
77
|
-
return closer;
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
minimize: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
"default": false
|
|
83
|
-
},
|
|
84
|
-
minimizer: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
"default": false
|
|
87
|
-
},
|
|
88
|
-
minimizerIcon: {
|
|
89
|
-
type: Object,
|
|
90
|
-
"default": function _default() {
|
|
91
|
-
return minimizer;
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
onMinimize: propTypes.func.def(function () {}),
|
|
95
|
-
onSwitch: propTypes.func.def(function () {}),
|
|
96
|
-
onClose: propTypes.func.def(function () {}),
|
|
97
|
-
onResize: propTypes.func.def(function () {}),
|
|
98
|
-
onModalMousemove: propTypes.func.def(function () {}),
|
|
99
|
-
onModalMousedown: propTypes.func.def(function () {}),
|
|
100
|
-
onModalMouseup: propTypes.func.def(function () {})
|
|
101
|
-
};
|
|
102
|
-
var footerProps = {
|
|
103
|
-
footer: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
"default": false
|
|
106
|
-
},
|
|
107
|
-
cancel: {
|
|
108
|
-
type: Boolean,
|
|
109
|
-
"default": true
|
|
110
|
-
},
|
|
111
|
-
submit: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
"default": true
|
|
114
|
-
},
|
|
115
|
-
submitOpt: {
|
|
116
|
-
type: Object,
|
|
117
|
-
"default": function _default() {
|
|
118
|
-
return submit;
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
cancelOpt: {
|
|
122
|
-
type: Object,
|
|
123
|
-
"default": function _default() {
|
|
124
|
-
return cancel;
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
onCancel: propTypes.func.def(function () {}),
|
|
128
|
-
onSubmit: propTypes.func.def(function () {})
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export { baseProps, footerProps, headerProps };
|
|
11
|
+
import{switcher as e,closer as t,minimizer as n,submit as o,cancel as f}from"./config.js";import u from"vue-types";var i=1e3,a={visible:Boolean,zIndex:{type:Number,default:function(){return i++}},sizes:Array,offset:Object,overflow:String,maximum:Boolean,modally:Boolean,movable:{type:[Boolean,String],default:!0},position:{type:String,default:"fixed"},resizeable:Boolean,extent:{type:Object,default:function(){return{top:0}}},modalClass:String,contentClass:String,animation:Object},l={header:{type:Boolean,default:!0},background:{type:String,default:""},maximizer:{type:Boolean,default:!0},closer:{type:Boolean,default:!0},maximum:{type:Boolean,default:!1},headerIcon:{type:String,default:""},title:u.oneOfType([u.func,u.string]).def("--"),titleAlign:u.oneOf(["start","center","end"]).def("start"),titleBefore:u.func,titleAfter:u.func,switcherIcon:{type:Object,default:function(){return e}},closerIcon:{type:Object,default:function(){return t}},minimize:{type:Boolean,default:!1},minimizer:{type:Boolean,default:!1},minimizerIcon:{type:Object,default:function(){return n}},copyable:{type:Boolean,default:!1},onMinimize:u.func.def(function(){}),onSwitch:u.func.def(function(){}),onClose:u.func.def(function(){}),onResize:u.func.def(function(){}),onModalMousemove:u.func.def(function(){}),onModalMousedown:u.func.def(function(){}),onModalMouseup:u.func.def(function(){})},c={footer:{type:Boolean,default:!1},cancel:{type:Boolean,default:!0},submit:{type:Boolean,default:!0},submitOpt:{type:Object,default:function(){return o}},cancelOpt:{type:Object,default:function(){return f}},onCancel:u.func.def(function(){}),onSubmit:u.func.def(function(){})};export{a as baseProps,c as footerProps,l as headerProps};
|
|
@@ -1,86 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.1
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-09 10:11:28
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
3
10
|
|
|
4
|
-
function
|
|
5
|
-
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; }
|
|
6
|
-
function ensure(value) {
|
|
7
|
-
return value == null ? null : isNaN(value) ? value : "".concat(value, "px");
|
|
8
|
-
}
|
|
9
|
-
function isp(value) {
|
|
10
|
-
return typeof value === 'string' && !!value.match(/^.+(%|vh|vw|px|rem)$/);
|
|
11
|
-
}
|
|
12
|
-
function doLocator(offset, sizes, locator, offsetable, sizeable) {
|
|
13
|
-
var siz = sizes && sizes.map(function (v) {
|
|
14
|
-
return v == null || isNaN(v) ? v : "".concat(v, "px");
|
|
15
|
-
});
|
|
16
|
-
var top = offsetable && ensure(locator.top != null ? locator.top : offset && offset.top);
|
|
17
|
-
var lft = offsetable && ensure(locator.left != null ? locator.left : offset && offset.left);
|
|
18
|
-
var rgt = offsetable && ensure(locator.right || offset && offset.right);
|
|
19
|
-
var bom = offsetable && ensure(locator.bottom || offset && offset.bottom);
|
|
20
|
-
var wid = siz && siz[0];
|
|
21
|
-
var hei = siz && siz[1];
|
|
22
|
-
var transformX, transformY, transform;
|
|
23
|
-
if (!top && !bom && offsetable) {
|
|
24
|
-
top = siz && siz[1] != null ? "calc(50% - ".concat(siz[1], "/2)") : '50%';
|
|
25
|
-
transformY = siz && siz[1] != null ? undefined : 'translateY(-50%)';
|
|
26
|
-
}
|
|
27
|
-
if (!lft && !rgt && offsetable) {
|
|
28
|
-
lft = siz && siz[0] != null ? "calc(50% - ".concat(siz[0], "/2)") : '50%';
|
|
29
|
-
transformX = siz && siz[0] != null ? undefined : 'translateX(-50%)';
|
|
30
|
-
}
|
|
31
|
-
if (transformX || transformY) {
|
|
32
|
-
transform = "".concat(transformX || '', " ").concat(transformY || '');
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
top: top,
|
|
36
|
-
left: lft,
|
|
37
|
-
right: rgt,
|
|
38
|
-
bottom: bom,
|
|
39
|
-
width: sizeable && wid,
|
|
40
|
-
height: sizeable && hei,
|
|
41
|
-
transform: transform
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function toMainStyle(props, locator, maximum) {
|
|
45
|
-
if (props.modally) {
|
|
46
|
-
return {
|
|
47
|
-
position: props.position,
|
|
48
|
-
zIndex: props.zIndex
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
var extent = doLocator(props.offset, props.sizes, locator, !unref(maximum), false);
|
|
52
|
-
if (props.modally === false) {
|
|
53
|
-
if (props.sizes && isp(props.sizes[0])) {
|
|
54
|
-
extent.width = props.sizes[0];
|
|
55
|
-
}
|
|
56
|
-
if (props.sizes && isp(props.sizes[1])) {
|
|
57
|
-
extent.height = props.sizes[1];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return _objectSpread({
|
|
61
|
-
position: props.position,
|
|
62
|
-
overflow: props.overflow,
|
|
63
|
-
zIndex: props.zIndex
|
|
64
|
-
}, extent);
|
|
65
|
-
}
|
|
66
|
-
function toBodyStyle(props, locator, maximum) {
|
|
67
|
-
var position = props.modally ? 'absolute' : null;
|
|
68
|
-
var extent = doLocator(props.offset, props.sizes, locator, props.modally && !unref(maximum), true);
|
|
69
|
-
if (props.modally === false) {
|
|
70
|
-
if (props.sizes && isp(props.sizes[0])) {
|
|
71
|
-
extent.width = '100%';
|
|
72
|
-
}
|
|
73
|
-
if (props.sizes && isp(props.sizes[1])) {
|
|
74
|
-
extent.height = '100%';
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return _objectSpread({
|
|
78
|
-
position: position,
|
|
79
|
-
overflow: props.overflow
|
|
80
|
-
}, extent);
|
|
81
|
-
}
|
|
82
|
-
function clamp(value, min, max) {
|
|
83
|
-
return value < min ? min : value > max ? max : value;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { clamp, toBodyStyle, toMainStyle };
|
|
11
|
+
import{objectSpread2 as t}from"../../../../_virtual/_rollupPluginBabelHelpers.js";import{unref as o}from"vue";function n(t){return null==t?null:isNaN(t)?t:"".concat(t,"px")}function e(t){return"string"==typeof t&&!!t.match(/^.+(%|vh|vw|px|rem)$/)}function l(t,o,e,l,i){var r,s,a,u=o&&o.map(function(t){return null==t||isNaN(t)?t:"".concat(t,"px")}),c=l&&n(null!=e.top?e.top:t&&t.top),f=l&&n(null!=e.left?e.left:t&&t.left),p=l&&n(e.right||t&&t.right),m=l&&n(e.bottom||t&&t.bottom),z=u&&u[0],d=u&&u[1];return c||m||!l||(c=u&&null!=u[1]?"calc(50% - ".concat(u[1],"/2)"):"50%",s=u&&null!=u[1]?void 0:"translateY(-50%)"),f||p||!l||(f=u&&null!=u[0]?"calc(50% - ".concat(u[0],"/2)"):"50%",r=u&&null!=u[0]?void 0:"translateX(-50%)"),(r||s)&&(a="".concat(r||""," ").concat(s||"")),{top:c,left:f,right:p,bottom:m,width:i&&z,height:i&&d,transform:a}}function i(n,i,r){if(n.modally)return{position:n.position,zIndex:n.zIndex};var s=l(n.offset,n.sizes,i,!o(r),!1);return!1===n.modally&&(n.sizes&&e(n.sizes[0])&&(s.width=n.sizes[0]),n.sizes&&e(n.sizes[1])&&(s.height=n.sizes[1])),t({position:n.position,overflow:n.overflow,zIndex:n.zIndex},s)}function r(n,i,r){var s=n.modally?"absolute":null,a=l(n.offset,n.sizes,i,n.modally&&!o(r),!0);return!1===n.modally&&(n.sizes&&e(n.sizes[0])&&(a.width="100%"),n.sizes&&e(n.sizes[1])&&(a.height="100%")),t({position:s,overflow:n.overflow},a)}function s(t,o,n){return t<o?o:t>n?n:t}export{s as clamp,r as toBodyStyle,i as toMainStyle};
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.1
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-09 10:11:28
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
4
10
|
|
|
5
|
-
var
|
|
6
|
-
function AbstractNodeProvider() {
|
|
7
|
-
_classCallCheck(this, AbstractNodeProvider);
|
|
8
|
-
}
|
|
9
|
-
return _createClass(AbstractNodeProvider, [{
|
|
10
|
-
key: "extract",
|
|
11
|
-
value: function extract(range, count, nodes) {
|
|
12
|
-
return NodeMath.extract(range, count, nodes);
|
|
13
|
-
}
|
|
14
|
-
}, {
|
|
15
|
-
key: "scale",
|
|
16
|
-
value: function scale(offset, range, length, direction) {
|
|
17
|
-
return NodeMath.scale(offset, range, length, direction);
|
|
18
|
-
}
|
|
19
|
-
}]);
|
|
20
|
-
}();
|
|
21
|
-
|
|
22
|
-
export { AbstractNodeProvider as default };
|
|
11
|
+
import{createClass as e,classCallCheck as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import a from"../../Visual/src/utils/NodeMath.js";var r=function(){return e(function e(){t(this,e)},[{key:"extract",value:function(e,t,r){return a.extract(e,t,r)}},{key:"scale",value:function(e,t,r,l){return a.scale(e,t,r,l)}}])}();export{r as default};
|
|
@@ -4,21 +4,12 @@ export default class CanvasNodeRender extends NodeRender {
|
|
|
4
4
|
protected context: CanvasRenderingContext2D;
|
|
5
5
|
protected overlay: HTMLElement;
|
|
6
6
|
protected cache: any;
|
|
7
|
-
protected
|
|
8
|
-
protected onMouseMove(event:
|
|
7
|
+
protected onMouseWheel(event: WheelEvent): void;
|
|
8
|
+
protected onMouseMove(event: MouseEvent): void;
|
|
9
9
|
protected onMouseLeave(event: any): void;
|
|
10
10
|
protected onMouseDown(event: any): void;
|
|
11
|
+
protected onMouseUp(event: any): void;
|
|
11
12
|
protected showOverlay(index: number): any;
|
|
12
|
-
getBoundingClientRect(): {
|
|
13
|
-
length: number;
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
label: number;
|
|
17
|
-
left: number;
|
|
18
|
-
right: number;
|
|
19
|
-
top: number;
|
|
20
|
-
bound: DOMRect;
|
|
21
|
-
};
|
|
22
13
|
initialize(container: HTMLElement, accept: Function): void;
|
|
23
14
|
resize(): void;
|
|
24
15
|
reset(): void;
|