ele-admin-plus 1.1.9-beta.6 → 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 (245) 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-data-table/props.d.ts +2 -2
  18. package/es/ele-dot/index.d.ts +2 -4
  19. package/es/ele-dot/index.js +4 -10
  20. package/es/ele-drawer/index.d.ts +6 -6
  21. package/es/ele-drawer/index.js +14 -11
  22. package/es/ele-dropdown/index.js +6 -10
  23. package/es/ele-dropdown/style/index.scss +2 -2
  24. package/es/ele-edit-tag/index.d.ts +6 -0
  25. package/es/ele-edit-tag/index.js +17 -15
  26. package/es/ele-edit-tag/props.d.ts +4 -0
  27. package/es/ele-edit-tag/props.js +5 -1
  28. package/es/ele-edit-tag/style/index.scss +13 -0
  29. package/es/ele-ellipsis/index.d.ts +3 -3
  30. package/es/ele-ellipsis/index.js +4 -27
  31. package/es/ele-file-list/components/file-grid-item.js +16 -9
  32. package/es/ele-file-list/components/file-grid.js +54 -50
  33. package/es/ele-file-list/components/file-table-item.js +20 -15
  34. package/es/ele-file-list/components/file-table.js +92 -86
  35. package/es/ele-file-list/index.d.ts +4 -4
  36. package/es/ele-file-list/index.js +1 -11
  37. package/es/ele-file-list-tool/index.d.ts +3 -3
  38. package/es/ele-file-list-tool/index.js +2 -2
  39. package/es/ele-icon-select/index.d.ts +22 -10
  40. package/es/ele-icon-select/index.js +33 -10
  41. package/es/ele-icon-select/props.d.ts +6 -1
  42. package/es/ele-icon-select/props.js +6 -1
  43. package/es/ele-icon-select/style/index.js +1 -0
  44. package/es/ele-icon-select/style/index.scss +16 -2
  45. package/es/ele-loading/index.d.ts +0 -2
  46. package/es/ele-loading/index.js +32 -30
  47. package/es/ele-map-picker/components/map-view.d.ts +22 -18
  48. package/es/ele-map-picker/components/map-view.js +77 -50
  49. package/es/ele-map-picker/index.d.ts +5 -3
  50. package/es/ele-map-picker/props.d.ts +6 -4
  51. package/es/ele-map-picker/props.js +5 -3
  52. package/es/ele-map-picker/style/index.scss +1 -1
  53. package/es/ele-menus/index.d.ts +10 -1
  54. package/es/ele-menus/index.js +63 -12
  55. package/es/ele-menus/props.d.ts +8 -0
  56. package/es/ele-menus/props.js +10 -2
  57. package/es/ele-menus/style/index.js +2 -0
  58. package/es/ele-menus/style/index.scss +1 -0
  59. package/es/ele-menus/util.d.ts +15 -3
  60. package/es/ele-menus/util.js +47 -21
  61. package/es/ele-modal/index.d.ts +2 -2
  62. package/es/ele-modal/index.js +14 -8
  63. package/es/ele-modal/style/index.scss +1 -0
  64. package/es/ele-pagination/index.d.ts +6 -6
  65. package/es/ele-pagination/index.js +2 -8
  66. package/es/ele-popconfirm/index.d.ts +3 -3
  67. package/es/ele-popconfirm/style/index.js +1 -1
  68. package/es/ele-popover/index.d.ts +3 -3
  69. package/es/ele-popover/props.d.ts +1 -1
  70. package/es/ele-popover/style/index.js +0 -1
  71. package/es/ele-printer/index.d.ts +6 -6
  72. package/es/ele-printer/index.js +11 -11
  73. package/es/ele-pro-layout/components/pro-header.d.ts +9 -0
  74. package/es/ele-pro-layout/components/pro-header.js +8 -2
  75. package/es/ele-pro-layout/components/pro-sidebar.d.ts +9 -0
  76. package/es/ele-pro-layout/components/pro-sidebar.js +8 -2
  77. package/es/ele-pro-layout/components/pro-sidebox.d.ts +9 -0
  78. package/es/ele-pro-layout/components/pro-sidebox.js +11 -3
  79. package/es/ele-pro-layout/index.d.ts +33 -30
  80. package/es/ele-pro-layout/index.js +16 -17
  81. package/es/ele-pro-layout/props.d.ts +9 -5
  82. package/es/ele-pro-layout/props.js +9 -5
  83. package/es/ele-pro-table/index.d.ts +15 -15
  84. package/es/ele-pro-table/index.js +1 -6
  85. package/es/ele-pro-table/props.d.ts +3 -3
  86. package/es/ele-segmented/index.js +1 -3
  87. package/es/ele-split-panel/index.d.ts +9 -8
  88. package/es/ele-split-panel/index.js +63 -59
  89. package/es/ele-steps/index.d.ts +0 -1
  90. package/es/ele-steps/index.js +2 -4
  91. package/es/ele-table-select/index.d.ts +1 -1
  92. package/es/ele-tabs/index.d.ts +7 -5
  93. package/es/ele-tabs/index.js +1 -6
  94. package/es/ele-tabs/props.d.ts +1 -1
  95. package/es/ele-tooltip/index.js +9 -13
  96. package/es/ele-tooltip/style/css-var.scss +4 -0
  97. package/es/ele-tooltip/style/index.scss +23 -0
  98. package/es/ele-tour/index.js +80 -77
  99. package/es/ele-upload-list/components/list-item.d.ts +1 -1
  100. package/es/ele-upload-list/index.d.ts +6 -4
  101. package/es/ele-upload-list/index.js +2 -3
  102. package/es/ele-upload-list/style/index.scss +2 -1
  103. package/es/ele-virtual-table/index.d.ts +1 -1
  104. package/es/ele-virtual-table/props.d.ts +2 -2
  105. package/es/ele-virtual-table/util.js +2 -18
  106. package/es/ele-watermark/index.d.ts +9 -0
  107. package/es/ele-watermark/index.js +1 -1
  108. package/es/ele-watermark/props.d.ts +5 -0
  109. package/es/ele-watermark/props.js +5 -0
  110. package/es/style/index.scss +1 -43
  111. package/es/style/plus.scss +43 -0
  112. package/es/style/themes/default.scss +6 -3
  113. package/es/style/themes/rounded.scss +1 -1
  114. package/es/style/themes/theme-util.scss +0 -2
  115. package/es/utils/core.d.ts +5 -0
  116. package/es/utils/core.js +28 -0
  117. package/es/utils/resolvers.d.ts +2 -2
  118. package/es/utils/resolvers.js +33 -20
  119. package/lib/ele-alert/index.cjs +2 -4
  120. package/lib/ele-app/plus.d.ts +3 -0
  121. package/lib/ele-avatar-group/index.cjs +1 -3
  122. package/lib/ele-avatar-group/index.d.ts +1 -1
  123. package/lib/ele-basic-select/index.cjs +16 -12
  124. package/lib/ele-basic-select/index.d.ts +8 -8
  125. package/lib/ele-check-card/index.cjs +0 -5
  126. package/lib/ele-check-card/index.d.ts +2 -2
  127. package/lib/ele-config-provider/components/receiver-view.cjs +44 -0
  128. package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
  129. package/lib/ele-copyable/index.cjs +0 -4
  130. package/lib/ele-copyable/index.d.ts +4 -6
  131. package/lib/ele-cropper/index.cjs +0 -4
  132. package/lib/ele-cropper/index.d.ts +6 -6
  133. package/lib/ele-dashboard/index.cjs +7 -16
  134. package/lib/ele-dashboard/index.d.ts +0 -1
  135. package/lib/ele-data-table/props.d.ts +2 -2
  136. package/lib/ele-dot/index.cjs +3 -9
  137. package/lib/ele-dot/index.d.ts +2 -4
  138. package/lib/ele-drawer/index.cjs +13 -10
  139. package/lib/ele-drawer/index.d.ts +6 -6
  140. package/lib/ele-dropdown/index.cjs +6 -10
  141. package/lib/ele-dropdown/style/index.scss +2 -2
  142. package/lib/ele-edit-tag/index.cjs +16 -14
  143. package/lib/ele-edit-tag/index.d.ts +6 -0
  144. package/lib/ele-edit-tag/props.cjs +5 -1
  145. package/lib/ele-edit-tag/props.d.ts +4 -0
  146. package/lib/ele-edit-tag/style/index.scss +13 -0
  147. package/lib/ele-ellipsis/index.cjs +3 -26
  148. package/lib/ele-ellipsis/index.d.ts +3 -3
  149. package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
  150. package/lib/ele-file-list/components/file-grid.cjs +53 -49
  151. package/lib/ele-file-list/components/file-table-item.cjs +19 -14
  152. package/lib/ele-file-list/components/file-table.cjs +91 -85
  153. package/lib/ele-file-list/index.cjs +0 -10
  154. package/lib/ele-file-list/index.d.ts +4 -4
  155. package/lib/ele-file-list-tool/index.cjs +2 -2
  156. package/lib/ele-file-list-tool/index.d.ts +3 -3
  157. package/lib/ele-icon-select/index.cjs +39 -16
  158. package/lib/ele-icon-select/index.d.ts +22 -10
  159. package/lib/ele-icon-select/props.cjs +6 -1
  160. package/lib/ele-icon-select/props.d.ts +6 -1
  161. package/lib/ele-icon-select/style/index.cjs +1 -0
  162. package/lib/ele-icon-select/style/index.scss +16 -2
  163. package/lib/ele-loading/index.cjs +31 -29
  164. package/lib/ele-loading/index.d.ts +0 -2
  165. package/lib/ele-map-picker/components/map-view.cjs +76 -49
  166. package/lib/ele-map-picker/components/map-view.d.ts +22 -18
  167. package/lib/ele-map-picker/index.d.ts +5 -3
  168. package/lib/ele-map-picker/props.cjs +5 -3
  169. package/lib/ele-map-picker/props.d.ts +6 -4
  170. package/lib/ele-map-picker/style/index.scss +1 -1
  171. package/lib/ele-menus/index.cjs +61 -10
  172. package/lib/ele-menus/index.d.ts +10 -1
  173. package/lib/ele-menus/props.cjs +10 -2
  174. package/lib/ele-menus/props.d.ts +8 -0
  175. package/lib/ele-menus/style/index.cjs +2 -0
  176. package/lib/ele-menus/style/index.scss +1 -0
  177. package/lib/ele-menus/util.cjs +47 -21
  178. package/lib/ele-menus/util.d.ts +15 -3
  179. package/lib/ele-modal/index.cjs +13 -7
  180. package/lib/ele-modal/index.d.ts +2 -2
  181. package/lib/ele-modal/style/index.scss +1 -0
  182. package/lib/ele-pagination/index.cjs +2 -8
  183. package/lib/ele-pagination/index.d.ts +6 -6
  184. package/lib/ele-popconfirm/index.d.ts +3 -3
  185. package/lib/ele-popconfirm/style/index.cjs +1 -1
  186. package/lib/ele-popover/index.d.ts +3 -3
  187. package/lib/ele-popover/props.d.ts +1 -1
  188. package/lib/ele-popover/style/index.cjs +0 -1
  189. package/lib/ele-printer/index.cjs +10 -10
  190. package/lib/ele-printer/index.d.ts +6 -6
  191. package/lib/ele-pro-layout/components/pro-header.cjs +8 -2
  192. package/lib/ele-pro-layout/components/pro-header.d.ts +9 -0
  193. package/lib/ele-pro-layout/components/pro-sidebar.cjs +8 -2
  194. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +9 -0
  195. package/lib/ele-pro-layout/components/pro-sidebox.cjs +11 -3
  196. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +9 -0
  197. package/lib/ele-pro-layout/index.cjs +15 -16
  198. package/lib/ele-pro-layout/index.d.ts +33 -30
  199. package/lib/ele-pro-layout/props.cjs +9 -5
  200. package/lib/ele-pro-layout/props.d.ts +9 -5
  201. package/lib/ele-pro-table/index.cjs +0 -5
  202. package/lib/ele-pro-table/index.d.ts +15 -15
  203. package/lib/ele-pro-table/props.d.ts +3 -3
  204. package/lib/ele-segmented/index.cjs +1 -3
  205. package/lib/ele-split-panel/index.cjs +62 -58
  206. package/lib/ele-split-panel/index.d.ts +9 -8
  207. package/lib/ele-steps/index.cjs +2 -4
  208. package/lib/ele-steps/index.d.ts +0 -1
  209. package/lib/ele-table-select/index.d.ts +1 -1
  210. package/lib/ele-tabs/index.cjs +1 -6
  211. package/lib/ele-tabs/index.d.ts +7 -5
  212. package/lib/ele-tabs/props.d.ts +1 -1
  213. package/lib/ele-tooltip/index.cjs +9 -13
  214. package/lib/ele-tooltip/style/css-var.scss +4 -0
  215. package/lib/ele-tooltip/style/index.scss +23 -0
  216. package/lib/ele-tour/index.cjs +79 -76
  217. package/lib/ele-upload-list/components/list-item.d.ts +1 -1
  218. package/lib/ele-upload-list/index.cjs +1 -2
  219. package/lib/ele-upload-list/index.d.ts +6 -4
  220. package/lib/ele-upload-list/style/index.scss +2 -1
  221. package/lib/ele-virtual-table/index.d.ts +1 -1
  222. package/lib/ele-virtual-table/props.d.ts +2 -2
  223. package/lib/ele-virtual-table/util.cjs +1 -17
  224. package/lib/ele-watermark/index.cjs +1 -1
  225. package/lib/ele-watermark/index.d.ts +9 -0
  226. package/lib/ele-watermark/props.cjs +5 -0
  227. package/lib/ele-watermark/props.d.ts +5 -0
  228. package/lib/style/index.scss +1 -43
  229. package/lib/style/plus.scss +43 -0
  230. package/lib/style/themes/default.scss +6 -3
  231. package/lib/style/themes/rounded.scss +1 -1
  232. package/lib/style/themes/theme-util.scss +0 -2
  233. package/lib/utils/core.cjs +28 -0
  234. package/lib/utils/core.d.ts +5 -0
  235. package/lib/utils/resolvers.cjs +33 -20
  236. package/lib/utils/resolvers.d.ts +2 -2
  237. package/package.json +1 -1
  238. package/es/ele-map-picker/components/map-search.d.ts +0 -22
  239. package/es/ele-map-picker/components/map-search.js +0 -75
  240. package/es/ele-popover/style/css-var.scss +0 -8
  241. package/es/ele-popover/style/index.scss +0 -27
  242. package/lib/ele-map-picker/components/map-search.cjs +0 -74
  243. package/lib/ele-map-picker/components/map-search.d.ts +0 -22
  244. package/lib/ele-popover/style/css-var.scss +0 -8
  245. package/lib/ele-popover/style/index.scss +0 -27
@@ -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
  }
@@ -2,7 +2,6 @@
2
2
  const vue = require("vue");
3
3
  const elementPlus = require("element-plus");
4
4
  const icons = require("../icons");
5
- const receiver = require("../ele-config-provider/receiver");
6
5
  const props = require("./props");
7
6
  const _sfc_main = vue.defineComponent({
8
7
  name: "EleAlert",
@@ -17,20 +16,19 @@ const _sfc_main = vue.defineComponent({
17
16
  props: props.alertProps,
18
17
  emits: props.alertEmits,
19
18
  setup(props2, { emit, slots }) {
20
- const { authenticated } = receiver.useLicense();
21
19
  const visible = vue.ref(true);
22
20
  const isRich = vue.computed(() => {
23
21
  return !!props2.description || !!slots.default;
24
22
  });
25
23
  const onClose = (e) => {
26
- if (!visible.value || !props2.closable || !authenticated.value) {
24
+ if (!visible.value || !props2.closable) {
27
25
  return;
28
26
  }
29
27
  visible.value = false;
30
28
  emit("close", e);
31
29
  };
32
30
  const open = () => {
33
- if (!visible.value && authenticated.value) {
31
+ if (!visible.value) {
34
32
  visible.value = true;
35
33
  }
36
34
  };
@@ -21,6 +21,7 @@ import type { ToolbarProps } from '../ele-toolbar/props';
21
21
  import type { TooltipProps } from '../ele-tooltip/props';
22
22
  import type EleTooltip from '../ele-tooltip/index';
23
23
  import type EleVirtualTable from '../ele-virtual-table/index';
24
+ import type ReceiverView from '../ele-config-provider/components/receiver-view';
24
25
 
25
26
  /**
26
27
  * 组件属性
@@ -73,3 +74,5 @@ export type EleTooltipInstance = InstanceType<typeof EleTooltip> | null;
73
74
  export type EleVirtualTableInstance = InstanceType<
74
75
  typeof EleVirtualTable
75
76
  > | null;
77
+
78
+ export type ReceiverViewInstance = InstanceType<typeof ReceiverView> | null;
@@ -2,7 +2,6 @@
2
2
  const vue = require("vue");
3
3
  const elementPlus = require("element-plus");
4
4
  const EleTooltip = require("../ele-tooltip/index");
5
- const receiver = require("../ele-config-provider/receiver");
6
5
  const props = require("./props");
7
6
  const _sfc_main = vue.defineComponent({
8
7
  name: "EleAvatarGroup",
@@ -10,7 +9,6 @@ const _sfc_main = vue.defineComponent({
10
9
  props: props.avatarGroupProps,
11
10
  emits: props.avatarGroupEmits,
12
11
  setup(props2, { emit }) {
13
- const { authenticated } = receiver.useLicense();
14
12
  const tooltipContent = vue.ref("");
15
13
  const virtualRef = vue.ref();
16
14
  const overflowVisible = vue.ref(false);
@@ -28,7 +26,7 @@ const _sfc_main = vue.defineComponent({
28
26
  return props2.maxCount != null && props2.maxCount > 0 && props2.data != null && props2.data.length > props2.maxCount;
29
27
  });
30
28
  const avatarData = vue.computed(() => {
31
- if (!authenticated.value || props2.data == null) {
29
+ if (props2.data == null) {
32
30
  return [];
33
31
  }
34
32
  return isOverflow.value ? props2.data.slice(0, props2.maxCount) : props2.data;
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<{
36
36
  onError: (option: AvatarErrorOption) => void;
37
37
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  itemClick: (_item: AvatarItem) => boolean;
39
- moreClick: () => boolean; /** 是否显示更多 */
39
+ moreClick: () => boolean;
40
40
  error: (_option: AvatarErrorOption) => boolean;
41
41
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
42
  data: {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
3
  const elementPlus = require("element-plus");
4
- const receiver = require("../ele-config-provider/receiver");
5
- const EleTooltip = require("../ele-tooltip/index");
6
4
  const icons = require("../icons");
5
+ const EleTooltip = require("../ele-tooltip/index");
6
+ const ReceiverView = require("../ele-config-provider/components/receiver-view");
7
7
  const props = require("./props");
8
8
  const _sfc_main = vue.defineComponent({
9
9
  name: "EleBasicSelect",
@@ -11,14 +11,14 @@ const _sfc_main = vue.defineComponent({
11
11
  ElInput: elementPlus.ElInput,
12
12
  ElIcon: elementPlus.ElIcon,
13
13
  ElTag: elementPlus.ElTag,
14
- EleTooltip,
15
14
  CloseCircleFilled: icons.CloseCircleFilled,
16
- ArrowDown: icons.ArrowDown
15
+ ArrowDown: icons.ArrowDown,
16
+ EleTooltip,
17
+ ReceiverView
17
18
  },
18
19
  props: props.basicSelectProps,
19
20
  emits: props.basicSelectEmits,
20
21
  setup(props2, { emit }) {
21
- const { authenticated } = receiver.useLicense();
22
22
  const tooltipRef = vue.ref(null);
23
23
  const inputRef = vue.ref(null);
24
24
  const searchRef = vue.ref(null);
@@ -82,12 +82,12 @@ const _sfc_main = vue.defineComponent({
82
82
  }
83
83
  };
84
84
  const updateVisible = (visible) => {
85
- if (authenticated.value && !props2.disabled || !visible) {
85
+ if (!props2.disabled || !visible) {
86
86
  emit("update:visible", visible);
87
87
  }
88
88
  };
89
89
  const onTagClose = (item) => {
90
- if (authenticated.value && !props2.disabled) {
90
+ if (!props2.disabled) {
91
91
  emit("removeTag", item);
92
92
  }
93
93
  };
@@ -168,6 +168,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
168
168
  const _component_ArrowDown = vue.resolveComponent("ArrowDown");
169
169
  const _component_ElInput = vue.resolveComponent("ElInput");
170
170
  const _component_ElTag = vue.resolveComponent("ElTag");
171
+ const _component_ReceiverView = vue.resolveComponent("ReceiverView");
171
172
  const _component_EleTooltip = vue.resolveComponent("EleTooltip");
172
173
  return vue.openBlock(), vue.createBlock(_component_EleTooltip, {
173
174
  ref: "tooltipRef",
@@ -187,13 +188,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
187
188
  "onUpdate:visible": _ctx.updateVisible
188
189
  }, {
189
190
  body: vue.withCtx(() => [
190
- _ctx.persistent || _ctx.visible ? (vue.openBlock(), vue.createElementBlock("div", {
191
+ _ctx.persistent || _ctx.visible ? (vue.openBlock(), vue.createBlock(_component_ReceiverView, {
191
192
  key: 0,
192
193
  class: "ele-popover-body",
193
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.focusSearchInput && _ctx.focusSearchInput(...args))
194
- }, [
195
- vue.renderSlot(_ctx.$slots, "default")
196
- ])) : vue.createCommentVNode("", true)
194
+ onClick: _ctx.focusSearchInput
195
+ }, {
196
+ default: vue.withCtx(() => [
197
+ vue.renderSlot(_ctx.$slots, "default")
198
+ ]),
199
+ _: 3
200
+ }, 8, ["onClick"])) : vue.createCommentVNode("", true)
197
201
  ]),
198
202
  default: vue.withCtx(() => [
199
203
  vue.createElementVNode("div", {
@@ -15,21 +15,21 @@ declare const _default: import("vue").DefineComponent<{
15
15
  selected: import("vue").PropType<SelectedItem[]>;
16
16
  maxTagCount: NumberConstructor;
17
17
  maxTagTextLength: NumberConstructor;
18
- tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
18
+ tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>; /** 输入框组件 */
19
19
  automaticDropdown: BooleanConstructor;
20
20
  filterable: BooleanConstructor;
21
21
  visible: BooleanConstructor;
22
22
  teleported: BooleanConstructor;
23
23
  persistent: BooleanConstructor;
24
- placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>; /** 多选时搜索框值 */
24
+ placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
25
25
  transition: {
26
- type: StringConstructor;
26
+ type: StringConstructor; /** 是否未选中 */
27
27
  default: string;
28
28
  };
29
29
  popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
30
30
  popperClass: StringConstructor;
31
31
  popperWidth: (StringConstructor | NumberConstructor)[];
32
- selectClass: StringConstructor; /** 输入框提示文本 */
32
+ selectClass: StringConstructor;
33
33
  selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
34
34
  inputStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
35
35
  }, {
@@ -74,21 +74,21 @@ declare const _default: import("vue").DefineComponent<{
74
74
  selected: import("vue").PropType<SelectedItem[]>;
75
75
  maxTagCount: NumberConstructor;
76
76
  maxTagTextLength: NumberConstructor;
77
- tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
77
+ tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>; /** 输入框组件 */
78
78
  automaticDropdown: BooleanConstructor;
79
79
  filterable: BooleanConstructor;
80
80
  visible: BooleanConstructor;
81
81
  teleported: BooleanConstructor;
82
82
  persistent: BooleanConstructor;
83
- placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>; /** 多选时搜索框值 */
83
+ placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
84
84
  transition: {
85
- type: StringConstructor;
85
+ type: StringConstructor; /** 是否未选中 */
86
86
  default: string;
87
87
  };
88
88
  popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
89
89
  popperClass: StringConstructor;
90
90
  popperWidth: (StringConstructor | NumberConstructor)[];
91
- selectClass: StringConstructor; /** 输入框提示文本 */
91
+ selectClass: StringConstructor;
92
92
  selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
93
93
  inputStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
94
94
  }>> & {
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
3
  const elementPlus = require("element-plus");
4
- const receiver = require("../ele-config-provider/receiver");
5
4
  const CardItem = require("./components/card-item");
6
5
  const props = require("./props");
7
6
  const _sfc_main = vue.defineComponent({
@@ -10,7 +9,6 @@ const _sfc_main = vue.defineComponent({
10
9
  props: props.checkCardProps,
11
10
  emits: props.checkCardEmits,
12
11
  setup(props2, { emit }) {
13
- const { authenticated } = receiver.useLicense();
14
12
  const isChecked = (item) => {
15
13
  if (props2.modelValue == null || item.value == null) {
16
14
  return false;
@@ -24,9 +22,6 @@ const _sfc_main = vue.defineComponent({
24
22
  return props2.modelValue.includes(item.value);
25
23
  };
26
24
  const updateModelValue = (value) => {
27
- if (!authenticated.value) {
28
- return;
29
- }
30
25
  emit("update:modelValue", value);
31
26
  emit("change", value);
32
27
  };
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
9
9
  disabled: BooleanConstructor;
10
10
  bordered: {
11
11
  type: BooleanConstructor;
12
- default: boolean; /** 判断是否选中 */
12
+ default: boolean;
13
13
  };
14
14
  arrow: {
15
15
  type: BooleanConstructor;
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
35
35
  disabled: BooleanConstructor;
36
36
  bordered: {
37
37
  type: BooleanConstructor;
38
- default: boolean; /** 判断是否选中 */
38
+ default: boolean;
39
39
  };
40
40
  arrow: {
41
41
  type: BooleanConstructor;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const EleWatermark = require("../../ele-watermark/index");
4
+ const receiver = require("../receiver");
5
+ const _sfc_main = vue.defineComponent({
6
+ name: "ReceiverView",
7
+ components: { EleWatermark },
8
+ props: {
9
+ wrapPosition: {
10
+ type: Boolean,
11
+ default: true
12
+ }
13
+ },
14
+ setup(_props) {
15
+ const { authenticated } = receiver.useLicense();
16
+ return {
17
+ authenticated,
18
+ watermark: receiver.UNAUTHORIZED_TIP.split(",") || "Error"
19
+ };
20
+ }
21
+ });
22
+ const _export_sfc = (sfc, props) => {
23
+ const target = sfc.__vccOpts || sfc;
24
+ for (const [key, val] of props) {
25
+ target[key] = val;
26
+ }
27
+ return target;
28
+ };
29
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
30
+ const _component_EleWatermark = vue.resolveComponent("EleWatermark");
31
+ return vue.openBlock(), vue.createBlock(_component_EleWatermark, {
32
+ content: _ctx.watermark,
33
+ wrapPosition: false,
34
+ disabled: _ctx.authenticated,
35
+ style: vue.normalizeStyle(!_ctx.wrapPosition || _ctx.authenticated ? void 0 : { position: "relative" })
36
+ }, {
37
+ default: vue.withCtx(() => [
38
+ vue.renderSlot(_ctx.$slots, "default", { authenticated: _ctx.authenticated })
39
+ ]),
40
+ _: 3
41
+ }, 8, ["content", "disabled", "style"]);
42
+ }
43
+ const receiverView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
44
+ module.exports = receiverView;
@@ -0,0 +1,17 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ wrapPosition: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }, {
7
+ authenticated: import("vue").Ref<boolean>;
8
+ watermark: string[];
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ wrapPosition: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ }>>, {
15
+ wrapPosition: boolean;
16
+ }, {}>;
17
+ export default _default;
@@ -11,7 +11,6 @@ const _sfc_main = vue.defineComponent({
11
11
  props: props.copyableProps,
12
12
  emits: props.copyableEmits,
13
13
  setup(props2, { emit }) {
14
- const { authenticated } = receiver.useLicense();
15
14
  const { lang } = receiver.useLocale("copyable", props2);
16
15
  const state = { timer: null };
17
16
  const innerRef = vue.ref(null);
@@ -54,9 +53,6 @@ const _sfc_main = vue.defineComponent({
54
53
  });
55
54
  };
56
55
  const onCopyClick = () => {
57
- if (!authenticated.value) {
58
- return;
59
- }
60
56
  copyText(getText()).then(() => {
61
57
  copied.value = true;
62
58
  updateTooltip();
@@ -12,11 +12,10 @@ declare const _default: import("vue").DefineComponent<{
12
12
  copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
13
13
  tooltip: {
14
14
  type: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps>>;
15
- default: boolean; /** 提示单例目标 */
16
- };
15
+ default: boolean;
16
+ }; /** 是否拷贝完成 */
17
17
  resetAfter: {
18
18
  type: NumberConstructor;
19
- /** 是否拷贝完成 */
20
19
  default: number;
21
20
  };
22
21
  locale: import("vue").PropType<Partial<CopyableLocale>>;
@@ -42,11 +41,10 @@ declare const _default: import("vue").DefineComponent<{
42
41
  copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
43
42
  tooltip: {
44
43
  type: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps>>;
45
- default: boolean; /** 提示单例目标 */
46
- };
44
+ default: boolean;
45
+ }; /** 是否拷贝完成 */
47
46
  resetAfter: {
48
47
  type: NumberConstructor;
49
- /** 是否拷贝完成 */
50
48
  default: number;
51
49
  };
52
50
  locale: import("vue").PropType<Partial<CopyableLocale>>;
@@ -11,7 +11,6 @@ const _sfc_main = vue.defineComponent({
11
11
  props: props.cropperProps,
12
12
  emits: props.cropperEmits,
13
13
  setup(props2, { emit }) {
14
- const { authenticated } = receiver.useLicense();
15
14
  const isResponsive = receiver.useResponsive(props2);
16
15
  const imageRef = vue.ref(null);
17
16
  const previewRef = vue.ref(null);
@@ -84,9 +83,6 @@ const _sfc_main = vue.defineComponent({
84
83
  }
85
84
  };
86
85
  const onOk = () => {
87
- if (!authenticated.value) {
88
- return;
89
- }
90
86
  if (!state.instance) {
91
87
  emit("done");
92
88
  return;
@@ -27,17 +27,17 @@ declare const _default: import("vue").DefineComponent<{
27
27
  };
28
28
  toBlob: BooleanConstructor;
29
29
  options: import("vue").PropType<CropperOptions>;
30
- croppedOptions: import("vue").PropType<import("./types").CroppedOptions>; /** 图片节点 */
30
+ croppedOptions: import("vue").PropType<import("./types").CroppedOptions>;
31
31
  tooltip: {
32
32
  type: BooleanConstructor;
33
33
  default: boolean;
34
- }; /** 预览组件 */
34
+ };
35
35
  tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
36
36
  responsive: {
37
37
  type: BooleanConstructor;
38
38
  default: null;
39
39
  };
40
- locale: import("vue").PropType<Partial<import("./types").CropperLocale>>;
40
+ locale: import("vue").PropType<Partial<import("./types").CropperLocale>>; /** 渲染 */
41
41
  }, {
42
42
  imageRef: Ref<HTMLImageElement | null>;
43
43
  previewRef: Ref<PreviewInstance>;
@@ -85,17 +85,17 @@ declare const _default: import("vue").DefineComponent<{
85
85
  };
86
86
  toBlob: BooleanConstructor;
87
87
  options: import("vue").PropType<CropperOptions>;
88
- croppedOptions: import("vue").PropType<import("./types").CroppedOptions>; /** 图片节点 */
88
+ croppedOptions: import("vue").PropType<import("./types").CroppedOptions>;
89
89
  tooltip: {
90
90
  type: BooleanConstructor;
91
91
  default: boolean;
92
- }; /** 预览组件 */
92
+ };
93
93
  tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
94
94
  responsive: {
95
95
  type: BooleanConstructor;
96
96
  default: null;
97
97
  };
98
- locale: import("vue").PropType<Partial<import("./types").CropperLocale>>;
98
+ locale: import("vue").PropType<Partial<import("./types").CropperLocale>>; /** 渲染 */
99
99
  }>> & {
100
100
  onDone?: ((_result?: string | Blob | null | undefined) => any) | undefined;
101
101
  }, {
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const receiver = require("../ele-config-provider/receiver");
4
3
  const props = require("./props");
5
4
  const _sfc_main = vue.defineComponent({
6
5
  name: "EleDashboard",
7
6
  props: props.dashboardProps,
8
7
  setup(props2) {
9
- const { authenticated } = receiver.useLicense();
10
8
  const rootStyle = vue.computed(() => {
11
9
  const style = {};
12
10
  if (props2.size != null) {
@@ -26,7 +24,7 @@ const _sfc_main = vue.defineComponent({
26
24
  }
27
25
  return style;
28
26
  });
29
- return { authenticated, rootStyle };
27
+ return { rootStyle };
30
28
  }
31
29
  });
32
30
  const _export_sfc = (sfc, props2) => {
@@ -37,18 +35,11 @@ const _export_sfc = (sfc, props2) => {
37
35
  return target;
38
36
  };
39
37
  const _hoisted_1 = { class: "ele-dashboard-inner" };
40
- const _hoisted_2 = {
41
- key: 0,
42
- class: "ele-dashboard-outer"
43
- };
44
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "ele-dashboard-bg" }, null, -1);
45
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "ele-dashboard-bg" }, null, -1);
46
- const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("div", { class: "ele-dashboard-bg" }, null, -1);
47
- const _hoisted_6 = [
48
- _hoisted_3,
49
- _hoisted_4,
50
- _hoisted_5
51
- ];
38
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "ele-dashboard-outer" }, [
39
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "ele-dashboard-bg" }),
40
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "ele-dashboard-bg" }),
41
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "ele-dashboard-bg" })
42
+ ], -1);
52
43
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
53
44
  return vue.openBlock(), vue.createElementBlock("div", {
54
45
  class: vue.normalizeClass([
@@ -62,7 +53,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
62
53
  vue.createElementVNode("div", _hoisted_1, [
63
54
  vue.renderSlot(_ctx.$slots, "default")
64
55
  ]),
65
- _ctx.authenticated ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, _hoisted_6)) : vue.createCommentVNode("", true)
56
+ _hoisted_2
66
57
  ], 6);
67
58
  }
68
59
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -4,7 +4,6 @@ declare const _default: import("vue").DefineComponent<{
4
4
  size: (StringConstructor | NumberConstructor)[];
5
5
  space: (StringConstructor | NumberConstructor)[];
6
6
  }, {
7
- authenticated: import("vue").Ref<boolean>;
8
7
  rootStyle: import("vue").ComputedRef<Partial<import("vue").CSSProperties>>;
9
8
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
9
  type: import("vue").PropType<import("./types").DashboardType>;
@@ -147,6 +147,8 @@ export declare const dataTableProps: {
147
147
  selectedRowKeys: PropType<DataKey[]>;
148
148
  /** 缓存数据 */
149
149
  cacheData: PropType<DataItem[]>;
150
+ width: (StringConstructor | NumberConstructor)[];
151
+ height: (StringConstructor | NumberConstructor)[];
150
152
  size: {
151
153
  readonly type: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
152
154
  readonly required: false;
@@ -162,13 +164,11 @@ export declare const dataTableProps: {
162
164
  type: StringConstructor;
163
165
  default: string;
164
166
  };
165
- width: (StringConstructor | NumberConstructor)[];
166
167
  lazy: BooleanConstructor;
167
168
  data: {
168
169
  type: PropType<any[]>;
169
170
  default: () => never[];
170
171
  };
171
- height: (StringConstructor | NumberConstructor)[];
172
172
  scrollbarAlwaysOn: {
173
173
  type: BooleanConstructor;
174
174
  default: boolean;
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
2
  const vue = require("vue");
3
- const receiver = require("../ele-config-provider/receiver");
4
3
  const props = require("./props");
5
4
  const _sfc_main = vue.defineComponent({
6
5
  name: "EleDot",
7
- props: props.dotProps,
8
- setup() {
9
- const { authenticated } = receiver.useLicense();
10
- return { authenticated };
11
- }
6
+ props: props.dotProps
12
7
  });
13
8
  const _export_sfc = (sfc, props2) => {
14
9
  const target = sfc.__vccOpts || sfc;
@@ -36,11 +31,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
36
31
  class: "ele-dot-status",
37
32
  style: vue.normalizeStyle({ width: _ctx.size, height: _ctx.size, background: _ctx.color })
38
33
  }, [
39
- _ctx.authenticated ? (vue.openBlock(), vue.createElementBlock("span", {
40
- key: 0,
34
+ vue.createElementVNode("span", {
41
35
  class: "ele-dot-ripple",
42
36
  style: vue.normalizeStyle({ width: _ctx.size, height: _ctx.size, background: _ctx.color })
43
- }, null, 4)) : vue.createCommentVNode("", true)
37
+ }, null, 4)
44
38
  ], 4),
45
39
  _ctx.text ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(_ctx.text), 1)) : vue.createCommentVNode("", true)
46
40
  ], 2);
@@ -10,9 +10,7 @@ declare const _default: import("vue").DefineComponent<{
10
10
  type: StringConstructor;
11
11
  default: string;
12
12
  };
13
- }, {
14
- authenticated: import("vue").Ref<boolean>;
15
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
13
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
14
  type: import("vue").PropType<import("./types").DotType>;
17
15
  color: StringConstructor;
18
16
  ripple: {
@@ -25,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
25
23
  default: string;
26
24
  };
27
25
  }>>, {
28
- size: string;
29
26
  ripple: boolean;
27
+ size: string;
30
28
  }, {}>;
31
29
  export default _default;