@dfsj/components 3.1.0 → 3.1.2
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 +21 -3
- package/dist/components/Boards/index.d.ts +2 -2
- package/dist/components/Boards/src/Boards.vue.d.ts +21 -0
- package/dist/components/Boards/src/Boards.vue2.js +132 -31
- package/dist/components/Boards/src/props.d.ts +20 -0
- package/dist/components/Boards/src/props.js +19 -1
- package/dist/components/Editor/src/Editor.vue2.js +2 -3
- package/dist/components/Form/src/Form.vue2.js +16 -4
- package/dist/components/Modal/src/BasicModal.vue.d.ts +37 -2
- package/dist/components/Modal/src/BasicModal.vue2.js +11 -11
- package/dist/components/Modal/src/components/ModalHeader.vue.d.ts +9 -0
- package/dist/components/Modal/src/components/ModalHeader.vue2.js +17 -10
- package/dist/components/Modal/src/hooks/useModalDrag.js +2 -7
- package/dist/components/Modal/src/props.d.ts +18 -1
- package/dist/components/Modal/src/props.js +4 -0
- package/dist/components/Modal/src/utils/index.js +2 -2
- package/dist/components/NodeAxis/index.d.ts +6 -0
- package/dist/components/NodeAxis/src/AbstractNodeProvider.d.ts +15 -0
- package/dist/components/NodeAxis/src/AbstractNodeProvider.js +23 -0
- package/dist/components/NodeAxis/src/BCanvasNodeRender.d.ts +19 -0
- package/dist/components/NodeAxis/src/CanvasNodeRender.d.ts +28 -0
- package/dist/components/NodeAxis/src/CanvasNodeRender.js +400 -0
- package/dist/components/NodeAxis/src/NodeAxis.d.ts +12 -0
- package/dist/components/NodeAxis/src/NodeAxis.vue.d.ts +17 -0
- package/dist/components/NodeAxis/src/NodeAxis.vue.js +5 -0
- package/dist/components/NodeAxis/src/NodeAxis.vue2.js +68 -0
- package/dist/components/NodeAxis/src/NodeModel.d.ts +24 -0
- package/dist/components/NodeAxis/src/NodeModel.js +64 -0
- package/dist/components/NodeAxis/src/NodeProvider.d.ts +15 -0
- package/dist/components/NodeAxis/src/NodeRender.d.ts +17 -0
- package/dist/components/NodeAxis/src/NodeRender.js +30 -0
- package/dist/components/NodeAxis/src/NullLayerProvider.d.ts +23 -0
- package/dist/components/NodeAxis/src/NullLayerProvider.js +88 -0
- package/dist/components/NodeAxis/src/NullProvider.d.ts +17 -0
- package/dist/components/NodeAxis/src/NullProvider.js +67 -0
- package/dist/components/NodeAxis/src/TimerNodePlayer.d.ts +19 -0
- package/dist/components/NodeAxis/src/TimerNodePlayer.js +150 -0
- package/dist/components/NodeAxis/src/config/node-axis.options.d.ts +54 -0
- package/dist/components/NodeAxis/src/config/node-axis.options.js +56 -0
- package/dist/components/NodeAxis/src/enum/index.d.ts +15 -0
- package/dist/components/NodeAxis/src/enum/index.js +20 -0
- package/dist/components/NodeAxis/src/interface/NodePlayer.d.ts +9 -0
- package/dist/components/NodeAxis/src/interface/NodeProvider.d.ts +15 -0
- package/dist/components/NodeAxis/src/utils/assign.d.ts +1 -0
- package/dist/components/NodeAxis/src/utils/assign.js +43 -0
- package/dist/components/Stateful/src/Stateful.vue2.js +15 -8
- package/dist/components/Visual/index.d.ts +3 -0
- package/dist/components/Visual/src/BufferLayerPlayer.d.ts +27 -0
- package/dist/components/Visual/src/BufferLayerPlayer.js +293 -0
- package/dist/components/Visual/src/ResolvableLayerProvider.d.ts +36 -0
- package/dist/components/Visual/src/ResolvableLayerProvider.js +255 -0
- package/dist/components/Visual/src/config/default.manager.d.ts +6 -0
- package/dist/components/Visual/src/config/default.manager.js +7 -0
- package/dist/components/Visual/src/config/default.provider.d.ts +17 -0
- package/dist/components/Visual/src/config/default.provider.js +18 -0
- package/dist/components/Visual/src/interface/Disposable.d.ts +3 -0
- package/dist/components/Visual/src/interface/LayerFactory.d.ts +5 -0
- package/dist/components/Visual/src/interface/LayerManager.d.ts +8 -0
- package/dist/components/Visual/src/interface/LayerPlayer.d.ts +10 -0
- package/dist/components/Visual/src/interface/LayerProvider.d.ts +7 -0
- package/dist/components/Visual/src/interface/LayerResolver.d.ts +13 -0
- package/dist/components/Visual/src/mapping.d.ts +5 -0
- package/dist/components/Visual/src/mapping.js +7 -0
- package/dist/components/Visual/src/resolvers/IntervalResolver.d.ts +30 -0
- package/dist/components/Visual/src/resolvers/IntervalResolver.js +170 -0
- package/dist/components/Visual/src/resolvers/tools.resolver.d.ts +4 -0
- package/dist/components/Visual/src/resolvers/tools.resolver.js +145 -0
- package/dist/components/Visual/src/utils/NodeMath.d.ts +13 -0
- package/dist/components/Visual/src/utils/NodeMath.js +101 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -1
- package/dist/index.min.css +3 -3
- package/dist/node_modules/.pnpm/@vueuse_core@10.7.2_vue@3.4.21/node_modules/@vueuse/core/index.js +175 -4
- package/dist/node_modules/.pnpm/@vueuse_shared@10.7.2_vue@3.4.21/node_modules/@vueuse/shared/index.js +8 -2
- package/package.json +7 -5
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import get from 'lodash-es/get';
|
|
3
|
+
import { DateTime, Interval } from 'luxon';
|
|
4
|
+
|
|
5
|
+
var TIME_DIFF_ADJUST = 1;
|
|
6
|
+
function getCount(range, symbol, interval) {
|
|
7
|
+
var between = Interval.fromDateTimes(range[0], range[1]);
|
|
8
|
+
if (symbol === "xun") {
|
|
9
|
+
var xunOf = function xunOf(time) {
|
|
10
|
+
return Math.floor(time.day / 10);
|
|
11
|
+
};
|
|
12
|
+
var count = Math.max(Math.floor(between.count("month") - 2), 0);
|
|
13
|
+
return 3 - xunOf(range[0]) + xunOf(range[1]) + count * 3;
|
|
14
|
+
}
|
|
15
|
+
return Math.round(range[1].diff(range[0], symbol).get(symbol) / interval) + TIME_DIFF_ADJUST;
|
|
16
|
+
}
|
|
17
|
+
var reg = /{(.+?)?}/g;
|
|
18
|
+
function toFormat(pattern, nodeInfo) {
|
|
19
|
+
var now = DateTime.fromMillis(Date.now());
|
|
20
|
+
var exec,
|
|
21
|
+
buf = pattern;
|
|
22
|
+
while (exec = reg.exec(pattern)) {
|
|
23
|
+
var items = exec[1].split("#");
|
|
24
|
+
var value = get(nodeInfo, items[0]);
|
|
25
|
+
if (items.length === 1) {
|
|
26
|
+
buf = buf.replace(exec[0], value == null ? "" : String(value));
|
|
27
|
+
} else if (items[0] === "time") {
|
|
28
|
+
var time = value;
|
|
29
|
+
var modifiers = items[1].split("@");
|
|
30
|
+
var format = modifiers[0];
|
|
31
|
+
if (modifiers.length > 0) {
|
|
32
|
+
if (modifiers.includes("<")) {
|
|
33
|
+
time = time.plus(_defineProperty({}, nodeInfo.unit, -nodeInfo.step));
|
|
34
|
+
}
|
|
35
|
+
if (modifiers.includes(">")) {
|
|
36
|
+
time = time.plus(_defineProperty({}, nodeInfo.unit, +nodeInfo.step));
|
|
37
|
+
}
|
|
38
|
+
var today = modifiers.find(function (e) {
|
|
39
|
+
return e.includes("today");
|
|
40
|
+
});
|
|
41
|
+
if (today) {
|
|
42
|
+
var flag = today.substring(5, 7);
|
|
43
|
+
var formats = today.substring(7).split("|");
|
|
44
|
+
var expression = "yyyy-MM-dd ".concat(formats[0]);
|
|
45
|
+
var target = DateTime.fromSQL(time.toFormat(expression));
|
|
46
|
+
if (target.valueOf() > now.valueOf()) {
|
|
47
|
+
if (flag === "<<") {
|
|
48
|
+
time = time.plus(_defineProperty({}, nodeInfo.unit, -nodeInfo.step));
|
|
49
|
+
} else {
|
|
50
|
+
if (now.minute > 1) {
|
|
51
|
+
time = now.startOf('hour').plus({
|
|
52
|
+
hours: 1
|
|
53
|
+
});
|
|
54
|
+
} else {
|
|
55
|
+
time = now;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (formats[1]) {
|
|
59
|
+
format = formats[1];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (modifiers.includes("seconds")) {
|
|
64
|
+
if (format) time = DateTime.fromSQL(time.toFormat(format));
|
|
65
|
+
time = time.valueOf() / 1000;
|
|
66
|
+
} else if (modifiers.includes("mills")) {
|
|
67
|
+
if (format) time = DateTime.fromSQL(time.toFormat(format));
|
|
68
|
+
time = time.valueOf();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
value = time instanceof DateTime ? time.toFormat(format) : time;
|
|
72
|
+
buf = buf.replace(exec[0], String(value));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return buf;
|
|
76
|
+
}
|
|
77
|
+
function getFormatDate(pattern, nodeInfo) {
|
|
78
|
+
var resolveFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'M月d日H时';
|
|
79
|
+
var now = DateTime.fromMillis(Date.now());
|
|
80
|
+
var exec,
|
|
81
|
+
buf = pattern;
|
|
82
|
+
var arr = [];
|
|
83
|
+
while (exec = reg.exec(pattern)) {
|
|
84
|
+
var items = exec[1].split("#");
|
|
85
|
+
var value = get(nodeInfo, items[0]);
|
|
86
|
+
if (items.length === 1) {
|
|
87
|
+
buf = buf.replace(exec[0], value == null ? "" : String(value));
|
|
88
|
+
} else if (items[0] === "time") {
|
|
89
|
+
var time = value;
|
|
90
|
+
var modifiers = items[1].split("@");
|
|
91
|
+
var format = modifiers[0];
|
|
92
|
+
if (modifiers.length > 0) {
|
|
93
|
+
if (modifiers.includes("<")) {
|
|
94
|
+
time = time.plus(_defineProperty({}, nodeInfo.unit, -nodeInfo.step));
|
|
95
|
+
}
|
|
96
|
+
if (modifiers.includes(">")) {
|
|
97
|
+
time = time.plus(_defineProperty({}, nodeInfo.unit, +nodeInfo.step));
|
|
98
|
+
}
|
|
99
|
+
var today = modifiers.find(function (e) {
|
|
100
|
+
return e.includes("today");
|
|
101
|
+
});
|
|
102
|
+
if (today) {
|
|
103
|
+
var flag = today.substring(5, 7);
|
|
104
|
+
var formats = today.substring(7).split("|");
|
|
105
|
+
var expression = "yyyy-MM-dd ".concat(formats[0]);
|
|
106
|
+
var target = DateTime.fromSQL(time.toFormat(expression));
|
|
107
|
+
if (target.valueOf() > now.valueOf()) {
|
|
108
|
+
if (flag === "<<") {
|
|
109
|
+
time = time.plus(_defineProperty({}, nodeInfo.unit, -nodeInfo.step));
|
|
110
|
+
} else {
|
|
111
|
+
if (now.minute > 1) {
|
|
112
|
+
time = now.startOf('hour').plus({
|
|
113
|
+
hours: 1
|
|
114
|
+
});
|
|
115
|
+
} else {
|
|
116
|
+
time = now;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (formats[1]) {
|
|
120
|
+
format = formats[1];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (modifiers.includes("seconds")) {
|
|
125
|
+
if (format) time = DateTime.fromSQL(time.toFormat(format));
|
|
126
|
+
time = time.valueOf() / 1000;
|
|
127
|
+
} else if (modifiers.includes("mills")) {
|
|
128
|
+
if (format) time = DateTime.fromSQL(time.toFormat(format));
|
|
129
|
+
time = time.valueOf();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
value = time instanceof DateTime ? time.toFormat(format) : time;
|
|
133
|
+
if (time instanceof DateTime) {
|
|
134
|
+
var isYear = value.includes('年');
|
|
135
|
+
var tm = DateTime.fromFormat(value, isYear ? format : resolveFormat);
|
|
136
|
+
var tmRes = DateTime.fromMillis(tm.ts).toFormat("".concat(time.year, "-MM-dd HH:00:00"));
|
|
137
|
+
arr.push(tmRes);
|
|
138
|
+
}
|
|
139
|
+
buf = buf.replace(exec[0], String(value));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return arr;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export { getCount, getFormatDate, toFormat };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default class NodeMath {
|
|
2
|
+
static offset(index: number, range: number[], length: number): number;
|
|
3
|
+
static index(offset: number, range: number[], length: number): number;
|
|
4
|
+
static clamp(value: number, min: number, max: number): number;
|
|
5
|
+
static clampArray(element: number[], limit: number[]): number[];
|
|
6
|
+
static toRange(scale: number[], count: number, accept?: number[]): number[];
|
|
7
|
+
static inRange(r1: number[], r2: number[]): boolean;
|
|
8
|
+
static equals(r1: number[], r2: number[]): boolean;
|
|
9
|
+
static valueBy(value: string | number, size: number, def?: number): number;
|
|
10
|
+
static translation(nodes: number[], step: number, start?: number, count?: number): void;
|
|
11
|
+
static extract(range: number[], count: number, accept?: number[]): number[];
|
|
12
|
+
static scale(offset: number, range: number[], length: number, direction: number, rate?: number, accept?: number[]): number[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
2
|
+
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
|
+
|
|
4
|
+
var NodeMath = /*#__PURE__*/function () {
|
|
5
|
+
function NodeMath() {
|
|
6
|
+
_classCallCheck(this, NodeMath);
|
|
7
|
+
}
|
|
8
|
+
_createClass(NodeMath, null, [{
|
|
9
|
+
key: "offset",
|
|
10
|
+
value: function offset(index, range, length) {
|
|
11
|
+
if (range[1] - range[0] <= 1) {
|
|
12
|
+
return length >> 1;
|
|
13
|
+
}
|
|
14
|
+
return (index - range[0]) / (range[1] - range[0] - 1) * length;
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
key: "index",
|
|
18
|
+
value: function index(offset, range, length) {
|
|
19
|
+
return Math.round(offset * (range[1] - range[0] - 1) / length + range[0]);
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
key: "clamp",
|
|
23
|
+
value: function clamp(value, min, max) {
|
|
24
|
+
return value < min ? min : value > max ? max : value;
|
|
25
|
+
}
|
|
26
|
+
}, {
|
|
27
|
+
key: "clampArray",
|
|
28
|
+
value: function clampArray(element, limit) {
|
|
29
|
+
element[0] = Math.max(element[0], limit[0]);
|
|
30
|
+
element[1] = Math.min(element[1], limit[1]);
|
|
31
|
+
return element;
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
key: "toRange",
|
|
35
|
+
value: function toRange(scale, count) {
|
|
36
|
+
var accept = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
37
|
+
accept[0] = Math.round(scale[0] / 100 * count);
|
|
38
|
+
accept[1] = Math.round(scale[1] / 100 * count);
|
|
39
|
+
return accept;
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "inRange",
|
|
43
|
+
value: function inRange(r1, r2) {
|
|
44
|
+
return !(r2[0] < r1[0] && r2[1] <= r1[0] || r2[0] >= r1[1] && r2[1] >= r1[1]);
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "equals",
|
|
48
|
+
value: function equals(r1, r2) {
|
|
49
|
+
return r1[0] === r2[0] && r1[1] === r2[1];
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "valueBy",
|
|
53
|
+
value: function valueBy(value, size, def) {
|
|
54
|
+
if (typeof value === "string" && /%$/.test(value)) {
|
|
55
|
+
return Number(value.substring(0, value.length - 1)) / 100 * size;
|
|
56
|
+
}
|
|
57
|
+
return value == null ? def : Number(value);
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
key: "translation",
|
|
61
|
+
value: function translation(nodes, step) {
|
|
62
|
+
var start = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
63
|
+
var count = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : nodes === null || nodes === void 0 ? void 0 : nodes.length;
|
|
64
|
+
for (var i = start + count - 1; i >= 0; i--) nodes[i] += step;
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
key: "extract",
|
|
68
|
+
value: function extract(range, count) {
|
|
69
|
+
var accept = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
70
|
+
accept.length = 0;
|
|
71
|
+
var length = range[1] - range[0];
|
|
72
|
+
if (length === 1) {
|
|
73
|
+
accept[0] = range[0];
|
|
74
|
+
} else if (length <= count) {
|
|
75
|
+
for (var i = 0; i < length; i++) accept.push(range[0] + i);
|
|
76
|
+
} else {
|
|
77
|
+
var factor = (count - 1) / (length - 1);
|
|
78
|
+
for (var _i2 = 0; _i2 < length; _i2++) {
|
|
79
|
+
if (Math.floor((_i2 - 1) * factor) !== Math.floor(_i2 * factor)) {
|
|
80
|
+
accept.push(range[0] + _i2);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return accept;
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
key: "scale",
|
|
88
|
+
value: function scale(offset, range, length, direction) {
|
|
89
|
+
var rate = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1.2;
|
|
90
|
+
var accept = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : [];
|
|
91
|
+
var percent = offset / length * (range[1] - range[0]) + range[0];
|
|
92
|
+
var factor = direction < 0 ? 1 / rate : rate;
|
|
93
|
+
accept[0] = (range[0] - percent) * factor + percent;
|
|
94
|
+
accept[1] = (range[1] - percent) * factor + percent;
|
|
95
|
+
return accept;
|
|
96
|
+
}
|
|
97
|
+
}]);
|
|
98
|
+
return NodeMath;
|
|
99
|
+
}();
|
|
100
|
+
|
|
101
|
+
export { NodeMath as default };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export { default as State, StateEnum } from './components/Stateful/src/State.js'
|
|
|
11
11
|
import './components/Stateful/src/Stateful.vue.js';
|
|
12
12
|
export { WindowsProps } from './components/Windows/src/props.js';
|
|
13
13
|
import './components/Windows/src/Windows.vue.js';
|
|
14
|
-
export { BoardProps } from './components/Boards/src/props.js';
|
|
14
|
+
export { BoardPosition, BoardProps } from './components/Boards/src/props.js';
|
|
15
15
|
import './components/Boards/src/Boards.vue.js';
|
|
16
16
|
import './components/Video/src/VideoPlayer.vue.js';
|
|
17
17
|
export { default as DatePicker } from './components/DatePicker/src/index.js';
|
|
@@ -20,6 +20,13 @@ import './components/UnifyChart/src/UnifyChart.vue.js';
|
|
|
20
20
|
import './components/UnifyChart/src/ChartToolbox.vue.js';
|
|
21
21
|
import './components/Highlight/src/Highlight.vue.js';
|
|
22
22
|
import './components/InputPassword/src/InputPassword.vue.js';
|
|
23
|
+
export { default as AbstractNodeProvider } from './components/NodeAxis/src/AbstractNodeProvider.js';
|
|
24
|
+
export { default as CanvasNodeRender } from './components/NodeAxis/src/CanvasNodeRender.js';
|
|
25
|
+
import './components/NodeAxis/src/NodeAxis.vue.js';
|
|
26
|
+
export { default as NullLayerProvider } from './components/NodeAxis/src/NullLayerProvider.js';
|
|
27
|
+
export { Direction, Extensible, TimeModes } from './components/NodeAxis/src/enum/index.js';
|
|
28
|
+
export { default as ResolvableLayerProvider } from './components/Visual/src/ResolvableLayerProvider.js';
|
|
29
|
+
export { default as BufferLayerPlayer } from './components/Visual/src/BufferLayerPlayer.js';
|
|
23
30
|
export { default as Form } from './components/Form/src/Form.vue2.js';
|
|
24
31
|
export { default as Table } from './components/Table/src/Table.vue2.js';
|
|
25
32
|
export { default as Editor } from './components/Editor/src/Editor.vue2.js';
|
|
@@ -29,6 +36,7 @@ export { default as VideoPlayer } from './components/Video/src/VideoPlayer.vue2.
|
|
|
29
36
|
export { default as UnifyChart } from './components/UnifyChart/src/UnifyChart.vue2.js';
|
|
30
37
|
export { default as Highlight } from './components/Highlight/src/Highlight.vue2.js';
|
|
31
38
|
export { default as InputPassword } from './components/InputPassword/src/InputPassword.vue2.js';
|
|
39
|
+
export { default as NodeAxis } from './components/NodeAxis/src/NodeAxis.vue2.js';
|
|
32
40
|
export { default as Icon } from './components/Icon/src/Icon.vue2.js';
|
|
33
41
|
export { default as SvgIcon } from './components/Icon/src/SvgIcon.vue2.js';
|
|
34
42
|
export { default as BasicModal } from './components/Modal/src/BasicModal.vue2.js';
|
package/dist/index.min.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@dfsj/components:通用的vue组件;包括专业组件、原子级组件
|
|
3
|
-
版本: 3.
|
|
3
|
+
版本: 3.1.1
|
|
4
4
|
作者:yangbo <1747837358@qq.com>
|
|
5
|
-
日期:2024-
|
|
6
|
-
*/.ec-component-board-container-page-wrap{position:fixed;right:0;bottom:0;z-index:100;max-width:500px;background:#fff;transition:transform 200ms ease-in-out}.ec-component-board-container-page-wrap__layout{display:flex;flex-direction:row-reverse}.ec-component-board-container-page-wrap .board--wing{position:absolute !important;z-index:1;width:18px;height:80px;border-radius:2px;background:rgba(3,19,78,.12);backdrop-filter:blur(2px);box-shadow:2px 1px 1px 0px rgba(0,0,0,.3),-2px -2px 2px 0px #fff;cursor:pointer}.ec-component-board-container-page-wrap .board--wing .app-iconify{position:absolute;top:50%;right:0;font-weight:bolder;color:#fff}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-wrap::after{display:none}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .custom-label{display:flex;width:100%;min-height:0;letter-spacing:5px;writing-mode:vertical-lr}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__active-bar{display:none;width:0;height:0}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__item{height:auto;padding:10px;color:#11848f;background:#eee}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__item.is-active{color:#fff;background:#11848f}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__nav{gap:10px}.ec-component-board-container-page-wrap.east{flex-direction:row-reverse;right:0;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3);border-radius:2px 0 0}.ec-component-board-container-page-wrap.east .board--wing{z-index:1;box-shadow:-8px 0 10px 0 rgba(64,72,191,.2);transform:translate(-100%, -50%);top:50%;left:0;clip-path:polygon(0 18%, 100% 0, 100% 100%, 0 82%)}.ec-component-board-container-page-wrap.east.minify{transform:translateX(100%)}.ec-component-board-container-page-wrap.east .board--wing .app-iconify{transform:rotate(0deg) translateY(-50%)}.ec-component-board-container-page-wrap.east.minify .board--wing .app-iconify{transform:rotate(180deg) translateY(50%)}.ec-component-board-container-page-wrap.west{flex-direction:row-reverse;left:0;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3);border-radius:0 2px 0 0}.ec-component-board-container-page-wrap.west .board--wing{z-index:1;box-shadow:-8px 0 10px 0 rgba(64,72,191,.2);transform:translate(100%, -50%);top:50%;right:0;clip-path:polygon(0 0, 100% 18%, 100% 82%, 0% 100%)}.ec-component-board-container-page-wrap.west .board--wing .app-iconify{transform:rotate(180deg) translateY(50%)}.ec-component-board-container-page-wrap.west.minify{transform:translateX(-100%)}.ec-component-board-container-page-wrap.west.minify .board--wing .app-iconify{transform:rotate(0deg) translateY(-50%)}.ec-component-board-container-page-wrap.full{flex-direction:row-reverse;right:0;left:0;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3)}.ec-component-board-container-page-wrap.full .board--wing{display:none;top:-30px;left:calc(50% - 70px);z-index:1;width:140px;height:30px;box-shadow:0 -8px 10px 0 rgba(64,72,191,.2);border-radius:10px 10px 0 0}.ec-component-board-container-page-wrap.full .board--wing .q-icon{transform:rotate(90deg)}.ec-component-board-container-page-wrap.full.minify{transform:translateY(100%)}.ec-component-board-container-page-wrap.full.minify .board--wing .q-icon{transform:rotate(-90deg)}.ec-component-board-container-page-wrap.south{min-width:100px;min-height:100px;left:50%;bottom:11px;transform:translateX(-62%);background:none}.ec-component-board-container-page-wrap.south .board--panels .board--panel-container{position:inherit;padding:0}.ec-component-board-container-page-wrap.south .board--wing{display:none}.ec-component-board-container-page-wrap.south .board--wing .q-icon{display:none}.ec-component-board-container-page-wrap.south.minify{display:none}.ec-component-board-container-page-wrap.south.minify .board--wing .q-icon{display:none}.custom-month-range .el-month-table .current .cell{background-color:var(--el-color-primary);color:#fff !important}.ec-component-svg-icon{display:inline-block;overflow:hidden;vertical-align:-0.15em;fill:currentColor}.svg-icon-spin{animation:loadingCircle 1s infinite linear}.app-iconify{display:inline-block;vertical-align:middle}.app-iconify-spin svg{animation:loadingCircle 1s infinite linear}span.iconify{display:block;min-width:1em;min-height:1em;background-color:rgba(225,223,223,.55);border-radius:100%}.ec-component-input-password :deep(.el-input__clear){margin-left:5px}.ec-component-input-password__bar{background-color:var(--el-text-color-disabled);border-radius:var(--el-border-radius-base)}.ec-component-input-password__bar::before,.ec-component-input-password__bar::after{position:absolute;z-index:10;display:block;width:20%;height:inherit;background-color:rgba(0,0,0,0);border-color:var(--el-color-white);border-style:solid;border-width:0 5px;content:""}.ec-component-input-password__bar::before{left:20%}.ec-component-input-password__bar::after{right:20%}.ec-component-input-password__bar--fill{position:absolute;width:0;height:inherit;background-color:rgba(0,0,0,0);border-radius:inherit;transition:width .5s ease-in-out,background .25s}.ec-component-input-password__bar--fill[data-score="0"]{width:20%;background-color:var(--el-color-danger)}.ec-component-input-password__bar--fill[data-score="1"]{width:40%;background-color:var(--el-color-danger)}.ec-component-input-password__bar--fill[data-score="2"]{width:60%;background-color:var(--el-color-warning)}.ec-component-input-password__bar--fill[data-score="3"]{width:80%;background-color:var(--el-color-success)}.ec-component-input-password__bar--fill[data-score="4"]{width:100%;background-color:var(--el-color-success)}.ec-component-input-password--mini>.ec-component-input-password__bar{border-radius:var(--el-border-radius-small)}.component.modal{position:fixed}.component.modal.maximum .modal--body,.component.modal.maximum,.component.modal.modally,.component.modal.modally.maximum .modal--body{top:0 !important;left:0 !important;width:100% !important;height:100% !important}.component.modal.modally:before{content:"";display:block;position:absolute;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:-1}.component.modal .modal--body{display:flex;flex:1;border-radius:.3rem;background:rgba(0,0,0,0);box-shadow:.1rem .1rem 1.5rem .1rem rgba(64,72,191,.3)}.component.modal.modally .modal--body{position:absolute}.component.modal .modal--content{position:relative;flex:1;display:flex;background:#fff}.component-modal-page-wrap{display:flex;flex-direction:column;min-height:0}.component-modal-page-wrap .component-modal-body{height:100%;width:100%;display:flex;flex-direction:column;min-height:0}.component-modal-page-wrap .component-modal-body .component-modal-header{position:relative;width:100%;height:40px;background:gray}.component-modal-page-wrap .component-modal-body .component-modal-header .modal-header-main-container-wrap{width:100%;height:100%;overflow:hidden;display:flex;align-items:center}.component-modal-page-wrap .component-modal-body .component-modal-header .modal-header-right-control-wrap{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:flex-end;align-items:center}.component-modal-page-wrap .component-modal-body .component-modal-content{flex:1}.component-modal-page-wrap .component-modal-body .component-modal-footer{display:flex;justify-content:center;padding:10px 0}.window--enter-active{animation:animate-window-enter-active 200ms cubic-bezier(0.39, 0.575, 0.565, 1) both}.window--leave-active{animation:animate-window-leave-active 200ms cubic-bezier(0.39, 0.575, 0.565, 1) both}@keyframes animate-window-enter-active{0%{transform:scale(0.5);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-window-leave-active{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}.component.stateful{position:relative;flex:1}.component.stateful .stateful--content{display:flex;position:absolute;width:100%;height:100%;left:0;top:0}.component.stateful .stateful--content.cover{filter:blur(1.25px)}.component.stateful .stateful--cover{position:absolute;width:100%;height:100%;left:0;top:0;display:flex;align-items:center;justify-content:center}.component.stateful .stateful--cover .cover--icon{margin-right:10px}.component.stateful .stateful--cover .cover--box{display:flex;align-items:center;justify-content:center;padding:50px 70px;border-radius:.8rem;box-shadow:.1rem .1rem 1.5rem .1rem rgba(64,72,191,.15);position:relative;overflow:hidden;width:auto;height:auto}.component.stateful .stateful--cover .cover--text{font-size:20px;margin-bottom:2px;font-weight:400;text-shadow:0 0 rgba(64,72,191,.3)}.ec-chart-toolbox-wrap{height:100%;width:100%;min-height:0;min-width:0}.ec-chart-toolbox-wrap .tools-container{min-height:0;display:flex;justify-content:flex-end;cursor:pointer;right:0px;top:0px;gap:10px;z-index:9999}.ec-chart-toolbox-wrap .tools-container .app-iconify{cursor:pointer !important;transition:all .5s ease}.ec-chart-toolbox-wrap .tools-container .app-iconify:hover{transition:all .5s ease;box-shadow:0px 1px 10px 0px rgba(0,0,0,.05),0px 4px 5px 0px rgba(0,0,0,.08),0px 2px 4px -1px rgba(0,0,0,.12)}.wrap-el{position:relative;float:left;width:100%;height:100%;overflow:hidden}.video-player-toolbar{color:#fff;position:absolute;left:0;right:0;bottom:0;height:30px;background:rgba(0,0,0,.5);display:flex;align-items:center;gap:10px;justify-content:flex-end;padding:0px 12px;z-index:1000}.video-player-toolbar .app-iconify{cursor:pointer}
|
|
5
|
+
日期:2024-06-20 09:09:02
|
|
6
|
+
*/.ec-component-board-container-page-wrap{position:fixed;z-index:100;background:#fff;transition:transform 200ms ease-in-out}.ec-component-board-container-page-wrap .board--wing{position:absolute !important;z-index:1;width:18px;height:80px;border-radius:2px;background:rgba(3,19,78,.12);backdrop-filter:blur(2px);box-shadow:2px 1px 1px 0px rgba(0,0,0,.3),-2px -2px 2px 0px #fff;cursor:pointer}.ec-component-board-container-page-wrap .board--wing .app-iconify{position:absolute;top:50%;right:0;font-weight:bolder;color:#fff;transform-origin:50% 50%;max-width:fit-content;max-height:fit-content}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-wrap::after{display:none}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__active-bar{display:none;width:0;height:0}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__item{height:auto;padding:10px;color:var(--board-tab-color);background:#eee}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__item.is-active{color:#fff;background:var(--board-tab-color)}.ec-component-board-container-page-wrap .multiple-toggle-tab .el-tabs__nav-scroll .el-tabs__nav{gap:10px}.ec-component-board-container-page-wrap.east .custom-label,.ec-component-board-container-page-wrap.west .custom-label{display:flex;width:100%;min-height:0;letter-spacing:5px;writing-mode:vertical-lr}.ec-component-board-container-page-wrap.east{flex-direction:row-reverse;right:0;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3);border-radius:2px 0 0}.ec-component-board-container-page-wrap.east .ec-component-board-container-page-wrap__layout{display:flex;flex-direction:row-reverse;align-items:flex-start}.ec-component-board-container-page-wrap.east .board--wing{z-index:1;box-shadow:-8px 0 10px 0 rgba(64,72,191,.2);transform:translate(-100%, -50%);top:50%;left:0;clip-path:polygon(0 18%, 100% 0, 100% 100%, 0 82%)}.ec-component-board-container-page-wrap.east .board--wing .app-iconify{transform:translateY(-50%) rotate(0deg);top:50%;right:-2px}.ec-component-board-container-page-wrap.east.minify .board--wing .app-iconify{transform:rotate(180deg) translateY(50%)}.ec-component-board-container-page-wrap.west{flex-direction:row-reverse;left:0;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3);border-radius:0 2px 0 0}.ec-component-board-container-page-wrap.west .board--wing{z-index:1;box-shadow:-8px 0 10px 0 rgba(64,72,191,.2);transform:translate(100%, -50%);top:50%;right:0;clip-path:polygon(0 0, 100% 18%, 100% 82%, 0% 100%)}.ec-component-board-container-page-wrap.west .board--wing .app-iconify{transform:translateY(-50%) rotate(180deg);top:50%;left:-2px}.ec-component-board-container-page-wrap.west.minify .board--wing .app-iconify{transform:translateY(-50%) rotate(0deg)}.ec-component-board-container-page-wrap.full{flex-direction:row-reverse;right:0;left:0;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3)}.ec-component-board-container-page-wrap.full .board--wing{display:none;top:-30px;left:calc(50% - 70px);z-index:1;width:140px;height:30px;box-shadow:0 -8px 10px 0 rgba(64,72,191,.2);border-radius:10px 10px 0 0}.ec-component-board-container-page-wrap.full.minify{transform:translateY(100%)}.ec-component-board-container-page-wrap.top{top:0px;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3)}.ec-component-board-container-page-wrap.top .ec-component-board-container-page-wrap__layout{display:flex;flex-direction:column}.ec-component-board-container-page-wrap.top .board--wing{height:18px;width:80px;z-index:1;box-shadow:-8px 0 10px 0 rgba(64,72,191,.2);transform:translate(50%, 100%);right:50%;bottom:0px;clip-path:polygon(0% 18%, 100% 18%, 82% 100%, 18% 100%)}.ec-component-board-container-page-wrap.top .board--wing .app-iconify{transform:translateX(-50%) rotate(270deg);left:50%;top:-2px}.ec-component-board-container-page-wrap.top.minify .board--wing .app-iconify{transform:translateX(-50%) rotate(90deg)}.ec-component-board-container-page-wrap.south{bottom:0px;box-shadow:-0.1rem 0 .7rem .1rem rgba(64,72,191,.3)}.ec-component-board-container-page-wrap.south .ec-component-board-container-page-wrap__layout{display:flex;flex-direction:column}.ec-component-board-container-page-wrap.south .board--panels .board--panel-container{position:inherit;padding:0}.ec-component-board-container-page-wrap.south .board--wing{height:18px;width:80px;z-index:1;box-shadow:-8px 0 10px 0 rgba(64,72,191,.2);transform:translate(50%, -100%);right:50%;top:0px;clip-path:polygon(18% 18%, 82% 18%, 100% 100%, 0% 100%)}.ec-component-board-container-page-wrap.south .board--wing .app-iconify{transform:translateX(-50%) rotate(90deg);left:50%;top:-2px}.ec-component-board-container-page-wrap.south.minify .board--wing .app-iconify{transform:translateX(-50%) rotate(270deg)}.custom-month-range .el-month-table .current .cell{background-color:var(--el-color-primary);color:#fff !important}.ec-component-svg-icon{display:inline-block;overflow:hidden;vertical-align:-0.15em;fill:currentColor}.svg-icon-spin{animation:loadingCircle 1s infinite linear}.app-iconify{display:inline-block;vertical-align:middle}.app-iconify-spin svg{animation:loadingCircle 1s infinite linear}span.iconify{display:block;min-width:1em;min-height:1em;background-color:rgba(225,223,223,.55);border-radius:100%}.ec-component-input-password :deep(.el-input__clear){margin-left:5px}.ec-component-input-password__bar{background-color:var(--el-text-color-disabled);border-radius:var(--el-border-radius-base)}.ec-component-input-password__bar::before,.ec-component-input-password__bar::after{position:absolute;z-index:10;display:block;width:20%;height:inherit;background-color:rgba(0,0,0,0);border-color:var(--el-color-white);border-style:solid;border-width:0 5px;content:""}.ec-component-input-password__bar::before{left:20%}.ec-component-input-password__bar::after{right:20%}.ec-component-input-password__bar--fill{position:absolute;width:0;height:inherit;background-color:rgba(0,0,0,0);border-radius:inherit;transition:width .5s ease-in-out,background .25s}.ec-component-input-password__bar--fill[data-score="0"]{width:20%;background-color:var(--el-color-danger)}.ec-component-input-password__bar--fill[data-score="1"]{width:40%;background-color:var(--el-color-danger)}.ec-component-input-password__bar--fill[data-score="2"]{width:60%;background-color:var(--el-color-warning)}.ec-component-input-password__bar--fill[data-score="3"]{width:80%;background-color:var(--el-color-success)}.ec-component-input-password__bar--fill[data-score="4"]{width:100%;background-color:var(--el-color-success)}.ec-component-input-password--mini>.ec-component-input-password__bar{border-radius:var(--el-border-radius-small)}.component.modal{position:fixed}.component.modal.maximum .modal--body,.component.modal.maximum,.component.modal.modally,.component.modal.modally.maximum .modal--body{top:0 !important;left:0 !important;width:100% !important;height:100% !important}.component.modal.modally:before{content:"";display:block;position:absolute;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:-1}.component.modal .modal--body{display:flex;flex:1;border-radius:.3rem;background:rgba(0,0,0,0);box-shadow:.1rem .1rem 1.5rem .1rem rgba(64,72,191,.3)}.component.modal.modally .modal--body{position:absolute}.component.modal .modal--content{position:relative;flex:1;display:flex;background:#fff;flex-direction:column}.component-modal-page-wrap{display:flex;flex-direction:column;min-height:0}.component-modal-page-wrap .component-modal-body{height:100%;width:100%;display:flex;flex-direction:column;min-height:0}.component-modal-page-wrap .component-modal-body .component-modal-header{position:relative;width:100%;height:40px}.component-modal-page-wrap .component-modal-body .component-modal-header .modal-header-main-container-wrap{width:100%;height:100%;overflow:hidden;display:flex;align-items:center}.component-modal-page-wrap .component-modal-body .component-modal-header .modal-header-right-control-wrap{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-right:10px}.component-modal-page-wrap .component-modal-body .component-modal-content{flex:1}.component-modal-page-wrap .component-modal-body .component-modal-footer{display:flex;justify-content:center;padding:10px 0}.window--enter-active{animation:animate-window-enter-active 200ms cubic-bezier(0.39, 0.575, 0.565, 1) both}.window--leave-active{animation:animate-window-leave-active 200ms cubic-bezier(0.39, 0.575, 0.565, 1) both}@keyframes animate-window-enter-active{0%{transform:scale(0.5);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-window-leave-active{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}.component.stateful{position:relative;flex:1}.component.stateful .stateful--content{display:flex;position:absolute;width:100%;height:100%;left:0;top:0}.component.stateful .stateful--content.cover{filter:blur(1.25px)}.component.stateful .stateful--cover{position:absolute;width:100%;height:100%;left:0;top:0;display:flex;align-items:center;justify-content:center}.component.stateful .stateful--cover .cover--icon{margin-right:10px}.component.stateful .stateful--cover .cover--box{display:flex;align-items:center;justify-content:center;padding:50px 70px;border-radius:.8rem;box-shadow:.1rem .1rem 1.5rem .1rem rgba(64,72,191,.15);position:relative;overflow:hidden;width:auto;height:auto}.component.stateful .stateful--cover .cover--text{font-size:20px;margin-bottom:2px;font-weight:400;text-shadow:0 0 rgba(64,72,191,.3)}.ec-chart-toolbox-wrap{height:100%;width:100%;min-height:0;min-width:0}.ec-chart-toolbox-wrap .tools-container{min-height:0;display:flex;justify-content:flex-end;cursor:pointer;right:0px;top:0px;gap:10px;z-index:9999}.ec-chart-toolbox-wrap .tools-container .app-iconify{cursor:pointer !important;transition:all .5s ease}.ec-chart-toolbox-wrap .tools-container .app-iconify:hover{transition:all .5s ease;box-shadow:0px 1px 10px 0px rgba(0,0,0,.05),0px 4px 5px 0px rgba(0,0,0,.08),0px 2px 4px -1px rgba(0,0,0,.12)}.wrap-el{position:relative;float:left;width:100%;height:100%;overflow:hidden}.video-player-toolbar{color:#fff;position:absolute;left:0;right:0;bottom:0;height:30px;background:rgba(0,0,0,.5);display:flex;align-items:center;gap:10px;justify-content:flex-end;padding:0px 12px;z-index:1000}.video-player-toolbar .app-iconify{cursor:pointer}.component.node-axis{position:relative}.component.node-axis .node-axis--overlay{top:0;left:0;position:absolute;background:rgba(0,0,0,.7);backdrop-filter:blur(10px);box-shadow:0 0 5px 1px rgba(0,0,0,.5);color:#fff;padding:5px;font-size:14px;letter-spacing:1px;display:flex;align-items:center;justify-content:center;border-radius:3px;word-break:keep-all;white-space:nowrap;transition:all 80ms linear;opacity:0}
|
package/dist/node_modules/.pnpm/@vueuse_core@10.7.2_vue@3.4.21/node_modules/@vueuse/core/index.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
1
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
2
|
import '@babel/runtime/helpers/typeof';
|
|
3
3
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
7
7
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
8
|
-
import { tryOnScopeDispose, toValue, noop, isObject, isClient } from '../../../../@vueuse_shared@10.7.2_vue@3.4.21/node_modules/@vueuse/shared/index.js';
|
|
8
|
+
import { tryOnMounted, tryOnScopeDispose, toValue, noop, isObject, isClient } from '../../../../@vueuse_shared@10.7.2_vue@3.4.21/node_modules/@vueuse/shared/index.js';
|
|
9
9
|
export { getLifeCycleTarget, tryOnUnmounted } from '../../../../@vueuse_shared@10.7.2_vue@3.4.21/node_modules/@vueuse/shared/index.js';
|
|
10
|
-
import {
|
|
10
|
+
import { ref, watch, computed, getCurrentInstance, onMounted } from 'vue';
|
|
11
11
|
|
|
12
|
+
var _excluded = ["window"],
|
|
13
|
+
_excluded2 = ["window"];
|
|
14
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
15
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
17
|
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; }
|
|
13
18
|
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; }
|
|
14
19
|
function unrefElement(elRef) {
|
|
@@ -94,6 +99,172 @@ function useSupported(callback) {
|
|
|
94
99
|
return Boolean(callback());
|
|
95
100
|
});
|
|
96
101
|
}
|
|
102
|
+
function useMutationObserver(target, callback) {
|
|
103
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
104
|
+
var _options$window10 = options.window,
|
|
105
|
+
window = _options$window10 === void 0 ? defaultWindow : _options$window10,
|
|
106
|
+
mutationOptions = _objectWithoutProperties(options, _excluded);
|
|
107
|
+
var observer;
|
|
108
|
+
var isSupported = useSupported(function () {
|
|
109
|
+
return window && "MutationObserver" in window;
|
|
110
|
+
});
|
|
111
|
+
var cleanup = function cleanup() {
|
|
112
|
+
if (observer) {
|
|
113
|
+
observer.disconnect();
|
|
114
|
+
observer = void 0;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var stopWatch = watch(function () {
|
|
118
|
+
return unrefElement(target);
|
|
119
|
+
}, function (el) {
|
|
120
|
+
cleanup();
|
|
121
|
+
if (isSupported.value && window && el) {
|
|
122
|
+
observer = new MutationObserver(callback);
|
|
123
|
+
observer.observe(el, mutationOptions);
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
immediate: true
|
|
127
|
+
});
|
|
128
|
+
var takeRecords = function takeRecords() {
|
|
129
|
+
return observer == null ? void 0 : observer.takeRecords();
|
|
130
|
+
};
|
|
131
|
+
var stop = function stop() {
|
|
132
|
+
cleanup();
|
|
133
|
+
stopWatch();
|
|
134
|
+
};
|
|
135
|
+
tryOnScopeDispose(stop);
|
|
136
|
+
return {
|
|
137
|
+
isSupported: isSupported,
|
|
138
|
+
stop: stop,
|
|
139
|
+
takeRecords: takeRecords
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function useResizeObserver(target, callback) {
|
|
143
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
144
|
+
var _options$window16 = options.window,
|
|
145
|
+
window = _options$window16 === void 0 ? defaultWindow : _options$window16,
|
|
146
|
+
observerOptions = _objectWithoutProperties(options, _excluded2);
|
|
147
|
+
var observer;
|
|
148
|
+
var isSupported = useSupported(function () {
|
|
149
|
+
return window && "ResizeObserver" in window;
|
|
150
|
+
});
|
|
151
|
+
var cleanup = function cleanup() {
|
|
152
|
+
if (observer) {
|
|
153
|
+
observer.disconnect();
|
|
154
|
+
observer = void 0;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
var targets = computed(function () {
|
|
158
|
+
return Array.isArray(target) ? target.map(function (el) {
|
|
159
|
+
return unrefElement(el);
|
|
160
|
+
}) : [unrefElement(target)];
|
|
161
|
+
});
|
|
162
|
+
var stopWatch = watch(targets, function (els) {
|
|
163
|
+
cleanup();
|
|
164
|
+
if (isSupported.value && window) {
|
|
165
|
+
observer = new ResizeObserver(callback);
|
|
166
|
+
var _iterator3 = _createForOfIteratorHelper(els),
|
|
167
|
+
_step3;
|
|
168
|
+
try {
|
|
169
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
170
|
+
var _el = _step3.value;
|
|
171
|
+
_el && observer.observe(_el, observerOptions);
|
|
172
|
+
}
|
|
173
|
+
} catch (err) {
|
|
174
|
+
_iterator3.e(err);
|
|
175
|
+
} finally {
|
|
176
|
+
_iterator3.f();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
immediate: true,
|
|
181
|
+
flush: "post",
|
|
182
|
+
deep: true
|
|
183
|
+
});
|
|
184
|
+
var stop = function stop() {
|
|
185
|
+
cleanup();
|
|
186
|
+
stopWatch();
|
|
187
|
+
};
|
|
188
|
+
tryOnScopeDispose(stop);
|
|
189
|
+
return {
|
|
190
|
+
isSupported: isSupported,
|
|
191
|
+
stop: stop
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
function useElementBounding(target) {
|
|
195
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
196
|
+
var _options$reset = options.reset,
|
|
197
|
+
reset = _options$reset === void 0 ? true : _options$reset,
|
|
198
|
+
_options$windowResize = options.windowResize,
|
|
199
|
+
windowResize = _options$windowResize === void 0 ? true : _options$windowResize,
|
|
200
|
+
_options$windowScroll = options.windowScroll,
|
|
201
|
+
windowScroll = _options$windowScroll === void 0 ? true : _options$windowScroll,
|
|
202
|
+
_options$immediate3 = options.immediate,
|
|
203
|
+
immediate = _options$immediate3 === void 0 ? true : _options$immediate3;
|
|
204
|
+
var height = ref(0);
|
|
205
|
+
var bottom = ref(0);
|
|
206
|
+
var left = ref(0);
|
|
207
|
+
var right = ref(0);
|
|
208
|
+
var top = ref(0);
|
|
209
|
+
var width = ref(0);
|
|
210
|
+
var x = ref(0);
|
|
211
|
+
var y = ref(0);
|
|
212
|
+
function update() {
|
|
213
|
+
var el = unrefElement(target);
|
|
214
|
+
if (!el) {
|
|
215
|
+
if (reset) {
|
|
216
|
+
height.value = 0;
|
|
217
|
+
bottom.value = 0;
|
|
218
|
+
left.value = 0;
|
|
219
|
+
right.value = 0;
|
|
220
|
+
top.value = 0;
|
|
221
|
+
width.value = 0;
|
|
222
|
+
x.value = 0;
|
|
223
|
+
y.value = 0;
|
|
224
|
+
}
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
var rect = el.getBoundingClientRect();
|
|
228
|
+
height.value = rect.height;
|
|
229
|
+
bottom.value = rect.bottom;
|
|
230
|
+
left.value = rect.left;
|
|
231
|
+
right.value = rect.right;
|
|
232
|
+
top.value = rect.top;
|
|
233
|
+
width.value = rect.width;
|
|
234
|
+
x.value = rect.x;
|
|
235
|
+
y.value = rect.y;
|
|
236
|
+
}
|
|
237
|
+
useResizeObserver(target, update);
|
|
238
|
+
watch(function () {
|
|
239
|
+
return unrefElement(target);
|
|
240
|
+
}, function (ele) {
|
|
241
|
+
return !ele && update();
|
|
242
|
+
});
|
|
243
|
+
useMutationObserver(target, update, {
|
|
244
|
+
attributeFilter: ["style", "class"]
|
|
245
|
+
});
|
|
246
|
+
if (windowScroll) useEventListener("scroll", update, {
|
|
247
|
+
capture: true,
|
|
248
|
+
passive: true
|
|
249
|
+
});
|
|
250
|
+
if (windowResize) useEventListener("resize", update, {
|
|
251
|
+
passive: true
|
|
252
|
+
});
|
|
253
|
+
tryOnMounted(function () {
|
|
254
|
+
if (immediate) update();
|
|
255
|
+
});
|
|
256
|
+
return {
|
|
257
|
+
height: height,
|
|
258
|
+
bottom: bottom,
|
|
259
|
+
left: left,
|
|
260
|
+
right: right,
|
|
261
|
+
top: top,
|
|
262
|
+
width: width,
|
|
263
|
+
x: x,
|
|
264
|
+
y: y,
|
|
265
|
+
update: update
|
|
266
|
+
};
|
|
267
|
+
}
|
|
97
268
|
var eventHandlers = ["fullscreenchange", "webkitfullscreenchange", "webkitendfullscreen", "mozfullscreenchange", "MSFullscreenChange"];
|
|
98
269
|
function useFullscreen(target) {
|
|
99
270
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -265,4 +436,4 @@ function useFullscreen(target) {
|
|
|
265
436
|
};
|
|
266
437
|
}
|
|
267
438
|
|
|
268
|
-
export { defaultDocument, defaultWindow, isClient, isObject, noop, toValue, tryOnScopeDispose, unrefElement, useEventListener, useFullscreen, useMounted, useSupported };
|
|
439
|
+
export { defaultDocument, defaultWindow, isClient, isObject, noop, toValue, tryOnMounted, tryOnScopeDispose, unrefElement, useElementBounding, useEventListener, useFullscreen, useMounted, useMutationObserver, useResizeObserver, useSupported };
|
|
@@ -4,7 +4,7 @@ import '@babel/runtime/helpers/toConsumableArray';
|
|
|
4
4
|
import '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/regenerator';
|
|
7
|
-
import { getCurrentScope, onScopeDispose,
|
|
7
|
+
import { getCurrentScope, onScopeDispose, onMounted, nextTick, unref, getCurrentInstance, onUnmounted } from 'vue';
|
|
8
8
|
|
|
9
9
|
function tryOnScopeDispose(fn) {
|
|
10
10
|
if (getCurrentScope()) {
|
|
@@ -26,9 +26,15 @@ var noop = function noop() {};
|
|
|
26
26
|
function getLifeCycleTarget(target) {
|
|
27
27
|
return target || getCurrentInstance();
|
|
28
28
|
}
|
|
29
|
+
function tryOnMounted(fn) {
|
|
30
|
+
var sync = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
31
|
+
var target = arguments.length > 2 ? arguments[2] : undefined;
|
|
32
|
+
var instance = getLifeCycleTarget();
|
|
33
|
+
if (instance) onMounted(fn, target);else if (sync) fn();else nextTick(fn);
|
|
34
|
+
}
|
|
29
35
|
function tryOnUnmounted(fn, target) {
|
|
30
36
|
var instance = getLifeCycleTarget(target);
|
|
31
37
|
if (instance) onUnmounted(fn, target);
|
|
32
38
|
}
|
|
33
39
|
|
|
34
|
-
export { getLifeCycleTarget, isClient, isObject, noop, toValue, tryOnScopeDispose, tryOnUnmounted };
|
|
40
|
+
export { getLifeCycleTarget, isClient, isObject, noop, toValue, tryOnMounted, tryOnScopeDispose, tryOnUnmounted };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfsj/components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "通用的vue组件;包括专业组件、原子级组件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.24.0",
|
|
46
|
-
"@dfsj/echarts": "^3.1.
|
|
47
|
-
"@dfsj/utils": "^3.1.
|
|
46
|
+
"@dfsj/echarts": "^3.1.2",
|
|
47
|
+
"@dfsj/utils": "^3.1.2",
|
|
48
48
|
"@element-plus/icons-vue": "^2.3.1",
|
|
49
49
|
"@iconify/iconify": "^3.1.1",
|
|
50
50
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -52,10 +52,12 @@
|
|
|
52
52
|
"@zxcvbn-ts/core": "^3.0.4",
|
|
53
53
|
"dayjs": "^1.11.7",
|
|
54
54
|
"lodash-es": "^4.17.21",
|
|
55
|
+
"luxon": "^3.4.4",
|
|
55
56
|
"vue-draggable-plus": "^0.3.5",
|
|
56
|
-
"vue-types": "^5.0.2"
|
|
57
|
+
"vue-types": "^5.0.2",
|
|
58
|
+
"zrender": "^5.5.0"
|
|
57
59
|
},
|
|
58
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "5337773b676c3cb5ae330505db675b1f44a1fd54",
|
|
59
61
|
"module": "dist/index.js",
|
|
60
62
|
"browser": "dist/index.js",
|
|
61
63
|
"types": "dist/index.d.ts",
|