ele-admin-plus 1.1.9-beta.7 → 1.1.9-beta.8

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 (187) hide show
  1. package/es/ele-alert/index.js +2 -4
  2. package/es/ele-app/plus.d.ts +3 -0
  3. package/es/ele-avatar-group/index.d.ts +1 -1
  4. package/es/ele-avatar-group/index.js +1 -3
  5. package/es/ele-basic-select/index.d.ts +8 -8
  6. package/es/ele-basic-select/index.js +17 -13
  7. package/es/ele-check-card/index.d.ts +2 -2
  8. package/es/ele-check-card/index.js +0 -5
  9. package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
  10. package/es/ele-config-provider/components/receiver-view.js +45 -0
  11. package/es/ele-copyable/index.d.ts +4 -6
  12. package/es/ele-copyable/index.js +1 -5
  13. package/es/ele-cropper/index.d.ts +6 -6
  14. package/es/ele-cropper/index.js +1 -5
  15. package/es/ele-dashboard/index.d.ts +0 -1
  16. package/es/ele-dashboard/index.js +8 -17
  17. package/es/ele-dot/index.d.ts +2 -4
  18. package/es/ele-dot/index.js +4 -10
  19. package/es/ele-drawer/index.d.ts +6 -6
  20. package/es/ele-drawer/index.js +14 -11
  21. package/es/ele-dropdown/index.js +6 -10
  22. package/es/ele-dropdown/style/index.scss +2 -2
  23. package/es/ele-edit-tag/index.d.ts +6 -0
  24. package/es/ele-edit-tag/index.js +17 -15
  25. package/es/ele-edit-tag/props.d.ts +4 -0
  26. package/es/ele-edit-tag/props.js +5 -1
  27. package/es/ele-edit-tag/style/index.scss +13 -0
  28. package/es/ele-ellipsis/index.d.ts +3 -3
  29. package/es/ele-ellipsis/index.js +2 -4
  30. package/es/ele-file-list/components/file-grid-item.js +16 -9
  31. package/es/ele-file-list/components/file-grid.js +54 -50
  32. package/es/ele-file-list/components/file-table-item.js +20 -15
  33. package/es/ele-file-list/components/file-table.js +92 -86
  34. package/es/ele-file-list/index.d.ts +4 -4
  35. package/es/ele-file-list/index.js +1 -11
  36. package/es/ele-file-list-tool/index.d.ts +3 -3
  37. package/es/ele-file-list-tool/index.js +2 -2
  38. package/es/ele-icon-select/index.d.ts +22 -10
  39. package/es/ele-icon-select/index.js +33 -10
  40. package/es/ele-icon-select/props.d.ts +6 -1
  41. package/es/ele-icon-select/props.js +6 -1
  42. package/es/ele-icon-select/style/index.js +1 -0
  43. package/es/ele-icon-select/style/index.scss +16 -2
  44. package/es/ele-loading/index.d.ts +0 -2
  45. package/es/ele-loading/index.js +32 -30
  46. package/es/ele-map-picker/components/map-view.d.ts +2 -2
  47. package/es/ele-menus/index.d.ts +3 -3
  48. package/es/ele-menus/index.js +6 -7
  49. package/es/ele-menus/style/index.js +2 -0
  50. package/es/ele-menus/style/index.scss +2 -1
  51. package/es/ele-modal/index.d.ts +2 -2
  52. package/es/ele-modal/index.js +14 -8
  53. package/es/ele-pagination/index.d.ts +6 -6
  54. package/es/ele-pagination/index.js +2 -8
  55. package/es/ele-popconfirm/style/index.js +1 -1
  56. package/es/ele-popover/style/index.js +0 -1
  57. package/es/ele-printer/index.d.ts +6 -6
  58. package/es/ele-printer/index.js +11 -11
  59. package/es/ele-pro-layout/components/pro-sidebox.js +3 -1
  60. package/es/ele-pro-layout/index.d.ts +26 -26
  61. package/es/ele-pro-layout/index.js +7 -14
  62. package/es/ele-pro-table/index.d.ts +11 -11
  63. package/es/ele-pro-table/index.js +1 -6
  64. package/es/ele-pro-table/props.d.ts +3 -3
  65. package/es/ele-segmented/index.js +1 -3
  66. package/es/ele-split-panel/index.d.ts +9 -8
  67. package/es/ele-split-panel/index.js +63 -59
  68. package/es/ele-steps/index.d.ts +0 -1
  69. package/es/ele-steps/index.js +2 -4
  70. package/es/ele-table-select/index.d.ts +1 -1
  71. package/es/ele-tabs/index.d.ts +7 -5
  72. package/es/ele-tabs/index.js +1 -6
  73. package/es/ele-tabs/props.d.ts +1 -1
  74. package/es/ele-tooltip/index.js +9 -13
  75. package/es/ele-tooltip/style/css-var.scss +4 -0
  76. package/es/ele-tooltip/style/index.scss +23 -0
  77. package/es/ele-tour/index.js +80 -77
  78. package/es/ele-upload-list/components/list-item.d.ts +1 -1
  79. package/es/ele-upload-list/index.d.ts +6 -4
  80. package/es/ele-upload-list/index.js +2 -3
  81. package/es/ele-virtual-table/index.d.ts +1 -1
  82. package/es/ele-watermark/index.d.ts +9 -0
  83. package/es/ele-watermark/index.js +1 -1
  84. package/es/ele-watermark/props.d.ts +5 -0
  85. package/es/ele-watermark/props.js +5 -0
  86. package/es/style/index.scss +1 -43
  87. package/es/style/plus.scss +43 -0
  88. package/es/style/themes/default.scss +5 -2
  89. package/es/style/themes/theme-util.scss +0 -2
  90. package/es/utils/resolvers.d.ts +2 -2
  91. package/es/utils/resolvers.js +33 -20
  92. package/lib/ele-alert/index.cjs +2 -4
  93. package/lib/ele-app/plus.d.ts +3 -0
  94. package/lib/ele-avatar-group/index.cjs +1 -3
  95. package/lib/ele-avatar-group/index.d.ts +1 -1
  96. package/lib/ele-basic-select/index.cjs +16 -12
  97. package/lib/ele-basic-select/index.d.ts +8 -8
  98. package/lib/ele-check-card/index.cjs +0 -5
  99. package/lib/ele-check-card/index.d.ts +2 -2
  100. package/lib/ele-config-provider/components/receiver-view.cjs +44 -0
  101. package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
  102. package/lib/ele-copyable/index.cjs +0 -4
  103. package/lib/ele-copyable/index.d.ts +4 -6
  104. package/lib/ele-cropper/index.cjs +0 -4
  105. package/lib/ele-cropper/index.d.ts +6 -6
  106. package/lib/ele-dashboard/index.cjs +7 -16
  107. package/lib/ele-dashboard/index.d.ts +0 -1
  108. package/lib/ele-dot/index.cjs +3 -9
  109. package/lib/ele-dot/index.d.ts +2 -4
  110. package/lib/ele-drawer/index.cjs +13 -10
  111. package/lib/ele-drawer/index.d.ts +6 -6
  112. package/lib/ele-dropdown/index.cjs +6 -10
  113. package/lib/ele-dropdown/style/index.scss +2 -2
  114. package/lib/ele-edit-tag/index.cjs +16 -14
  115. package/lib/ele-edit-tag/index.d.ts +6 -0
  116. package/lib/ele-edit-tag/props.cjs +5 -1
  117. package/lib/ele-edit-tag/props.d.ts +4 -0
  118. package/lib/ele-edit-tag/style/index.scss +13 -0
  119. package/lib/ele-ellipsis/index.cjs +2 -4
  120. package/lib/ele-ellipsis/index.d.ts +3 -3
  121. package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
  122. package/lib/ele-file-list/components/file-grid.cjs +53 -49
  123. package/lib/ele-file-list/components/file-table-item.cjs +19 -14
  124. package/lib/ele-file-list/components/file-table.cjs +91 -85
  125. package/lib/ele-file-list/index.cjs +0 -10
  126. package/lib/ele-file-list/index.d.ts +4 -4
  127. package/lib/ele-file-list-tool/index.cjs +2 -2
  128. package/lib/ele-file-list-tool/index.d.ts +3 -3
  129. package/lib/ele-icon-select/index.cjs +39 -16
  130. package/lib/ele-icon-select/index.d.ts +22 -10
  131. package/lib/ele-icon-select/props.cjs +6 -1
  132. package/lib/ele-icon-select/props.d.ts +6 -1
  133. package/lib/ele-icon-select/style/index.cjs +1 -0
  134. package/lib/ele-icon-select/style/index.scss +16 -2
  135. package/lib/ele-loading/index.cjs +31 -29
  136. package/lib/ele-loading/index.d.ts +0 -2
  137. package/lib/ele-map-picker/components/map-view.d.ts +2 -2
  138. package/lib/ele-menus/index.cjs +6 -7
  139. package/lib/ele-menus/index.d.ts +3 -3
  140. package/lib/ele-menus/style/index.cjs +2 -0
  141. package/lib/ele-menus/style/index.scss +2 -1
  142. package/lib/ele-modal/index.cjs +13 -7
  143. package/lib/ele-modal/index.d.ts +2 -2
  144. package/lib/ele-pagination/index.cjs +2 -8
  145. package/lib/ele-pagination/index.d.ts +6 -6
  146. package/lib/ele-popconfirm/style/index.cjs +1 -1
  147. package/lib/ele-popover/style/index.cjs +0 -1
  148. package/lib/ele-printer/index.cjs +10 -10
  149. package/lib/ele-printer/index.d.ts +6 -6
  150. package/lib/ele-pro-layout/components/pro-sidebox.cjs +3 -1
  151. package/lib/ele-pro-layout/index.cjs +6 -13
  152. package/lib/ele-pro-layout/index.d.ts +26 -26
  153. package/lib/ele-pro-table/index.cjs +0 -5
  154. package/lib/ele-pro-table/index.d.ts +11 -11
  155. package/lib/ele-pro-table/props.d.ts +3 -3
  156. package/lib/ele-segmented/index.cjs +1 -3
  157. package/lib/ele-split-panel/index.cjs +62 -58
  158. package/lib/ele-split-panel/index.d.ts +9 -8
  159. package/lib/ele-steps/index.cjs +2 -4
  160. package/lib/ele-steps/index.d.ts +0 -1
  161. package/lib/ele-table-select/index.d.ts +1 -1
  162. package/lib/ele-tabs/index.cjs +1 -6
  163. package/lib/ele-tabs/index.d.ts +7 -5
  164. package/lib/ele-tabs/props.d.ts +1 -1
  165. package/lib/ele-tooltip/index.cjs +9 -13
  166. package/lib/ele-tooltip/style/css-var.scss +4 -0
  167. package/lib/ele-tooltip/style/index.scss +23 -0
  168. package/lib/ele-tour/index.cjs +79 -76
  169. package/lib/ele-upload-list/components/list-item.d.ts +1 -1
  170. package/lib/ele-upload-list/index.cjs +1 -2
  171. package/lib/ele-upload-list/index.d.ts +6 -4
  172. package/lib/ele-virtual-table/index.d.ts +1 -1
  173. package/lib/ele-watermark/index.cjs +1 -1
  174. package/lib/ele-watermark/index.d.ts +9 -0
  175. package/lib/ele-watermark/props.cjs +5 -0
  176. package/lib/ele-watermark/props.d.ts +5 -0
  177. package/lib/style/index.scss +1 -43
  178. package/lib/style/plus.scss +43 -0
  179. package/lib/style/themes/default.scss +5 -2
  180. package/lib/style/themes/theme-util.scss +0 -2
  181. package/lib/utils/resolvers.cjs +33 -20
  182. package/lib/utils/resolvers.d.ts +2 -2
  183. package/package.json +1 -1
  184. package/es/ele-popover/style/css-var.scss +0 -8
  185. package/es/ele-popover/style/index.scss +0 -27
  186. package/lib/ele-popover/style/css-var.scss +0 -8
  187. package/lib/ele-popover/style/index.scss +0 -27
@@ -1,6 +1,5 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, createElementBlock, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { ElTooltip } from "element-plus";
3
- import { useLicense } from "../ele-config-provider/receiver";
4
3
  import { omit } from "../utils/core";
5
4
  import { tooltipProps, tooltipEmits } from "./props";
6
5
  const _sfc_main = defineComponent({
@@ -9,7 +8,6 @@ const _sfc_main = defineComponent({
9
8
  props: tooltipProps,
10
9
  emits: tooltipEmits,
11
10
  setup(props, { emit }) {
12
- const { authenticated } = useLicense();
13
11
  const tooltipRef = ref();
14
12
  const rootProps = computed(() => {
15
13
  const options = omit(props, [
@@ -26,18 +24,16 @@ const _sfc_main = defineComponent({
26
24
  "onOpen",
27
25
  "onClose"
28
26
  ]);
29
- if (authenticated.value) {
30
- const classes = ["ele-popper"];
31
- if (props.isPopover && props.effect === "light") {
32
- classes.push("ele-popover");
33
- } else {
34
- classes.push("ele-tooltip");
35
- }
36
- if (typeof props.popperClass === "string" && props.popperClass) {
37
- classes.push(props.popperClass);
38
- }
39
- options.popperClass = classes.join(" ");
27
+ const classes = ["ele-popper"];
28
+ if (props.isPopover && props.effect === "light") {
29
+ classes.push("ele-popover");
30
+ } else {
31
+ classes.push("ele-tooltip");
32
+ }
33
+ if (typeof props.popperClass === "string" && props.popperClass) {
34
+ classes.push(props.popperClass);
40
35
  }
36
+ options.popperClass = classes.join(" ");
41
37
  const style = {};
42
38
  if (props.bg || props.arrowBg) {
43
39
  options.effect = "dark";
@@ -14,6 +14,10 @@
14
14
  .ele-tooltip.is-light {
15
15
  @include set-ele-var('tooltip-light', $var);
16
16
  }
17
+
18
+ .ele-popover {
19
+ @include set-ele-var('popover', $var);
20
+ }
17
21
  }
18
22
 
19
23
  /* 底层气泡样式 */
@@ -70,3 +70,26 @@
70
70
  border-color: elVar('color-success');
71
71
  }
72
72
  }
73
+
74
+ /* 气泡卡片 */
75
+ .ele-popper.ele-popover {
76
+ color: eleVar('popover', 'color');
77
+ font-size: eleVar('popover', 'font-size');
78
+ line-height: inherit;
79
+ text-align: left;
80
+ min-width: 150px;
81
+ padding: 0;
82
+ }
83
+
84
+ .ele-popover-content {
85
+ padding: eleVar('popover', 'padding');
86
+ box-sizing: border-box;
87
+ }
88
+
89
+ .ele-popover-title {
90
+ color: eleVar('popover', 'title-color');
91
+ font-size: eleVar('popover', 'title-font-size');
92
+ font-weight: eleVar('popover', 'title-font-weight');
93
+ padding: eleVar('popover', 'title-padding');
94
+ border-bottom: eleVar('popover', 'title-border');
95
+ }
@@ -1,16 +1,16 @@
1
1
  import { defineComponent, ref, shallowRef, onMounted, watch, nextTick, resolveComponent, openBlock, createBlock, Teleport, createElementVNode, normalizeClass, normalizeStyle, createVNode, mergeProps, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { ElButton } from "element-plus";
3
3
  import EleTooltip from "../ele-tooltip/index";
4
- import { useLicense, useLocale } from "../ele-config-provider/receiver";
4
+ import ReceiverView from "../ele-config-provider/components/receiver-view";
5
+ import { useLocale } from "../ele-config-provider/receiver";
5
6
  import { scrollIntoView, getOffset, getPopperProps } from "./util";
6
7
  import { tourProps, tourEmits } from "./props";
7
8
  const _sfc_main = defineComponent({
8
9
  name: "EleTour",
9
- components: { ElButton, EleTooltip },
10
+ components: { ElButton, EleTooltip, ReceiverView },
10
11
  props: tourProps,
11
12
  emits: tourEmits,
12
13
  setup(props, { emit }) {
13
- const { authenticated } = useLicense();
14
14
  const { lang } = useLocale("tour", props);
15
15
  const triggerRef = ref(null);
16
16
  const tooltipRef = ref(null);
@@ -21,7 +21,7 @@ const _sfc_main = defineComponent({
21
21
  const boxStyle = ref({});
22
22
  const showMask = ref(false);
23
23
  const start = () => {
24
- if (!authenticated.value || !props.steps || props.modelValue == null || props.modelValue < 0 || props.modelValue >= props.steps.length) {
24
+ if (!props.steps || props.modelValue == null || props.modelValue < 0 || props.modelValue >= props.steps.length) {
25
25
  close();
26
26
  return;
27
27
  }
@@ -117,19 +117,16 @@ const _export_sfc = (sfc, props) => {
117
117
  return target;
118
118
  };
119
119
  const _hoisted_1 = {
120
- key: 0,
121
- class: "ele-popover-body"
122
- };
123
- const _hoisted_2 = {
124
120
  key: 0,
125
121
  class: "ele-tour-title"
126
122
  };
127
- const _hoisted_3 = { class: "ele-tour-text" };
128
- const _hoisted_4 = { class: "ele-tour-footer" };
129
- const _hoisted_5 = { class: "ele-tour-counter" };
130
- const _hoisted_6 = { class: "ele-tour-action" };
123
+ const _hoisted_2 = { class: "ele-tour-text" };
124
+ const _hoisted_3 = { class: "ele-tour-footer" };
125
+ const _hoisted_4 = { class: "ele-tour-counter" };
126
+ const _hoisted_5 = { class: "ele-tour-action" };
131
127
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
132
128
  const _component_ElButton = resolveComponent("ElButton");
129
+ const _component_ReceiverView = resolveComponent("ReceiverView");
133
130
  const _component_EleTooltip = resolveComponent("EleTooltip");
134
131
  return openBlock(), createBlock(Teleport, { to: "body" }, [
135
132
  createElementVNode("div", {
@@ -153,76 +150,82 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
153
150
  hideAfter: 0
154
151
  }), {
155
152
  body: withCtx(() => [
156
- _ctx.steps && _ctx.step ? (openBlock(), createElementBlock("div", _hoisted_1, [
157
- _ctx.step.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
158
- renderSlot(_ctx.$slots, "title", {
159
- step: _ctx.step,
160
- current: _ctx.modelValue
161
- }, () => [
162
- createTextVNode(toDisplayString(_ctx.step.title), 1)
163
- ])
164
- ])) : createCommentVNode("", true),
165
- createElementVNode("div", _hoisted_3, [
166
- renderSlot(_ctx.$slots, "text", {
153
+ _ctx.steps && _ctx.step ? (openBlock(), createBlock(_component_ReceiverView, {
154
+ key: 0,
155
+ class: "ele-popover-body"
156
+ }, {
157
+ default: withCtx(() => [
158
+ _ctx.step.title ? (openBlock(), createElementBlock("div", _hoisted_1, [
159
+ renderSlot(_ctx.$slots, "title", {
160
+ step: _ctx.step,
161
+ current: _ctx.modelValue
162
+ }, () => [
163
+ createTextVNode(toDisplayString(_ctx.step.title), 1)
164
+ ])
165
+ ])) : createCommentVNode("", true),
166
+ createElementVNode("div", _hoisted_2, [
167
+ renderSlot(_ctx.$slots, "text", {
168
+ step: _ctx.step,
169
+ current: _ctx.modelValue
170
+ }, () => [
171
+ createTextVNode(toDisplayString(_ctx.step.description), 1)
172
+ ])
173
+ ]),
174
+ renderSlot(_ctx.$slots, "footer", {
167
175
  step: _ctx.step,
168
176
  current: _ctx.modelValue
169
177
  }, () => [
170
- createTextVNode(toDisplayString(_ctx.step.description), 1)
171
- ])
172
- ]),
173
- renderSlot(_ctx.$slots, "footer", {
174
- step: _ctx.step,
175
- current: _ctx.modelValue
176
- }, () => [
177
- createElementVNode("div", _hoisted_4, [
178
- createElementVNode("div", _hoisted_5, toDisplayString((_ctx.modelValue || 0) + 1) + "/" + toDisplayString(_ctx.steps.length), 1),
179
- createElementVNode("div", _hoisted_6, [
180
- !_ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
181
- key: 0,
182
- size: "small",
183
- onClick: _ctx.onFinish
184
- }, {
185
- default: withCtx(() => [
186
- createTextVNode(toDisplayString(_ctx.lang.skip), 1)
187
- ]),
188
- _: 1
189
- }, 8, ["onClick"])) : createCommentVNode("", true),
190
- _ctx.modelValue !== 0 ? (openBlock(), createBlock(_component_ElButton, {
191
- key: 1,
192
- size: "small",
193
- onClick: _ctx.onPrev
194
- }, {
195
- default: withCtx(() => [
196
- createTextVNode(toDisplayString(_ctx.lang.prev), 1)
197
- ]),
198
- _: 1
199
- }, 8, ["onClick"])) : createCommentVNode("", true),
200
- !_ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
201
- key: 2,
202
- size: "small",
203
- type: "primary",
204
- onClick: _ctx.onNext
205
- }, {
206
- default: withCtx(() => [
207
- createTextVNode(toDisplayString(_ctx.lang.next), 1)
208
- ]),
209
- _: 1
210
- }, 8, ["onClick"])) : createCommentVNode("", true),
211
- _ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
212
- key: 3,
213
- size: "small",
214
- type: "primary",
215
- onClick: _ctx.onFinish
216
- }, {
217
- default: withCtx(() => [
218
- createTextVNode(toDisplayString(_ctx.lang.finish), 1)
219
- ]),
220
- _: 1
221
- }, 8, ["onClick"])) : createCommentVNode("", true)
178
+ createElementVNode("div", _hoisted_3, [
179
+ createElementVNode("div", _hoisted_4, toDisplayString((_ctx.modelValue || 0) + 1) + "/" + toDisplayString(_ctx.steps.length), 1),
180
+ createElementVNode("div", _hoisted_5, [
181
+ !_ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
182
+ key: 0,
183
+ size: "small",
184
+ onClick: _ctx.onFinish
185
+ }, {
186
+ default: withCtx(() => [
187
+ createTextVNode(toDisplayString(_ctx.lang.skip), 1)
188
+ ]),
189
+ _: 1
190
+ }, 8, ["onClick"])) : createCommentVNode("", true),
191
+ _ctx.modelValue !== 0 ? (openBlock(), createBlock(_component_ElButton, {
192
+ key: 1,
193
+ size: "small",
194
+ onClick: _ctx.onPrev
195
+ }, {
196
+ default: withCtx(() => [
197
+ createTextVNode(toDisplayString(_ctx.lang.prev), 1)
198
+ ]),
199
+ _: 1
200
+ }, 8, ["onClick"])) : createCommentVNode("", true),
201
+ !_ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
202
+ key: 2,
203
+ size: "small",
204
+ type: "primary",
205
+ onClick: _ctx.onNext
206
+ }, {
207
+ default: withCtx(() => [
208
+ createTextVNode(toDisplayString(_ctx.lang.next), 1)
209
+ ]),
210
+ _: 1
211
+ }, 8, ["onClick"])) : createCommentVNode("", true),
212
+ _ctx.isLast ? (openBlock(), createBlock(_component_ElButton, {
213
+ key: 3,
214
+ size: "small",
215
+ type: "primary",
216
+ onClick: _ctx.onFinish
217
+ }, {
218
+ default: withCtx(() => [
219
+ createTextVNode(toDisplayString(_ctx.lang.finish), 1)
220
+ ]),
221
+ _: 1
222
+ }, 8, ["onClick"])) : createCommentVNode("", true)
223
+ ])
222
224
  ])
223
225
  ])
224
- ])
225
- ])) : createCommentVNode("", true)
226
+ ]),
227
+ _: 3
228
+ })) : createCommentVNode("", true)
226
229
  ]),
227
230
  _: 3
228
231
  }, 16, ["virtualRef", "disabled"])
@@ -48,9 +48,9 @@ declare const _default: import("vue").DefineComponent<{
48
48
  required: true;
49
49
  };
50
50
  }>> & {
51
+ onRetry?: ((_item: UploadItem) => any) | undefined;
51
52
  onItemClick?: ((_item: UploadItem) => any) | undefined;
52
53
  onRemove?: ((_item: UploadItem) => any) | undefined;
53
- onRetry?: ((_item: UploadItem) => any) | undefined;
54
54
  }, {
55
55
  disabled: boolean;
56
56
  readonly: boolean;
@@ -22,12 +22,13 @@ declare const _default: import("vue").DefineComponent<{
22
22
  buttonStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
23
23
  sortable: {
24
24
  type: import("vue").PropType<boolean | Record<string | number | symbol, any>>;
25
- default: boolean; /** 国际化 */
25
+ default: boolean;
26
26
  };
27
27
  imageProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
28
28
  progressProps: import("vue").PropType<import("../ele-app/el").ElProgressProps>;
29
29
  previewProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
30
- locale: import("vue").PropType<Partial<UploadLocale>>; /** 当前图片地址 */
30
+ /** 当前图片地址 */
31
+ locale: import("vue").PropType<Partial<UploadLocale>>;
31
32
  }, {
32
33
  lang: import("vue").ComputedRef<UploadLocale>;
33
34
  previewRef: import("vue").Ref<ElImageInstance>;
@@ -72,12 +73,13 @@ declare const _default: import("vue").DefineComponent<{
72
73
  buttonStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
73
74
  sortable: {
74
75
  type: import("vue").PropType<boolean | Record<string | number | symbol, any>>;
75
- default: boolean; /** 国际化 */
76
+ default: boolean;
76
77
  };
77
78
  imageProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
78
79
  progressProps: import("vue").PropType<import("../ele-app/el").ElProgressProps>;
79
80
  previewProps: import("vue").PropType<import("../ele-app/el").ElImageProps>;
80
- locale: import("vue").PropType<Partial<UploadLocale>>; /** 当前图片地址 */
81
+ /** 当前图片地址 */
82
+ locale: import("vue").PropType<Partial<UploadLocale>>;
81
83
  }>> & {
82
84
  "onUpdate:modelValue"?: ((_value: UploadItem[]) => any) | undefined;
83
85
  onItemClick?: ((_item: UploadItem) => any) | undefined;
@@ -2,7 +2,7 @@ import { defineComponent, ref, reactive, computed, onDeactivated, nextTick, reso
2
2
  import VueDraggable from "vuedraggable";
3
3
  import { ElUpload, ElImage, ElIcon } from "element-plus";
4
4
  import { uuid } from "../utils/core";
5
- import { useLicense, useLocale } from "../ele-config-provider/receiver";
5
+ import { useLocale } from "../ele-config-provider/receiver";
6
6
  import { PlusOutlined } from "../icons";
7
7
  import ListItem from "./components/list-item";
8
8
  import { uploadListProps, uploadListEmits } from "./props";
@@ -19,7 +19,6 @@ const _sfc_main = defineComponent({
19
19
  props: uploadListProps,
20
20
  emits: uploadListEmits,
21
21
  setup(props, { emit }) {
22
- const { authenticated } = useLicense();
23
22
  const { lang } = useLocale("upload", props);
24
23
  const previewRef = ref(null);
25
24
  const previewOption = reactive({
@@ -53,7 +52,7 @@ const _sfc_main = defineComponent({
53
52
  emit("update:modelValue", value);
54
53
  };
55
54
  const onUpload = (file) => {
56
- if (!authenticated.value || !uploadEnable.value || props.disabled) {
55
+ if (!uploadEnable.value || props.disabled) {
57
56
  return false;
58
57
  }
59
58
  const item = {
@@ -385,9 +385,9 @@ declare const _default: import("vue").DefineComponent<{
385
385
  } | undefined;
386
386
  tableLayout: "auto" | "fixed";
387
387
  flexible: boolean;
388
+ sticky: boolean;
388
389
  headerEllipsis: boolean;
389
390
  slotNormalize: boolean;
390
- sticky: boolean;
391
391
  bottomLine: boolean;
392
392
  emptyProps: import("../ele-data-table/types").TableEmptyProps;
393
393
  reserveCurrent: boolean;
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<{
15
15
  };
16
16
  customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
17
17
  fixed: BooleanConstructor;
18
+ wrapPosition: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ }; /** 根节点 */
18
22
  disabled: BooleanConstructor;
19
23
  }, {
20
24
  rootKey: Ref<number>;
@@ -37,10 +41,15 @@ declare const _default: import("vue").DefineComponent<{
37
41
  };
38
42
  customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
39
43
  fixed: BooleanConstructor;
44
+ wrapPosition: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ }; /** 根节点 */
40
48
  disabled: BooleanConstructor;
41
49
  }>>, {
42
50
  lineGap: number;
43
51
  fixed: boolean;
52
+ wrapPosition: boolean;
44
53
  disabled: boolean;
45
54
  }, {}>;
46
55
  export default _default;
@@ -197,7 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
197
197
  return openBlock(), createElementBlock("div", {
198
198
  ref: "rootRef",
199
199
  key: _ctx.rootKey,
200
- style: normalizeStyle(_ctx.fixed ? void 0 : { position: "relative" })
200
+ style: normalizeStyle(!_ctx.wrapPosition || _ctx.fixed ? void 0 : { position: "relative" })
201
201
  }, [
202
202
  renderSlot(_ctx.$slots, "default"),
203
203
  !_ctx.disabled ? (openBlock(), createElementBlock("div", {
@@ -28,6 +28,11 @@ export declare const watermarkProps: {
28
28
  customStyle: PropType<Partial<import("vue").CSSProperties>>;
29
29
  /** 是否使用固定定位 */
30
30
  fixed: BooleanConstructor;
31
+ /** 是否为外层添加定位样式 */
32
+ wrapPosition: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
31
36
  /** 是否禁用 */
32
37
  disabled: BooleanConstructor;
33
38
  };
@@ -26,6 +26,11 @@ const watermarkProps = {
26
26
  customStyle: Object,
27
27
  /** 是否使用固定定位 */
28
28
  fixed: Boolean,
29
+ /** 是否为外层添加定位样式 */
30
+ wrapPosition: {
31
+ type: Boolean,
32
+ default: true
33
+ },
29
34
  /** 是否禁用 */
30
35
  disabled: Boolean
31
36
  };
@@ -1,44 +1,2 @@
1
- @use '../ele-alert/style/index.scss' as alert;
2
1
  @use '../ele-app/style/index.scss' as app;
3
- @use '../ele-avatar-group/style/index.scss' as avatarGroup;
4
- @use '../ele-basic-select/style/index.scss' as basicSelect;
5
- @use '../ele-bottom-bar/style/index.scss' as bottomBar;
6
- @use '../ele-breadcrumb/style/index.scss' as breadcrumb;
7
- @use '../ele-copyable/style/index.scss' as copyable;
8
- @use '../ele-card/style/index.scss' as card;
9
- @use '../ele-check-card/style/index.scss' as checkCard;
10
- @use '../ele-cropper/style/index.scss' as cropper;
11
- @use '../ele-dashboard/style/index.scss' as dashboard;
12
- @use '../ele-data-table/style/index.scss' as dataTable;
13
- @use '../ele-dot/style/index.scss' as dot;
14
- @use '../ele-drawer/style/index.scss' as drawer;
15
- @use '../ele-dropdown/style/index.scss' as dropdown;
16
- @use '../ele-edit-tag/style/index.scss' as editTag;
17
- @use '../ele-ellipsis/style/index.scss' as ellipsis;
18
- @use '../ele-file-list/style/index.scss' as fileList;
19
- @use '../ele-icon-select/style/index.scss' as iconSelect;
20
- @use '../ele-loading/style/index.scss' as loading;
21
- @use '../ele-map-picker/style/index.scss' as mapPicker;
22
- @use '../ele-menus/style/index.scss' as menus;
23
- @use '../ele-modal/style/index.scss' as modal;
24
- @use '../ele-page/style/index.scss' as page;
25
- @use '../ele-pagination/style/index.scss' as pagination;
26
- @use '../ele-popconfirm/style/index.scss' as popconfirm;
27
- @use '../ele-popover/style/index.scss' as popover;
28
- @use '../ele-printer/style/index.scss' as printer;
29
- @use '../ele-pro-layout/style/index.scss' as proLayout;
30
- @use '../ele-pro-table/style/index.scss' as proTable;
31
- @use '../ele-segmented/style/index.scss' as segmented;
32
- @use '../ele-split-panel/style/index.scss' as splitPanel;
33
- @use '../ele-steps/style/index.scss' as steps;
34
- @use '../ele-tabs/style/index.scss' as tabs;
35
- @use '../ele-table/style/index.scss' as table;
36
- @use '../ele-table-select/style/index.scss' as tableSelect;
37
- @use '../ele-text/style/index.scss' as text;
38
- @use '../ele-tool/style/index.scss' as tool;
39
- @use '../ele-toolbar/style/index.scss' as toolbar;
40
- @use '../ele-tooltip/style/index.scss' as tooltip;
41
- @use '../ele-tour/style/index.scss' as tour;
42
- @use '../ele-tree-select/style/index.scss' as treeSelect;
43
- @use '../ele-upload-list/style/index.scss' as uploadList;
44
- @use '../ele-virtual-table/style/index.scss' as virtualTable;
2
+ @use './plus.scss' as *;
@@ -0,0 +1,43 @@
1
+ @use '../ele-alert/style/index.scss' as alert;
2
+ //@use '../ele-app/style/index.scss' as app;
3
+ @use '../ele-avatar-group/style/index.scss' as avatarGroup;
4
+ @use '../ele-basic-select/style/index.scss' as basicSelect;
5
+ @use '../ele-bottom-bar/style/index.scss' as bottomBar;
6
+ @use '../ele-breadcrumb/style/index.scss' as breadcrumb;
7
+ @use '../ele-copyable/style/index.scss' as copyable;
8
+ @use '../ele-card/style/index.scss' as card;
9
+ @use '../ele-check-card/style/index.scss' as checkCard;
10
+ @use '../ele-cropper/style/index.scss' as cropper;
11
+ @use '../ele-dashboard/style/index.scss' as dashboard;
12
+ @use '../ele-data-table/style/index.scss' as dataTable;
13
+ @use '../ele-dot/style/index.scss' as dot;
14
+ @use '../ele-drawer/style/index.scss' as drawer;
15
+ @use '../ele-dropdown/style/index.scss' as dropdown;
16
+ @use '../ele-edit-tag/style/index.scss' as editTag;
17
+ @use '../ele-ellipsis/style/index.scss' as ellipsis;
18
+ @use '../ele-file-list/style/index.scss' as fileList;
19
+ @use '../ele-icon-select/style/index.scss' as iconSelect;
20
+ @use '../ele-loading/style/index.scss' as loading;
21
+ @use '../ele-map-picker/style/index.scss' as mapPicker;
22
+ @use '../ele-menus/style/index.scss' as menus;
23
+ @use '../ele-modal/style/index.scss' as modal;
24
+ @use '../ele-page/style/index.scss' as page;
25
+ @use '../ele-pagination/style/index.scss' as pagination;
26
+ @use '../ele-popconfirm/style/index.scss' as popconfirm;
27
+ @use '../ele-printer/style/index.scss' as printer;
28
+ @use '../ele-pro-layout/style/index.scss' as proLayout;
29
+ @use '../ele-pro-table/style/index.scss' as proTable;
30
+ @use '../ele-segmented/style/index.scss' as segmented;
31
+ @use '../ele-split-panel/style/index.scss' as splitPanel;
32
+ @use '../ele-steps/style/index.scss' as steps;
33
+ @use '../ele-tabs/style/index.scss' as tabs;
34
+ @use '../ele-table/style/index.scss' as table;
35
+ @use '../ele-table-select/style/index.scss' as tableSelect;
36
+ @use '../ele-text/style/index.scss' as text;
37
+ @use '../ele-tool/style/index.scss' as tool;
38
+ @use '../ele-toolbar/style/index.scss' as toolbar;
39
+ @use '../ele-tooltip/style/index.scss' as tooltip;
40
+ @use '../ele-tour/style/index.scss' as tour;
41
+ @use '../ele-tree-select/style/index.scss' as treeSelect;
42
+ @use '../ele-upload-list/style/index.scss' as uploadList;
43
+ @use '../ele-virtual-table/style/index.scss' as virtualTable;
@@ -267,6 +267,9 @@ $ele: map.deep-merge(
267
267
  'icon': (
268
268
  // 图标选择器
269
269
  'header-padding': 0 12px,
270
+ 'search-width': 120px,
271
+ 'search-padding': 8px 0,
272
+ 'search-icon-size': elVar('font-size', 'extra-small'),
270
273
  'tab-height': 42px,
271
274
  'tab-space': 16px,
272
275
  'tab-padding': 0 2px,
@@ -348,8 +351,8 @@ $ele: map.deep-merge(
348
351
  ),
349
352
  'menu-popup': (
350
353
  // 气泡菜单
351
- 'min-width': 160px,
352
- 'max-width': 320px,
354
+ 'min-width': 148px,
355
+ 'max-width': 260px,
353
356
  'max-height': calc(100vh - 10px),
354
357
  'bg': elVar('bg-color', 'overlay'),
355
358
  'radius': elVar('border-radius', 'base'),
@@ -16,7 +16,6 @@
16
16
  @use '../../ele-page/style/css-var.scss' as *;
17
17
  @use '../../ele-pagination/style/css-var.scss' as *;
18
18
  @use '../../ele-popconfirm/style/css-var.scss' as *;
19
- @use '../../ele-popover/style/css-var.scss' as *;
20
19
  @use '../../ele-pro-layout/style/css-var.scss' as *;
21
20
  @use '../../ele-pro-table/style/css-var.scss' as *;
22
21
  @use '../../ele-segmented/style/css-var.scss' as *;
@@ -52,7 +51,6 @@
52
51
  @include set-page-var($var);
53
52
  @include set-pagination-var($var);
54
53
  @include set-popconfirm-var($var);
55
- @include set-popover-var($var);
56
54
  @include set-layout-var($var);
57
55
  @include set-pro-table-var($var);
58
56
  @include set-segmented-var($var);
@@ -4,8 +4,8 @@ import type { ComponentResolver } from 'unplugin-vue-components/types';
4
4
  * 参数类型
5
5
  */
6
6
  export interface EleAdminResolverOptions {
7
- /** 可选 '/es'、'/lib'、'', 默认'/es' */
8
- path?: string;
7
+ /** 包路径 */
8
+ path?: string | '' | '/es' | '/lib' | '/es/core' | '/lib/core';
9
9
  /** 排除的组件名称 */
10
10
  exclude?: string[];
11
11
  /** 是否导入样式 */
@@ -1,32 +1,45 @@
1
- function getSideEffects(name, options) {
2
- if (!(options == null ? void 0 : options.importStyle)) {
1
+ function getSideEffects(path, options) {
2
+ const importStyle = options == null ? void 0 : options.importStyle;
3
+ if (!importStyle) {
3
4
  return;
4
5
  }
5
- const dir = options.path ?? "/es";
6
- const packageName = "ele-admin-plus";
7
- if (options.importStyle === "css") {
8
- return `${packageName}${dir}/${name}/style/css`;
6
+ if (importStyle === "css") {
7
+ return `${path}/style/css`;
9
8
  }
10
- return `${packageName}${dir}/${name}/style/index`;
9
+ return `${path}/style/index`;
11
10
  }
12
- function kebabCase(value) {
13
- return value.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
11
+ function getStylePath(namePath, packageName, path) {
12
+ if (!path) {
13
+ return `${packageName}/es`;
14
+ }
15
+ if (path === "/es/core") {
16
+ return `${packageName}/es/${namePath}`;
17
+ }
18
+ if (path === "/lib/core") {
19
+ return `${packageName}/lib/${namePath}`;
20
+ }
21
+ return `${packageName}${path}/${namePath}`;
14
22
  }
15
- function EleAdminResolver(options = {}) {
23
+ function EleAdminResolver(options) {
16
24
  return {
17
25
  type: "component",
18
- resolve: (key) => {
19
- var _a, _b;
20
- if (key.match(/^Ele[A-Z]/) && !((_b = (_a = options == null ? void 0 : options.exclude) == null ? void 0 : _a.includes) == null ? void 0 : _b.call(_a, key))) {
26
+ resolve: (name) => {
27
+ var _a;
28
+ const { path, exclude } = options || {};
29
+ if (name.match(/^Ele[A-Z]/) && !((_a = exclude == null ? void 0 : exclude.includes) == null ? void 0 : _a.call(exclude, name))) {
21
30
  const packageName = "ele-admin-plus";
22
- const name = kebabCase(key);
23
- const dir = options.path ?? "/es";
24
- const path = !options.path ? `${packageName}${dir}` : `${packageName}${dir}/${name}`;
25
- const importName = options.path ? void 0 : key;
31
+ const namePath = name.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase();
32
+ const stylePath = getStylePath(namePath, packageName, path);
33
+ if (!path || path === "/es/core" || path === "/lib/core") {
34
+ return {
35
+ name,
36
+ from: `${packageName}${path ?? "/es"}`,
37
+ sideEffects: getSideEffects(stylePath, options)
38
+ };
39
+ }
26
40
  return {
27
- from: path,
28
- name: importName,
29
- sideEffects: getSideEffects(name, options)
41
+ from: `${packageName}${path}/${namePath}`,
42
+ sideEffects: getSideEffects(stylePath, options)
30
43
  };
31
44
  }
32
45
  }