@web-utils/component 2.30.1 → 2.40.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 (302) hide show
  1. package/address-input/index.mjs +9 -9
  2. package/address-input/style.css +1 -1
  3. package/affix/index.mjs +1 -1
  4. package/affix/style.css +1 -1
  5. package/aside-menu/index.mjs +20 -20
  6. package/aside-menu/style.css +1 -1
  7. package/avatar/index.mjs +1 -1
  8. package/avatar/style.css +1 -1
  9. package/awesome-button/index.mjs +1 -1
  10. package/base.css +1 -1
  11. package/capsule-tab/index.mjs +10 -10
  12. package/capsule-tab/style.css +1 -1
  13. package/card/index.mjs +23 -23
  14. package/card/style.css +1 -1
  15. package/carousel/index.mjs +5 -5
  16. package/carousel/style.css +1 -1
  17. package/chat/index.mjs +5 -3
  18. package/chat/style.css +1 -1
  19. package/chunk-file-uploader/index.mjs +3 -3
  20. package/chunk-file-uploader/style.css +1 -1
  21. package/chunks/{FormTemp.FX8xmbVB.mjs → FormTemp.7f91629d.mjs} +4 -4
  22. package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.817b542f.mjs} +16 -6
  23. package/chunks/{dataformat.X_61lMA7.mjs → dataformat.f995e2f9.mjs} +1 -1
  24. package/chunks/{dic.6tk91Dmq.mjs → dic.eaac0823.mjs} +8 -10
  25. package/chunks/{event.NHA7rYFE.mjs → event.b5d855dd.mjs} +3 -3
  26. package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.4632ad36.mjs} +2 -2
  27. package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.ad148e7b.mjs} +1 -1
  28. package/chunks/{init.Ac4dKUJB.mjs → init.47f219b4.mjs} +3 -3
  29. package/chunks/{util.C2Bhx22L.mjs → util.ae730cde.mjs} +24 -18
  30. package/code-mirror-editor/index.mjs +404 -175
  31. package/code-mirror-editor/style.css +1 -1
  32. package/color-picker/index.mjs +1 -1
  33. package/comment/index.mjs +18 -18
  34. package/comment/style.css +1 -1
  35. package/confirm-button/index.mjs +2 -2
  36. package/confirmable/index.mjs +2 -2
  37. package/context-menu/index.mjs +9 -9
  38. package/context-menu/style.css +1 -1
  39. package/count-up/index.mjs +6 -10
  40. package/custom-scrollbar/index.mjs +5 -9
  41. package/data-box/index.mjs +8 -8
  42. package/data-box/style.css +1 -1
  43. package/data-card/index.mjs +19 -19
  44. package/data-card/style.css +1 -1
  45. package/data-cardtext/index.mjs +22 -22
  46. package/data-cardtext/style.css +1 -1
  47. package/data-display/index.mjs +24 -24
  48. package/data-display/style.css +1 -1
  49. package/data-icons/index.mjs +13 -13
  50. package/data-icons/style.css +1 -1
  51. package/data-imgtext/index.mjs +18 -18
  52. package/data-imgtext/style.css +1 -1
  53. package/data-operatext/index.mjs +28 -28
  54. package/data-operatext/style.css +1 -1
  55. package/data-panel/index.mjs +15 -15
  56. package/data-panel/style.css +1 -1
  57. package/data-pay/index.mjs +7 -7
  58. package/data-pay/style.css +1 -1
  59. package/data-price/index.mjs +5 -5
  60. package/data-price/style.css +1 -1
  61. package/data-progress/index.mjs +16 -16
  62. package/data-progress/style.css +1 -1
  63. package/data-rotate/index.mjs +7 -7
  64. package/data-rotate/style.css +1 -1
  65. package/data-table-picker/index.mjs +2 -2
  66. package/data-tabs/index.mjs +6 -6
  67. package/data-tabs/style.css +1 -1
  68. package/dialog-form/index.mjs +47 -47
  69. package/dialog-form/style.css +1 -1
  70. package/dynamic-table/index.mjs +15 -15
  71. package/dynamic-table/style.css +1 -1
  72. package/e-charts/index.mjs +7 -7
  73. package/e-charts/style.css +1 -1
  74. package/easy-popup/index.mjs +15 -15
  75. package/easy-popup/style.css +1 -1
  76. package/editable-progress/index.mjs +1 -1
  77. package/editable-progress/style.css +1 -1
  78. package/editable-tree/index.mjs +5 -5
  79. package/editable-tree/style.css +1 -1
  80. package/egd-collapse/index.mjs +1 -1
  81. package/egd-collapse-item/index.mjs +1 -1
  82. package/element-dialog/index.mjs +13 -9
  83. package/element-dialog/style.css +1 -1
  84. package/empty-view/index.mjs +9 -9
  85. package/empty-view/style.css +1 -1
  86. package/error-view/index.mjs +13 -13
  87. package/error-view/style.css +1 -1
  88. package/flex-column/index.mjs +2 -2
  89. package/flex-item/index.mjs +12 -6
  90. package/flex-row/index.mjs +2 -2
  91. package/flex-scroller/index.mjs +5 -5
  92. package/flex-scroller/style.css +1 -1
  93. package/flow/index.mjs +23 -9
  94. package/flow/style.css +1 -1
  95. package/flow-designer/index.mjs +156 -63
  96. package/flow-designer/style.css +1 -1
  97. package/flow-node/index.mjs +2 -2
  98. package/flow-viewer/index.mjs +20 -11
  99. package/flow-viewer/style.css +1 -1
  100. package/form-block/index.mjs +23 -20
  101. package/form-block/style.css +1 -1
  102. package/form-button/index.mjs +1 -1
  103. package/form-cascader/index.mjs +7 -5
  104. package/form-checkbox-group/index.mjs +9 -7
  105. package/form-checkbox-group/style.css +1 -1
  106. package/form-date-picker/index.mjs +41 -12
  107. package/form-holder/index.mjs +6 -3
  108. package/form-input/index.mjs +6 -4
  109. package/form-input-email/index.mjs +12 -8
  110. package/form-input-id-card/index.mjs +12 -8
  111. package/form-input-number/index.mjs +10 -8
  112. package/form-input-number/style.css +1 -1
  113. package/form-input-phone-number/index.mjs +12 -8
  114. package/form-input-tag/index.mjs +3 -3
  115. package/form-input-time/index.mjs +6 -4
  116. package/form-item/index.mjs +43 -37
  117. package/form-item/style.css +1 -1
  118. package/form-item-config-provider/index.mjs +1 -1
  119. package/form-item-group/index.mjs +15 -12
  120. package/form-item-group/style.css +1 -1
  121. package/form-radio-group/index.mjs +40 -38
  122. package/form-radio-group/style.css +1 -1
  123. package/form-select/index.mjs +7 -5
  124. package/form-switch/index.mjs +6 -4
  125. package/form-textarea/index.mjs +6 -4
  126. package/form-view/index.mjs +32 -10
  127. package/form-view/style.css +1 -1
  128. package/fy-array/index.mjs +9 -9
  129. package/fy-array/style.css +1 -1
  130. package/fy-article/index.mjs +7 -7
  131. package/fy-article/style.css +1 -1
  132. package/fy-cascader/index.mjs +2 -2
  133. package/fy-checkbox/index.mjs +6 -6
  134. package/fy-checkbox/style.css +1 -1
  135. package/fy-code/index.mjs +2 -2
  136. package/fy-curd/index.mjs +117 -99
  137. package/fy-curd/style.css +1 -1
  138. package/fy-date/index.mjs +8 -8
  139. package/fy-date/style.css +1 -1
  140. package/fy-draggable/index.mjs +3 -3
  141. package/fy-draggable/style.css +1 -1
  142. package/fy-dynamic/index.mjs +51 -43
  143. package/fy-dynamic/style.css +1 -1
  144. package/fy-empty/index.mjs +10 -10
  145. package/fy-empty/style.css +1 -1
  146. package/fy-form/index.mjs +42 -42
  147. package/fy-form/style.css +1 -1
  148. package/fy-form-design/index.mjs +539 -421
  149. package/fy-form-design/style.css +1 -1
  150. package/fy-input/index.mjs +2 -2
  151. package/fy-input-color/index.mjs +2 -2
  152. package/fy-input-icon/index.mjs +5 -5
  153. package/fy-input-icon/style.css +1 -1
  154. package/fy-input-map/index.mjs +21 -15
  155. package/fy-input-map/style.css +1 -1
  156. package/fy-input-number/index.mjs +2 -2
  157. package/fy-input-table/index.mjs +13 -10
  158. package/fy-input-table/style.css +1 -1
  159. package/fy-input-tree/index.mjs +6 -6
  160. package/fy-input-tree/style.css +1 -1
  161. package/fy-progress/index.mjs +1 -1
  162. package/fy-radio/index.mjs +6 -6
  163. package/fy-radio/style.css +1 -1
  164. package/fy-rate/index.mjs +4 -4
  165. package/fy-rate/style.css +1 -1
  166. package/fy-select/index.mjs +27 -27
  167. package/fy-select/style.css +1 -1
  168. package/fy-slider/index.mjs +3 -3
  169. package/fy-switch/index.mjs +2 -2
  170. package/fy-tabs/index.mjs +1 -1
  171. package/fy-time/index.mjs +2 -2
  172. package/fy-title/index.mjs +14 -14
  173. package/fy-title/style.css +1 -1
  174. package/fy-tree/index.mjs +6 -9
  175. package/fy-tree/style.css +1 -1
  176. package/fy-u-editor/index.mjs +34 -32
  177. package/fy-u-editor/style.css +1 -1
  178. package/fy-upload/index.mjs +27 -27
  179. package/fy-upload/style.css +1 -1
  180. package/guide-steps/index.mjs +12 -12
  181. package/guide-steps/style.css +1 -1
  182. package/highlight-j-s/index.mjs +1 -1
  183. package/highlight-j-s/style.css +1 -1
  184. package/icon-card/index.mjs +9 -9
  185. package/icon-card/style.css +1 -1
  186. package/icon-temp/index.mjs +16 -16
  187. package/icon-temp/style.css +1 -1
  188. package/iframe-window/index.mjs +5 -5
  189. package/iframe-window/style.css +1 -1
  190. package/image-cropper/index.mjs +10 -10
  191. package/image-cropper/style.css +1 -1
  192. package/image-preview/index.mjs +7 -7
  193. package/image-preview/style.css +1 -1
  194. package/image-viewer/index.mjs +5 -5
  195. package/image-viewer/style.css +1 -1
  196. package/input-number/index.mjs +2 -2
  197. package/input-number/style.css +1 -1
  198. package/input-number-range/index.mjs +7 -7
  199. package/input-number-range/style.css +1 -1
  200. package/keep-view-alive/index.mjs +6 -2
  201. package/keyboard/index.mjs +21 -20
  202. package/keyboard/style.css +1 -1
  203. package/license/index.mjs +2 -2
  204. package/loading-view/index.mjs +5 -5
  205. package/loading-view/style.css +1 -1
  206. package/login/index.mjs +4 -4
  207. package/login/style.css +1 -1
  208. package/monaco-editor/index.mjs +2 -2
  209. package/name-avatar/index.mjs +6 -6
  210. package/name-avatar/style.css +1 -1
  211. package/nav-bar/index.mjs +8 -8
  212. package/nav-bar/style.css +1 -1
  213. package/not-implement/index.mjs +15 -15
  214. package/not-implement/style.css +1 -1
  215. package/notice/index.mjs +5 -5
  216. package/notice/style.css +1 -1
  217. package/package.json +1 -1
  218. package/page/index.mjs +8 -8
  219. package/page/style.css +1 -1
  220. package/page-header/index.mjs +6 -6
  221. package/page-header/style.css +1 -1
  222. package/page-index/index.mjs +19 -19
  223. package/page-index/style.css +1 -1
  224. package/page-index-top/index.mjs +1 -1
  225. package/page-skeleton/index.mjs +21 -21
  226. package/page-skeleton/style.css +1 -1
  227. package/page-skeleton-new/index.mjs +3 -3
  228. package/page-skeleton-new/style.css +1 -1
  229. package/pageable-table/index.mjs +21 -26
  230. package/pageable-table/style.css +1 -1
  231. package/pageable-view/index.mjs +37 -42
  232. package/pageable-view/style.css +1 -1
  233. package/photo-swipe/index.mjs +4 -2
  234. package/present-view/index.mjs +31 -9
  235. package/present-view/style.css +1 -1
  236. package/queue/index.mjs +4 -4
  237. package/queue/style.css +1 -1
  238. package/record-video/index.mjs +14 -14
  239. package/record-video/style.css +1 -1
  240. package/resize-observer/index.mjs +6 -6
  241. package/resize-observer/style.css +1 -1
  242. package/search/index.mjs +7 -7
  243. package/search/style.css +1 -1
  244. package/search-popover/index.mjs +6 -6
  245. package/search-popover/style.css +1 -1
  246. package/sign/index.mjs +31 -31
  247. package/sign/style.css +1 -1
  248. package/sign-panel/index.mjs +8 -8
  249. package/sign-panel/style.css +1 -1
  250. package/skeleton/index.mjs +10 -10
  251. package/skeleton/style.css +1 -1
  252. package/split-pane/index.mjs +19 -22
  253. package/split-pane/style.css +1 -1
  254. package/stateful/index.mjs +12 -12
  255. package/stateful/style.css +1 -1
  256. package/static-pageable-table/index.mjs +9 -9
  257. package/static-pageable-table/style.css +1 -1
  258. package/swiper/index.mjs +7 -7
  259. package/swiper/style.css +1 -1
  260. package/tab/index.mjs +2 -2
  261. package/tab/style.css +1 -1
  262. package/tab-item/index.mjs +2 -2
  263. package/table-column/index.mjs +10 -6
  264. package/table-view/index.mjs +28 -8
  265. package/table-view/style.css +1 -1
  266. package/tag-render/index.mjs +29 -29
  267. package/tag-render/style.css +1 -1
  268. package/text-ellipsis/index.mjs +9 -12
  269. package/text-ellipsis/style.css +1 -1
  270. package/tinymce-editor/index.mjs +77 -77
  271. package/tinymce-editor/style.css +1 -1
  272. package/toolbar/index.mjs +1 -1
  273. package/toolbar/style.css +1 -1
  274. package/toolbar-button/index.mjs +6 -6
  275. package/toolbar-button/style.css +1 -1
  276. package/verify/index.mjs +10 -10
  277. package/verify/style.css +1 -1
  278. package/vue-cron/index.mjs +1 -1
  279. package/vue-cron/style.css +1 -1
  280. package/vue-qr-code/index.mjs +1 -1
  281. package/vue-quill-editor/index.mjs +3 -3
  282. package/vue-quill-editor/style.css +1 -1
  283. package/vue-tags-input/index.mjs +1 -1
  284. package/vue-tags-input/style.css +1 -1
  285. package/vue-tree-select/index.mjs +25 -22
  286. package/vue-tree-select/style.css +1 -1
  287. package/vue-video-player/index.mjs +32 -29
  288. package/vue-video-player/style.css +1 -1
  289. package/watermark/index.mjs +11 -11
  290. package/watermark/style.css +1 -1
  291. package/web-types.json +31 -31
  292. package/x-input-tag/index.mjs +13 -13
  293. package/x-input-tag/style.css +1 -1
  294. /package/chunks/{form-pick-mixin.y-qhZJi6.mjs → form-pick-mixin.61ad06b2.mjs} +0 -0
  295. /package/chunks/{index.LGsb2aDq.mjs → index.57f871af.mjs} +0 -0
  296. /package/chunks/{input-number-mixin.GE2zr_3s.mjs → input-number-mixin.41a066be.mjs} +0 -0
  297. /package/chunks/{json-beautifier.fUZFSW5j.mjs → json-beautifier.21cfffea.mjs} +0 -0
  298. /package/chunks/{packages.v6r2Hr7E.mjs → packages.1fc9ccba.mjs} +0 -0
  299. /package/chunks/{permission.E9kZbW48.mjs → permission.ce5d2121.mjs} +0 -0
  300. /package/chunks/{slot.j1uMmBnG.mjs → slot.4b391395.mjs} +0 -0
  301. /package/chunks/{tab-mixin.tM9jcRT8.mjs → tab-mixin.e2b9c6a4.mjs} +0 -0
  302. /package/chunks/{vueComponentNormalizer.JwmUNtgn.mjs → vueComponentNormalizer.446f5dc4.mjs} +0 -0
package/tab/style.css CHANGED
@@ -1 +1 @@
1
- .vux-tab-ink-bar{text-align:center;background-color:#1989fa;height:2px;position:absolute;bottom:0;left:0}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) 90ms}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) 90ms,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab-bar-top .vux-tab-ink-bar{top:0}.vux-tab{background-color:#fff;height:36px;display:flex;position:relative}.vux-tab button{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:0 0;border:0;outline:0;padding:0}.vux-tab .vux-tab-item{box-sizing:border-box;color:#666;text-align:center;cursor:pointer;flex:auto;width:100%;height:100%;font-size:14px;line-height:36px;display:block}.vux-tab .vux-tab-item.vux-tab-selected{color:#1989fa;border-bottom:3px solid #1989fa}.vux-tab-bar-top .vux-tab .vux-tab-item.vux-tab-selected{border-top:3px solid #1989fa;border-bottom:none}.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd}.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0}.vux-tab-bar-inner{background-color:#1989fa;height:100%;margin:auto;transition:width .3s cubic-bezier(.35,0,.25,1);display:block}.vux-tab-item-badge{box-sizing:border-box;vertical-align:middle;background-clip:padding-box;border-radius:30px;min-width:18px;height:18px;margin:auto 0 auto 4px;padding:0 4px;font-size:11px;line-height:18px;display:inline-block;position:absolute;top:0;bottom:0}.vux-tab-wrap{padding-top:36px;position:relative}.vux-tab-container{height:36px;position:absolute;top:0;left:0;right:0;overflow:hidden}.scrollable{box-sizing:content-box;-webkit-overflow-scrolling:touch;padding-bottom:17px;overflow-x:auto;overflow-y:hidden}.scrollable::-webkit-scrollbar{display:none}.scrollable .vux-tab-ink-bar{position:absolute;bottom:17px}.scrollable .vux-tab-item{flex:0 0 22%}
1
+ .vux-tab-ink-bar{text-align:center;background-color:#1989fa;height:2px;position:absolute;bottom:0;left:0}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) 90ms}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) 90ms,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab-bar-top .vux-tab-ink-bar{top:0}.vux-tab{background-color:#fff;height:36px;display:flex;position:relative}.vux-tab button{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:0 0;border:0;outline:0;padding:0}.vux-tab .vux-tab-item{box-sizing:border-box;color:#666;text-align:center;cursor:pointer;flex:auto;width:100%;height:100%;font-size:14px;line-height:36px;display:block}.vux-tab .vux-tab-item.vux-tab-selected{color:#1989fa;border-bottom:3px solid #1989fa}.vux-tab-bar-top .vux-tab .vux-tab-item.vux-tab-selected{border-top:3px solid #1989fa;border-bottom:none}.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd}.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0}.vux-tab-bar-inner{background-color:#1989fa;height:100%;margin:auto;transition:width .3s cubic-bezier(.35,0,.25,1);display:block}.vux-tab-item-badge{box-sizing:border-box;vertical-align:middle;background-clip:padding-box;border-radius:30px;min-width:18px;height:18px;margin:auto 0 auto 4px;padding:0 4px;font-size:11px;line-height:18px;display:inline-block;position:absolute;top:0;bottom:0}.vux-tab-wrap{padding-top:36px;position:relative}.vux-tab-container{height:36px;position:absolute;top:0;left:0;right:0;overflow:hidden}.scrollable{box-sizing:content-box;-webkit-overflow-scrolling:touch;padding-bottom:17px;overflow-x:auto;overflow-y:hidden}.scrollable::-webkit-scrollbar{display:none}.scrollable .vux-tab-ink-bar{position:absolute;bottom:17px}.scrollable .vux-tab-item{flex:0 0 22%}
@@ -1,5 +1,5 @@
1
- import { c as n } from "../chunks/tab-mixin.tM9jcRT8.mjs";
2
- import { n as l } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
1
+ import { c as n } from "../chunks/tab-mixin.e2b9c6a4.mjs";
2
+ import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var o = function() {
4
4
  var e = this, t = e.$createElement, a = e._self._c || t;
5
5
  return a("div", {
@@ -10,7 +10,7 @@ var i = (n, e, t) => e in n ? u(n, e, { enumerable: !0, configurable: !0, writab
10
10
  p.call(e, t) && i(n, t, e[t]);
11
11
  return n;
12
12
  }, r = (n, e) => d(n, c(e));
13
- import { n as g } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
13
+ import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
14
14
  const m = {
15
15
  props: {
16
16
  type: {
@@ -71,11 +71,15 @@ const m = {
71
71
  functional: !0,
72
72
  mixins: [m],
73
73
  render(n, { data: e, props: t, children: s }) {
74
- return n("ElTableColumn", r(l({}, e), {
75
- props: r(l({}, t), {
76
- showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(t.type) ? !1 : t.showOverflowTooltip
77
- })
78
- }), s);
74
+ return n(
75
+ "ElTableColumn",
76
+ r(l({}, e), {
77
+ props: r(l({}, t), {
78
+ showOverflowTooltip: ["selection", "single-selection", "index", "expand"].includes(t.type) ? !1 : t.showOverflowTooltip
79
+ })
80
+ }),
81
+ s
82
+ );
79
83
  }
80
84
  };
81
85
  let y, S;
@@ -15,9 +15,9 @@ var o = (e, r, t) => new Promise((s, l) => {
15
15
  c((t = t.apply(e, r)).next());
16
16
  });
17
17
  import { merge as n } from "@web-utils/integrations/lodash";
18
- import { isString as d, isArray as m, trace as f, warning as g, toStringArray as w, isFunction as _, hasOwn as p } from "@web-utils/core";
19
- import { k as v } from "../chunks/index.LGsb2aDq.mjs";
20
- import { n as y } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
18
+ import { isString as d, isArray as m, trace as f, warning as _, toStringArray as g, isFunction as w, hasOwn as p } from "@web-utils/core";
19
+ import { k as v } from "../chunks/index.57f871af.mjs";
20
+ import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
21
  var P = function() {
22
22
  var e = this, r = e.$createElement, t = e._self._c || r;
23
23
  return t("div", {
@@ -61,7 +61,7 @@ var P = function() {
61
61
  staticStyle: {
62
62
  "font-size": "16px"
63
63
  }
64
- }, [e._v(" 视图导航 ")]), t("EditableTree", e._g(e._b({
64
+ }, [e._v("视图导航")]), t("EditableTree", e._g(e._b({
65
65
  ref: "tree",
66
66
  attrs: {
67
67
  readonly: ""
@@ -163,7 +163,27 @@ var P = function() {
163
163
  staticClass: "slide-panel-line-indicator"
164
164
  })]);
165
165
  }];
166
- const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], T = {
166
+ const $ = [
167
+ "back",
168
+ "create",
169
+ "save",
170
+ "withdraw",
171
+ "edit",
172
+ "submit",
173
+ "publish",
174
+ "agree",
175
+ "disagree",
176
+ "reject",
177
+ "finish",
178
+ "cancel",
179
+ "enable",
180
+ "exp",
181
+ "imp",
182
+ "del",
183
+ "disabled",
184
+ "reload",
185
+ "slot"
186
+ ], T = {
167
187
  name: "TableView",
168
188
  bus: {
169
189
  reloadTableView(e, r) {
@@ -172,7 +192,7 @@ const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
172
192
  let t = e;
173
193
  d(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (f.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (f.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
174
194
  } else
175
- g.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
195
+ _.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
176
196
  }
177
197
  },
178
198
  props: {
@@ -246,7 +266,7 @@ const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
246
266
  var s, l;
247
267
  const e = {}, r = n(this.toolbarAttrs, e);
248
268
  let t = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
249
- return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons = w(r.buttons), r.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), r;
269
+ return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons = g(r.buttons), r.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), r;
250
270
  },
251
271
  treeProps() {
252
272
  const e = {
@@ -324,7 +344,7 @@ const $ = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
324
344
  return o(this, null, function* () {
325
345
  var r;
326
346
  const e = this.deleteApi || this.$parent.del;
327
- if (!((r = this.toolbarListeners) != null && r.del) && _(e)) {
347
+ if (!((r = this.toolbarListeners) != null && r.del) && w(e)) {
328
348
  if (!this.selectedRows.length) {
329
349
  this.$message.warning("请选择要删除的记录!");
330
350
  return;
@@ -1 +1 @@
1
- .table-view{flex-direction:column;height:100%;display:flex}.table-view .el-table--border{border:none}.table-view .border-top .el-table--border{border-top:1px solid #ebeef5}.table-view .border-bottom .el-table--border{border-bottom:1px solid #ebeef5}.table-view .border-left .el-table--border,.table-view .border-left .el-pagination{border-left:1px solid #ebeef5}.table-view .border-right .el-table--border{border-right:1px solid #ebeef5}.table-view .table-view-content-wrapper{flex:1;position:relative;overflow:hidden}.table-view .table-view-content{background-color:#fff;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.table-view .table-view-sidebar{flex-shrink:0;width:240px;height:100%;padding:10px;overflow:auto}.table-view .table-view-sidebar .et-tree-wrapper{display:table;overflow:visible}.table-view .table-view-table{flex:auto;height:100%}.table-view .slide-panel{z-index:5;background-color:#fff;transition:right .2s;display:flex;position:absolute;top:0;bottom:0;right:0}.table-view .slide-panel .slide-panel-line{background-color:#ddd;flex-shrink:0;width:3px;height:100%;position:relative}.table-view .slide-panel .slide-panel-line-indicator{background-color:#aaa;width:100%;height:50px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.table-view .slide-panel .slide-panel-actions{justify-content:center;align-items:center;margin-top:10px;display:flex}.table-view .slide-panel .slide-panel-content{flex:1;padding:10px;overflow:auto}.table-view .slide-panel .slide-panel-content .el-date-editor{width:100%}
1
+ .table-view{flex-direction:column;height:100%;display:flex}.table-view .el-table--border{border:none}.table-view .border-top .el-table--border{border-top:1px solid #ebeef5}.table-view .border-bottom .el-table--border{border-bottom:1px solid #ebeef5}.table-view .border-left .el-table--border,.table-view .border-left .el-pagination{border-left:1px solid #ebeef5}.table-view .border-right .el-table--border{border-right:1px solid #ebeef5}.table-view .table-view-content-wrapper{flex:1;position:relative;overflow:hidden}.table-view .table-view-content{background-color:#fff;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.table-view .table-view-sidebar{flex-shrink:0;width:240px;height:100%;padding:10px;overflow:auto}.table-view .table-view-sidebar .et-tree-wrapper{display:table;overflow:visible}.table-view .table-view-table{flex:auto;height:100%}.table-view .slide-panel{z-index:5;background-color:#fff;transition:right .2s;display:flex;position:absolute;top:0;bottom:0;right:0}.table-view .slide-panel .slide-panel-line{background-color:#ddd;flex-shrink:0;width:3px;height:100%;position:relative}.table-view .slide-panel .slide-panel-line-indicator{background-color:#aaa;width:100%;height:50px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.table-view .slide-panel .slide-panel-actions{justify-content:center;align-items:center;margin-top:10px;display:flex}.table-view .slide-panel .slide-panel-content{flex:1;padding:10px;overflow:auto}.table-view .slide-panel .slide-panel-content .el-date-editor{width:100%}
@@ -1,53 +1,53 @@
1
1
  var c = Object.defineProperty;
2
2
  var r = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
- var l = (t, e, n) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, o = (t, e) => {
5
- for (var n in e || (e = {}))
6
- m.call(e, n) && l(t, n, e[n]);
3
+ var _ = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
+ var l = (e, t, n) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
5
+ for (var n in t || (t = {}))
6
+ _.call(t, n) && l(e, n, t[n]);
7
7
  if (r)
8
- for (var n of r(e))
9
- _.call(e, n) && l(t, n, e[n]);
10
- return t;
8
+ for (var n of r(t))
9
+ m.call(t, n) && l(e, n, t[n]);
10
+ return e;
11
11
  };
12
12
  import { hasOwn as i } from "@web-utils/core";
13
- import { n as g } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
13
+ import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
14
14
  var f = function() {
15
- var t = this, e = t.$createElement, n = t._self._c || e;
15
+ var e = this, t = e.$createElement, n = e._self._c || t;
16
16
  return n("div", {
17
17
  staticClass: "tag-render"
18
- }, [t.tags && t.tags.length && t.tags[0] ? t._l(t.internalTags, function(s, a) {
18
+ }, [e.tags && e.tags.length && e.tags[0] ? e._l(e.internalTags, function(s, a) {
19
19
  return n("ElTag", {
20
20
  key: a,
21
21
  attrs: {
22
- closable: t.enable,
22
+ closable: e.enable,
23
23
  size: "medium",
24
24
  "disable-transitions": ""
25
25
  },
26
26
  on: {
27
27
  close: function(b) {
28
- return t.$emit("close", t.tags[a], a);
28
+ return e.$emit("close", e.tags[a], a);
29
29
  }
30
30
  }
31
- }, [t._v(" " + t._s(t.getTagName(s)) + " ")]);
32
- }) : t.enable ? t._e() : [n("span", {
31
+ }, [e._v(" " + e._s(e.getTagName(s)) + " ")]);
32
+ }) : e.enable ? e._e() : [n("span", {
33
33
  staticStyle: {
34
34
  "margin-left": "4px",
35
35
  color: "#b5b5b5",
36
36
  "line-height": "16px"
37
37
  }
38
- }, [t._v("无")])], t.enable ? n("ElButton", {
38
+ }, [e._v("无")])], e.enable ? n("ElButton", {
39
39
  staticClass: "add-tag",
40
40
  attrs: {
41
41
  size: "mini"
42
42
  },
43
43
  on: {
44
44
  click: function(s) {
45
- return t.$emit("add");
45
+ return e.$emit("add");
46
46
  }
47
47
  }
48
- }, [t._v("+ 添加")]) : t._e(), t.count ? n("span", {
48
+ }, [e._v("+ 添加")]) : e._e(), e.count ? n("span", {
49
49
  staticClass: "tags-count"
50
- }, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
50
+ }, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
51
51
  }, d = [];
52
52
  const p = {
53
53
  name: "TagRender",
@@ -76,21 +76,21 @@ const p = {
76
76
  },
77
77
  computed: {
78
78
  internalTags() {
79
- return this.transfer ? this.tags.map((t) => {
80
- const e = o({}, t);
81
- return this.transfer(e);
79
+ return this.transfer ? this.tags.map((e) => {
80
+ const t = o({}, e);
81
+ return this.transfer(t);
82
82
  }) : this.tags;
83
83
  }
84
84
  },
85
85
  watch: {
86
- tags(t) {
87
- var e, n;
88
- this.elFormItem && t && t.length > 0 && ((n = (e = this.elFormItem).clearValidate) == null || n.call(e));
86
+ tags(e) {
87
+ var t, n;
88
+ this.elFormItem && e && e.length > 0 && ((n = (t = this.elFormItem).clearValidate) == null || n.call(t));
89
89
  }
90
90
  },
91
91
  methods: {
92
- getTagName(t) {
93
- return i(t, "name") ? t.name : i(t, "label") ? t.label : t;
92
+ getTagName(e) {
93
+ return i(e, "name") ? e.name : i(e, "label") ? e.label : e;
94
94
  }
95
95
  }
96
96
  }, u = {};
@@ -104,9 +104,9 @@ var h = /* @__PURE__ */ g(
104
104
  null,
105
105
  null
106
106
  );
107
- function v(t) {
108
- for (let e in u)
109
- this[e] = u[e];
107
+ function v(e) {
108
+ for (let t in u)
109
+ this[t] = u[t];
110
110
  }
111
111
  const $ = /* @__PURE__ */ function() {
112
112
  return h.exports;
@@ -1 +1 @@
1
- .tag-render{background-color:#fff;border:1px solid #d7dae0;border-radius:4px;min-height:80px;padding-top:4px;padding-right:4px;line-height:0;overflow:hidden}.tag-render .el-tag{margin-bottom:4px;margin-left:4px}.tag-render .add-tag{margin-left:4px}.tag-render .el-tag .el-tag__close:hover{background-color:#ee8677}.tag-render .tags-count{color:#b7b7b7;font-size:.9em;position:absolute;bottom:10px;right:6px}
1
+ .tag-render{background-color:#fff;border:1px solid #d7dae0;border-radius:4px;min-height:80px;padding-top:4px;padding-right:4px;line-height:0;overflow:hidden}.tag-render .el-tag{margin-bottom:4px;margin-left:4px}.tag-render .add-tag{margin-left:4px}.tag-render .el-tag .el-tag__close:hover{background-color:#ee8677}.tag-render .tags-count{color:#b7b7b7;font-size:.9em;position:absolute;bottom:10px;right:6px}
@@ -1,5 +1,5 @@
1
- import { s as o } from "../chunks/util.C2Bhx22L.mjs";
2
- import { n as r } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
1
+ import { s as o } from "../chunks/util.ae730cde.mjs";
2
+ import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var h = function() {
4
4
  var t = this, e = t.$createElement, i = t._self._c || e;
5
5
  return i("div", {
@@ -75,10 +75,7 @@ const f = {
75
75
  i.style.display = "inline-block";
76
76
  let s = this.text;
77
77
  for (; e.offsetHeight > this.height && n > 0; )
78
- e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(
79
- 0,
80
- Math.floor(s.length / 2)
81
- ) : t.innerText = s = s.substring(0, s.length - 1), n--;
78
+ e.offsetHeight > this.height * 3 ? t.innerText = s = s.substring(0, Math.floor(s.length / 2)) : t.innerText = s = s.substring(0, s.length - 1), n--;
82
79
  this.$emit("hide"), this.isHide = !0;
83
80
  } else
84
81
  this.$emit("show"), this.isHide = !1;
@@ -86,23 +83,23 @@ const f = {
86
83
  }
87
84
  }
88
85
  }, l = {};
89
- var m = /* @__PURE__ */ r(
86
+ var _ = /* @__PURE__ */ r(
90
87
  f,
91
88
  h,
92
89
  a,
93
90
  !1,
94
- c,
91
+ m,
95
92
  null,
96
93
  null,
97
94
  null
98
95
  );
99
- function c(t) {
96
+ function m(t) {
100
97
  for (let e in l)
101
98
  this[e] = l[e];
102
99
  }
103
- const x = /* @__PURE__ */ function() {
104
- return m.exports;
100
+ const u = /* @__PURE__ */ function() {
101
+ return _.exports;
105
102
  }();
106
103
  export {
107
- x as default
104
+ u as default
108
105
  };
@@ -1 +1 @@
1
- .avue-text-ellipsis__more{padding:0 2px}
1
+ .avue-text-ellipsis__more{padding:0 2px}
@@ -1,34 +1,34 @@
1
- var k = Object.defineProperty, C = Object.defineProperties;
2
- var B = Object.getOwnPropertyDescriptors;
1
+ var F = Object.defineProperty, C = Object.defineProperties;
2
+ var _ = Object.getOwnPropertyDescriptors;
3
3
  var y = Object.getOwnPropertySymbols;
4
- var T = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
5
- var w = (e, t, i) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, m = (e, t) => {
4
+ var T = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
5
+ var w = (e, t, i) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, h = (e, t) => {
6
6
  for (var i in t || (t = {}))
7
7
  T.call(t, i) && w(e, i, t[i]);
8
8
  if (y)
9
9
  for (var i of y(t))
10
- _.call(t, i) && w(e, i, t[i]);
10
+ B.call(t, i) && w(e, i, t[i]);
11
11
  return e;
12
- }, f = (e, t) => C(e, B(t));
13
- var p = (e, t, i) => new Promise((a, o) => {
14
- var n = (s) => {
12
+ }, f = (e, t) => C(e, _(t));
13
+ var p = (e, t, i) => new Promise((a, n) => {
14
+ var o = (s) => {
15
15
  try {
16
16
  r(i.next(s));
17
17
  } catch (d) {
18
- o(d);
18
+ n(d);
19
19
  }
20
20
  }, l = (s) => {
21
21
  try {
22
22
  r(i.throw(s));
23
23
  } catch (d) {
24
- o(d);
24
+ n(d);
25
25
  }
26
- }, r = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, l);
26
+ }, r = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(o, l);
27
27
  r((i = i.apply(e, t)).next());
28
28
  });
29
29
  import "tinymce/skins/lightgray/skin.min.css";
30
- import D from "tinymce";
31
- import P from "@tinymce/tinymce-vue";
30
+ import P from "tinymce";
31
+ import S from "@tinymce/tinymce-vue";
32
32
  import "tinymce/themes/modern/theme";
33
33
  import "tinymce/plugins/contextmenu";
34
34
  import "tinymce/plugins/wordcount";
@@ -37,8 +37,8 @@ import "tinymce/plugins/image";
37
37
  import "tinymce/plugins/fullscreen";
38
38
  import "tinymce/plugins/preview";
39
39
  import "tinymce/plugins/imagetools";
40
- import { getFilePrefix as S, guid as A } from "@web-utils/core";
41
- import { n as F } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
40
+ import { getFilePrefix as D, guid as A } from "@web-utils/core";
41
+ import { n as I } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
42
42
  const $ = {
43
43
  Redo: "重做",
44
44
  Undo: "撤销",
@@ -457,27 +457,27 @@ function U(e) {
457
457
  let t;
458
458
  const i = e.naturalHeight, a = document.createElement("canvas");
459
459
  a.width = 1, a.height = i;
460
- const o = a.getContext("2d");
461
- o.drawImage(e, 0, 0);
460
+ const n = a.getContext("2d");
461
+ n.drawImage(e, 0, 0);
462
462
  try {
463
- t = o.getImageData(0, 0, 1, i).data;
463
+ t = n.getImageData(0, 0, 1, i).data;
464
464
  } catch (d) {
465
465
  return console.log("Cannot check verticalSquash: CORS?"), 1;
466
466
  }
467
- let n = 0, l = i, r = i;
468
- for (; r > n; )
469
- t[(r - 1) * 4 + 3] === 0 ? l = r : n = r, r = l + n >> 1;
467
+ let o = 0, l = i, r = i;
468
+ for (; r > o; )
469
+ t[(r - 1) * 4 + 3] === 0 ? l = r : o = r, r = l + o >> 1;
470
470
  const s = r / i;
471
471
  return s === 0 ? 1 : s;
472
472
  }
473
- function I(e) {
473
+ function k(e) {
474
474
  const t = atob(e.split(",")[1]), i = new ArrayBuffer(t.length), a = new Uint8Array(i);
475
- for (let o = 0; o < t.length; o++)
476
- a[o] = t.charCodeAt(o);
475
+ for (let n = 0; n < t.length; n++)
476
+ a[n] = t.charCodeAt(n);
477
477
  return i;
478
478
  }
479
479
  function L(e) {
480
- const t = e.split(",")[0].split(":")[1].split(";")[0], i = I(e);
480
+ const t = e.split(",")[0].split(":")[1].split(";")[0], i = k(e);
481
481
  return new Blob([i], { type: t });
482
482
  }
483
483
  function x(e) {
@@ -487,19 +487,19 @@ function x(e) {
487
487
  const i = t.byteLength;
488
488
  let a = 2;
489
489
  for (; a < i; ) {
490
- const o = t.getUint16(a, !1);
491
- if (a += 2, o === 65505) {
490
+ const n = t.getUint16(a, !1);
491
+ if (a += 2, n === 65505) {
492
492
  if (t.getUint32(a += 2, !1) !== 1165519206)
493
493
  return -1;
494
- const n = t.getUint16(a += 6, !1) === 18761;
495
- a += t.getUint32(a + 4, n);
496
- const l = t.getUint16(a, n);
494
+ const o = t.getUint16(a += 6, !1) === 18761;
495
+ a += t.getUint32(a + 4, o);
496
+ const l = t.getUint16(a, o);
497
497
  a += 2;
498
498
  for (let r = 0; r < l; r++)
499
- if (t.getUint16(a + r * 12, n) === 274)
500
- return t.getUint16(a + r * 12 + 8, n);
499
+ if (t.getUint16(a + r * 12, o) === 274)
500
+ return t.getUint16(a + r * 12 + 8, o);
501
501
  } else {
502
- if ((o & 65280) !== 65280)
502
+ if ((n & 65280) !== 65280)
503
503
  break;
504
504
  a += t.getUint16(a, !1);
505
505
  }
@@ -507,25 +507,25 @@ function x(e) {
507
507
  return -1;
508
508
  }
509
509
  function H(e, t, i) {
510
- const a = e.width, o = e.height;
511
- switch (i > 4 && (e.width = o, e.height = a), i) {
510
+ const a = e.width, n = e.height;
511
+ switch (i > 4 && (e.width = n, e.height = a), i) {
512
512
  case 2:
513
513
  t.translate(a, 0), t.scale(-1, 1);
514
514
  break;
515
515
  case 3:
516
- t.translate(a, o), t.rotate(Math.PI);
516
+ t.translate(a, n), t.rotate(Math.PI);
517
517
  break;
518
518
  case 4:
519
- t.translate(0, o), t.scale(1, -1);
519
+ t.translate(0, n), t.scale(1, -1);
520
520
  break;
521
521
  case 5:
522
522
  t.rotate(0.5 * Math.PI), t.scale(1, -1);
523
523
  break;
524
524
  case 6:
525
- t.rotate(0.5 * Math.PI), t.translate(0, -o);
525
+ t.rotate(0.5 * Math.PI), t.translate(0, -n);
526
526
  break;
527
527
  case 7:
528
- t.rotate(0.5 * Math.PI), t.translate(a, -o), t.scale(-1, 1);
528
+ t.rotate(0.5 * Math.PI), t.translate(a, -n), t.scale(-1, 1);
529
529
  break;
530
530
  case 8:
531
531
  t.rotate(-0.5 * Math.PI), t.translate(-a, 0);
@@ -541,30 +541,30 @@ function q(e) {
541
541
  function O(e, t) {
542
542
  return p(this, null, function* () {
543
543
  return new Promise((i, a) => {
544
- const o = new Image();
545
- o.onload = function() {
546
- const n = U(o), l = x(I(o.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
547
- let c = o.width, u = o.height;
548
- c < u && u > g ? (c = parseInt(`${g * o.width / o.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * o.height / o.width}`), c = d), r.width = c, r.height = u, l > 0 && H(r, s, l), s.drawImage(o, 0, 0, c, u / n);
549
- const h = r.toDataURL("image/jpeg", t.compress.quality);
550
- /;base64,null/.test(h) || /;base64,$/.test(h) ? (t.onError(new Error(`Compress fail, dataURL is ${h}.`)), a(Error("图片压缩失败"))) : i(j(h, `${S(t.fileName)}.jpg`));
551
- }, o.src = e;
544
+ const n = new Image();
545
+ n.onload = function() {
546
+ const o = U(n), l = x(k(n.src)), r = document.createElement("canvas"), s = r.getContext("2d"), d = t.compress.width, g = t.compress.height;
547
+ let c = n.width, u = n.height;
548
+ c < u && u > g ? (c = parseInt(`${g * n.width / n.height}`), u = g) : c >= u && c > d && (u = parseInt(`${d * n.height / n.width}`), c = d), r.width = c, r.height = u, l > 0 && H(r, s, l), s.drawImage(n, 0, 0, c, u / o);
549
+ const m = r.toDataURL("image/jpeg", t.compress.quality);
550
+ /;base64,null/.test(m) || /;base64,$/.test(m) ? (t.onError(new Error(`Compress fail, dataURL is ${m}.`)), a(Error("图片压缩失败"))) : i(j(m, `${D(t.fileName)}.jpg`));
551
+ }, n.src = e;
552
552
  });
553
553
  });
554
554
  }
555
555
  function z(e, t) {
556
556
  return p(this, null, function* () {
557
557
  const i = yield N(e);
558
- return O(i, m({ fileName: e.name }, t));
558
+ return O(i, h({ fileName: e.name }, t));
559
559
  });
560
560
  }
561
561
  function N(e) {
562
562
  return new Promise((t, i) => {
563
563
  const a = new FileReader();
564
- a.onload = function(o) {
565
- t(o.target.result);
566
- }, a.onerror = function(o) {
567
- i(o);
564
+ a.onload = function(n) {
565
+ t(n.target.result);
566
+ }, a.onerror = function(n) {
567
+ i(n);
568
568
  }, a.readAsDataURL(e);
569
569
  });
570
570
  }
@@ -572,7 +572,7 @@ function j(e = "", t) {
572
572
  const i = L(e);
573
573
  return i.name = t || `image${q(e)}`, i;
574
574
  }
575
- var G = function() {
575
+ var W = function() {
576
576
  var e = this, t = e.$createElement, i = e._self._c || t;
577
577
  return e.show ? i("div", {
578
578
  class: ["tinymce-editor", {
@@ -605,12 +605,12 @@ var G = function() {
605
605
  accept: ".jpg,.jpeg,.png,.gif,.bmp"
606
606
  }
607
607
  }, [i("span")])], 1) : e._e();
608
- }, W = [];
609
- D.addI18n("zh_CN", $);
608
+ }, G = [];
609
+ P.addI18n("zh_CN", $);
610
610
  const V = {
611
611
  name: "TinymceWrapper",
612
612
  components: {
613
- Editor: P
613
+ Editor: S
614
614
  },
615
615
  inject: {
616
616
  elForm: {
@@ -657,27 +657,27 @@ const V = {
657
657
  data() {
658
658
  const t = ["fullscreen", "image", "wordcount", "paste"].join(","), i = this.buttons || [];
659
659
  let a = this.toolbar || " | ";
660
- return a = `undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${a}`, i && (a += ` ${i.map((n) => n.name).join(" ")}`), a += " | fullscreen", {
660
+ return a = `undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect | removeformat | | ${a}`, i && (a += ` ${i.map((o) => o.name).join(" ")}`), a += " | fullscreen", {
661
661
  val: "",
662
662
  show: !0,
663
663
  init: {
664
- setup: (n) => {
665
- n.settings.dialog_title = this.dialogTitle, n.settings.show_types = this.showTypes, n.on("paste", (r) => {
664
+ setup: (o) => {
665
+ o.settings.dialog_title = this.dialogTitle, o.settings.show_types = this.showTypes, o.on("paste", (r) => {
666
666
  const s = r.clipboardData || r.dataTransfer;
667
667
  return !(this.processItems(r, s.items) || this.processItems(r, s.files));
668
- }), n.on("PreInit", (r) => {
668
+ }), o.on("PreInit", (r) => {
669
669
  r.target.dom.doc.body.style.fontFamily = "微软雅黑";
670
- }), n.on("Blur", (r) => {
670
+ }), o.on("Blur", (r) => {
671
671
  this.$emit("on-blur", r);
672
- }), n.on("DialogShow", (r) => {
672
+ }), o.on("DialogShow", (r) => {
673
673
  this.$emit("dialog-show", r);
674
- }), n.on("DialogHide", (r) => {
674
+ }), o.on("DialogHide", (r) => {
675
675
  this.$emit("dialog-hide", r);
676
676
  }), i.forEach((r) => {
677
677
  r.icon = ` ${r.icon}`;
678
678
  const { onclick: s } = r;
679
- n.addButton(r.name, f(m({}, r), {
680
- onclick: () => s(n)
679
+ o.addButton(r.name, f(h({}, r), {
680
+ onclick: () => s(o)
681
681
  }));
682
682
  });
683
683
  const l = {
@@ -686,8 +686,8 @@ const V = {
686
686
  title: "上传图片",
687
687
  onclick: this.upload
688
688
  };
689
- n.addButton(l.name, f(m({}, l), {
690
- onclick: () => l.onclick(n)
689
+ o.addButton(l.name, f(h({}, l), {
690
+ onclick: () => l.onclick(o)
691
691
  }));
692
692
  },
693
693
  toolbar: a,
@@ -745,9 +745,9 @@ const V = {
745
745
  this.show = !0;
746
746
  },
747
747
  methods: {
748
- uploadImageFile(o) {
748
+ uploadImageFile(n) {
749
749
  return p(this, arguments, function* ({ file: e, onError: t, onProgress: i, onSuccess: a }) {
750
- var n, l;
750
+ var o, l;
751
751
  try {
752
752
  this.loading = this.$loading({ text: "压缩中...", background: "rgba(0,0,0,0.2)" });
753
753
  const r = yield z(e, {
@@ -758,7 +758,7 @@ const V = {
758
758
  }
759
759
  });
760
760
  this.loading.text = "上传中...";
761
- const s = yield this.api((n = this.getUploadUrl) == null ? void 0 : n.call(this), r, {
761
+ const s = yield this.api((o = this.getUploadUrl) == null ? void 0 : o.call(this), r, {
762
762
  data: { unid: A(), type: this.fileLabel },
763
763
  onprogress(d) {
764
764
  i == null || i(d);
@@ -774,10 +774,10 @@ const V = {
774
774
  processItems(e, t) {
775
775
  let i = !1;
776
776
  for (let a = 0; a < t.length; a++) {
777
- const o = t[a];
778
- if (/^image\/(jpeg|png|gif|bmp)$/.test(o.type)) {
779
- const n = o.getAsFile ? o.getAsFile() : o;
780
- this.uploadImageFile({ file: n }), e.preventDefault(), i = !0;
777
+ const n = t[a];
778
+ if (/^image\/(jpeg|png|gif|bmp)$/.test(n.type)) {
779
+ const o = n.getAsFile ? n.getAsFile() : n;
780
+ this.uploadImageFile({ file: o }), e.preventDefault(), i = !0;
781
781
  }
782
782
  }
783
783
  return i;
@@ -799,10 +799,10 @@ const V = {
799
799
  }
800
800
  }
801
801
  }, b = {};
802
- var Y = /* @__PURE__ */ F(
802
+ var Y = /* @__PURE__ */ I(
803
803
  V,
804
- G,
805
804
  W,
805
+ G,
806
806
  !1,
807
807
  X,
808
808
  null,
@@ -971,7 +971,7 @@ const Q = {
971
971
  }
972
972
  }
973
973
  }, v = {};
974
- var ee = /* @__PURE__ */ F(
974
+ var ee = /* @__PURE__ */ I(
975
975
  Q,
976
976
  J,
977
977
  K,
@@ -1 +1 @@
1
- .tinymce-editor{height:100%}.tinymce-editor.none-resize .mce-resizehandle{display:none}.tinymce-editor .mce-tinymce{flex:1;height:calc(100% - 4px)}.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span{width:60px}.tinymce-editor .mce-tinymce>.mce-container-body{flex-direction:column;height:100%;display:flex}.tinymce-editor .mce-tinymce>.mce-container-body>.mce-edit-area{flex:1}.tinymce-editor .fa-icon{font:14px/1 FontAwesome!important}.tinymce-editor .el-icon{font-family:element-icons,serif!important}.tinymce-editor .mce-label{display:none}.template-tag{color:#1e90ff;margin:0 10px;font-family:黑体,serif;font-style:italic;font-weight:700;cursor:help!important}.editor-shadow{text-align:left;word-break:normal;word-spacing:0;overflow-wrap:break-word;cursor:text;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;width:100%;height:100%;padding:10px;font-family:微软雅黑,serif;font-size:16px;line-height:normal;position:relative;overflow:auto}.editor-shadow img{max-width:100%!important}.show-placeholder{position:relative}.show-placeholder:after{color:#a9a9a9;content:attr(placeholder);pointer-events:none;position:absolute;top:10px;left:11px}
1
+ .tinymce-editor{height:100%}.tinymce-editor.none-resize .mce-resizehandle{display:none}.tinymce-editor .mce-tinymce{flex:1;height:calc(100% - 4px)}.tinymce-editor .mce-tinymce .mce-menubtn.mce-fixed-width span{width:60px}.tinymce-editor .mce-tinymce>.mce-container-body{flex-direction:column;height:100%;display:flex}.tinymce-editor .mce-tinymce>.mce-container-body>.mce-edit-area{flex:1}.tinymce-editor .fa-icon{font:14px/1 FontAwesome!important}.tinymce-editor .el-icon{font-family:element-icons,serif!important}.tinymce-editor .mce-label{display:none}.template-tag{color:#1e90ff;margin:0 10px;font-family:黑体,serif;font-style:italic;font-weight:700;cursor:help!important}.editor-shadow{text-align:left;word-break:normal;word-spacing:0;overflow-wrap:break-word;cursor:text;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;width:100%;height:100%;padding:10px;font-family:微软雅黑,serif;font-size:16px;line-height:normal;position:relative;overflow:auto}.editor-shadow img{max-width:100%!important}.show-placeholder{position:relative}.show-placeholder:after{color:#a9a9a9;content:attr(placeholder);pointer-events:none;position:absolute;top:10px;left:11px}
package/toolbar/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { NOOP as b } from "@web-utils/core";
2
- import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
2
+ import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  const u = {
4
4
  back: {
5
5
  label: "返回",