@dfsj/components 3.7.2 → 4.0.0-alpha.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 +57 -449
- 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 -147
- package/dist/components/Boards/src/hooKs/useStyle.d.ts +16 -4
- package/dist/components/Boards/src/hooKs/useStyle.js +10 -99
- package/dist/components/Boards/src/props.d.ts +6 -22
- package/dist/components/Boards/src/props.js +10 -55
- 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 -388
- 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 -34
- 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.d.ts +9 -5
- package/dist/components/Visual/src/BufferLayerPlayer.js +10 -288
- 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 -2
- package/dist/index.js +11 -53
- 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 +93 -66
- package/dist/components/Boards/src/Boards.vue.d.ts +0 -102
- package/dist/components/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -7
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/src/composables/use-month-range-header.d.ts +0 -16
- package/dist/components/DatePicker/src/composables/use-month-range-header.js +0 -52
- package/dist/components/DatePicker/src/composables/use-range-picker.d.ts +0 -173
- package/dist/components/DatePicker/src/composables/use-range-picker.js +0 -99
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +0 -19
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.js +0 -5
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue2.js +0 -564
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +0 -16
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.js +0 -5
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue2.js +0 -210
- package/dist/components/DatePicker/src/index.d.ts +0 -224
- package/dist/components/DatePicker/src/index.js +0 -87
- package/dist/components/DatePicker/src/panel-utils.d.ts +0 -2
- package/dist/components/DatePicker/src/panel-utils.js +0 -25
- 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/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/components/src/components/Boards/src/hooKs/useStyle.d.ts +0 -9
- package/dist/components/src/components/DatePicker/src/composables/use-month-range-header.d.ts +0 -16
- package/dist/components/src/components/DatePicker/src/composables/use-range-picker.d.ts +0 -173
- package/dist/components/src/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +0 -19
- package/dist/components/src/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +0 -16
- package/dist/components/src/components/Descriptions/src/Descriptions.vue.d.ts +0 -97
- package/dist/components/src/components/Form/src/components/useRenderCheckbox.d.ts +0 -4
- package/dist/components/src/components/Form/src/components/useRenderRadio.d.ts +0 -4
- package/dist/components/src/components/Form/src/components/useRenderSelect.d.ts +0 -4
- package/dist/components/src/components/Form/src/helper/componentMap.d.ts +0 -5
- package/dist/components/src/components/Form/src/helper/index.d.ts +0 -7
- package/dist/components/src/components/InputPassword/src/InputPassword.vue.d.ts +0 -27
- package/dist/components/src/components/Modal/src/hooks/useTimeout.d.ts +0 -15
- package/dist/components/src/components/Modal/src/utils/index.d.ts +0 -3
- package/dist/components/src/components/NodeAxis/src/BCanvasNodeRender.d.ts +0 -19
- package/dist/components/src/components/NodeAxis/src/NodeAxis.d.ts +0 -12
- package/dist/components/src/components/NodeAxis/src/NodeAxis.vue.d.ts +0 -17
- package/dist/components/src/components/NodeAxis/src/TimerNodePlayer.d.ts +0 -19
- package/dist/components/src/components/NodeAxis/src/interface/NodePlayer.d.ts +0 -9
- package/dist/components/src/components/Table/src/components/ColumnSetting.vue.d.ts +0 -30
- package/dist/components/src/components/Table/src/components/TableActions.vue.d.ts +0 -96
- package/dist/components/src/components/Table/src/helper/index.d.ts +0 -2
- package/dist/components/src/components/Video/src/VideoPlayerToolbar.vue.d.ts +0 -34
- package/dist/components/src/components/Video/src/abstract/AbstractVideoControl.d.ts +0 -7
- package/dist/components/src/components/Video/src/abstract/Observable.d.ts +0 -6
- package/dist/components/src/components/Video/src/abstract/VideoControl.d.ts +0 -32
- package/dist/components/src/components/Video/src/control/DaHua.d.ts +0 -12
- package/dist/components/src/components/Video/src/control/Hikvision.d.ts +0 -28
- package/dist/components/src/components/Video/src/control/VideoFactory.d.ts +0 -3
- package/dist/components/src/components/Video/src/enums/CommonEnum.d.ts +0 -26
- package/dist/components/src/helper/lang.d.ts +0 -1
- package/dist/components/src/themes/index.d.ts +0 -1
- package/dist/components/src/utils/index.d.ts +0 -11
- package/dist/helper/lang.d.ts +0 -1
- package/dist/helper/lang.js +0 -546
- package/dist/node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/core/index.js +0 -335
- package/dist/node_modules/.pnpm/@vueuse_core@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/core/index.js +0 -393
- package/dist/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/shared/index.js +0 -40
- package/dist/node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/shared/index.js +0 -53
|
@@ -1,290 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
5
10
|
|
|
6
|
-
var
|
|
7
|
-
var formRef = ref();
|
|
8
|
-
var elFormRef = ref();
|
|
9
|
-
var register = function register(ref, elRef) {
|
|
10
|
-
formRef.value = ref;
|
|
11
|
-
elFormRef.value = elRef;
|
|
12
|
-
};
|
|
13
|
-
var getForm = /*#__PURE__*/function () {
|
|
14
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
15
|
-
var form;
|
|
16
|
-
return _regeneratorRuntime.wrap(function (_context) {
|
|
17
|
-
while (1) switch (_context.prev = _context.next) {
|
|
18
|
-
case 0:
|
|
19
|
-
_context.next = 1;
|
|
20
|
-
return nextTick();
|
|
21
|
-
case 1:
|
|
22
|
-
form = unref(formRef);
|
|
23
|
-
if (!form) {
|
|
24
|
-
console.error('The form is not registered. Please use the register method to register');
|
|
25
|
-
}
|
|
26
|
-
return _context.abrupt("return", form);
|
|
27
|
-
case 2:
|
|
28
|
-
case "end":
|
|
29
|
-
return _context.stop();
|
|
30
|
-
}
|
|
31
|
-
}, _callee);
|
|
32
|
-
}));
|
|
33
|
-
return function getForm() {
|
|
34
|
-
return _ref.apply(this, arguments);
|
|
35
|
-
};
|
|
36
|
-
}();
|
|
37
|
-
var methods = {
|
|
38
|
-
setProps: function () {
|
|
39
|
-
var _setProps = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
40
|
-
var props,
|
|
41
|
-
form,
|
|
42
|
-
_args2 = arguments;
|
|
43
|
-
return _regeneratorRuntime.wrap(function (_context2) {
|
|
44
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
45
|
-
case 0:
|
|
46
|
-
props = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
47
|
-
_context2.next = 1;
|
|
48
|
-
return getForm();
|
|
49
|
-
case 1:
|
|
50
|
-
form = _context2.sent;
|
|
51
|
-
form === null || form === void 0 || form.setProps(props);
|
|
52
|
-
if (props.model) {
|
|
53
|
-
form === null || form === void 0 || form.setValues(props.model);
|
|
54
|
-
}
|
|
55
|
-
case 2:
|
|
56
|
-
case "end":
|
|
57
|
-
return _context2.stop();
|
|
58
|
-
}
|
|
59
|
-
}, _callee2);
|
|
60
|
-
}));
|
|
61
|
-
function setProps() {
|
|
62
|
-
return _setProps.apply(this, arguments);
|
|
63
|
-
}
|
|
64
|
-
return setProps;
|
|
65
|
-
}(),
|
|
66
|
-
setValues: function () {
|
|
67
|
-
var _setValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data) {
|
|
68
|
-
var form;
|
|
69
|
-
return _regeneratorRuntime.wrap(function (_context3) {
|
|
70
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
71
|
-
case 0:
|
|
72
|
-
_context3.next = 1;
|
|
73
|
-
return getForm();
|
|
74
|
-
case 1:
|
|
75
|
-
form = _context3.sent;
|
|
76
|
-
form === null || form === void 0 || form.setValues(data);
|
|
77
|
-
case 2:
|
|
78
|
-
case "end":
|
|
79
|
-
return _context3.stop();
|
|
80
|
-
}
|
|
81
|
-
}, _callee3);
|
|
82
|
-
}));
|
|
83
|
-
function setValues(_x) {
|
|
84
|
-
return _setValues.apply(this, arguments);
|
|
85
|
-
}
|
|
86
|
-
return setValues;
|
|
87
|
-
}(),
|
|
88
|
-
setSchema: function () {
|
|
89
|
-
var _setSchema = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(schemaProps) {
|
|
90
|
-
var form;
|
|
91
|
-
return _regeneratorRuntime.wrap(function (_context4) {
|
|
92
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
93
|
-
case 0:
|
|
94
|
-
_context4.next = 1;
|
|
95
|
-
return getForm();
|
|
96
|
-
case 1:
|
|
97
|
-
form = _context4.sent;
|
|
98
|
-
form === null || form === void 0 || form.setSchema(schemaProps);
|
|
99
|
-
case 2:
|
|
100
|
-
case "end":
|
|
101
|
-
return _context4.stop();
|
|
102
|
-
}
|
|
103
|
-
}, _callee4);
|
|
104
|
-
}));
|
|
105
|
-
function setSchema(_x2) {
|
|
106
|
-
return _setSchema.apply(this, arguments);
|
|
107
|
-
}
|
|
108
|
-
return setSchema;
|
|
109
|
-
}(),
|
|
110
|
-
addSchema: function () {
|
|
111
|
-
var _addSchema = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(formSchema, index) {
|
|
112
|
-
var form;
|
|
113
|
-
return _regeneratorRuntime.wrap(function (_context5) {
|
|
114
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
115
|
-
case 0:
|
|
116
|
-
_context5.next = 1;
|
|
117
|
-
return getForm();
|
|
118
|
-
case 1:
|
|
119
|
-
form = _context5.sent;
|
|
120
|
-
form === null || form === void 0 || form.addSchema(formSchema, index);
|
|
121
|
-
case 2:
|
|
122
|
-
case "end":
|
|
123
|
-
return _context5.stop();
|
|
124
|
-
}
|
|
125
|
-
}, _callee5);
|
|
126
|
-
}));
|
|
127
|
-
function addSchema(_x3, _x4) {
|
|
128
|
-
return _addSchema.apply(this, arguments);
|
|
129
|
-
}
|
|
130
|
-
return addSchema;
|
|
131
|
-
}(),
|
|
132
|
-
delSchema: function () {
|
|
133
|
-
var _delSchema = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(field) {
|
|
134
|
-
var form;
|
|
135
|
-
return _regeneratorRuntime.wrap(function (_context6) {
|
|
136
|
-
while (1) switch (_context6.prev = _context6.next) {
|
|
137
|
-
case 0:
|
|
138
|
-
_context6.next = 1;
|
|
139
|
-
return getForm();
|
|
140
|
-
case 1:
|
|
141
|
-
form = _context6.sent;
|
|
142
|
-
form === null || form === void 0 || form.delSchema(field);
|
|
143
|
-
case 2:
|
|
144
|
-
case "end":
|
|
145
|
-
return _context6.stop();
|
|
146
|
-
}
|
|
147
|
-
}, _callee6);
|
|
148
|
-
}));
|
|
149
|
-
function delSchema(_x5) {
|
|
150
|
-
return _delSchema.apply(this, arguments);
|
|
151
|
-
}
|
|
152
|
-
return delSchema;
|
|
153
|
-
}(),
|
|
154
|
-
getFormData: function () {
|
|
155
|
-
var _getFormData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
156
|
-
var filterEmptyVal,
|
|
157
|
-
form,
|
|
158
|
-
model,
|
|
159
|
-
_args7 = arguments;
|
|
160
|
-
return _regeneratorRuntime.wrap(function (_context7) {
|
|
161
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
162
|
-
case 0:
|
|
163
|
-
filterEmptyVal = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : true;
|
|
164
|
-
_context7.next = 1;
|
|
165
|
-
return getForm();
|
|
166
|
-
case 1:
|
|
167
|
-
form = _context7.sent;
|
|
168
|
-
model = form === null || form === void 0 ? void 0 : form.formModel;
|
|
169
|
-
if (!filterEmptyVal) {
|
|
170
|
-
_context7.next = 2;
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
return _context7.abrupt("return", Object.keys(model).reduce(function (prev, next) {
|
|
174
|
-
var value = model[next];
|
|
175
|
-
if (!isEmpty(value)) {
|
|
176
|
-
if (isObject(value)) {
|
|
177
|
-
if (Object.keys(value).length > 0) {
|
|
178
|
-
prev[next] = value;
|
|
179
|
-
}
|
|
180
|
-
} else {
|
|
181
|
-
prev[next] = value;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return prev;
|
|
185
|
-
}, {}));
|
|
186
|
-
case 2:
|
|
187
|
-
return _context7.abrupt("return", model);
|
|
188
|
-
case 3:
|
|
189
|
-
case "end":
|
|
190
|
-
return _context7.stop();
|
|
191
|
-
}
|
|
192
|
-
}, _callee7);
|
|
193
|
-
}));
|
|
194
|
-
function getFormData() {
|
|
195
|
-
return _getFormData.apply(this, arguments);
|
|
196
|
-
}
|
|
197
|
-
return getFormData;
|
|
198
|
-
}(),
|
|
199
|
-
getComponentExpose: function () {
|
|
200
|
-
var _getComponentExpose = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(field) {
|
|
201
|
-
var form;
|
|
202
|
-
return _regeneratorRuntime.wrap(function (_context8) {
|
|
203
|
-
while (1) switch (_context8.prev = _context8.next) {
|
|
204
|
-
case 0:
|
|
205
|
-
_context8.next = 1;
|
|
206
|
-
return getForm();
|
|
207
|
-
case 1:
|
|
208
|
-
form = _context8.sent;
|
|
209
|
-
return _context8.abrupt("return", form === null || form === void 0 ? void 0 : form.getComponentExpose(field));
|
|
210
|
-
case 2:
|
|
211
|
-
case "end":
|
|
212
|
-
return _context8.stop();
|
|
213
|
-
}
|
|
214
|
-
}, _callee8);
|
|
215
|
-
}));
|
|
216
|
-
function getComponentExpose(_x6) {
|
|
217
|
-
return _getComponentExpose.apply(this, arguments);
|
|
218
|
-
}
|
|
219
|
-
return getComponentExpose;
|
|
220
|
-
}(),
|
|
221
|
-
getFormItemExpose: function () {
|
|
222
|
-
var _getFormItemExpose = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(field) {
|
|
223
|
-
var form;
|
|
224
|
-
return _regeneratorRuntime.wrap(function (_context9) {
|
|
225
|
-
while (1) switch (_context9.prev = _context9.next) {
|
|
226
|
-
case 0:
|
|
227
|
-
_context9.next = 1;
|
|
228
|
-
return getForm();
|
|
229
|
-
case 1:
|
|
230
|
-
form = _context9.sent;
|
|
231
|
-
return _context9.abrupt("return", form === null || form === void 0 ? void 0 : form.getFormItemExpose(field));
|
|
232
|
-
case 2:
|
|
233
|
-
case "end":
|
|
234
|
-
return _context9.stop();
|
|
235
|
-
}
|
|
236
|
-
}, _callee9);
|
|
237
|
-
}));
|
|
238
|
-
function getFormItemExpose(_x7) {
|
|
239
|
-
return _getFormItemExpose.apply(this, arguments);
|
|
240
|
-
}
|
|
241
|
-
return getFormItemExpose;
|
|
242
|
-
}(),
|
|
243
|
-
getElFormExpose: function () {
|
|
244
|
-
var _getElFormExpose = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee0() {
|
|
245
|
-
return _regeneratorRuntime.wrap(function (_context0) {
|
|
246
|
-
while (1) switch (_context0.prev = _context0.next) {
|
|
247
|
-
case 0:
|
|
248
|
-
_context0.next = 1;
|
|
249
|
-
return getForm();
|
|
250
|
-
case 1:
|
|
251
|
-
return _context0.abrupt("return", unref(elFormRef));
|
|
252
|
-
case 2:
|
|
253
|
-
case "end":
|
|
254
|
-
return _context0.stop();
|
|
255
|
-
}
|
|
256
|
-
}, _callee0);
|
|
257
|
-
}));
|
|
258
|
-
function getElFormExpose() {
|
|
259
|
-
return _getElFormExpose.apply(this, arguments);
|
|
260
|
-
}
|
|
261
|
-
return getElFormExpose;
|
|
262
|
-
}(),
|
|
263
|
-
getFormExpose: function () {
|
|
264
|
-
var _getFormExpose = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee1() {
|
|
265
|
-
return _regeneratorRuntime.wrap(function (_context1) {
|
|
266
|
-
while (1) switch (_context1.prev = _context1.next) {
|
|
267
|
-
case 0:
|
|
268
|
-
_context1.next = 1;
|
|
269
|
-
return getForm();
|
|
270
|
-
case 1:
|
|
271
|
-
return _context1.abrupt("return", unref(formRef));
|
|
272
|
-
case 2:
|
|
273
|
-
case "end":
|
|
274
|
-
return _context1.stop();
|
|
275
|
-
}
|
|
276
|
-
}, _callee1);
|
|
277
|
-
}));
|
|
278
|
-
function getFormExpose() {
|
|
279
|
-
return _getFormExpose.apply(this, arguments);
|
|
280
|
-
}
|
|
281
|
-
return getFormExpose;
|
|
282
|
-
}()
|
|
283
|
-
};
|
|
284
|
-
return {
|
|
285
|
-
formRegister: register,
|
|
286
|
-
formMethods: methods
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
export { useForm };
|
|
11
|
+
import{asyncToGenerator as n,regenerator as r}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{ref as e,unref as t,nextTick as u}from"vue";import{isEmpty as o,isObject as a}from"@dfsj/utils";var c=function(){var c,s,i,f,l,m,p,h,v,w,d=e(),g=e(),y=function(){var e=n(r().m(function n(){var e;return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,u();case 1:return(e=t(d))||console.error("The form is not registered. Please use the register method to register"),n.a(2,e)}},n)}));return function(){return e.apply(this,arguments)}}(),x={setProps:(w=n(r().m(function n(){var e,t,u=arguments;return r().w(function(n){for(;;)switch(n.n){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:{},n.n=1,y();case 1:null==(t=n.v)||t.setProps(e),e.model&&(null==t||t.setValues(e.model));case 2:return n.a(2)}},n)})),function(){return w.apply(this,arguments)}),setValues:(v=n(r().m(function n(e){var t;return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:null==(t=n.v)||t.setValues(e);case 2:return n.a(2)}},n)})),function(n){return v.apply(this,arguments)}),setSchema:(h=n(r().m(function n(e){var t;return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:null==(t=n.v)||t.setSchema(e);case 2:return n.a(2)}},n)})),function(n){return h.apply(this,arguments)}),addSchema:(p=n(r().m(function n(e,t){var u;return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:null==(u=n.v)||u.addSchema(e,t);case 2:return n.a(2)}},n)})),function(n,r){return p.apply(this,arguments)}),delSchema:(m=n(r().m(function n(e){var t;return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:null==(t=n.v)||t.delSchema(e);case 2:return n.a(2)}},n)})),function(n){return m.apply(this,arguments)}),getFormData:(l=n(r().m(function n(){var e,t,u,c=arguments;return r().w(function(n){for(;;)switch(n.n){case 0:return e=!(c.length>0&&void 0!==c[0])||c[0],n.n=1,y();case 1:if(t=n.v,u=null==t?void 0:t.formModel,!e){n.n=2;break}return n.a(2,Object.keys(u).reduce(function(n,r){var e=u[r];return o(e)||(a(e)?Object.keys(e).length>0&&(n[r]=e):n[r]=e),n},{}));case 2:return n.a(2,u);case 3:return n.a(2)}},n)})),function(){return l.apply(this,arguments)}),getComponentExpose:(f=n(r().m(function n(e){var t;return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:return t=n.v,n.a(2,null==t?void 0:t.getComponentExpose(e))}},n)})),function(n){return f.apply(this,arguments)}),getFormItemExpose:(i=n(r().m(function n(e){var t;return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:return t=n.v,n.a(2,null==t?void 0:t.getFormItemExpose(e))}},n)})),function(n){return i.apply(this,arguments)}),getElFormExpose:(s=n(r().m(function n(){return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:return n.a(2,t(g))}},n)})),function(){return s.apply(this,arguments)}),getFormExpose:(c=n(r().m(function n(){return r().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,y();case 1:return n.a(2,t(d))}},n)})),function(){return c.apply(this,arguments)})};return{formRegister:function(n,r){d.value=n,g.value=r},formMethods:x}};export{c as useForm};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
2
10
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { script as default };
|
|
11
|
+
import i from"./Highlight.vue2.js";i.__file="src/components/Highlight/src/Highlight.vue";export{i as default};
|
|
@@ -1,62 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
3
10
|
|
|
4
|
-
var
|
|
5
|
-
name: 'Highlight',
|
|
6
|
-
props: {
|
|
7
|
-
tag: propTypes.string.def('span'),
|
|
8
|
-
keys: {
|
|
9
|
-
type: Array,
|
|
10
|
-
"default": function _default() {
|
|
11
|
-
return [];
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
color: propTypes.string.def('var(--el-color-primary)')
|
|
15
|
-
},
|
|
16
|
-
emits: ['click'],
|
|
17
|
-
setup: function setup(props, _ref) {
|
|
18
|
-
var emit = _ref.emit,
|
|
19
|
-
slots = _ref.slots;
|
|
20
|
-
var keyNodes = computed(function () {
|
|
21
|
-
return props.keys.map(function (key) {
|
|
22
|
-
return h('span', {
|
|
23
|
-
onClick: function onClick() {
|
|
24
|
-
emit('click', key);
|
|
25
|
-
},
|
|
26
|
-
style: {
|
|
27
|
-
color: props.color,
|
|
28
|
-
cursor: 'pointer'
|
|
29
|
-
}
|
|
30
|
-
}, key);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
var parseText = function parseText(text) {
|
|
34
|
-
props.keys.forEach(function (key, index) {
|
|
35
|
-
var regexp = new RegExp(key, 'g');
|
|
36
|
-
text = text.replace(regexp, "{{".concat(index, "}}"));
|
|
37
|
-
});
|
|
38
|
-
return text.split(/{{|}}/);
|
|
39
|
-
};
|
|
40
|
-
var renderText = function renderText() {
|
|
41
|
-
if (!(slots !== null && slots !== void 0 && slots["default"])) return null;
|
|
42
|
-
var node = slots === null || slots === void 0 ? void 0 : slots["default"]()[0].children;
|
|
43
|
-
if (!node) {
|
|
44
|
-
return slots === null || slots === void 0 ? void 0 : slots["default"]()[0];
|
|
45
|
-
}
|
|
46
|
-
var textArray = parseText(node);
|
|
47
|
-
var regexp = /^[0-9]*$/;
|
|
48
|
-
var nodes = textArray.map(function (t) {
|
|
49
|
-
if (regexp.test(t)) {
|
|
50
|
-
return unref(keyNodes)[t] || t;
|
|
51
|
-
}
|
|
52
|
-
return t;
|
|
53
|
-
});
|
|
54
|
-
return h(props.tag, nodes);
|
|
55
|
-
};
|
|
56
|
-
return function () {
|
|
57
|
-
return renderText();
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
export { script as default };
|
|
11
|
+
import{defineComponent as r,computed as t,h as n,unref as e}from"vue";import o from"vue-types";var u=r({name:"Highlight",props:{tag:o.string.def("span"),keys:{type:Array,default:function(){return[]}},color:o.string.def("var(--el-color-primary)")},emits:["click"],setup:function(r,o){var u=o.emit,i=o.slots,l=t(function(){return r.keys.map(function(t){return n("span",{onClick:function(){u("click",t)},style:{color:r.color,cursor:"pointer"}},t)})}),a=function(){if(null==i||!i.default)return null;var t=null==i?void 0:i.default()[0].children;if(!t)return null==i?void 0:i.default()[0];var o,u=(o=t,r.keys.forEach(function(r,t){var n=new RegExp(r,"g");o=o.replace(n,"{{".concat(t,"}}"))}),o.split(/{{|}}/)),a=/^[0-9]*$/,c=u.map(function(r){return a.test(r)&&e(l)[r]||r});return n(r.tag,c)};return function(){return a()}}});export{u as default};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
2
10
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { script as default };
|
|
11
|
+
import{defineComponent as i,computed as n,openBlock as o,createBlock as e,normalizeClass as r,unref as t}from"vue";import"./SvgIcon.vue2.js";import{Icon as s}from"@iconify/vue";import c from"vue-types";import a from"./SvgIcon.vue.js";var p="|svg",u=i({__name:"Icon",props:{icon:c.string,color:c.string,size:{type:[String,Number],default:16},spin:c.bool.def(!1),prefix:c.string.def("")},setup:function(i){var c=i,u=n(function(){var i;return null===(i=c.icon)||void 0===i?void 0:i.endsWith(p)}),l=n(function(){return c.icon.replace(p,"")}),f=n(function(){return"".concat(c.prefix?c.prefix+":":"").concat(c.icon)});return function(n,c){return u.value?(o(),e(a,{key:0,size:i.size,name:l.value,class:r([n.$attrs.class,"anticon"]),spin:i.spin},null,8,["size","name","class","spin"])):(o(),e(t(s),{key:1,icon:f.value,width:i.size,height:i.size,color:i.color,class:r([n.$attrs.class,"app-iconify anticon",i.spin&&"app-iconify-spin"])},null,8,["icon","width","height","color","class"]))}}});export{u as default};
|
|
@@ -1,123 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
var script = defineComponent({
|
|
12
|
-
__name: 'Icon',
|
|
13
|
-
props: {
|
|
14
|
-
icon: propTypes.string,
|
|
15
|
-
color: propTypes.string,
|
|
16
|
-
size: {
|
|
17
|
-
type: [String, Number],
|
|
18
|
-
"default": 16
|
|
19
|
-
},
|
|
20
|
-
spin: propTypes.bool.def(false),
|
|
21
|
-
prefix: propTypes.string.def('')
|
|
22
|
-
},
|
|
23
|
-
setup: function setup(__props) {
|
|
24
|
-
var props = __props;
|
|
25
|
-
var elRef = ref(null);
|
|
26
|
-
var isSvgIcon = computed(function () {
|
|
27
|
-
var _props$icon;
|
|
28
|
-
return (_props$icon = props.icon) === null || _props$icon === void 0 ? void 0 : _props$icon.endsWith(SVG_END_WITH_FLAG);
|
|
29
|
-
});
|
|
30
|
-
var getSvgIcon = computed(function () {
|
|
31
|
-
return props.icon.replace(SVG_END_WITH_FLAG, '');
|
|
32
|
-
});
|
|
33
|
-
var getIconRef = computed(function () {
|
|
34
|
-
return "".concat(props.prefix ? props.prefix + ':' : '').concat(props.icon);
|
|
35
|
-
});
|
|
36
|
-
var update = /*#__PURE__*/function () {
|
|
37
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
38
|
-
var el, icon, svg, span;
|
|
39
|
-
return _regeneratorRuntime.wrap(function (_context) {
|
|
40
|
-
while (1) switch (_context.prev = _context.next) {
|
|
41
|
-
case 0:
|
|
42
|
-
if (!unref(isSvgIcon)) {
|
|
43
|
-
_context.next = 1;
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
return _context.abrupt("return");
|
|
47
|
-
case 1:
|
|
48
|
-
el = unref(elRef);
|
|
49
|
-
if (el) {
|
|
50
|
-
_context.next = 2;
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
return _context.abrupt("return");
|
|
54
|
-
case 2:
|
|
55
|
-
_context.next = 3;
|
|
56
|
-
return nextTick();
|
|
57
|
-
case 3:
|
|
58
|
-
icon = unref(getIconRef);
|
|
59
|
-
if (icon) {
|
|
60
|
-
_context.next = 4;
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
return _context.abrupt("return");
|
|
64
|
-
case 4:
|
|
65
|
-
svg = Iconify.renderSVG(icon, {});
|
|
66
|
-
if (svg) {
|
|
67
|
-
el.textContent = '';
|
|
68
|
-
el.appendChild(svg);
|
|
69
|
-
} else {
|
|
70
|
-
span = document.createElement('span');
|
|
71
|
-
span.className = 'iconify';
|
|
72
|
-
span.dataset.icon = icon;
|
|
73
|
-
el.textContent = '';
|
|
74
|
-
el.appendChild(span);
|
|
75
|
-
}
|
|
76
|
-
case 5:
|
|
77
|
-
case "end":
|
|
78
|
-
return _context.stop();
|
|
79
|
-
}
|
|
80
|
-
}, _callee);
|
|
81
|
-
}));
|
|
82
|
-
return function update() {
|
|
83
|
-
return _ref.apply(this, arguments);
|
|
84
|
-
};
|
|
85
|
-
}();
|
|
86
|
-
var getWrapStyle = computed(function () {
|
|
87
|
-
var size = props.size,
|
|
88
|
-
color = props.color;
|
|
89
|
-
var fs = size;
|
|
90
|
-
if (isString(size)) {
|
|
91
|
-
fs = parseInt(size, 10);
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
fontSize: "".concat(fs, "px"),
|
|
95
|
-
color: color,
|
|
96
|
-
display: 'inline-flex'
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
watch(function () {
|
|
100
|
-
return props.icon;
|
|
101
|
-
}, update, {
|
|
102
|
-
flush: 'post'
|
|
103
|
-
});
|
|
104
|
-
onMounted(update);
|
|
105
|
-
return function (_ctx, _cache) {
|
|
106
|
-
return isSvgIcon.value ? (openBlock(), createBlock(script$1, {
|
|
107
|
-
key: 0,
|
|
108
|
-
size: __props.size,
|
|
109
|
-
name: getSvgIcon.value,
|
|
110
|
-
"class": normalizeClass([_ctx.$attrs["class"], 'anticon']),
|
|
111
|
-
spin: __props.spin
|
|
112
|
-
}, null, 8, ["size", "name", "class", "spin"])) : (openBlock(), createElementBlock("span", {
|
|
113
|
-
key: 1,
|
|
114
|
-
ref_key: "elRef",
|
|
115
|
-
ref: elRef,
|
|
116
|
-
"class": normalizeClass([_ctx.$attrs["class"], 'app-iconify anticon', __props.spin && 'app-iconify-spin']),
|
|
117
|
-
style: normalizeStyle(getWrapStyle.value)
|
|
118
|
-
}, null, 6));
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
export { script as default };
|
|
11
|
+
import o from"./Icon.vue.js";o.__file="src/components/Icon/src/Icon.vue";export{o as default};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
3
10
|
|
|
4
|
-
|
|
5
|
-
script.__file = "src/components/Icon/src/SvgIcon.vue";
|
|
6
|
-
|
|
7
|
-
export { script as default };
|
|
11
|
+
import{defineComponent as e,computed as t}from"vue";var n=e({name:"SvgIcon",props:{prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:16},spin:{type:Boolean,default:!1}},setup:function(e){return{symbolId:t(function(){return"#".concat(e.prefix,"-").concat(e.name)}),prefixCls:"dfsj-svg-icon",getStyle:t(function(){var t=e.size,n="".concat(t);return{width:n="".concat(n.replace("px",""),"px"),height:n}})}}});export{n as default};
|
|
@@ -1,45 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
2
10
|
|
|
3
|
-
|
|
4
|
-
name: 'SvgIcon',
|
|
5
|
-
props: {
|
|
6
|
-
prefix: {
|
|
7
|
-
type: String,
|
|
8
|
-
"default": 'icon'
|
|
9
|
-
},
|
|
10
|
-
name: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: true
|
|
13
|
-
},
|
|
14
|
-
size: {
|
|
15
|
-
type: [Number, String],
|
|
16
|
-
"default": 16
|
|
17
|
-
},
|
|
18
|
-
spin: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
"default": false
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
setup: function setup(props) {
|
|
24
|
-
var prefixCls = 'ec-component-svg-icon';
|
|
25
|
-
var symbolId = computed(function () {
|
|
26
|
-
return "#".concat(props.prefix, "-").concat(props.name);
|
|
27
|
-
});
|
|
28
|
-
var getStyle = computed(function () {
|
|
29
|
-
var size = props.size;
|
|
30
|
-
var s = "".concat(size);
|
|
31
|
-
s = "".concat(s.replace('px', ''), "px");
|
|
32
|
-
return {
|
|
33
|
-
width: s,
|
|
34
|
-
height: s
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
return {
|
|
38
|
-
symbolId: symbolId,
|
|
39
|
-
prefixCls: prefixCls,
|
|
40
|
-
getStyle: getStyle
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export { script as default };
|
|
11
|
+
import o from"./SvgIcon.vue.js";import{render as e}from"./SvgIcon.vue3.js";o.render=e,o.__file="src/components/Icon/src/SvgIcon.vue";export{o as default};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
2
10
|
|
|
3
|
-
var
|
|
4
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5
|
-
return openBlock(), createElementBlock("svg", {
|
|
6
|
-
"class": normalizeClass([_ctx.prefixCls, _ctx.$attrs["class"], _ctx.spin && 'svg-icon-spin']),
|
|
7
|
-
style: normalizeStyle(_ctx.getStyle),
|
|
8
|
-
"aria-hidden": "true"
|
|
9
|
-
}, [createElementVNode("use", {
|
|
10
|
-
"xlink:href": _ctx.symbolId
|
|
11
|
-
}, null, 8 /* PROPS */, _hoisted_1)], 6 /* CLASS, STYLE */);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { render };
|
|
11
|
+
import{openBlock as e,createElementBlock as i,normalizeClass as l,normalizeStyle as n,createElementVNode as r}from"vue";var s=["xlink:href"];function t(t,o,f,a,d,u){return e(),i("svg",{class:l([t.prefixCls,"inline-block overflow-hidden",t.$attrs.class,t.spin&&"dfsj-icon-spin"]),style:n(t.getStyle),"aria-hidden":"true"},[r("use",{"xlink:href":t.symbolId},null,8,s)],6)}export{t as render};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @dfsj/components: 通用的vue组件;包括专业组件、原子级组件
|
|
4
|
+
* 版本: v4.0.0-alpha.2
|
|
5
|
+
* 作者:yangbo <1747837358@qq.com>
|
|
6
|
+
* 日期:2026-07-10 11:00:57
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
2
10
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { script as default };
|
|
11
|
+
import s from"./InputPassword.vue2.js";s.__file="src/components/InputPassword/src/InputPassword.vue";export{s as default};
|