ele-admin-plus 1.4.1-beta.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/core-components.d.ts +2 -0
- package/es/core-components.js +104 -100
- package/es/ele-app/plus.d.ts +9 -1
- package/es/ele-app/plusx.d.ts +26 -13
- package/es/ele-backtop/index.js +7 -1
- package/es/ele-basic-select/components/select-view.d.ts +53 -22
- package/es/ele-basic-select/components/select-view.js +57 -20
- package/es/ele-basic-select/index.d.ts +39 -19
- package/es/ele-basic-select/index.js +62 -13
- package/es/ele-basic-select/props.d.ts +33 -21
- package/es/ele-basic-select/props.js +33 -21
- package/es/ele-basic-select/style/index.js +2 -0
- package/es/ele-basic-select/types.d.ts +1 -1
- package/es/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/es/ele-config-provider/components/receiver-view.js +74 -72
- package/es/ele-config-provider/receiver.d.ts +2 -2
- package/es/ele-config-provider/receiver.js +5 -1
- package/es/ele-config-provider/types.d.ts +10 -1
- package/es/ele-copyable/index.d.ts +2 -4
- package/es/ele-cron-builder/index.d.ts +24 -0
- package/es/ele-cron-builder/index.js +81 -0
- package/es/ele-cron-builder/props.d.ts +31 -0
- package/es/ele-cron-builder/props.js +24 -0
- package/es/ele-cron-builder/style/index.d.ts +1 -0
- package/es/ele-cron-builder/style/index.js +4 -0
- package/es/ele-cron-builder/style/index.scss +6 -0
- package/es/ele-cron-builder/types.d.ts +8 -0
- package/es/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-day.js +232 -0
- package/es/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-hour.js +174 -0
- package/es/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-minute.js +174 -0
- package/es/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-month.js +174 -0
- package/es/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-second.js +174 -0
- package/es/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-week.js +229 -0
- package/es/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-year.js +186 -0
- package/es/ele-cron-panel/index.d.ts +14 -0
- package/es/ele-cron-panel/index.js +348 -0
- package/es/ele-cron-panel/props.d.ts +20 -0
- package/es/ele-cron-panel/props.js +14 -0
- package/es/ele-cron-panel/style/index.d.ts +1 -0
- package/es/ele-cron-panel/style/index.js +7 -0
- package/es/ele-cron-panel/style/index.scss +282 -0
- package/es/ele-cron-panel/types.d.ts +118 -0
- package/es/ele-cron-panel/util.d.ts +23 -0
- package/es/ele-cron-panel/util.js +542 -0
- package/es/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/es/ele-cropper-modal/index.d.ts +2 -4
- package/es/ele-crud/index.d.ts +3 -3
- package/es/ele-drawer/index.d.ts +9 -0
- package/es/ele-drawer/index.js +5 -1
- package/es/ele-drawer/props.d.ts +5 -0
- package/es/ele-drawer/props.js +6 -1
- package/es/ele-drawer/style/index.scss +11 -0
- package/es/ele-file-list/index.d.ts +3 -3
- package/es/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/es/ele-icon-select/components/icon-grid.js +20 -12
- package/es/ele-icon-select/index.d.ts +58 -59
- package/es/ele-icon-select/index.js +92 -86
- package/es/ele-icon-select/props.d.ts +35 -35
- package/es/ele-icon-select/props.js +34 -34
- package/es/ele-icon-select/style/css-var.scss +1 -1
- package/es/ele-icon-select/style/index.scss +50 -18
- package/es/ele-icon-select/types.d.ts +13 -0
- package/es/ele-map-picker/index.d.ts +3 -3
- package/es/ele-modal/index.d.ts +4 -2
- package/es/ele-modal/index.js +9 -3
- package/es/ele-modal/props.d.ts +2 -0
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +16 -0
- package/es/ele-pro-form/components/item-type-data.js +39 -64
- package/es/ele-pro-form/index.d.ts +3 -3
- package/es/ele-pro-table/components/table-tools.d.ts +12 -97
- package/es/ele-pro-table/components/table-tools.js +118 -248
- package/es/ele-pro-table/components/tool-export.d.ts +5 -1
- package/es/ele-pro-table/components/tool-export.js +32 -20
- package/es/ele-pro-table/components/tool-print.d.ts +5 -1
- package/es/ele-pro-table/components/tool-print.js +37 -25
- package/es/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/es/ele-pro-table/exceljs-plugin.js +81 -0
- package/es/ele-pro-table/index.d.ts +6 -7
- package/es/ele-pro-table/index.js +117 -46
- package/es/ele-pro-table/types.d.ts +11 -0
- package/es/ele-split-panel/style/index.scss +1 -1
- package/es/ele-table-select/index.d.ts +2 -0
- package/es/ele-table-select/props.d.ts +2 -0
- package/es/ele-table-select/props.js +3 -1
- package/es/ele-tour/index.d.ts +3 -3
- package/es/ele-tree-select/index.d.ts +2 -0
- package/es/ele-upload-list/index.d.ts +3 -3
- package/es/ele-upload-list/index.js +25 -8
- package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/es/ele-watermark/index.d.ts +20 -7
- package/es/ele-watermark/index.js +253 -94
- package/es/ele-watermark/props.d.ts +10 -3
- package/es/ele-watermark/props.js +10 -3
- package/es/ele-watermark/types.d.ts +12 -0
- package/es/ele-watermark/util.d.ts +2 -9
- package/es/ele-watermark/util.js +10 -19
- package/es/lang/en_US.js +116 -0
- package/es/lang/zh_CN.js +116 -0
- package/es/lang/zh_TW.js +116 -0
- package/es/style/plus.scss +3 -1
- package/es/style/themes/default.scss +12 -3
- package/es/style/themes/rounded.scss +2 -1
- package/es/utils/theme-util.d.ts +1 -1
- package/lib/core-components.cjs +104 -100
- package/lib/core-components.d.ts +2 -0
- package/lib/ele-app/plus.d.ts +9 -1
- package/lib/ele-app/plusx.d.ts +26 -13
- package/lib/ele-backtop/index.cjs +6 -0
- package/lib/ele-basic-select/components/select-view.cjs +56 -19
- package/lib/ele-basic-select/components/select-view.d.ts +53 -22
- package/lib/ele-basic-select/index.cjs +61 -12
- package/lib/ele-basic-select/index.d.ts +39 -19
- package/lib/ele-basic-select/props.cjs +33 -21
- package/lib/ele-basic-select/props.d.ts +33 -21
- package/lib/ele-basic-select/style/index.cjs +2 -0
- package/lib/ele-basic-select/types.d.ts +1 -1
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
- package/lib/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/lib/ele-config-provider/receiver.cjs +5 -1
- package/lib/ele-config-provider/receiver.d.ts +2 -2
- package/lib/ele-config-provider/types.d.ts +10 -1
- package/lib/ele-copyable/index.d.ts +2 -4
- package/lib/ele-cron-builder/index.cjs +80 -0
- package/lib/ele-cron-builder/index.d.ts +24 -0
- package/lib/ele-cron-builder/props.cjs +24 -0
- package/lib/ele-cron-builder/props.d.ts +31 -0
- package/lib/ele-cron-builder/style/index.cjs +5 -0
- package/lib/ele-cron-builder/style/index.d.ts +1 -0
- package/lib/ele-cron-builder/style/index.scss +6 -0
- package/lib/ele-cron-builder/types.d.ts +8 -0
- package/lib/ele-cron-panel/components/cron-day.cjs +231 -0
- package/lib/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-hour.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-minute.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-month.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-second.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-week.cjs +228 -0
- package/lib/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-year.cjs +185 -0
- package/lib/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/lib/ele-cron-panel/index.cjs +347 -0
- package/lib/ele-cron-panel/index.d.ts +14 -0
- package/lib/ele-cron-panel/props.cjs +14 -0
- package/lib/ele-cron-panel/props.d.ts +20 -0
- package/lib/ele-cron-panel/style/index.cjs +8 -0
- package/lib/ele-cron-panel/style/index.d.ts +1 -0
- package/lib/ele-cron-panel/style/index.scss +282 -0
- package/lib/ele-cron-panel/types.d.ts +118 -0
- package/lib/ele-cron-panel/util.cjs +542 -0
- package/lib/ele-cron-panel/util.d.ts +23 -0
- package/lib/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/lib/ele-cropper-modal/index.d.ts +2 -4
- package/lib/ele-crud/index.d.ts +3 -3
- package/lib/ele-drawer/index.cjs +4 -0
- package/lib/ele-drawer/index.d.ts +9 -0
- package/lib/ele-drawer/props.cjs +6 -1
- package/lib/ele-drawer/props.d.ts +5 -0
- package/lib/ele-drawer/style/index.scss +11 -0
- package/lib/ele-file-list/index.d.ts +3 -3
- package/lib/ele-icon-select/components/icon-grid.cjs +19 -11
- package/lib/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/lib/ele-icon-select/index.cjs +91 -85
- package/lib/ele-icon-select/index.d.ts +58 -59
- package/lib/ele-icon-select/props.cjs +34 -34
- package/lib/ele-icon-select/props.d.ts +35 -35
- package/lib/ele-icon-select/style/css-var.scss +1 -1
- package/lib/ele-icon-select/style/index.scss +50 -18
- package/lib/ele-icon-select/types.d.ts +13 -0
- package/lib/ele-map-picker/index.d.ts +3 -3
- package/lib/ele-modal/index.cjs +9 -3
- package/lib/ele-modal/index.d.ts +4 -2
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +2 -0
- package/lib/ele-modal/style/index.scss +16 -0
- package/lib/ele-pro-form/components/item-type-data.cjs +39 -64
- package/lib/ele-pro-form/index.d.ts +3 -3
- package/lib/ele-pro-table/components/table-tools.cjs +117 -247
- package/lib/ele-pro-table/components/table-tools.d.ts +12 -97
- package/lib/ele-pro-table/components/tool-export.cjs +32 -20
- package/lib/ele-pro-table/components/tool-export.d.ts +5 -1
- package/lib/ele-pro-table/components/tool-print.cjs +37 -25
- package/lib/ele-pro-table/components/tool-print.d.ts +5 -1
- package/lib/ele-pro-table/exceljs-plugin.cjs +81 -0
- package/lib/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/lib/ele-pro-table/index.cjs +143 -72
- package/lib/ele-pro-table/index.d.ts +6 -7
- package/lib/ele-pro-table/types.d.ts +11 -0
- package/lib/ele-split-panel/style/index.scss +1 -1
- package/lib/ele-table-select/index.d.ts +2 -0
- package/lib/ele-table-select/props.cjs +3 -1
- package/lib/ele-table-select/props.d.ts +2 -0
- package/lib/ele-tour/index.d.ts +3 -3
- package/lib/ele-tree-select/index.d.ts +2 -0
- package/lib/ele-upload-list/index.cjs +25 -8
- package/lib/ele-upload-list/index.d.ts +3 -3
- package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/lib/ele-watermark/index.cjs +251 -92
- package/lib/ele-watermark/index.d.ts +20 -7
- package/lib/ele-watermark/props.cjs +10 -3
- package/lib/ele-watermark/props.d.ts +10 -3
- package/lib/ele-watermark/types.d.ts +12 -0
- package/lib/ele-watermark/util.cjs +10 -19
- package/lib/ele-watermark/util.d.ts +2 -9
- package/lib/lang/en_US.cjs +116 -0
- package/lib/lang/zh_CN.cjs +116 -0
- package/lib/lang/zh_TW.cjs +116 -0
- package/lib/style/plus.scss +3 -1
- package/lib/style/themes/default.scss +12 -3
- package/lib/style/themes/rounded.scss +2 -1
- package/lib/utils/theme-util.d.ts +1 -1
- package/package.json +1 -1
- package/typings/global.d.ts +2 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const EleTooltip = require("../ele-tooltip/index");
|
|
4
|
+
const EleModal = require("../ele-modal/index");
|
|
5
|
+
const EleDrawer = require("../ele-drawer/index");
|
|
4
6
|
const ReceiverView = require("../ele-config-provider/components/receiver-view");
|
|
5
7
|
const SelectView = require("./components/select-view");
|
|
6
8
|
const props = require("./props");
|
|
@@ -42,9 +44,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
44
|
}
|
|
43
45
|
updateVisible(visible);
|
|
44
46
|
};
|
|
45
|
-
const
|
|
47
|
+
const handleWrapClick = (isCustom) => {
|
|
46
48
|
isSelectInputClick.value = true;
|
|
47
|
-
if (props2.popperType === "modal") {
|
|
49
|
+
if (!isCustom && (props2.popperType === "modal" || props2.popperType === "drawer")) {
|
|
48
50
|
updateVisible(true);
|
|
49
51
|
}
|
|
50
52
|
};
|
|
@@ -81,8 +83,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
83
|
updateVisible
|
|
82
84
|
});
|
|
83
85
|
return (_ctx, _cache) => {
|
|
84
|
-
|
|
85
|
-
return _ctx.popperType === "modal" ? (vue.openBlock(), vue.createBlock(SelectView, vue.mergeProps({ key: 0 }, _ctx.$props, {
|
|
86
|
+
return _ctx.popperType === "modal" || _ctx.popperType === "drawer" ? (vue.openBlock(), vue.createBlock(SelectView, vue.mergeProps({ key: 0 }, _ctx.$props, {
|
|
86
87
|
ref_key: "selectViewRef",
|
|
87
88
|
ref: selectViewRef,
|
|
88
89
|
"onUpdate:visible": updateVisible,
|
|
@@ -92,13 +93,48 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
93
|
onBlur: handleBlur,
|
|
93
94
|
onFilterChange: handleFilterChange,
|
|
94
95
|
onInputClick: handleInputClick,
|
|
95
|
-
|
|
96
|
+
onWrapClick: handleWrapClick
|
|
96
97
|
}), vue.createSlots({
|
|
97
98
|
default: vue.withCtx(() => [
|
|
98
|
-
vue.
|
|
99
|
+
_ctx.popperType === "drawer" ? (vue.openBlock(), vue.createBlock(EleDrawer, vue.mergeProps({
|
|
100
|
+
key: 0,
|
|
101
|
+
title: _ctx.popperTitle,
|
|
102
|
+
size: _ctx.popperWidth,
|
|
103
|
+
closeOnClickModal: false,
|
|
104
|
+
destroyOnClose: !_ctx.persistent,
|
|
105
|
+
responsive: _ctx.responsive,
|
|
106
|
+
class: _ctx.popperClass
|
|
107
|
+
}, _ctx.popperProps || {}, {
|
|
108
|
+
modelValue: _ctx.visible,
|
|
109
|
+
"onUpdate:modelValue": handleUpdatePopoverVisible
|
|
110
|
+
}), vue.createSlots({
|
|
111
|
+
default: vue.withCtx(() => [
|
|
112
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
113
|
+
]),
|
|
114
|
+
_: 2
|
|
115
|
+
}, [
|
|
116
|
+
vue.renderList(Object.keys(_ctx.popperSlots || {}).filter(
|
|
117
|
+
(k) => k !== "default" && _ctx.popperSlots && _ctx.popperSlots[k] && _ctx.popperSlots[k] !== "default" && _ctx.$slots[_ctx.popperSlots[k]]
|
|
118
|
+
), (name) => {
|
|
119
|
+
return {
|
|
120
|
+
name,
|
|
121
|
+
fn: vue.withCtx((slotProps) => {
|
|
122
|
+
var _a;
|
|
123
|
+
return [
|
|
124
|
+
vue.renderSlot(_ctx.$slots, (_a = _ctx.popperSlots) == null ? void 0 : _a[name], vue.normalizeProps(vue.guardReactiveProps(slotProps || {})))
|
|
125
|
+
];
|
|
126
|
+
})
|
|
127
|
+
};
|
|
128
|
+
})
|
|
129
|
+
]), 1040, ["title", "size", "destroyOnClose", "responsive", "class", "modelValue"])) : (vue.openBlock(), vue.createBlock(EleModal, vue.mergeProps({
|
|
130
|
+
key: 1,
|
|
99
131
|
position: "center",
|
|
132
|
+
title: _ctx.popperTitle,
|
|
100
133
|
width: _ctx.popperWidth,
|
|
134
|
+
bodyHeight: _ctx.popperHeight,
|
|
135
|
+
closeOnClickModal: false,
|
|
101
136
|
destroyOnClose: !_ctx.persistent,
|
|
137
|
+
responsive: _ctx.responsive,
|
|
102
138
|
class: _ctx.popperClass
|
|
103
139
|
}, _ctx.popperProps || {}, {
|
|
104
140
|
modelValue: _ctx.visible,
|
|
@@ -122,7 +158,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
122
158
|
})
|
|
123
159
|
};
|
|
124
160
|
})
|
|
125
|
-
]), 1040, ["width", "destroyOnClose", "class", "modelValue"])
|
|
161
|
+
]), 1040, ["title", "width", "bodyHeight", "destroyOnClose", "responsive", "class", "modelValue"]))
|
|
126
162
|
]),
|
|
127
163
|
_: 2
|
|
128
164
|
}, [
|
|
@@ -134,8 +170,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
134
170
|
])
|
|
135
171
|
};
|
|
136
172
|
})
|
|
137
|
-
]), 1040)) : (vue.openBlock(), vue.createBlock(
|
|
173
|
+
]), 1040)) : _ctx.popperType === "default" ? (vue.openBlock(), vue.createBlock(vue.unref(ReceiverView), {
|
|
138
174
|
key: 1,
|
|
175
|
+
wrapHeight: _ctx.popperHeight,
|
|
176
|
+
class: vue.normalizeClass(_ctx.popperClass)
|
|
177
|
+
}, {
|
|
178
|
+
default: vue.withCtx(() => [
|
|
179
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
180
|
+
]),
|
|
181
|
+
_: 3
|
|
182
|
+
}, 8, ["wrapHeight", "class"])) : (vue.openBlock(), vue.createBlock(EleTooltip, vue.mergeProps({
|
|
183
|
+
key: 2,
|
|
139
184
|
ref_key: "tooltipRef",
|
|
140
185
|
ref: tooltipRef,
|
|
141
186
|
trigger: "click",
|
|
@@ -158,6 +203,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
158
203
|
body: vue.withCtx(() => [
|
|
159
204
|
_ctx.persistent || _ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(ReceiverView), {
|
|
160
205
|
key: 0,
|
|
206
|
+
wrapHeight: _ctx.popperHeight,
|
|
161
207
|
class: "ele-popover-body",
|
|
162
208
|
onClick: focusSearchInput,
|
|
163
209
|
onMouseup: focusSearchInput
|
|
@@ -166,10 +212,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
166
212
|
vue.renderSlot(_ctx.$slots, "default")
|
|
167
213
|
]),
|
|
168
214
|
_: 3
|
|
169
|
-
})) : vue.createCommentVNode("", true)
|
|
215
|
+
}, 8, ["wrapHeight"])) : vue.createCommentVNode("", true)
|
|
170
216
|
]),
|
|
171
217
|
default: vue.withCtx(() => [
|
|
172
|
-
vue.
|
|
218
|
+
_ctx.selectStyle === "none" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: vue.normalizeClass(_ctx.selectClass)
|
|
221
|
+
}, null, 2)) : (vue.openBlock(), vue.createBlock(SelectView, vue.mergeProps({ key: 1 }, _ctx.$props, {
|
|
173
222
|
ref_key: "selectViewRef",
|
|
174
223
|
ref: selectViewRef,
|
|
175
224
|
"onUpdate:visible": updateVisible,
|
|
@@ -179,7 +228,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
179
228
|
onBlur: handleBlur,
|
|
180
229
|
onFilterChange: handleFilterChange,
|
|
181
230
|
onInputClick: handleInputClick,
|
|
182
|
-
|
|
231
|
+
onWrapClick: handleWrapClick
|
|
183
232
|
}), vue.createSlots({ _: 2 }, [
|
|
184
233
|
vue.renderList(Object.keys(_ctx.$slots).filter((k) => k !== "default"), (name) => {
|
|
185
234
|
return {
|
|
@@ -189,7 +238,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
189
238
|
])
|
|
190
239
|
};
|
|
191
240
|
})
|
|
192
|
-
]), 1040)
|
|
241
|
+
]), 1040))
|
|
193
242
|
]),
|
|
194
243
|
_: 3
|
|
195
244
|
}, 16, ["disabled", "placement", "teleported", "width", "popperClass", "popperOptions", "transition", "gpuAcceleration", "visible"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EleTooltipInstance, EleBasicSelectViewInstance } from '../ele-app/plus';
|
|
2
2
|
import { SelectedItem } from './types';
|
|
3
3
|
|
|
4
|
-
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<any, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
4
|
+
declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & Partial<Record<any, (_: any) => any>> & Partial<Record<any, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
5
5
|
default?(_: {}): any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -22,6 +22,20 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
22
22
|
automaticDropdown: BooleanConstructor;
|
|
23
23
|
filterable: BooleanConstructor;
|
|
24
24
|
visible: BooleanConstructor;
|
|
25
|
+
selectClass: StringConstructor;
|
|
26
|
+
selectStyle: import('vue').PropType<import('../ele-app/types').StyleValue | string>;
|
|
27
|
+
inputStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
28
|
+
selectTagsStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
29
|
+
popperClass: StringConstructor;
|
|
30
|
+
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
31
|
+
popperHeight: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
popperType: {
|
|
33
|
+
type: import('vue').PropType<import('./types').PopperType>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
popperProps: import('vue').PropType<import('./types').PopperProps>;
|
|
37
|
+
popperSlots: ObjectConstructor;
|
|
38
|
+
popperTitle: StringConstructor;
|
|
25
39
|
teleported: BooleanConstructor;
|
|
26
40
|
persistent: BooleanConstructor;
|
|
27
41
|
placement: import('vue').PropType<import('../ele-app/plus').EleTooltipProps["placement"]>;
|
|
@@ -30,15 +44,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
30
44
|
default: string;
|
|
31
45
|
};
|
|
32
46
|
popperOptions: import('vue').PropType<import('../ele-app/plus').EleTooltipProps["popperOptions"]>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
inputStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
38
|
-
selectTagsStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
39
|
-
popperType: import('vue').PropType<import('./types').PopperType>;
|
|
40
|
-
popperProps: import('vue').PropType<import('./types').PopperProps>;
|
|
41
|
-
popperSlots: ObjectConstructor;
|
|
47
|
+
responsive: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: null;
|
|
50
|
+
};
|
|
42
51
|
}>, {
|
|
43
52
|
tooltipRef: import('vue').Ref<EleTooltipInstance, EleTooltipInstance>;
|
|
44
53
|
selectViewRef: import('vue').Ref<EleBasicSelectViewInstance, EleBasicSelectViewInstance>;
|
|
@@ -70,6 +79,20 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
70
79
|
automaticDropdown: BooleanConstructor;
|
|
71
80
|
filterable: BooleanConstructor;
|
|
72
81
|
visible: BooleanConstructor;
|
|
82
|
+
selectClass: StringConstructor;
|
|
83
|
+
selectStyle: import('vue').PropType<import('../ele-app/types').StyleValue | string>;
|
|
84
|
+
inputStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
85
|
+
selectTagsStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
86
|
+
popperClass: StringConstructor;
|
|
87
|
+
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
88
|
+
popperHeight: (StringConstructor | NumberConstructor)[];
|
|
89
|
+
popperType: {
|
|
90
|
+
type: import('vue').PropType<import('./types').PopperType>;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
popperProps: import('vue').PropType<import('./types').PopperProps>;
|
|
94
|
+
popperSlots: ObjectConstructor;
|
|
95
|
+
popperTitle: StringConstructor;
|
|
73
96
|
teleported: BooleanConstructor;
|
|
74
97
|
persistent: BooleanConstructor;
|
|
75
98
|
placement: import('vue').PropType<import('../ele-app/plus').EleTooltipProps["placement"]>;
|
|
@@ -78,15 +101,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
78
101
|
default: string;
|
|
79
102
|
};
|
|
80
103
|
popperOptions: import('vue').PropType<import('../ele-app/plus').EleTooltipProps["popperOptions"]>;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
inputStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
86
|
-
selectTagsStyle: import('vue').PropType<import('../ele-app/types').StyleValue>;
|
|
87
|
-
popperType: import('vue').PropType<import('./types').PopperType>;
|
|
88
|
-
popperProps: import('vue').PropType<import('./types').PopperProps>;
|
|
89
|
-
popperSlots: ObjectConstructor;
|
|
104
|
+
responsive: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: null;
|
|
107
|
+
};
|
|
90
108
|
}>> & Readonly<{
|
|
91
109
|
onBlur?: ((_e: FocusEvent) => any) | undefined;
|
|
92
110
|
onFocus?: ((_e: FocusEvent) => any) | undefined;
|
|
@@ -105,6 +123,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
105
123
|
transition: string;
|
|
106
124
|
automaticDropdown: boolean;
|
|
107
125
|
multiple: boolean;
|
|
126
|
+
responsive: boolean;
|
|
127
|
+
popperType: import('./types').PopperType;
|
|
108
128
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
109
129
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
110
130
|
export default _default;
|
|
@@ -32,11 +32,36 @@ const basicSelectProps = {
|
|
|
32
32
|
automaticDropdown: Boolean,
|
|
33
33
|
/** 是否可以筛选 */
|
|
34
34
|
filterable: Boolean,
|
|
35
|
-
/**
|
|
35
|
+
/** 下拉组件是否显示 */
|
|
36
36
|
visible: Boolean,
|
|
37
|
-
/**
|
|
37
|
+
/** 自定义类名 */
|
|
38
|
+
selectClass: String,
|
|
39
|
+
/** 自定义样式 */
|
|
40
|
+
selectStyle: [Object, String],
|
|
41
|
+
/** 自定义输入框样式 */
|
|
42
|
+
inputStyle: Object,
|
|
43
|
+
/** 自定义多选标签容器样式 */
|
|
44
|
+
selectTagsStyle: Object,
|
|
45
|
+
/** 下拉组件类名 */
|
|
46
|
+
popperClass: String,
|
|
47
|
+
/** 下拉组件宽度 */
|
|
48
|
+
popperWidth: [Number, String],
|
|
49
|
+
/** 下拉组件高度 */
|
|
50
|
+
popperHeight: [Number, String],
|
|
51
|
+
/** 下拉组件类型 */
|
|
52
|
+
popperType: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "popper"
|
|
55
|
+
},
|
|
56
|
+
/** 下拉组件属性 */
|
|
57
|
+
popperProps: Object,
|
|
58
|
+
/** 下拉组件插槽 */
|
|
59
|
+
popperSlots: Object,
|
|
60
|
+
/** 下拉组件标题 */
|
|
61
|
+
popperTitle: String,
|
|
62
|
+
/** 是否将下拉组件插入 body */
|
|
38
63
|
teleported: Boolean,
|
|
39
|
-
/**
|
|
64
|
+
/** 始终渲染下拉组件 */
|
|
40
65
|
persistent: Boolean,
|
|
41
66
|
/** 下拉框位置 */
|
|
42
67
|
placement: String,
|
|
@@ -47,24 +72,11 @@ const basicSelectProps = {
|
|
|
47
72
|
},
|
|
48
73
|
/** popper.js 参数 */
|
|
49
74
|
popperOptions: Object,
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
selectClass: String,
|
|
56
|
-
/** 自定义样式 */
|
|
57
|
-
selectStyle: Object,
|
|
58
|
-
/** 自定义输入框样式 */
|
|
59
|
-
inputStyle: Object,
|
|
60
|
-
/** 自定义多选标签容器样式 */
|
|
61
|
-
selectTagsStyle: Object,
|
|
62
|
-
/** 下拉类型 */
|
|
63
|
-
popperType: String,
|
|
64
|
-
/** 下拉组件属性 */
|
|
65
|
-
popperProps: Object,
|
|
66
|
-
/** 下拉组件插槽 */
|
|
67
|
-
popperSlots: Object
|
|
75
|
+
/** 是否开启响应式 */
|
|
76
|
+
responsive: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: null
|
|
79
|
+
}
|
|
68
80
|
};
|
|
69
81
|
const basicSelectEmits = {
|
|
70
82
|
/** 更新下拉框显示状态 */
|
|
@@ -37,39 +37,51 @@ export declare const basicSelectProps: {
|
|
|
37
37
|
automaticDropdown: BooleanConstructor;
|
|
38
38
|
/** 是否可以筛选 */
|
|
39
39
|
filterable: BooleanConstructor;
|
|
40
|
-
/**
|
|
40
|
+
/** 下拉组件是否显示 */
|
|
41
41
|
visible: BooleanConstructor;
|
|
42
|
-
/** 是否将下拉框插入 body */
|
|
43
|
-
teleported: BooleanConstructor;
|
|
44
|
-
/** 始终渲染下拉框 */
|
|
45
|
-
persistent: BooleanConstructor;
|
|
46
|
-
/** 下拉框位置 */
|
|
47
|
-
placement: PropType<EleTooltipProps["placement"]>;
|
|
48
|
-
/** 下拉框渐变动画 */
|
|
49
|
-
transition: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
/** popper.js 参数 */
|
|
54
|
-
popperOptions: PropType<EleTooltipProps["popperOptions"]>;
|
|
55
|
-
/** 下拉框类名 */
|
|
56
|
-
popperClass: StringConstructor;
|
|
57
|
-
/** 下拉框宽度 */
|
|
58
|
-
popperWidth: (NumberConstructor | StringConstructor)[];
|
|
59
42
|
/** 自定义类名 */
|
|
60
43
|
selectClass: StringConstructor;
|
|
61
44
|
/** 自定义样式 */
|
|
62
|
-
selectStyle: PropType<StyleValue>;
|
|
45
|
+
selectStyle: PropType<StyleValue | string>;
|
|
63
46
|
/** 自定义输入框样式 */
|
|
64
47
|
inputStyle: PropType<StyleValue>;
|
|
65
48
|
/** 自定义多选标签容器样式 */
|
|
66
49
|
selectTagsStyle: PropType<StyleValue>;
|
|
67
|
-
/**
|
|
68
|
-
|
|
50
|
+
/** 下拉组件类名 */
|
|
51
|
+
popperClass: StringConstructor;
|
|
52
|
+
/** 下拉组件宽度 */
|
|
53
|
+
popperWidth: (NumberConstructor | StringConstructor)[];
|
|
54
|
+
/** 下拉组件高度 */
|
|
55
|
+
popperHeight: (NumberConstructor | StringConstructor)[];
|
|
56
|
+
/** 下拉组件类型 */
|
|
57
|
+
popperType: {
|
|
58
|
+
type: PropType<PopperType>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
69
61
|
/** 下拉组件属性 */
|
|
70
62
|
popperProps: PropType<PopperProps>;
|
|
71
63
|
/** 下拉组件插槽 */
|
|
72
64
|
popperSlots: ObjectConstructor;
|
|
65
|
+
/** 下拉组件标题 */
|
|
66
|
+
popperTitle: StringConstructor;
|
|
67
|
+
/** 是否将下拉组件插入 body */
|
|
68
|
+
teleported: BooleanConstructor;
|
|
69
|
+
/** 始终渲染下拉组件 */
|
|
70
|
+
persistent: BooleanConstructor;
|
|
71
|
+
/** 下拉框位置 */
|
|
72
|
+
placement: PropType<EleTooltipProps["placement"]>;
|
|
73
|
+
/** 下拉框渐变动画 */
|
|
74
|
+
transition: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
/** popper.js 参数 */
|
|
79
|
+
popperOptions: PropType<EleTooltipProps["popperOptions"]>;
|
|
80
|
+
/** 是否开启响应式 */
|
|
81
|
+
responsive: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: null;
|
|
84
|
+
};
|
|
73
85
|
};
|
|
74
86
|
export type BasicSelectProps = ExtractPropTypes<typeof basicSelectProps>;
|
|
75
87
|
/**
|
|
@@ -3,4 +3,6 @@ require("element-plus/es/components/input/style/index");
|
|
|
3
3
|
require("element-plus/es/components/icon/style/index");
|
|
4
4
|
require("element-plus/es/components/tag/style/index");
|
|
5
5
|
require("../../ele-tooltip/style/index");
|
|
6
|
+
require("../../ele-modal/style/index");
|
|
7
|
+
require("../../ele-drawer/style/index");
|
|
6
8
|
require("./index.scss");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
`))},v=
|
|
1
|
+
"use strict";const R=require("vue"),A=require("../../utils/common"),G=require("../../ele-watermark/index"),_=require("../receiver"),n=(w,a,c)=>{const v=(I,F,h)=>{const l=((g,Y)=>{const S=g.length-Y;if(S<=0)return g;const O=new Array(g.length);for(let D=0;D<g.length;D++)D<Y?O[D]=g[S+D]:O[D]=g[D-Y];return O})(I.split(""),h).join(""),p=[];let C=0;for(;C<l.length;){let g=C+F;g>l.length&&(g=l.length);const Y=l.substring(C,g);p.push(Y.split("").reverse().join("")),C=g}return p.join("")},r=a.indexOf("="),N=r===-1?a:a.substring(0,r),s=r===-1?"":a.substring(r),i=(c==null?N:v(N,12,3)+s).replace(/[^A-Za-z0-9\+\/\=]/g,""),J=v(w,3,1)+"=";let U="",T,e,m,E,d,u,f,x=0;for(;x<i.length;)E=J.indexOf(i.charAt(x++)),d=J.indexOf(i.charAt(x++)),u=J.indexOf(i.charAt(x++)),f=J.indexOf(i.charAt(x++)),T=E<<2|d>>4,e=(d&15)<<4|u>>2,m=(u&3)<<6|f,U=U+String.fromCharCode(T),u!=64&&(U=U+String.fromCharCode(e)),f!=64&&(U=U+String.fromCharCode(m));return U=(I=>{let F="",h=0,l=0,p=0,C=0;for(;h<I.length;)l=I.charCodeAt(h),l<128?(F+=String.fromCharCode(l),h++):l>191&&l<224?(p=I.charCodeAt(h+1),F+=String.fromCharCode((l&31)<<6|p&63),h+=2):(p=I.charCodeAt(h+1),C=I.charCodeAt(h+2),F+=String.fromCharCode((l&15)<<12|(p&63)<<6|C&63),h+=3);return F})(U),c==null?decodeURIComponent(U):U},o="BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C",z=n(o,"RWxlQWRtaW5QbHVzJUU5JTlDJTgwJUU4JUE2JTgxJUU2JThFJTg4JUU2JTlEJTgzJUU0JUJEJUJGJUU3JTk0JUE4JTJDJUU4JUFGJUI3JUU1JTg5JThEJUU1JUJFJTgwZWxlYWRtaW4uY29tJUU4JUI0JUFEJUU0JUI5JUIwJUU2JThFJTg4JUU2JTlEJTgz="),W=n(o,"JUU4JUFGJUI3JUU1JTg1JTg4JUU5JTg1JThEJUU3JUJEJUFFJUU4JTg3JUFBJUU1JUI3JUIxJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="),j=n(o,"JUU4JUFGJUI3JUU0JUJEJUJGJUU3JTk0JUE4JUU2JUFEJUEzJUU3JUExJUFFJUU2JUEwJUJDJUU1JUJDJThGJUU3JTlBJTg0JUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJTNC="),B=n(o,"JUU2JThFJTg4JUU2JTlEJTgzJUU3JTg5JTg4JUU2JTlDJUFDJUU1JThGJUI3JUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU2JThFJTg4JUU2JTlEJTgzJUU3JUEwJTgxJUU3JTg5JTg4JUU2JTlDJUFDJTNB="),$=n(o,"JTJDJTIwJUU1JUFFJTg5JUU4JUEzJTg1JUU3JTg5JTg4JUU2JTlDJUFDJTNB="),k=n(o,"JUU2JThFJTg4JUU2JTlEJTgzJUU1JUI3JUIyJUU1JUE0JUIxJUU2JTk1JTg4JTJDJTIwJUU1JTg4JUIwJUU2JTlDJTlGJUU2JTk3JUI2JUU5JTk3JUI0JTNB="),H=n(o,"JUU1JTlGJTlGJUU1JTkwJThEJUU0JUI4JThEJUU1JThDJUI5JUU5JTg1JThEJTJDJTIwJUU4JUFGJUI3JUU5JTgzJUE4JUU3JUJEJUIyJUU1JTlDJUE4JTNB="),M=n(o,"JUU0JUI4JThCJTJDJTIwJUU1JUJEJTkzJUU1JTg5JThEJUU1JTlGJTlGJUU1JTkwJThEJTNB="),P=n(o,"RWxlQWRtaW5QbHVz="),V=n(o,"bG9jYWxob3N0="),L=n(o,"MTI3LjAuMC4x="),Q=n(o,"d3d3="),b=n(o,"MS40="),K=n(o,"MDVmZA="),q=n(o,"RUxFJTIwQURNSU4lMjBQTFVT="),y=R.defineComponent({name:"ReceiverView",props:{wrapHeight:[String,Number],wrapPosition:{type:Boolean,default:!0}},setup(w,{slots:a}){const c=(t,i,J,U)=>{const T=new Array(60).join("*"),e=[T];if(e.push(z),t==null&&i==null&&J==null&&U==null&&e.push(W),!t&&i==null&&!J&&e.push(j),t&&e.push(`${B} ${t}${$} ${b};`),typeof i=="number"){const m=new Date(i*1e3).toLocaleString();e.push(`${k} ${m};`)}J&&e.push(`${H} ${J} ${M} ${U};`),e.push(T),console.error(e.join(`
|
|
2
|
+
`))},v=_.useReceiver(),r=R.reactive({}),N=R.computed(()=>{const t=v.license;return t?t.trim():void 0});R.provide(_.ERROR_MESSAGE,r);const s=(t,i)=>{const J=t.subject,U=K.slice(0,K.length-2)+(J??"");Object.keys(r).forEach(e=>r[e]=void 0);const T=A.localize(J==null?void 0:String(J));Object.assign(r,{text:T,froined:!!(i&&T),viewId:U})};return R.watch(N,t=>{var i;if(typeof t!="string"||!t){s({}),c();return}try{const J=JSON.parse(n(o,t,0)),{version:U,expiration:T,domain:e,product:m}=J;if(U&&U!==b){s(J),c(U);return}if(P!==m){s(J),c("");return}if(T&&T<Date.now()/1e3){s(J),c(void 0,T);return}if(e){const E=(i=window==null?void 0:window.location)==null?void 0:i.hostname;if(!E){s(J),c(void 0,void 0,e,"");return}if(V!==E&&L!==E){const d=e.split("."),u=E.split(".");for(let f=d.length-1;f>=0;f--)if(d[f]!==u[f]){s(J),c(void 0,void 0,e,E);return}if(u.length>d.length&&u[u.length-d.length-1]!==Q){s(J),c(void 0,void 0,e,E);return}}}s(J,!0);return}catch(J){console.error(J)}s({}),c("")},{immediate:!0}),()=>R.createVNode(G,{wrapPosition:!1,wrapHeight:w.wrapHeight!=null&&typeof w.wrapHeight=="number"?`${w.wrapHeight}px`:w.wrapHeight,content:q,disabled:r.froined,style:!w.wrapPosition||r.froined?void 0:{position:"relative"}},{default:()=>{var t;return[(t=a.default)==null?void 0:t.call(a,r)]}})}});module.exports=y;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
wrapHeight: (StringConstructor | NumberConstructor)[];
|
|
2
3
|
wrapPosition: {
|
|
3
4
|
type: BooleanConstructor;
|
|
4
5
|
default: boolean;
|
|
5
6
|
};
|
|
6
7
|
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
wrapHeight: (StringConstructor | NumberConstructor)[];
|
|
7
9
|
wrapPosition: {
|
|
8
10
|
type: BooleanConstructor;
|
|
9
11
|
default: boolean;
|
|
@@ -17,7 +17,11 @@ function useLocale(name, props2) {
|
|
|
17
17
|
const temp = globalConfig.locale ?? defaultLocale;
|
|
18
18
|
if (name) {
|
|
19
19
|
try {
|
|
20
|
-
return Object.assign(
|
|
20
|
+
return Object.assign(
|
|
21
|
+
{},
|
|
22
|
+
temp[name] ?? {},
|
|
23
|
+
props2 == null ? void 0 : props2.locale
|
|
24
|
+
);
|
|
21
25
|
} catch (e) {
|
|
22
26
|
console.error(e, common.ERROR_MESSAGE_KEY);
|
|
23
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ERROR_MESSAGE_KEY as ERROR_MESSAGE } from '../utils/common';
|
|
3
|
-
import { GlobalProvide, UseLocaleResult, LocaleProps } from './types';
|
|
3
|
+
import { GlobalProvide, UseLocaleResult, LocaleProps, EleLocale } from './types';
|
|
4
4
|
|
|
5
5
|
export { ERROR_MESSAGE };
|
|
6
6
|
/**
|
|
@@ -14,4 +14,4 @@ export declare function useGlobalProps<T>(name: string): Ref<T>;
|
|
|
14
14
|
/**
|
|
15
15
|
* 获取国际化
|
|
16
16
|
*/
|
|
17
|
-
export declare function useLocale<
|
|
17
|
+
export declare function useLocale<K extends keyof EleLocale>(name?: K, props?: LocaleProps<EleLocale[K]>): UseLocaleResult<EleLocale[K]>;
|
|
@@ -9,6 +9,9 @@ import type { TourLocale } from '../ele-tour/types';
|
|
|
9
9
|
import type { CopyableLocale } from '../ele-copyable/types';
|
|
10
10
|
import type { ProFormLocale } from '../ele-pro-form/types';
|
|
11
11
|
import type { CrudLocale } from '../ele-crud/types';
|
|
12
|
+
import type { IconSelectLocale } from '../ele-icon-select/types';
|
|
13
|
+
import type { CronBuilderLocale } from '../ele-cron-builder/types';
|
|
14
|
+
import type { CronPanelLocale } from '../ele-cron-panel/types';
|
|
12
15
|
|
|
13
16
|
/**
|
|
14
17
|
* 国际化
|
|
@@ -32,6 +35,12 @@ export interface EleLocale {
|
|
|
32
35
|
proForm: ProFormLocale;
|
|
33
36
|
/** 增删改查 */
|
|
34
37
|
crud: CrudLocale;
|
|
38
|
+
/** 图标选择 */
|
|
39
|
+
iconSelect: IconSelectLocale;
|
|
40
|
+
/** cron 生成器 */
|
|
41
|
+
cronBuilder: CronBuilderLocale;
|
|
42
|
+
/** cron */
|
|
43
|
+
cronPanel: CronPanelLocale;
|
|
35
44
|
}
|
|
36
45
|
|
|
37
46
|
/**
|
|
@@ -44,7 +53,7 @@ export interface GlobalProvide {
|
|
|
44
53
|
table?: TableGlobalConfig;
|
|
45
54
|
/** 地图密钥 */
|
|
46
55
|
mapKey?: string;
|
|
47
|
-
/**
|
|
56
|
+
/** license */
|
|
48
57
|
license?: string;
|
|
49
58
|
}
|
|
50
59
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { CopyableLocale } from './types';
|
|
2
|
-
|
|
3
1
|
declare function __VLS_template(): {
|
|
4
2
|
default?(_: {}): any;
|
|
5
3
|
};
|
|
@@ -21,7 +19,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
21
19
|
type: NumberConstructor;
|
|
22
20
|
default: number;
|
|
23
21
|
};
|
|
24
|
-
locale: import('vue').PropType<Partial<CopyableLocale>>;
|
|
22
|
+
locale: import('vue').PropType<Partial<import('./types').CopyableLocale>>;
|
|
25
23
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
24
|
copy: (_error?: any) => void;
|
|
27
25
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -42,7 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
42
40
|
type: NumberConstructor;
|
|
43
41
|
default: number;
|
|
44
42
|
};
|
|
45
|
-
locale: import('vue').PropType<Partial<CopyableLocale>>;
|
|
43
|
+
locale: import('vue').PropType<Partial<import('./types').CopyableLocale>>;
|
|
46
44
|
}>> & Readonly<{
|
|
47
45
|
onCopy?: ((_error?: any) => any) | undefined;
|
|
48
46
|
}>, {
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const elementPlus = require("element-plus");
|
|
4
|
+
const receiver = require("../ele-config-provider/receiver");
|
|
5
|
+
const EleModal = require("../ele-modal/index");
|
|
6
|
+
const EleCronPanel = require("../ele-cron-panel/index");
|
|
7
|
+
const props = require("./props");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
...{ name: "EleCronBuilder" },
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: props.cronBuilderProps,
|
|
12
|
+
emits: props.cronBuilderEmits,
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props2 = __props;
|
|
15
|
+
const emit = __emit;
|
|
16
|
+
const { lang } = receiver.useLocale("cronBuilder", props2);
|
|
17
|
+
const cronPanelRef = vue.ref(null);
|
|
18
|
+
const updateModelValue = (value) => {
|
|
19
|
+
emit("update:modelValue", value);
|
|
20
|
+
};
|
|
21
|
+
const updateCron = (cron) => {
|
|
22
|
+
emit("update:cron", cron);
|
|
23
|
+
};
|
|
24
|
+
const hideCronList = () => {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
(_b = (_a = cronPanelRef.value) == null ? void 0 : _a.hideCronList) == null ? void 0 : _b.call(_a);
|
|
27
|
+
};
|
|
28
|
+
const handleCancel = () => {
|
|
29
|
+
hideCronList();
|
|
30
|
+
updateModelValue(false);
|
|
31
|
+
};
|
|
32
|
+
const handleConfirm = () => {
|
|
33
|
+
hideCronList();
|
|
34
|
+
emit("done", props2.cron);
|
|
35
|
+
};
|
|
36
|
+
const handleClosed = () => {
|
|
37
|
+
hideCronList();
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
return vue.openBlock(), vue.createBlock(EleModal, vue.mergeProps({
|
|
41
|
+
width: 832,
|
|
42
|
+
title: _ctx.title ?? vue.unref(lang).title,
|
|
43
|
+
position: "center",
|
|
44
|
+
class: "ele-cron-builder"
|
|
45
|
+
}, _ctx.modalProps || {}, {
|
|
46
|
+
modelValue: _ctx.modelValue,
|
|
47
|
+
"onUpdate:modelValue": updateModelValue,
|
|
48
|
+
onClosed: handleClosed
|
|
49
|
+
}), {
|
|
50
|
+
footer: vue.withCtx(() => [
|
|
51
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: handleCancel }, {
|
|
52
|
+
default: vue.withCtx(() => [
|
|
53
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(lang).cancel), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
58
|
+
type: "primary",
|
|
59
|
+
onClick: handleConfirm
|
|
60
|
+
}, {
|
|
61
|
+
default: vue.withCtx(() => [
|
|
62
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(lang).confirm), 1)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
default: vue.withCtx(() => [
|
|
68
|
+
vue.createVNode(EleCronPanel, {
|
|
69
|
+
ref_key: "cronPanelRef",
|
|
70
|
+
ref: cronPanelRef,
|
|
71
|
+
modelValue: _ctx.cron,
|
|
72
|
+
"onUpdate:modelValue": updateCron
|
|
73
|
+
}, null, 8, ["modelValue"])
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}, 16, ["title", "modelValue"]);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: BooleanConstructor;
|
|
3
|
+
cron: StringConstructor;
|
|
4
|
+
title: StringConstructor;
|
|
5
|
+
modalProps: import('vue').PropType<import('../ele-app/plus').EleModalProps>;
|
|
6
|
+
locale: import('vue').PropType<Partial<import('./types').CronBuilderLocale>>;
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
done: (_cron?: string | undefined) => void;
|
|
9
|
+
"update:modelValue": (_value?: boolean | undefined) => void;
|
|
10
|
+
"update:cron": (_cron?: string | undefined) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
|
+
modelValue: BooleanConstructor;
|
|
13
|
+
cron: StringConstructor;
|
|
14
|
+
title: StringConstructor;
|
|
15
|
+
modalProps: import('vue').PropType<import('../ele-app/plus').EleModalProps>;
|
|
16
|
+
locale: import('vue').PropType<Partial<import('./types').CronBuilderLocale>>;
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onDone?: ((_cron?: string | undefined) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((_value?: boolean | undefined) => any) | undefined;
|
|
20
|
+
"onUpdate:cron"?: ((_cron?: string | undefined) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
modelValue: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|