@web-utils/component 2.0.14 → 2.7.0

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 (248) hide show
  1. package/dist/chunks/config.46422d7f.js +73 -0
  2. package/dist/chunks/{3a79781b.js → confirmable-mixin.3a79781b.js} +0 -0
  3. package/dist/chunks/dataformat.fb35ee10.js +61 -0
  4. package/dist/chunks/detail.a3249549.js +28 -0
  5. package/dist/chunks/dic.5f7e3523.js +132 -0
  6. package/dist/chunks/event.50c365eb.js +235 -0
  7. package/dist/chunks/{76680a03.js → form-input-mixin.ff5b58f7.js} +2 -2
  8. package/dist/chunks/{b4acd3a6.js → form-item-mixin.79f6eaff.js} +3 -1
  9. package/dist/chunks/{61ad06b2.js → form-pick-mixin.61ad06b2.js} +0 -0
  10. package/dist/chunks/init.352281f5.js +121 -0
  11. package/dist/chunks/{41a066be.js → input-number-mixin.41a066be.js} +0 -0
  12. package/dist/chunks/{5a78e0db.js → mixins.5a78e0db.js} +0 -0
  13. package/dist/chunks/packages.5d7a86c4.js +114 -0
  14. package/dist/chunks/permission.ce5d2121.js +16 -0
  15. package/dist/chunks/slot.1b8d2b1b.js +27 -0
  16. package/dist/chunks/{8c0142e0.js → tab-mixin.8c0142e0.js} +0 -0
  17. package/dist/chunks/util.5053d54e.js +264 -0
  18. package/dist/chunks/{97652d86.js → utils.97652d86.js} +0 -0
  19. package/dist/chunks/{f71045fc.js → utils.fa73de78.js} +1 -0
  20. package/dist/chunks/{5d4282fb.js → vueComponentNormalizer.71e2aa87.js} +3 -1
  21. package/dist/components/address-input/index.js +1 -1
  22. package/dist/components/affix/index.js +102 -0
  23. package/dist/components/affix/style.css +1 -0
  24. package/dist/components/array/index.js +156 -0
  25. package/dist/components/array/style.css +1 -0
  26. package/dist/components/article/index.js +93 -0
  27. package/dist/components/article/style.css +1 -0
  28. package/dist/components/aside-menu/index.js +1 -1
  29. package/dist/components/avatar/index.js +106 -0
  30. package/dist/components/avatar/style.css +1 -0
  31. package/dist/components/awesome-button/index.js +1 -1
  32. package/dist/components/base.css +1 -1
  33. package/dist/components/capsule-tab/index.js +1 -1
  34. package/dist/components/card/index.js +130 -0
  35. package/dist/components/card/style.css +1 -0
  36. package/dist/components/carousel/index.js +70 -0
  37. package/dist/components/carousel/style.css +1 -0
  38. package/dist/components/chat/index.js +567 -0
  39. package/dist/components/chat/style.css +1 -0
  40. package/dist/components/chunk-file-uploader/index.js +2 -2
  41. package/dist/components/chunk-file-uploader-button/index.js +2 -2
  42. package/dist/components/chunk-file-uploader-drop/index.js +2 -2
  43. package/dist/components/chunk-file-uploader-file/index.js +2 -2
  44. package/dist/components/chunk-file-uploader-files/index.js +2 -2
  45. package/dist/components/chunk-file-uploader-list/index.js +2 -2
  46. package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
  47. package/dist/components/code/index.js +66 -0
  48. package/dist/components/code-mirror-editor/index.js +4 -1
  49. package/dist/components/color-picker/index.js +1 -1
  50. package/dist/components/column/index.js +114 -0
  51. package/dist/components/column-default/index.js +105 -0
  52. package/dist/components/column-dynamic/index.js +93 -0
  53. package/dist/components/column-menu/index.js +286 -0
  54. package/dist/components/column-slot/index.js +265 -0
  55. package/dist/components/comment/index.js +94 -0
  56. package/dist/components/comment/style.css +1 -0
  57. package/dist/components/confirm-button/index.js +2 -2
  58. package/dist/components/confirmable/index.js +2 -2
  59. package/dist/components/context-menu/index.js +11 -1
  60. package/dist/components/count-up/index.js +120 -0
  61. package/dist/components/custom-scrollbar/index.js +2 -2
  62. package/dist/components/data-box/index.js +97 -0
  63. package/dist/components/data-box/style.css +1 -0
  64. package/dist/components/data-card/index.js +98 -0
  65. package/dist/components/data-card/style.css +1 -0
  66. package/dist/components/data-cardtext/index.js +82 -0
  67. package/dist/components/data-cardtext/style.css +1 -0
  68. package/dist/components/data-display/index.js +93 -0
  69. package/dist/components/data-display/style.css +1 -0
  70. package/dist/components/data-icons/index.js +104 -0
  71. package/dist/components/data-icons/style.css +1 -0
  72. package/dist/components/data-imgtext/index.js +106 -0
  73. package/dist/components/data-imgtext/style.css +1 -0
  74. package/dist/components/data-operatext/index.js +99 -0
  75. package/dist/components/data-operatext/style.css +1 -0
  76. package/dist/components/data-panel/index.js +93 -0
  77. package/dist/components/data-panel/style.css +1 -0
  78. package/dist/components/data-pay/index.js +149 -0
  79. package/dist/components/data-pay/style.css +1 -0
  80. package/dist/components/data-price/index.js +84 -0
  81. package/dist/components/data-price/style.css +1 -0
  82. package/dist/components/data-progress/index.js +97 -0
  83. package/dist/components/data-progress/style.css +1 -0
  84. package/dist/components/data-rotate/index.js +96 -0
  85. package/dist/components/data-rotate/style.css +1 -0
  86. package/dist/components/data-table-picker/index.js +2 -2
  87. package/dist/components/data-tabs/index.js +94 -0
  88. package/dist/components/data-tabs/style.css +1 -0
  89. package/dist/components/dialog-column/index.js +138 -0
  90. package/dist/components/dialog-excel/index.js +214 -0
  91. package/dist/components/dialog-filter/index.js +245 -0
  92. package/dist/components/dialog-form/index.js +275 -0
  93. package/dist/components/draggable/index.js +384 -0
  94. package/dist/components/draggable/style.css +1 -0
  95. package/dist/components/dynamic-table/index.js +1 -1
  96. package/dist/components/e-charts/index.js +7 -1
  97. package/dist/components/editable-progress/index.js +1 -1
  98. package/dist/components/editable-tree/index.js +2 -2
  99. package/dist/components/egd-collapse/index.js +1 -1
  100. package/dist/components/egd-collapse-item/index.js +1 -1
  101. package/dist/components/element-dialog/index.js +1 -1
  102. package/dist/components/empty/index.js +59 -0
  103. package/dist/components/empty/style.css +1 -0
  104. package/dist/components/empty-view/index.js +1 -1
  105. package/dist/components/error-view/index.js +1 -1
  106. package/dist/components/flex-column/index.js +2 -2
  107. package/dist/components/flex-item/index.js +2 -2
  108. package/dist/components/flex-row/index.js +2 -2
  109. package/dist/components/flex-scroller/index.js +1 -1
  110. package/dist/components/flow/index.js +278 -0
  111. package/dist/components/flow/style.css +1 -0
  112. package/dist/components/flow-node/index.js +102 -0
  113. package/dist/components/form-button/index.js +2 -2
  114. package/dist/components/form-cascader/index.js +4 -4
  115. package/dist/components/form-checkbox-group/index.js +4 -4
  116. package/dist/components/form-date-picker/index.js +4 -4
  117. package/dist/components/form-group/index.js +122 -0
  118. package/dist/components/form-group/style.css +1 -0
  119. package/dist/components/form-holder/index.js +23 -2
  120. package/dist/components/form-input/index.js +3 -3
  121. package/dist/components/form-input-email/index.js +3 -3
  122. package/dist/components/form-input-id-card/index.js +3 -3
  123. package/dist/components/form-input-number/index.js +4 -4
  124. package/dist/components/form-input-phone-number/index.js +3 -3
  125. package/dist/components/form-input-time/index.js +3 -3
  126. package/dist/components/form-item/index.js +2 -2
  127. package/dist/components/form-item-config-provider/index.js +1 -1
  128. package/dist/components/form-item-group/index.js +1 -1
  129. package/dist/components/form-radio-group/index.js +4 -4
  130. package/dist/components/form-select/index.js +4 -4
  131. package/dist/components/form-switch/index.js +3 -3
  132. package/dist/components/form-temp/index.js +149 -0
  133. package/dist/components/form-textarea/index.js +3 -3
  134. package/dist/components/form-view/index.js +1 -1
  135. package/dist/components/fy-cascader/index.js +132 -0
  136. package/dist/components/fy-checkbox/index.js +116 -0
  137. package/dist/components/fy-checkbox/style.css +1 -0
  138. package/dist/components/fy-curd/index.js +846 -0
  139. package/dist/components/fy-curd/style.css +1 -0
  140. package/dist/components/fy-date/index.js +84 -0
  141. package/dist/components/fy-date/style.css +1 -0
  142. package/dist/components/fy-dialog-form/index.js +278 -0
  143. package/dist/components/fy-dialog-form/style.css +1 -0
  144. package/dist/components/fy-dynamic/index.js +335 -0
  145. package/dist/components/fy-dynamic/style.css +1 -0
  146. package/dist/components/fy-form/index.js +754 -0
  147. package/dist/components/fy-form/style.css +1 -0
  148. package/dist/components/fy-form-menu/index.js +95 -0
  149. package/dist/components/fy-input/index.js +162 -0
  150. package/dist/components/fy-input-color/index.js +96 -0
  151. package/dist/components/fy-input-icon/index.js +161 -0
  152. package/dist/components/fy-input-icon/style.css +1 -0
  153. package/dist/components/fy-input-map/index.js +275 -0
  154. package/dist/components/fy-input-map/style.css +1 -0
  155. package/dist/components/fy-input-number/index.js +87 -0
  156. package/dist/components/fy-input-table/index.js +172 -0
  157. package/dist/components/fy-input-table/style.css +1 -0
  158. package/dist/components/fy-input-tree/index.js +265 -0
  159. package/dist/components/fy-input-tree/style.css +1 -0
  160. package/dist/components/fy-radio/index.js +68 -0
  161. package/dist/components/fy-radio/style.css +1 -0
  162. package/dist/components/fy-rate/index.js +105 -0
  163. package/dist/components/fy-rate/style.css +1 -0
  164. package/dist/components/fy-select/index.js +223 -0
  165. package/dist/components/fy-select/style.css +1 -0
  166. package/dist/components/fy-slider/index.js +79 -0
  167. package/dist/components/fy-switch/index.js +73 -0
  168. package/dist/components/fy-time/index.js +95 -0
  169. package/dist/components/fy-title/index.js +40 -0
  170. package/dist/components/fy-title/style.css +1 -0
  171. package/dist/components/fy-upload/index.js +704 -0
  172. package/dist/components/fy-upload/style.css +1 -0
  173. package/dist/components/guide-steps/index.js +1 -1
  174. package/dist/components/header-menu/index.js +238 -0
  175. package/dist/components/header-search/index.js +246 -0
  176. package/dist/components/icon-card/index.js +1 -1
  177. package/dist/components/icon-temp/index.js +50 -0
  178. package/dist/components/icon-temp/style.css +1 -0
  179. package/dist/components/iframe-window/index.js +1 -1
  180. package/dist/components/image-viewer/index.js +1 -1
  181. package/dist/components/input-number/index.js +2 -2
  182. package/dist/components/input-number-range/index.js +1 -1
  183. package/dist/components/keep-view-alive/index.js +6 -2
  184. package/dist/components/keyboard/index.js +389 -0
  185. package/dist/components/keyboard/style.css +1 -0
  186. package/dist/components/license/index.js +134 -0
  187. package/dist/components/loading-view/index.js +1 -1
  188. package/dist/components/login/index.js +244 -0
  189. package/dist/components/login/style.css +1 -0
  190. package/dist/components/name-avatar/index.js +66 -0
  191. package/dist/components/name-avatar/style.css +1 -0
  192. package/dist/components/nav-bar/index.js +1 -1
  193. package/dist/components/not-implement/index.js +1 -1
  194. package/dist/components/notice/index.js +143 -0
  195. package/dist/components/notice/style.css +1 -0
  196. package/dist/components/page/index.js +1 -1
  197. package/dist/components/page-header/index.js +1 -1
  198. package/dist/components/page-index/index.js +1 -1
  199. package/dist/components/page-index-top/index.js +1 -1
  200. package/dist/components/page-skeleton/index.js +1 -1
  201. package/dist/components/page-skeleton-new/index.js +1 -1
  202. package/dist/components/pageable-table/index.js +6 -2
  203. package/dist/components/pageable-view/index.js +7 -2
  204. package/dist/components/photo-swipe/index.js +7 -1
  205. package/dist/components/progress/index.js +60 -0
  206. package/dist/components/queue/index.js +76 -0
  207. package/dist/components/record-video/index.js +173 -0
  208. package/dist/components/record-video/style.css +1 -0
  209. package/dist/components/resize-observer/index.js +2 -2
  210. package/dist/components/search/index.js +142 -0
  211. package/dist/components/search/style.css +1 -0
  212. package/dist/components/search-popover/index.js +1 -1
  213. package/dist/components/sign/index.js +128 -0
  214. package/dist/components/sign/style.css +1 -0
  215. package/dist/components/sign-panel/index.js +14 -1
  216. package/dist/components/skeleton/index.js +82 -0
  217. package/dist/components/skeleton/style.css +1 -0
  218. package/dist/components/split-pane/index.js +7 -1
  219. package/dist/components/stateful/index.js +1 -1
  220. package/dist/components/static-pageable-table/index.js +1 -1
  221. package/dist/components/swiper/index.js +1 -1
  222. package/dist/components/tab/index.js +4 -2
  223. package/dist/components/tab-item/index.js +2 -2
  224. package/dist/components/table-column/index.js +1 -1
  225. package/dist/components/table-page/index.js +129 -0
  226. package/dist/components/table-view/index.js +2 -2
  227. package/dist/components/tabs/index.js +90 -0
  228. package/dist/components/tabs/style.css +0 -0
  229. package/dist/components/tag-render/index.js +1 -1
  230. package/dist/components/text-ellipsis/index.js +107 -0
  231. package/dist/components/text-ellipsis/style.css +1 -0
  232. package/dist/components/tinymce-editor/index.js +1 -1
  233. package/dist/components/tinymce-wrapper/index.js +1 -1
  234. package/dist/components/toolbar/index.js +1 -1
  235. package/dist/components/toolbar-button/index.js +1 -1
  236. package/dist/components/tree/index.js +427 -0
  237. package/dist/components/tree/style.css +1 -0
  238. package/dist/components/trigger/index.js +1 -1
  239. package/dist/components/verify/index.js +80 -0
  240. package/dist/components/verify/style.css +1 -0
  241. package/dist/components/vue-tags-input/index.js +115 -1
  242. package/dist/components/watermark/index.js +20 -2
  243. package/dist/index.css +4128 -745
  244. package/dist/index.es.js +21634 -7064
  245. package/package.json +20 -4
  246. package/web-types.json +12777 -2788
  247. package/dist/components/x-dialog/index.js +0 -173
  248. package/dist/components/x-dialog/style.css +0 -1
@@ -1,6 +1,6 @@
1
1
  import { hasOwn as d, addResizeListener as h, removeResizeListener as u, isVerticalScrollbarVisible as x, scrollbarWidth as w, computePosition as N, isPlainObject as r, cloneDeep as p, isFunction as f, isUndefined as l, isNotEmpty as C, fastClone as v, delay as g, findTreeChildren as $ } from "@web-utils/core";
2
- import { a as b, b as _, c } from "../../chunks/f71045fc.js";
3
- import { n as k } from "../../chunks/5d4282fb.js";
2
+ import { a as b, b as _, c } from "../../chunks/utils.fa73de78.js";
3
+ import { n as k } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var B = function() {
5
5
  var e = this, t = e.$createElement, i = e._self._c || t;
6
6
  return i("div", {
@@ -1,4 +1,4 @@
1
- import { n } from "../../chunks/5d4282fb.js";
1
+ import { n } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var i = function() {
3
3
  var e = this, t = e.$createElement, s = e._self._c || t;
4
4
  return s("div", {
@@ -1,6 +1,6 @@
1
1
  import a from "element-ui/src/mixins/emitter";
2
2
  import { generateId as n } from "element-ui/src/utils/util";
3
- import { n as c } from "../../chunks/5d4282fb.js";
3
+ import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var o = function() {
5
5
  var e = this, s = e.$createElement, t = e._self._c || s;
6
6
  return t("div", {
@@ -1,6 +1,6 @@
1
1
  import { Dialog as s } from "element-ui";
2
2
  import { dialogDrag as a } from "@web-utils/core/dist/directives/index";
3
- import { n } from "../../chunks/5d4282fb.js";
3
+ import { n } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var r = function() {
5
5
  var e = this, l = e.$createElement, t = e._self._c || l;
6
6
  return t("Transition", {
@@ -0,0 +1,59 @@
1
+ import { s as N } from "../../chunks/util.5053d54e.js";
2
+ import { n as j } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ var i = function() {
4
+ var M = this, I = M.$createElement, g = M._self._c || I;
5
+ return g("div", {
6
+ staticClass: "avue-empty"
7
+ }, [g("div", {
8
+ staticClass: "avue-empty__image",
9
+ style: {
10
+ height: M.setPx(M.size)
11
+ }
12
+ }, [g("img", {
13
+ attrs: {
14
+ src: M.image,
15
+ alt: ""
16
+ }
17
+ })]), g("p", {
18
+ staticClass: "avue-empty__desc"
19
+ }, [M._v(" " + M._s(M.desc) + " ")]), M._t("default")], 2);
20
+ }, u = [];
21
+ const T = {
22
+ name: "Empty",
23
+ props: {
24
+ size: {
25
+ type: String
26
+ },
27
+ image: {
28
+ type: String,
29
+ default: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMzEuNjcpIj4KICAgICAgPGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9IjY3Ljc5NyIgcnk9IjEyLjY2OCIvPgogICAgICA8cGF0aCBkPSJNMTIyLjAzNCA2OS42NzRMOTguMTA5IDQwLjIyOWMtMS4xNDgtMS4zODYtMi44MjYtMi4yMjUtNC41OTMtMi4yMjVoLTUxLjQ0Yy0xLjc2NiAwLTMuNDQ0LjgzOS00LjU5MiAyLjIyNUwxMy41NiA2OS42NzR2MTUuMzgzaDEwOC40NzVWNjkuNjc0eiIgZmlsbD0iI0FFQjhDMiIvPgogICAgICA8cGF0aCBkPSJNMTAxLjUzNyA4Ni4yMTRMODAuNjMgNjEuMTAyYy0xLjAwMS0xLjIwNy0yLjUwNy0xLjg2Ny00LjA0OC0xLjg2N0gzMS43MjRjLTEuNTQgMC0zLjA0Ny42Ni00LjA0OCAxLjg2N0w2Ljc2OSA4Ni4yMTR2MTMuNzkyaDk0Ljc2OFY4Ni4yMTR6IiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy41NikiLz4KICAgICAgPHBhdGggZD0iTTMzLjgzIDBoNjcuOTMzYTQgNCAwIDAgMSA0IDR2OTMuMzQ0YTQgNCAwIDAgMS00IDRIMzMuODNhNCA0IDAgMCAxLTQtNFY0YTQgNCAwIDAgMSA0LTR6IiBmaWxsPSIjRjVGNUY3Ii8+CiAgICAgIDxwYXRoIGQ9Ik00Mi42NzggOS45NTNoNTAuMjM3YTIgMiAwIDAgMSAyIDJWMzYuOTFhMiAyIDAgMCAxLTIgMkg0Mi42NzhhMiAyIDAgMCAxLTItMlYxMS45NTNhMiAyIDAgMCAxIDItMnpNNDIuOTQgNDkuNzY3aDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI0SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjR6TTQyLjk0IDYxLjUzaDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI1SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjV6TTEyMS44MTMgMTA1LjAzMmMtLjc3NSAzLjA3MS0zLjQ5NyA1LjM2LTYuNzM1IDUuMzZIMjAuNTE1Yy0zLjIzOCAwLTUuOTYtMi4yOS02LjczNC01LjM2YTcuMzA5IDcuMzA5IDAgMCAxLS4yMjItMS43OVY2OS42NzVoMjYuMzE4YzIuOTA3IDAgNS4yNSAyLjQ0OCA1LjI1IDUuNDJ2LjA0YzAgMi45NzEgMi4zNyA1LjM3IDUuMjc3IDUuMzdoMzQuNzg1YzIuOTA3IDAgNS4yNzctMi40MjEgNS4yNzctNS4zOTNWNzUuMWMwLTIuOTcyIDIuMzQzLTUuNDI2IDUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIgZmlsbD0iI0RDRTBFNiIvPgogICAgPC9nPgogICAgPHBhdGggZD0iTTE0OS4xMjEgMzMuMjkybC02LjgzIDIuNjVhMSAxIDAgMCAxLTEuMzE3LTEuMjNsMS45MzctNi4yMDdjLTIuNTg5LTIuOTQ0LTQuMTA5LTYuNTM0LTQuMTA5LTEwLjQwOEMxMzguODAyIDguMTAyIDE0OC45MiAwIDE2MS40MDIgMCAxNzMuODgxIDAgMTg0IDguMTAyIDE4NCAxOC4wOTdjMCA5Ljk5NS0xMC4xMTggMTguMDk3LTIyLjU5OSAxOC4wOTctNC41MjggMC04Ljc0NC0xLjA2Ni0xMi4yOC0yLjkwMnoiIGZpbGw9IiNEQ0UwRTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0OS42NSAxNS4zODMpIiBmaWxsPSIjRkZGIj4KICAgICAgPGVsbGlwc2UgY3g9IjIwLjY1NCIgY3k9IjMuMTY3IiByeD0iMi44NDkiIHJ5PSIyLjgxNSIvPgogICAgICA8cGF0aCBkPSJNNS42OTggNS42M0gwTDIuODk4LjcwNHpNOS4yNTkuNzA0aDQuOTg1VjUuNjNIOS4yNTl6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"
30
+ },
31
+ desc: {
32
+ type: String,
33
+ default: "暂无数据"
34
+ }
35
+ },
36
+ methods: {
37
+ setPx: N
38
+ }
39
+ }, A = {};
40
+ var L = /* @__PURE__ */ j(
41
+ T,
42
+ i,
43
+ u,
44
+ !1,
45
+ y,
46
+ null,
47
+ null,
48
+ null
49
+ );
50
+ function y(M) {
51
+ for (let I in A)
52
+ this[I] = A[I];
53
+ }
54
+ const C = /* @__PURE__ */ function() {
55
+ return L.exports;
56
+ }();
57
+ export {
58
+ C as default
59
+ };
@@ -0,0 +1 @@
1
+ .avue-empty{margin:0 8px;font-size:14px;line-height:22px;text-align:center}.avue-empty__image{height:100px;margin-bottom:8px}.avue-empty__image img{height:100%;vertical-align:middle;border-style:none}.avue-empty__desc{color:#000000a6}
@@ -1,4 +1,4 @@
1
- import { n as o } from "../../chunks/5d4282fb.js";
1
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var s = function() {
3
3
  var t = this, e = t.$createElement, n = t._self._c || e;
4
4
  return n("div", {
@@ -1,4 +1,4 @@
1
- import { n as i } from "../../chunks/5d4282fb.js";
1
+ import { n as i } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var o = function() {
3
3
  var e = this, t = e.$createElement, r = e._self._c || t;
4
4
  return r("div", {
@@ -1,5 +1,5 @@
1
- import { h as s } from "../../chunks/f71045fc.js";
2
- import { n as a } from "../../chunks/5d4282fb.js";
1
+ import { h as s } from "../../chunks/utils.fa73de78.js";
2
+ import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  const c = {
4
4
  name: "FlexColumn",
5
5
  functional: !0,
@@ -1,5 +1,5 @@
1
- import { h as f } from "../../chunks/f71045fc.js";
2
- import { n as s } from "../../chunks/5d4282fb.js";
1
+ import { h as f } from "../../chunks/utils.fa73de78.js";
2
+ import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  const r = {
4
4
  name: "FlexItem",
5
5
  functional: !0,
@@ -1,5 +1,5 @@
1
- import { h as s } from "../../chunks/f71045fc.js";
2
- import { n as a } from "../../chunks/5d4282fb.js";
1
+ import { h as s } from "../../chunks/utils.fa73de78.js";
2
+ import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  const c = {
4
4
  name: "FlexRow",
5
5
  functional: !0,
@@ -1,4 +1,4 @@
1
- import { n as o } from "../../chunks/5d4282fb.js";
1
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
2
  var r = function() {
3
3
  var e = this, l = e.$createElement, n = e._self._c || l;
4
4
  return n("div", {
@@ -0,0 +1,278 @@
1
+ import { s as l, r as u } from "../../chunks/util.5053d54e.js";
2
+ import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ var h = function() {
4
+ var t = this, e = t.$createElement, n = t._self._c || e;
5
+ return n("div", {
6
+ staticClass: "avue-flow",
7
+ style: t.styleName
8
+ }, [n("div", {
9
+ style: t.styleName,
10
+ attrs: {
11
+ id: t.id
12
+ }
13
+ }, [n("div", {
14
+ staticClass: "avue-grid"
15
+ }), t._l(t.option.nodeList, function(i, o) {
16
+ return i.display ? t._e() : n("FlowNode", {
17
+ key: o,
18
+ attrs: {
19
+ id: i.id,
20
+ node: i,
21
+ index: o,
22
+ active: t.active
23
+ },
24
+ on: {
25
+ changeNodeSite: t.changeNodeSite
26
+ },
27
+ nativeOn: {
28
+ click: function(s) {
29
+ return t.handleClick(i);
30
+ }
31
+ },
32
+ scopedSlots: t._u([{
33
+ key: "header",
34
+ fn: function(s) {
35
+ var a = s.node;
36
+ return [t._t("header", null, {
37
+ node: a
38
+ })];
39
+ }
40
+ }], null, !0)
41
+ }, [t._t("default", null, {
42
+ node: i
43
+ })], 2);
44
+ })], 2)]);
45
+ }, d = [];
46
+ const m = {
47
+ name: "Flow",
48
+ props: {
49
+ value: {
50
+ type: String
51
+ },
52
+ option: {
53
+ type: Object
54
+ },
55
+ width: {
56
+ type: [Number, String],
57
+ default: "100%"
58
+ },
59
+ height: {
60
+ type: [Number, String],
61
+ default: "100%"
62
+ }
63
+ },
64
+ data() {
65
+ return {
66
+ jsPlumb: {},
67
+ id: "",
68
+ // 默认设置参数
69
+ jsplumbSetting: {
70
+ // 动态锚点、位置自适应
71
+ Anchors: ["Top", "TopCenter", "TopRight", "TopLeft", "Right", "RightMiddle", "Bottom", "BottomCenter", "BottomRight", "BottomLeft", "Left", "LeftMiddle"],
72
+ Container: "",
73
+ // 连线的样式 StateMachine、Flowchart
74
+ Connector: "Flowchart",
75
+ // 鼠标不能拖动删除线
76
+ ConnectionsDetachable: !1,
77
+ // 删除线的时候节点不删除
78
+ DeleteEndpointsOnDetach: !1,
79
+ // 连线的端点
80
+ // Endpoint: ["Dot", {radius: 5}],
81
+ Endpoint: ["Rectangle", { height: 10, width: 10 }],
82
+ // 线端点的样式
83
+ EndpointStyle: { fill: "rgba(255,255,255,0)", outlineWidth: 1 },
84
+ LogEnabled: !0,
85
+ // 是否打开jsPlumb的内部日志记录
86
+ // 绘制线
87
+ PaintStyle: { stroke: "black", strokeWidth: 3 },
88
+ // 绘制箭头
89
+ Overlays: [["Arrow", { width: 12, length: 12, location: 1 }]],
90
+ RenderMode: "svg"
91
+ },
92
+ // jsplumb连接参数
93
+ jsplumbConnectOptions: {
94
+ isSource: !0,
95
+ isTarget: !0,
96
+ // 动态锚点、提供了4个方向 Continuous、AutoDefault
97
+ anchor: "Continuous"
98
+ },
99
+ jsplumbSourceOptions: {
100
+ filter: ".avue-flow__node-drag",
101
+ /* "span"表示标签,".className"表示类,"#id"表示元素id*/
102
+ filterExclude: !1,
103
+ anchor: "Continuous",
104
+ allowLoopback: !1
105
+ },
106
+ jsplumbTargetOptions: {
107
+ filter: ".avue-flow__node-drag",
108
+ /*"span"表示标签,".className"表示类,"#id"表示元素id */
109
+ filterExclude: !1,
110
+ anchor: "Continuous",
111
+ allowLoopback: !1
112
+ },
113
+ loadEasyFlowFinish: !1
114
+ };
115
+ },
116
+ computed: {
117
+ active: {
118
+ get() {
119
+ return this.value;
120
+ },
121
+ set(t) {
122
+ this.$emit("input", t), this.$emit("change", t);
123
+ }
124
+ },
125
+ styleName() {
126
+ return {
127
+ position: "relative",
128
+ width: l(this.width),
129
+ height: l(this.height)
130
+ };
131
+ }
132
+ },
133
+ created() {
134
+ this.id = u(), this.jsplumbSetting.Container = this.id;
135
+ },
136
+ mounted() {
137
+ this.init();
138
+ },
139
+ methods: {
140
+ init() {
141
+ this.jsPlumb = jsPlumb.getInstance(), this.$nextTick(() => {
142
+ this.jsPlumbInit();
143
+ });
144
+ },
145
+ handleClick(t) {
146
+ this.$emit("click", t);
147
+ },
148
+ // 是否具有该线
149
+ hasLine(t, e) {
150
+ for (var n = 0; n < this.data.lineList.length; n++) {
151
+ var i = this.data.lineList[n];
152
+ if (i.from === t && i.to === e)
153
+ return !0;
154
+ }
155
+ return !1;
156
+ },
157
+ // 是否含有相反的线
158
+ hashOppositeLine(t, e) {
159
+ return this.hasLine(e, t);
160
+ },
161
+ // 删除线
162
+ deleteLine(t, e) {
163
+ this.option.lineList = this.option.lineList.filter(function(n) {
164
+ return n.from !== t && n.to !== e;
165
+ });
166
+ },
167
+ // 改变连线
168
+ changeLine(t, e) {
169
+ this.deleteLine(t, e);
170
+ },
171
+ // 改变节点的位置
172
+ changeNodeSite({ index: t, left: e, top: n }) {
173
+ for (var i = 0; i < this.option.nodeList.length; i++)
174
+ this.option.nodeList[i], i === t && (this.$set(this.option.nodeList[i], "left", e), this.$set(this.option.nodeList[i], "top", n));
175
+ },
176
+ //删除节点
177
+ deleteNode(t) {
178
+ return this.$confirm("确定要删除节点" + t + "?", "提示", {
179
+ confirmButtonText: "确定",
180
+ cancelButtonText: "取消",
181
+ type: "warning",
182
+ closeOnClickModal: !1
183
+ }).then(() => {
184
+ this.option.nodeList.forEach((e) => {
185
+ e.id === t && (e.display = !0);
186
+ }), this.$nextTick(function() {
187
+ this.jsPlumb.removeAllEndpoints(t);
188
+ });
189
+ }).catch(() => {
190
+ }), !0;
191
+ },
192
+ // 添加新的节点
193
+ addNode(t) {
194
+ const e = this.option.nodeList.length;
195
+ let n = "node" + e;
196
+ this.option.nodeList.push({
197
+ id: "node" + e,
198
+ name: t,
199
+ left: 0,
200
+ top: 0
201
+ }), this.$nextTick(function() {
202
+ this.jsPlumb.makeSource(n, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(n, this.jsplumbTargetOptions), this.jsPlumb.draggable(n, {
203
+ containment: "parent"
204
+ });
205
+ });
206
+ },
207
+ loadEasyFlow() {
208
+ for (var t = 0; t < this.option.nodeList.length; t++) {
209
+ let e = this.option.nodeList[t];
210
+ this.jsPlumb.makeSource(e.id, this.jsplumbSourceOptions), this.jsPlumb.makeTarget(e.id, this.jsplumbTargetOptions), this.jsPlumb.draggable(e.id);
211
+ }
212
+ for (var t = 0; t < this.option.lineList.length; t++) {
213
+ let n = this.option.lineList[t];
214
+ this.jsPlumb.connect({
215
+ source: n.from,
216
+ target: n.to
217
+ }, this.jsplumbConnectOptions);
218
+ }
219
+ this.$nextTick(function() {
220
+ this.loadEasyFlowFinish = !0;
221
+ });
222
+ },
223
+ jsPlumbInit() {
224
+ const t = this;
225
+ this.jsPlumb.ready(function() {
226
+ t.jsPlumb.importDefaults(t.jsplumbSetting), t.jsPlumb.setSuspendDrawing(!1, !0), t.loadEasyFlow(), t.jsPlumb.bind("click", function(e, n) {
227
+ console.log("click", e), t.$confirm("确定删除所点击的线吗?", "提示", {
228
+ confirmButtonText: "确定",
229
+ cancelButtonText: "取消",
230
+ type: "warning"
231
+ }).then(() => {
232
+ t.jsPlumb.deleteConnection(e);
233
+ }).catch(() => {
234
+ });
235
+ }), t.jsPlumb.bind("connection", function(e) {
236
+ console.log("connection", e);
237
+ let n = e.source.id, i = e.target.id;
238
+ t.loadEasyFlowFinish && t.option.lineList.push({
239
+ from: n,
240
+ to: i
241
+ });
242
+ }), t.jsPlumb.bind("connectionDetached", function(e) {
243
+ console.log("connectionDetached", e), t.deleteLine(e.sourceId, e.targetId);
244
+ }), t.jsPlumb.bind("connectionMoved", function(e) {
245
+ console.log("connectionMoved", e), t.changeLine(e.originalSourceId, e.originalTargetId);
246
+ }), t.jsPlumb.bind("contextmenu", function(e) {
247
+ console.log("contextmenu", e);
248
+ }), t.jsPlumb.bind("beforeDrop", function(e) {
249
+ console.log("beforeDrop", e);
250
+ let n = e.sourceId, i = e.targetId;
251
+ return n === i ? (t.$message.error("不能连接自己"), !1) : t.hasLine(n, i) ? (t.$message.error("不能重复连线"), !1) : t.hashOppositeLine(n, i) ? (t.$message.error("不能回环哦"), !1) : !0;
252
+ }), t.jsPlumb.bind("beforeDetach", function(e) {
253
+ console.log("beforeDetach", e);
254
+ });
255
+ });
256
+ }
257
+ }
258
+ }, r = {};
259
+ var f = /* @__PURE__ */ c(
260
+ m,
261
+ h,
262
+ d,
263
+ !1,
264
+ p,
265
+ null,
266
+ null,
267
+ null
268
+ );
269
+ function p(t) {
270
+ for (let e in r)
271
+ this[e] = r[e];
272
+ }
273
+ const j = /* @__PURE__ */ function() {
274
+ return f.exports;
275
+ }();
276
+ export {
277
+ j as default
278
+ };
@@ -0,0 +1 @@
1
+ .avue-flow{position:relative}.avue-flow .avue-draggable{padding:0}.avue-flow__node{position:relative;display:flex;flex-direction:column;width:200px;height:80px;border-radius:5px;box-shadow:"#66a6e0 0px 0px 12px 0px";border:1px solid #eee;box-sizing:border-box;overflow:hidden}.avue-flow__node--active{border-width:2px;border-color:#f56c6c}.avue-flow__node-drag{margin:0 5px;display:inline-block}.avue-flow__node-header{flex:1;background-color:#66a6e0}.avue-flow__node-body{display:flex;align-items:center;justify-content:center;flex:1.5;text-align:center;background:#fff}
@@ -0,0 +1,102 @@
1
+ import { s as n } from "../../chunks/util.5053d54e.js";
2
+ import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ var l = function() {
4
+ var e = this, o = e.$createElement, t = e._self._c || o;
5
+ return t("div", {
6
+ ref: "node",
7
+ style: e.flowNodeContainer,
8
+ attrs: {
9
+ left: e.node.left,
10
+ top: e.node.top,
11
+ disabled: "",
12
+ mask: !1
13
+ },
14
+ on: {
15
+ mouseenter: e.showDelete,
16
+ mouseleave: e.hideDelete,
17
+ mouseup: e.changeNodeSite
18
+ }
19
+ }, [t("div", {
20
+ class: ["avue-flow__node", {
21
+ active: e.active === e.node.id
22
+ }]
23
+ }, [t("div", {
24
+ staticClass: "avue-flow__node-header"
25
+ }, [t("i", {
26
+ staticClass: "el-icon-rank",
27
+ class: e.b("node-drag")
28
+ }), e._t("header", null, {
29
+ node: e.node
30
+ })], 2), t("div", {
31
+ staticClass: "avue-flow__node-body"
32
+ }, [e._t("default", null, {
33
+ node: e.node
34
+ })], 2)])]);
35
+ }, a = [];
36
+ const i = {
37
+ name: "FlowNode",
38
+ props: {
39
+ active: [String, Number],
40
+ index: [String, Number],
41
+ node: Object
42
+ },
43
+ data() {
44
+ return {
45
+ // 控制节点操作显示
46
+ mouseEnter: !1
47
+ };
48
+ },
49
+ computed: {
50
+ // 节点容器样式
51
+ flowNodeContainer: {
52
+ get() {
53
+ return {
54
+ position: "absolute",
55
+ width: "200px",
56
+ top: n(this.node.top),
57
+ left: n(this.node.left),
58
+ boxShadow: this.mouseEnter ? "#66a6e0 0px 0px 12px 0px" : "",
59
+ backgroundColor: "transparent"
60
+ };
61
+ }
62
+ }
63
+ },
64
+ methods: {
65
+ // 鼠标进入
66
+ showDelete() {
67
+ this.mouseEnter = !0;
68
+ },
69
+ // 鼠标离开
70
+ hideDelete() {
71
+ this.mouseEnter = !1;
72
+ },
73
+ // 鼠标移动后抬起
74
+ changeNodeSite() {
75
+ this.node.left == this.$refs.node.style.left && this.node.top == this.$refs.node.style.top || this.$emit("changeNodeSite", {
76
+ index: this.index,
77
+ left: Number(this.$refs.node.style.left.replace("px", "")),
78
+ top: Number(this.$refs.node.style.top.replace("px", ""))
79
+ });
80
+ }
81
+ }
82
+ }, s = {};
83
+ var d = /* @__PURE__ */ r(
84
+ i,
85
+ l,
86
+ a,
87
+ !1,
88
+ u,
89
+ null,
90
+ null,
91
+ null
92
+ );
93
+ function u(e) {
94
+ for (let o in s)
95
+ this[o] = s[o];
96
+ }
97
+ const p = /* @__PURE__ */ function() {
98
+ return d.exports;
99
+ }();
100
+ export {
101
+ p as default
102
+ };
@@ -1,5 +1,5 @@
1
- import { c as r } from "../../chunks/3a79781b.js";
2
- import { n as o } from "../../chunks/5d4282fb.js";
1
+ import { c as r } from "../../chunks/confirmable-mixin.3a79781b.js";
2
+ import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  const i = {
4
4
  name: "Confirmable",
5
5
  mixins: [r]
@@ -1,9 +1,9 @@
1
- import { f as s } from "../../chunks/76680a03.js";
2
- import { f as a } from "../../chunks/61ad06b2.js";
1
+ import { f as s } from "../../chunks/form-input-mixin.ff5b58f7.js";
2
+ import { f as a } from "../../chunks/form-pick-mixin.61ad06b2.js";
3
3
  import { Cascader as i } from "element-ui";
4
- import { i as u, n as p } from "../../chunks/f71045fc.js";
4
+ import { i as u, n as p } from "../../chunks/utils.fa73de78.js";
5
5
  import { findTreeChildren as c, cloneDeep as d, setParent as m } from "@web-utils/core";
6
- import { n as f } from "../../chunks/5d4282fb.js";
6
+ import { n as f } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
7
7
  var h = function() {
8
8
  var e = this, t = e.$createElement, r = e._self._c || t;
9
9
  return r("FormItem", e._b({
@@ -1,8 +1,8 @@
1
- import { f as n } from "../../chunks/76680a03.js";
2
- import { f as s } from "../../chunks/61ad06b2.js";
3
- import { i as a, n as u } from "../../chunks/f71045fc.js";
1
+ import { f as n } from "../../chunks/form-input-mixin.ff5b58f7.js";
2
+ import { f as s } from "../../chunks/form-pick-mixin.61ad06b2.js";
3
+ import { i as a, n as u } from "../../chunks/utils.fa73de78.js";
4
4
  import { CheckboxGroup as p } from "element-ui";
5
- import { n as h } from "../../chunks/5d4282fb.js";
5
+ import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
6
6
  var c = function() {
7
7
  var e = this, r = e.$createElement, o = e._self._c || r;
8
8
  return o("FormItem", e._b({
@@ -1,8 +1,8 @@
1
- import { f as o } from "../../chunks/76680a03.js";
2
- import { f as l } from "../../chunks/61ad06b2.js";
1
+ import { f as o } from "../../chunks/form-input-mixin.ff5b58f7.js";
2
+ import { f as l } from "../../chunks/form-pick-mixin.61ad06b2.js";
3
3
  import { toDate as n } from "@web-utils/core";
4
- import { i as m, n as u } from "../../chunks/f71045fc.js";
5
- import { n as p } from "../../chunks/5d4282fb.js";
4
+ import { i as m, n as u } from "../../chunks/utils.fa73de78.js";
5
+ import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
6
6
  var h = function() {
7
7
  var e = this, t = e.$createElement, r = e._self._c || t;
8
8
  return r("FormItem", e._b({