ele-admin-plus 1.2.2-beta.2 → 1.2.2-beta.3
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/ele-check-card/index.js +2 -2
- package/es/ele-check-card/types.d.ts +2 -0
- package/es/ele-config-provider/components/receiver-view.js +16 -14
- package/es/ele-dropdown/components/pro-dropdown.d.ts +3 -3
- package/es/ele-dropdown/index.d.ts +5 -5
- package/es/ele-dropdown/index.js +1 -1
- package/es/ele-dropdown/props.d.ts +6 -6
- package/es/ele-dropdown/props.js +2 -2
- package/es/ele-ellipsis/index.d.ts +2 -9
- package/es/ele-ellipsis/props.d.ts +1 -4
- package/es/ele-file-list/index.js +1 -1
- package/es/ele-printer/util.js +17 -12
- package/es/ele-pro-table/components/table-tools.js +1 -1
- package/es/ele-segmented/index.d.ts +3 -3
- package/es/ele-segmented/index.js +1 -1
- package/es/ele-segmented/props.d.ts +2 -2
- package/es/ele-segmented/props.js +2 -2
- package/es/ele-tab-wrap/components/tab-dropdown.js +1 -1
- package/es/ele-table/style/css-var.scss +4 -0
- package/es/ele-table/style/index.scss +7 -4
- package/es/ele-tabs/index.js +1 -1
- package/es/ele-tabs/style/index.scss +0 -1
- package/es/ele-text/index.d.ts +2 -9
- package/es/ele-text/index.js +1 -1
- package/es/ele-text/props.d.ts +1 -4
- package/es/ele-text/props.js +1 -4
- package/es/ele-upload-list/components/list-item.js +4 -1
- package/es/ele-upload-list/index.d.ts +2 -0
- package/es/ele-upload-list/index.js +22 -16
- package/es/ele-upload-list/props.d.ts +4 -2
- package/es/ele-upload-list/props.js +3 -1
- package/es/ele-upload-list/style/index.scss +2 -1
- package/es/ele-upload-list/types.d.ts +7 -0
- package/es/icons/InsertColumnOutlined.d.ts +2 -0
- package/es/icons/InsertColumnOutlined.js +35 -0
- package/es/icons/InsertRowOutlined.d.ts +2 -0
- package/es/icons/InsertRowOutlined.js +35 -0
- package/es/icons/PlusSquareDashOutlined.d.ts +2 -0
- package/es/icons/PlusSquareDashOutlined.js +29 -0
- package/es/icons/RecoverOutlined.d.ts +2 -0
- package/es/icons/RecoverOutlined.js +30 -0
- package/es/icons/RollbackOutlined.d.ts +2 -0
- package/es/icons/RollbackOutlined.js +30 -0
- package/es/icons/SizeCompactOutlined.js +5 -11
- package/es/icons/SizeMiddleOutlined.js +5 -11
- package/es/icons/SizeSlackOutlined.js +4 -4
- package/es/icons/index.d.ts +5 -0
- package/es/icons/index.js +116 -106
- package/es/utils/core.d.ts +1 -1
- package/es/utils/core.js +13 -6
- package/es/utils/hook.d.ts +0 -12
- package/es/utils/hook.js +1 -42
- package/lib/ele-check-card/index.cjs +2 -2
- package/lib/ele-check-card/types.d.ts +2 -0
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +3 -3
- package/lib/ele-dropdown/index.cjs +1 -1
- package/lib/ele-dropdown/index.d.ts +5 -5
- package/lib/ele-dropdown/props.cjs +2 -2
- package/lib/ele-dropdown/props.d.ts +6 -6
- package/lib/ele-ellipsis/index.d.ts +2 -9
- package/lib/ele-ellipsis/props.d.ts +1 -4
- package/lib/ele-file-list/index.cjs +1 -1
- package/lib/ele-printer/util.cjs +17 -12
- package/lib/ele-pro-table/components/table-tools.cjs +1 -1
- package/lib/ele-segmented/index.cjs +1 -1
- package/lib/ele-segmented/index.d.ts +3 -3
- package/lib/ele-segmented/props.cjs +2 -2
- package/lib/ele-segmented/props.d.ts +2 -2
- package/lib/ele-tab-wrap/components/tab-dropdown.cjs +1 -1
- package/lib/ele-table/style/css-var.scss +4 -0
- package/lib/ele-table/style/index.scss +7 -4
- package/lib/ele-tabs/index.cjs +1 -1
- package/lib/ele-tabs/style/index.scss +0 -1
- package/lib/ele-text/index.cjs +1 -1
- package/lib/ele-text/index.d.ts +2 -9
- package/lib/ele-text/props.cjs +1 -4
- package/lib/ele-text/props.d.ts +1 -4
- package/lib/ele-upload-list/components/list-item.cjs +4 -1
- package/lib/ele-upload-list/index.cjs +22 -16
- package/lib/ele-upload-list/index.d.ts +2 -0
- package/lib/ele-upload-list/props.cjs +3 -1
- package/lib/ele-upload-list/props.d.ts +4 -2
- package/lib/ele-upload-list/style/index.scss +2 -1
- package/lib/ele-upload-list/types.d.ts +7 -0
- package/lib/icons/InsertColumnOutlined.cjs +34 -0
- package/lib/icons/InsertColumnOutlined.d.ts +2 -0
- package/lib/icons/InsertRowOutlined.cjs +34 -0
- package/lib/icons/InsertRowOutlined.d.ts +2 -0
- package/lib/icons/PlusSquareDashOutlined.cjs +28 -0
- package/lib/icons/PlusSquareDashOutlined.d.ts +2 -0
- package/lib/icons/RecoverOutlined.cjs +29 -0
- package/lib/icons/RecoverOutlined.d.ts +2 -0
- package/lib/icons/RollbackOutlined.cjs +29 -0
- package/lib/icons/RollbackOutlined.d.ts +2 -0
- package/lib/icons/SizeCompactOutlined.cjs +4 -10
- package/lib/icons/SizeMiddleOutlined.cjs +4 -10
- package/lib/icons/SizeSlackOutlined.cjs +4 -4
- package/lib/icons/index.cjs +10 -0
- package/lib/icons/index.d.ts +5 -0
- package/lib/utils/core.cjs +13 -6
- package/lib/utils/core.d.ts +1 -1
- package/lib/utils/hook.cjs +0 -41
- package/lib/utils/hook.d.ts +0 -12
- package/package.json +1 -1
|
@@ -16,18 +16,12 @@ const _hoisted_1 = {
|
|
|
16
16
|
stroke: "currentColor",
|
|
17
17
|
"stroke-width": "4"
|
|
18
18
|
};
|
|
19
|
-
const _hoisted_2 = /* @__PURE__ */ vue.
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 41H26" }, null, -1);
|
|
23
|
-
const _hoisted_6 = [
|
|
24
|
-
_hoisted_2,
|
|
25
|
-
_hoisted_3,
|
|
26
|
-
_hoisted_4,
|
|
27
|
-
_hoisted_5
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createStaticVNode('<path d="M1 7H26"></path><path d="M1 41H26"></path><path d="M1 18H26"></path><path d="M1 30H26"></path><path d="M47 12 39 19 31 12M39 1V19"></path><path d="M47 36 39 29 31 36M39 47V29"></path>', 6);
|
|
20
|
+
const _hoisted_8 = [
|
|
21
|
+
_hoisted_2
|
|
28
22
|
];
|
|
29
23
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1,
|
|
24
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_8);
|
|
31
25
|
}
|
|
32
26
|
const SizeCompactOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
33
27
|
module.exports = SizeCompactOutlined;
|
|
@@ -16,18 +16,12 @@ const _hoisted_1 = {
|
|
|
16
16
|
stroke: "currentColor",
|
|
17
17
|
"stroke-width": "4"
|
|
18
18
|
};
|
|
19
|
-
const _hoisted_2 = /* @__PURE__ */ vue.
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 41H26" }, null, -1);
|
|
23
|
-
const _hoisted_6 = [
|
|
24
|
-
_hoisted_2,
|
|
25
|
-
_hoisted_3,
|
|
26
|
-
_hoisted_4,
|
|
27
|
-
_hoisted_5
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createStaticVNode('<path d="M1 7H26"></path><path d="M1 41H26"></path><path d="M1 18H26"></path><path d="M1 30H26"></path><path d="M47 10L39 3L31 10M39 3V20"></path><path d="M47 38L39 45L31 38M39 45V28"></path>', 6);
|
|
20
|
+
const _hoisted_8 = [
|
|
21
|
+
_hoisted_2
|
|
28
22
|
];
|
|
29
23
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1,
|
|
24
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_8);
|
|
31
25
|
}
|
|
32
26
|
const SizeMiddleOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
33
27
|
module.exports = SizeMiddleOutlined;
|
|
@@ -16,10 +16,10 @@ const _hoisted_1 = {
|
|
|
16
16
|
stroke: "currentColor",
|
|
17
17
|
"stroke-width": "4"
|
|
18
18
|
};
|
|
19
|
-
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "
|
|
20
|
-
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "
|
|
21
|
-
const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "
|
|
22
|
-
const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "
|
|
19
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M1 7H26" }, null, -1);
|
|
20
|
+
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M1 41H26" }, null, -1);
|
|
21
|
+
const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M1 24H26" }, null, -1);
|
|
22
|
+
const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M39 4V44M31 11 39 4 47 11M47 37 39 44 31 37" }, null, -1);
|
|
23
23
|
const _hoisted_6 = [
|
|
24
24
|
_hoisted_2,
|
|
25
25
|
_hoisted_3,
|
package/lib/icons/index.cjs
CHANGED
|
@@ -62,6 +62,8 @@ const HolderOutlined = require("./HolderOutlined");
|
|
|
62
62
|
const HomeOutlined = require("./HomeOutlined");
|
|
63
63
|
const IdcardOutlined = require("./IdcardOutlined");
|
|
64
64
|
const InfoCircleFilled = require("./InfoCircleFilled");
|
|
65
|
+
const InsertColumnOutlined = require("./InsertColumnOutlined");
|
|
66
|
+
const InsertRowOutlined = require("./InsertRowOutlined");
|
|
65
67
|
const LinkOutlined = require("./LinkOutlined");
|
|
66
68
|
const LoadingDotOutlined = require("./LoadingDotOutlined");
|
|
67
69
|
const LoadingOutlined = require("./LoadingOutlined");
|
|
@@ -82,12 +84,15 @@ const PieChartOutlined = require("./PieChartOutlined");
|
|
|
82
84
|
const PlayFilled = require("./PlayFilled");
|
|
83
85
|
const PlusCircleOutlined = require("./PlusCircleOutlined");
|
|
84
86
|
const PlusOutlined = require("./PlusOutlined");
|
|
87
|
+
const PlusSquareDashOutlined = require("./PlusSquareDashOutlined");
|
|
85
88
|
const PrinterOutlined = require("./PrinterOutlined");
|
|
86
89
|
const ProtectOutlined = require("./ProtectOutlined");
|
|
87
90
|
const QuestionCircleFilled = require("./QuestionCircleFilled");
|
|
88
91
|
const QuestionCircleOutlined = require("./QuestionCircleOutlined");
|
|
92
|
+
const RecoverOutlined = require("./RecoverOutlined");
|
|
89
93
|
const ReloadOutlined = require("./ReloadOutlined");
|
|
90
94
|
const ResizeOutlined = require("./ResizeOutlined");
|
|
95
|
+
const RollbackOutlined = require("./RollbackOutlined");
|
|
91
96
|
const SearchOutlined = require("./SearchOutlined");
|
|
92
97
|
const SettingOutlined = require("./SettingOutlined");
|
|
93
98
|
const ShoppingOutlined = require("./ShoppingOutlined");
|
|
@@ -177,6 +182,8 @@ exports.HolderOutlined = HolderOutlined;
|
|
|
177
182
|
exports.HomeOutlined = HomeOutlined;
|
|
178
183
|
exports.IdcardOutlined = IdcardOutlined;
|
|
179
184
|
exports.InfoCircleFilled = InfoCircleFilled;
|
|
185
|
+
exports.InsertColumnOutlined = InsertColumnOutlined;
|
|
186
|
+
exports.InsertRowOutlined = InsertRowOutlined;
|
|
180
187
|
exports.LinkOutlined = LinkOutlined;
|
|
181
188
|
exports.LoadingDotOutlined = LoadingDotOutlined;
|
|
182
189
|
exports.LoadingOutlined = LoadingOutlined;
|
|
@@ -197,12 +204,15 @@ exports.PieChartOutlined = PieChartOutlined;
|
|
|
197
204
|
exports.PlayFilled = PlayFilled;
|
|
198
205
|
exports.PlusCircleOutlined = PlusCircleOutlined;
|
|
199
206
|
exports.PlusOutlined = PlusOutlined;
|
|
207
|
+
exports.PlusSquareDashOutlined = PlusSquareDashOutlined;
|
|
200
208
|
exports.PrinterOutlined = PrinterOutlined;
|
|
201
209
|
exports.ProtectOutlined = ProtectOutlined;
|
|
202
210
|
exports.QuestionCircleFilled = QuestionCircleFilled;
|
|
203
211
|
exports.QuestionCircleOutlined = QuestionCircleOutlined;
|
|
212
|
+
exports.RecoverOutlined = RecoverOutlined;
|
|
204
213
|
exports.ReloadOutlined = ReloadOutlined;
|
|
205
214
|
exports.ResizeOutlined = ResizeOutlined;
|
|
215
|
+
exports.RollbackOutlined = RollbackOutlined;
|
|
206
216
|
exports.SearchOutlined = SearchOutlined;
|
|
207
217
|
exports.SettingOutlined = SettingOutlined;
|
|
208
218
|
exports.ShoppingOutlined = ShoppingOutlined;
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ export { default as HolderOutlined } from './HolderOutlined';
|
|
|
60
60
|
export { default as HomeOutlined } from './HomeOutlined';
|
|
61
61
|
export { default as IdcardOutlined } from './IdcardOutlined';
|
|
62
62
|
export { default as InfoCircleFilled } from './InfoCircleFilled';
|
|
63
|
+
export { default as InsertColumnOutlined } from './InsertColumnOutlined';
|
|
64
|
+
export { default as InsertRowOutlined } from './InsertRowOutlined';
|
|
63
65
|
export { default as LinkOutlined } from './LinkOutlined';
|
|
64
66
|
export { default as LoadingDotOutlined } from './LoadingDotOutlined';
|
|
65
67
|
export { default as LoadingOutlined } from './LoadingOutlined';
|
|
@@ -80,12 +82,15 @@ export { default as PieChartOutlined } from './PieChartOutlined';
|
|
|
80
82
|
export { default as PlayFilled } from './PlayFilled';
|
|
81
83
|
export { default as PlusCircleOutlined } from './PlusCircleOutlined';
|
|
82
84
|
export { default as PlusOutlined } from './PlusOutlined';
|
|
85
|
+
export { default as PlusSquareDashOutlined } from './PlusSquareDashOutlined';
|
|
83
86
|
export { default as PrinterOutlined } from './PrinterOutlined';
|
|
84
87
|
export { default as ProtectOutlined } from './ProtectOutlined';
|
|
85
88
|
export { default as QuestionCircleFilled } from './QuestionCircleFilled';
|
|
86
89
|
export { default as QuestionCircleOutlined } from './QuestionCircleOutlined';
|
|
90
|
+
export { default as RecoverOutlined } from './RecoverOutlined';
|
|
87
91
|
export { default as ReloadOutlined } from './ReloadOutlined';
|
|
88
92
|
export { default as ResizeOutlined } from './ResizeOutlined';
|
|
93
|
+
export { default as RollbackOutlined } from './RollbackOutlined';
|
|
89
94
|
export { default as SearchOutlined } from './SearchOutlined';
|
|
90
95
|
export { default as SettingOutlined } from './SettingOutlined';
|
|
91
96
|
export { default as ShoppingOutlined } from './ShoppingOutlined';
|
package/lib/utils/core.cjs
CHANGED
|
@@ -56,13 +56,20 @@ function toTree(option) {
|
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
58
58
|
function eachTree(data, callback, childrenField = "children", parent) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
var _a;
|
|
60
|
+
if (!data) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
for (let i = 0; i < data.length; i++) {
|
|
64
|
+
const flag = callback ? callback(data[i], i, parent) : void 0;
|
|
65
|
+
if (flag === false) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if ((_a = data[i][childrenField]) == null ? void 0 : _a.length) {
|
|
69
|
+
if (eachTree(data[i][childrenField], callback, childrenField, data[i]) === false) {
|
|
70
|
+
return false;
|
|
64
71
|
}
|
|
65
|
-
}
|
|
72
|
+
}
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
75
|
function mapTree(data, formatter, childrenField = "children", resultChildrenField = "children", parent) {
|
package/lib/utils/core.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function toTree<T>(option: ToTreeOption<T>): T[];
|
|
|
33
33
|
* @param childrenField children 字段名
|
|
34
34
|
* @param parent 当前的父级
|
|
35
35
|
*/
|
|
36
|
-
export declare function eachTree<T>(data?: T[], callback?: (item: T, index: number, parent?: T) => void | boolean, childrenField?: string, parent?: T):
|
|
36
|
+
export declare function eachTree<T>(data?: T[], callback?: (item: T, index: number, parent?: T) => void | boolean, childrenField?: string, parent?: T): false | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* 格式化 children 形式数据
|
|
39
39
|
* @param data 数据
|
package/lib/utils/hook.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const elementPlus = require("element-plus");
|
|
5
|
-
const SortableJs = require("sortablejs");
|
|
6
5
|
function useFormItemRest() {
|
|
7
6
|
vue.provide(elementPlus.formItemContextKey, null);
|
|
8
7
|
}
|
|
@@ -268,51 +267,11 @@ function useMoveEvent(option) {
|
|
|
268
267
|
handleTouchstart
|
|
269
268
|
};
|
|
270
269
|
}
|
|
271
|
-
function useSortable(getEl, getData, updateData, options) {
|
|
272
|
-
let sortableIns = null;
|
|
273
|
-
const destroySortable = () => {
|
|
274
|
-
if (sortableIns != null) {
|
|
275
|
-
sortableIns.destroy();
|
|
276
|
-
}
|
|
277
|
-
sortableIns = null;
|
|
278
|
-
};
|
|
279
|
-
const initSortable = () => {
|
|
280
|
-
destroySortable();
|
|
281
|
-
const el = getEl();
|
|
282
|
-
if (el == null) {
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
sortableIns = new SortableJs(el, {
|
|
286
|
-
onUpdate: ({ oldDraggableIndex, newDraggableIndex }) => {
|
|
287
|
-
if (typeof oldDraggableIndex === "number" && typeof newDraggableIndex === "number") {
|
|
288
|
-
const data = [...getData() || []];
|
|
289
|
-
data.splice(
|
|
290
|
-
newDraggableIndex,
|
|
291
|
-
0,
|
|
292
|
-
data.splice(oldDraggableIndex, 1)[0]
|
|
293
|
-
);
|
|
294
|
-
updateData(data);
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
setData: () => {
|
|
298
|
-
},
|
|
299
|
-
...options || {}
|
|
300
|
-
});
|
|
301
|
-
};
|
|
302
|
-
vue.onMounted(() => {
|
|
303
|
-
initSortable();
|
|
304
|
-
});
|
|
305
|
-
vue.onBeforeUnmount(() => {
|
|
306
|
-
destroySortable();
|
|
307
|
-
});
|
|
308
|
-
return { initSortable, destroySortable };
|
|
309
|
-
}
|
|
310
270
|
exports.useCollapseAnim = useCollapseAnim;
|
|
311
271
|
exports.useFormItemRest = useFormItemRest;
|
|
312
272
|
exports.useMediaQuery = useMediaQuery;
|
|
313
273
|
exports.useMousewheel = useMousewheel;
|
|
314
274
|
exports.useMoveEvent = useMoveEvent;
|
|
315
|
-
exports.useSortable = useSortable;
|
|
316
275
|
exports.useTimer = useTimer;
|
|
317
276
|
exports.useTouchEvent = useTouchEvent;
|
|
318
277
|
exports.useWindowListener = useWindowListener;
|
package/lib/utils/hook.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { default as SortableJs } from 'sortablejs';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* 重置组件表单验证
|
|
@@ -116,14 +115,3 @@ export declare function useMoveEvent(option?: UseTouchEventOption<MoveEvent>): {
|
|
|
116
115
|
handleMousedown: (e: MouseEvent) => void;
|
|
117
116
|
handleTouchstart: (e: TouchEvent) => void;
|
|
118
117
|
};
|
|
119
|
-
/**
|
|
120
|
-
* 拖拽排序
|
|
121
|
-
* @param getEl 获取容器方法
|
|
122
|
-
* @param getData 获取数据方法
|
|
123
|
-
* @param updateData 更新数据方法
|
|
124
|
-
* @param options 自定义参数
|
|
125
|
-
*/
|
|
126
|
-
export declare function useSortable<T>(getEl: () => HTMLElement | undefined | null, getData: () => T[] | undefined | null, updateData: (data: T[]) => void, options?: SortableJs.Options): {
|
|
127
|
-
initSortable: () => void;
|
|
128
|
-
destroySortable: () => void;
|
|
129
|
-
};
|