ele-admin-plus 1.2.2-beta.1 → 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.
Files changed (123) hide show
  1. package/es/ele-app/components/form-item-rest.js +3 -3
  2. package/es/ele-check-card/index.js +2 -2
  3. package/es/ele-check-card/types.d.ts +2 -0
  4. package/es/ele-config-provider/components/receiver-view.js +16 -14
  5. package/es/ele-cropper/components/cropper-tools.js +1 -1
  6. package/es/ele-cropper/style/index.scss +10 -1
  7. package/es/ele-dropdown/components/pro-dropdown.d.ts +3 -3
  8. package/es/ele-dropdown/index.d.ts +5 -5
  9. package/es/ele-dropdown/index.js +1 -1
  10. package/es/ele-dropdown/props.d.ts +6 -6
  11. package/es/ele-dropdown/props.js +2 -2
  12. package/es/ele-ellipsis/index.d.ts +2 -9
  13. package/es/ele-ellipsis/props.d.ts +1 -4
  14. package/es/ele-file-list/index.js +1 -1
  15. package/es/ele-menus/components/item-title.js +4 -3
  16. package/es/ele-menus/types.d.ts +2 -0
  17. package/es/ele-printer/util.js +17 -12
  18. package/es/ele-pro-table/components/table-tools.js +1 -1
  19. package/es/ele-segmented/index.d.ts +3 -3
  20. package/es/ele-segmented/index.js +1 -1
  21. package/es/ele-segmented/props.d.ts +2 -2
  22. package/es/ele-segmented/props.js +2 -2
  23. package/es/ele-split-panel/index.d.ts +2 -0
  24. package/es/ele-split-panel/index.js +8 -8
  25. package/es/ele-split-panel/props.d.ts +3 -1
  26. package/es/ele-split-panel/props.js +3 -1
  27. package/es/ele-tab-wrap/components/tab-dropdown.js +1 -1
  28. package/es/ele-table/style/css-var.scss +4 -0
  29. package/es/ele-table/style/index.scss +7 -4
  30. package/es/ele-tabs/index.js +1 -1
  31. package/es/ele-tabs/style/index.scss +1 -3
  32. package/es/ele-text/index.d.ts +2 -9
  33. package/es/ele-text/index.js +1 -1
  34. package/es/ele-text/props.d.ts +1 -4
  35. package/es/ele-text/props.js +1 -4
  36. package/es/ele-upload-list/components/list-item.js +4 -1
  37. package/es/ele-upload-list/index.d.ts +2 -0
  38. package/es/ele-upload-list/index.js +22 -16
  39. package/es/ele-upload-list/props.d.ts +4 -2
  40. package/es/ele-upload-list/props.js +3 -1
  41. package/es/ele-upload-list/style/index.scss +2 -1
  42. package/es/ele-upload-list/types.d.ts +7 -0
  43. package/es/icons/InsertColumnOutlined.d.ts +2 -0
  44. package/es/icons/InsertColumnOutlined.js +35 -0
  45. package/es/icons/InsertRowOutlined.d.ts +2 -0
  46. package/es/icons/InsertRowOutlined.js +35 -0
  47. package/es/icons/PlusSquareDashOutlined.d.ts +2 -0
  48. package/es/icons/PlusSquareDashOutlined.js +29 -0
  49. package/es/icons/RecoverOutlined.d.ts +2 -0
  50. package/es/icons/RecoverOutlined.js +30 -0
  51. package/es/icons/RollbackOutlined.d.ts +2 -0
  52. package/es/icons/RollbackOutlined.js +30 -0
  53. package/es/icons/SizeCompactOutlined.js +5 -11
  54. package/es/icons/SizeMiddleOutlined.js +5 -11
  55. package/es/icons/SizeSlackOutlined.js +4 -4
  56. package/es/icons/index.d.ts +5 -0
  57. package/es/icons/index.js +116 -106
  58. package/es/utils/core.d.ts +1 -1
  59. package/es/utils/core.js +13 -6
  60. package/es/utils/hook.d.ts +4 -0
  61. package/es/utils/hook.js +16 -3
  62. package/lib/ele-app/components/form-item-rest.cjs +2 -2
  63. package/lib/ele-check-card/index.cjs +2 -2
  64. package/lib/ele-check-card/types.d.ts +2 -0
  65. package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
  66. package/lib/ele-cropper/components/cropper-tools.cjs +1 -1
  67. package/lib/ele-cropper/style/index.scss +10 -1
  68. package/lib/ele-dropdown/components/pro-dropdown.d.ts +3 -3
  69. package/lib/ele-dropdown/index.cjs +1 -1
  70. package/lib/ele-dropdown/index.d.ts +5 -5
  71. package/lib/ele-dropdown/props.cjs +2 -2
  72. package/lib/ele-dropdown/props.d.ts +6 -6
  73. package/lib/ele-ellipsis/index.d.ts +2 -9
  74. package/lib/ele-ellipsis/props.d.ts +1 -4
  75. package/lib/ele-file-list/index.cjs +1 -1
  76. package/lib/ele-menus/components/item-title.cjs +4 -3
  77. package/lib/ele-menus/types.d.ts +2 -0
  78. package/lib/ele-printer/util.cjs +17 -12
  79. package/lib/ele-pro-table/components/table-tools.cjs +1 -1
  80. package/lib/ele-segmented/index.cjs +1 -1
  81. package/lib/ele-segmented/index.d.ts +3 -3
  82. package/lib/ele-segmented/props.cjs +2 -2
  83. package/lib/ele-segmented/props.d.ts +2 -2
  84. package/lib/ele-split-panel/index.cjs +8 -8
  85. package/lib/ele-split-panel/index.d.ts +2 -0
  86. package/lib/ele-split-panel/props.cjs +3 -1
  87. package/lib/ele-split-panel/props.d.ts +3 -1
  88. package/lib/ele-tab-wrap/components/tab-dropdown.cjs +1 -1
  89. package/lib/ele-table/style/css-var.scss +4 -0
  90. package/lib/ele-table/style/index.scss +7 -4
  91. package/lib/ele-tabs/index.cjs +1 -1
  92. package/lib/ele-tabs/style/index.scss +1 -3
  93. package/lib/ele-text/index.cjs +1 -1
  94. package/lib/ele-text/index.d.ts +2 -9
  95. package/lib/ele-text/props.cjs +1 -4
  96. package/lib/ele-text/props.d.ts +1 -4
  97. package/lib/ele-upload-list/components/list-item.cjs +4 -1
  98. package/lib/ele-upload-list/index.cjs +22 -16
  99. package/lib/ele-upload-list/index.d.ts +2 -0
  100. package/lib/ele-upload-list/props.cjs +3 -1
  101. package/lib/ele-upload-list/props.d.ts +4 -2
  102. package/lib/ele-upload-list/style/index.scss +2 -1
  103. package/lib/ele-upload-list/types.d.ts +7 -0
  104. package/lib/icons/InsertColumnOutlined.cjs +34 -0
  105. package/lib/icons/InsertColumnOutlined.d.ts +2 -0
  106. package/lib/icons/InsertRowOutlined.cjs +34 -0
  107. package/lib/icons/InsertRowOutlined.d.ts +2 -0
  108. package/lib/icons/PlusSquareDashOutlined.cjs +28 -0
  109. package/lib/icons/PlusSquareDashOutlined.d.ts +2 -0
  110. package/lib/icons/RecoverOutlined.cjs +29 -0
  111. package/lib/icons/RecoverOutlined.d.ts +2 -0
  112. package/lib/icons/RollbackOutlined.cjs +29 -0
  113. package/lib/icons/RollbackOutlined.d.ts +2 -0
  114. package/lib/icons/SizeCompactOutlined.cjs +4 -10
  115. package/lib/icons/SizeMiddleOutlined.cjs +4 -10
  116. package/lib/icons/SizeSlackOutlined.cjs +4 -4
  117. package/lib/icons/index.cjs +10 -0
  118. package/lib/icons/index.d.ts +5 -0
  119. package/lib/utils/core.cjs +13 -6
  120. package/lib/utils/core.d.ts +1 -1
  121. package/lib/utils/hook.cjs +15 -2
  122. package/lib/utils/hook.d.ts +4 -0
  123. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "InsertRowOutlined"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ const _hoisted_1 = {
14
+ viewBox: "0 0 48 48",
15
+ fill: "none",
16
+ stroke: "currentColor",
17
+ "stroke-width": "4",
18
+ "stroke-linejoin": "round"
19
+ };
20
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 4H41V12H3Z" }, null, -1);
21
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 36H41V44H3Z" }, null, -1);
22
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M22 20H46V28H22Z" }, null, -1);
23
+ const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M9 30L16 24L9 18M16 24H0" }, null, -1);
24
+ const _hoisted_6 = [
25
+ _hoisted_2,
26
+ _hoisted_3,
27
+ _hoisted_4,
28
+ _hoisted_5
29
+ ];
30
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
31
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_6);
32
+ }
33
+ const InsertRowOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
34
+ module.exports = InsertRowOutlined;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "PlusSquareDashOutlined"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ const _hoisted_1 = {
14
+ viewBox: "0 0 48 48",
15
+ fill: "none",
16
+ stroke: "currentColor",
17
+ "stroke-width": "4",
18
+ "stroke-linejoin": "round"
19
+ };
20
+ const _hoisted_2 = /* @__PURE__ */ vue.createStaticVNode('<path d="M24 13V34M13 24H35" stroke-linecap="round"></path><path d="M19 2H29"></path><path d="M19 46H29"></path><path d="M2 19V29"></path><path d="M46 19V29"></path><path d="M11 2H2V11"></path><path d="M11 46H2V37"></path><path d="M37 46H46V37"></path><path d="M37 2H46V11"></path>', 9);
21
+ const _hoisted_11 = [
22
+ _hoisted_2
23
+ ];
24
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
25
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_11);
26
+ }
27
+ const PlusSquareDashOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
28
+ module.exports = PlusSquareDashOutlined;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "RecoverOutlined"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ const _hoisted_1 = {
14
+ viewBox: "0 0 48 48",
15
+ fill: "none",
16
+ stroke: "currentColor",
17
+ "stroke-width": "4",
18
+ "stroke-linecap": "round",
19
+ "stroke-linejoin": "round"
20
+ };
21
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M32 8L44 20L32 32M4 44V35C4 26 10 20 19 20H44" }, null, -1);
22
+ const _hoisted_3 = [
23
+ _hoisted_2
24
+ ];
25
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
26
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
27
+ }
28
+ const RecoverOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
29
+ module.exports = RecoverOutlined;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const _sfc_main = vue.defineComponent({
4
+ name: "RollbackOutlined"
5
+ });
6
+ const _export_sfc = (sfc, props) => {
7
+ const target = sfc.__vccOpts || sfc;
8
+ for (const [key, val] of props) {
9
+ target[key] = val;
10
+ }
11
+ return target;
12
+ };
13
+ const _hoisted_1 = {
14
+ viewBox: "0 0 48 48",
15
+ fill: "none",
16
+ stroke: "currentColor",
17
+ "stroke-width": "4",
18
+ "stroke-linecap": "round",
19
+ "stroke-linejoin": "round"
20
+ };
21
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M16 8L4 20L16 32M44 44V35C44 26 38 20 29 20H4" }, null, -1);
22
+ const _hoisted_3 = [
23
+ _hoisted_2
24
+ ];
25
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
26
+ return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
27
+ }
28
+ const RollbackOutlined = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
29
+ module.exports = RollbackOutlined;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -16,18 +16,12 @@ const _hoisted_1 = {
16
16
  stroke: "currentColor",
17
17
  "stroke-width": "4"
18
18
  };
19
- const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M47 12 39 19 31 12M39 1V19M47 36 39 29 31 36M39 47V29" }, null, -1);
20
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 7H26" }, null, -1);
21
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 24H26" }, null, -1);
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, _hoisted_6);
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.createElementVNode("path", { d: "M40 7V41M33 7H47M33 41H47" }, null, -1);
20
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 7H26" }, null, -1);
21
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 24H26" }, null, -1);
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, _hoisted_6);
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: "M39 4V44M31 11 39 4 47 11M47 37 39 44 31 37" }, null, -1);
20
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 7H26" }, null, -1);
21
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 24H26" }, null, -1);
22
- const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M3 41H26" }, null, -1);
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,
@@ -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;
@@ -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';
@@ -56,13 +56,20 @@ function toTree(option) {
56
56
  return result;
57
57
  }
58
58
  function eachTree(data, callback, childrenField = "children", parent) {
59
- if (data) {
60
- data.forEach((d, i) => {
61
- var _a;
62
- if (callback && callback(d, i, parent) !== false && ((_a = d[childrenField]) == null ? void 0 : _a.length)) {
63
- eachTree(d[childrenField], callback, childrenField, d);
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) {
@@ -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): void;
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 数据
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
+ const elementPlus = require("element-plus");
5
+ function useFormItemRest() {
6
+ vue.provide(elementPlus.formItemContextKey, null);
7
+ }
4
8
  function useTimer(ms, cb) {
5
9
  let timer = null;
6
10
  const waiting = vue.ref(false);
@@ -33,10 +37,18 @@ function useMediaQuery(query, onChange) {
33
37
  };
34
38
  const startWatch = () => {
35
39
  stopWatch();
36
- mediaQuery.addEventListener("change", handleChange);
40
+ if ("addEventListener" in mediaQuery) {
41
+ mediaQuery.addEventListener("change", handleChange);
42
+ } else {
43
+ mediaQuery.addListener(handleChange);
44
+ }
37
45
  };
38
46
  const stopWatch = () => {
39
- mediaQuery.removeEventListener("change", handleChange);
47
+ if ("removeEventListener" in mediaQuery) {
48
+ mediaQuery.removeEventListener("change", handleChange);
49
+ } else {
50
+ mediaQuery.removeListener(handleChange);
51
+ }
40
52
  handleChange();
41
53
  };
42
54
  vue.onBeforeUnmount(() => {
@@ -256,6 +268,7 @@ function useMoveEvent(option) {
256
268
  };
257
269
  }
258
270
  exports.useCollapseAnim = useCollapseAnim;
271
+ exports.useFormItemRest = useFormItemRest;
259
272
  exports.useMediaQuery = useMediaQuery;
260
273
  exports.useMousewheel = useMousewheel;
261
274
  exports.useMoveEvent = useMoveEvent;
@@ -1,5 +1,9 @@
1
1
  import { Ref } from 'vue';
2
2
 
3
+ /**
4
+ * 重置组件表单验证
5
+ */
6
+ export declare function useFormItemRest(): void;
3
7
  /**
4
8
  * useTimer 返回结果
5
9
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ele-admin-plus",
3
- "version": "1.2.2-beta.1",
3
+ "version": "1.2.2-beta.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts",