fangguo-component 1.0.0 → 1.1.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 (194) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +68 -36
  3. package/dist/ArgHover.css +1 -0
  4. package/dist/ArgHover.vue_vue_type_style_index_0_lang-CMhRP09M.js +54 -0
  5. package/dist/ButtonGroup-C0yZEkxK.js +103 -0
  6. package/dist/ButtonGroup.css +1 -0
  7. package/dist/CitySelect.vue_vue_type_script_setup_true_lang-8EbHD3Nt.js +159 -0
  8. package/dist/ContentTitle-mqrusLjx.js +24 -0
  9. package/dist/ContentTitle.css +1 -0
  10. package/dist/CustomInputV2-DYEcbu5_.js +135 -0
  11. package/dist/CustomInputV2.css +1 -0
  12. package/dist/CustomMultipleInput-DDaqoHVU.js +109 -0
  13. package/dist/CustomMultipleInput.css +1 -0
  14. package/dist/DragResizable.css +1 -0
  15. package/dist/DragResizable.vue_vue_type_style_index_0_lang-DYL6TUPE.js +167 -0
  16. package/dist/DragSort-CfDeFAIG.js +66 -0
  17. package/dist/DragSort.css +1 -0
  18. package/dist/ErrorImage-CTP_5sal.js +32 -0
  19. package/dist/ErrorImage.css +1 -0
  20. package/dist/FgCascader.css +1 -0
  21. package/dist/FgCascader.vue_vue_type_style_index_0_lang-OnqaEAao.js +1807 -0
  22. package/dist/HSelect-Bqz2yTMf.js +468 -0
  23. package/dist/HSelect.css +1 -0
  24. package/dist/HSelectAll.vue_vue_type_script_setup_true_lang-C8i6LF_k.js +36 -0
  25. package/dist/HSelectSJ-BieRp2gG.js +462 -0
  26. package/dist/HSelectSJ.css +1 -0
  27. package/dist/IdentifyAddress.vue_vue_type_script_setup_true_lang-BJheMI1q.js +4743 -0
  28. package/dist/ImageLoupe.vue_vue_type_script_setup_true_lang-BlX4VbRi.js +79 -0
  29. package/dist/LazyComponent.vue_vue_type_script_setup_true_lang-vNk68D8E.js +82 -0
  30. package/dist/LazyPopover.vue_vue_type_script_setup_true_lang-DcOrcH0T.js +33 -0
  31. package/dist/LoadingBtn-BhbhNboo.js +66 -0
  32. package/dist/LoadingBtn.css +1 -0
  33. package/dist/{MInput-CO6YUVuZ.js → MInput-CpoW17Wh.js} +6 -6
  34. package/dist/MInput.css +1 -1
  35. package/dist/MyTable-DmwyEVJb.js +68 -0
  36. package/dist/MyTable.css +1 -0
  37. package/dist/NoRender.vue_vue_type_script_setup_true_lang-Do36nSsV.js +30 -0
  38. package/dist/SelectAddress-B4oK5erq.js +173 -0
  39. package/dist/SelectAddress.css +1 -0
  40. package/dist/SelectAll.vue_vue_type_script_setup_true_lang-BC3q2U8f.js +79 -0
  41. package/dist/SelectAll2.vue_vue_type_script_setup_true_lang-CaET5eli.js +74 -0
  42. package/dist/SelectCustomAll.css +1 -0
  43. package/dist/SelectCustomAll.vue_vue_type_style_index_0_lang-_wCRO217.js +83 -0
  44. package/dist/SelectTimePicker.vue_vue_type_script_setup_true_lang-Bj0KMOKv.js +45 -0
  45. package/dist/SelectTree-C7lBZnZH.js +306 -0
  46. package/dist/SelectTree.css +1 -0
  47. package/dist/SortTransfer.css +1 -0
  48. package/dist/SortTransfer.vue_vue_type_style_index_0_lang-C5OmBF3s.js +153 -0
  49. package/dist/SvgIcon-C2ah8E0Z.js +30 -0
  50. package/dist/TextCopy.vue_vue_type_script_setup_true_lang-DbhZGH_z.js +29 -0
  51. package/dist/TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-aZbEQmbM.js +112 -0
  52. package/dist/TipInput-CIskitOV.js +117 -0
  53. package/dist/TipInput.css +1 -0
  54. package/dist/VirtualTable-BYTfwDC1.js +353 -0
  55. package/dist/VirtualTable.css +1 -0
  56. package/dist/_commonjsHelpers-ByYUsBRP.js +33 -0
  57. package/dist/common-BIEgCXbl.js +7030 -0
  58. package/dist/components/VirtualTable/VirtualTable.vue.d.ts +127 -0
  59. package/dist/components/VirtualTable/index.d.ts +1 -0
  60. package/dist/components/VirtualTable/index.js +4 -0
  61. package/dist/components/argHover/ArgHover.vue.d.ts +51 -0
  62. package/dist/components/argHover/index.d.ts +1 -0
  63. package/dist/components/argHover/index.js +4 -0
  64. package/dist/components/buttonGroup/ButtonGroup.vue.d.ts +17 -0
  65. package/dist/components/buttonGroup/index.d.ts +1 -0
  66. package/dist/components/buttonGroup/index.js +4 -0
  67. package/dist/components/cascader/cascader/{cascader.vue.d.ts → ElCascader.vue.d.ts} +43 -43
  68. package/dist/components/cascader/cascader/FgCascader.vue.d.ts +4192 -0
  69. package/dist/components/cascader/cascader/index.d.ts +1 -3
  70. package/dist/components/cascader/cascader-panel/index.vue.d.ts +8 -8
  71. package/dist/components/cascader/cascader-panel/menu.vue.d.ts +3 -3
  72. package/dist/components/cascader/cascader-panel/node.vue.d.ts +2 -2
  73. package/dist/components/cascader/index.d.ts +1 -3
  74. package/dist/components/cascader/index.js +1 -1
  75. package/dist/components/cascader/utils/vue/props/util.d.ts +0 -1
  76. package/dist/components/cascader/utils/vue/size.d.ts +1 -1
  77. package/dist/components/citySelect/CitySelect.vue.d.ts +21 -0
  78. package/dist/components/citySelect/index.d.ts +1 -0
  79. package/dist/components/citySelect/index.js +4 -0
  80. package/dist/components/contentTitle/ContentTitle.vue.d.ts +20 -0
  81. package/dist/components/contentTitle/index.d.ts +1 -0
  82. package/dist/components/contentTitle/index.js +4 -0
  83. package/dist/components/customInputV2/CustomInputV2.vue.d.ts +47 -0
  84. package/dist/components/customInputV2/index.d.ts +1 -0
  85. package/dist/components/customInputV2/index.js +4 -0
  86. package/dist/components/customMultipleInput/CustomMultipleInput.vue.d.ts +46 -0
  87. package/dist/components/customMultipleInput/index.d.ts +1 -0
  88. package/dist/components/customMultipleInput/index.js +4 -0
  89. package/dist/components/dragResizable/DragResizable.vue.d.ts +57 -0
  90. package/dist/components/dragResizable/index.d.ts +1 -0
  91. package/dist/components/dragResizable/index.js +4 -0
  92. package/dist/components/dragSort/DragSort.vue.d.ts +34 -0
  93. package/dist/components/dragSort/index.d.ts +1 -0
  94. package/dist/components/dragSort/index.js +4 -0
  95. package/dist/components/errorImage/ErrorImage.vue.d.ts +23 -0
  96. package/dist/components/errorImage/index.d.ts +1 -0
  97. package/dist/components/errorImage/index.js +4 -0
  98. package/dist/components/hSelect/HSelect.vue.d.ts +103 -0
  99. package/dist/components/hSelect/index.d.ts +1 -0
  100. package/dist/components/hSelect/index.js +4 -0
  101. package/dist/components/hSelectAll/HSelectAll.vue.d.ts +10 -0
  102. package/dist/components/hSelectAll/index.d.ts +1 -0
  103. package/dist/components/hSelectAll/index.js +4 -0
  104. package/dist/components/hSelectSJ/HSelectSJ.vue.d.ts +105 -0
  105. package/dist/components/hSelectSJ/index.d.ts +1 -0
  106. package/dist/components/hSelectSJ/index.js +4 -0
  107. package/dist/components/identifyAddress/IdentifyAddress.vue.d.ts +10 -0
  108. package/dist/components/identifyAddress/index.d.ts +1 -0
  109. package/dist/components/identifyAddress/index.js +4 -0
  110. package/dist/components/imageLoupe/ImageLoupe.vue.d.ts +35 -0
  111. package/dist/components/imageLoupe/index.d.ts +1 -0
  112. package/dist/components/imageLoupe/index.js +4 -0
  113. package/dist/components/index.d.ts +31 -0
  114. package/dist/components/index.js +66 -4
  115. package/dist/components/lazyComponent/LazyComponent.vue.d.ts +37 -0
  116. package/dist/components/lazyComponent/index.d.ts +1 -0
  117. package/dist/components/lazyComponent/index.js +4 -0
  118. package/dist/components/lazyPopover/LazyPopover.vue.d.ts +31 -0
  119. package/dist/components/lazyPopover/index.d.ts +1 -0
  120. package/dist/components/lazyPopover/index.js +4 -0
  121. package/dist/components/loadingBtn/LoadingBtn.vue.d.ts +34 -0
  122. package/dist/components/loadingBtn/index.d.ts +1 -0
  123. package/dist/components/loadingBtn/index.js +4 -0
  124. package/dist/components/mInput/index.js +1 -1
  125. package/dist/components/myTable/MyTable.vue.d.ts +46 -0
  126. package/dist/components/myTable/index.d.ts +1 -0
  127. package/dist/components/myTable/index.js +4 -0
  128. package/dist/components/noRender/NoRender.vue.d.ts +23 -0
  129. package/dist/components/noRender/index.d.ts +1 -0
  130. package/dist/components/noRender/index.js +4 -0
  131. package/dist/components/selectAddress/SelectAddress.vue.d.ts +106 -0
  132. package/dist/components/selectAddress/index.d.ts +1 -0
  133. package/dist/components/selectAddress/index.js +4 -0
  134. package/dist/components/selectAll/SelectAll.vue.d.ts +124 -0
  135. package/dist/components/selectAll/index.d.ts +1 -0
  136. package/dist/components/selectAll/index.js +4 -0
  137. package/dist/components/selectAll2/SelectAll2.vue.d.ts +81 -0
  138. package/dist/components/selectAll2/index.d.ts +1 -0
  139. package/dist/components/selectAll2/index.js +4 -0
  140. package/dist/components/selectCustomAll/SelectCustomAll.vue.d.ts +77 -0
  141. package/dist/components/selectCustomAll/index.d.ts +1 -0
  142. package/dist/components/selectCustomAll/index.js +4 -0
  143. package/dist/components/selectTimePicker/SelectTimePicker.vue.d.ts +24 -0
  144. package/dist/components/selectTimePicker/index.d.ts +1 -0
  145. package/dist/components/selectTimePicker/index.js +4 -0
  146. package/dist/components/selectTree/SelectTree.vue.d.ts +39 -0
  147. package/dist/components/selectTree/index.d.ts +1 -0
  148. package/dist/components/selectTree/index.js +4 -0
  149. package/dist/components/sortTransfer/SortTransfer.vue.d.ts +97 -0
  150. package/dist/components/sortTransfer/index.d.ts +1 -0
  151. package/dist/components/sortTransfer/index.js +4 -0
  152. package/dist/components/svgIcon/index.d.ts +1 -0
  153. package/dist/components/svgIcon/index.js +4 -0
  154. package/dist/components/textCopy/TextCopy.vue.d.ts +21 -0
  155. package/dist/components/textCopy/index.d.ts +1 -0
  156. package/dist/components/textCopy/index.js +4 -0
  157. package/dist/components/textEllipsisTooltip/TextEllipsisTooltip.vue.d.ts +19 -0
  158. package/dist/components/textEllipsisTooltip/index.d.ts +1 -0
  159. package/dist/components/textEllipsisTooltip/index.js +4 -0
  160. package/dist/components/tipInput/TipInput.vue.d.ts +56 -0
  161. package/dist/components/tipInput/index.d.ts +1 -0
  162. package/dist/components/tipInput/index.js +4 -0
  163. package/dist/dateShortcuts-DDPtAhDI.js +26 -0
  164. package/dist/debounce-BLrZUqsA.js +84 -0
  165. package/dist/index-BKzmtfeu.js +72 -0
  166. package/dist/index-DIX8TpoT.js +118 -0
  167. package/dist/index-epuVZjZV.js +103 -0
  168. package/dist/index-uf7oyYDF.js +16847 -0
  169. package/dist/index.d.ts +161 -5
  170. package/dist/index.js +197 -46
  171. package/dist/isEqual-qYQTJBU6.js +506 -0
  172. package/dist/isObject-CO569sPG.js +35 -0
  173. package/dist/shims.d.ts +53 -13
  174. package/dist/tools/ImageParserUtils/common.d.ts +117 -0
  175. package/dist/tools/ImageParserUtils/etagBrowser.d.ts +4 -0
  176. package/dist/tools/ImageParserUtils/index.d.ts +7 -0
  177. package/dist/tools/ImageParserUtils/index.js +13116 -0
  178. package/dist/tools/ImageParserUtils/parseImage.d.ts +18 -0
  179. package/dist/tools/ImageParserUtils/parsePSD.d.ts +22 -0
  180. package/dist/tools/ImageParserUtils/parseTIFF.d.ts +18 -0
  181. package/dist/tools/common/common.d.ts +335 -23
  182. package/dist/tools/common/dateShortcuts.d.ts +5 -0
  183. package/dist/tools/common/index.d.ts +1 -0
  184. package/dist/tools/common/index.js +86 -5085
  185. package/dist/tools/index.d.ts +1 -1
  186. package/dist/tools/index.js +97 -8
  187. package/package.json +92 -81
  188. package/dist/cascader.css +0 -1
  189. package/dist/cascader.vue_vue_type_script_setup_true_lang-HFhhhQva.js +0 -2268
  190. package/dist/index-DihzpZcR.js +0 -14
  191. package/dist/index-wUcQXc_Z.js +0 -10
  192. package/dist/tools/Grid/Grid.d.ts +0 -48
  193. package/dist/tools/Grid/index.d.ts +0 -1
  194. package/dist/tools/Grid/index.js +0 -217
@@ -0,0 +1,135 @@
1
+ import { defineComponent as I, useModel as S, ref as c, useSlots as _, useAttrs as E, resolveComponent as d, openBlock as r, createElementBlock as v, Fragment as b, createVNode as n, mergeProps as F, unref as s, createSlots as P, withCtx as o, renderList as R, createBlock as z, renderSlot as M, createElementVNode as V, toDisplayString as A, createTextVNode as N, createCommentVNode as D, mergeModels as H } from "vue";
2
+ import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import './CustomInputV2.css';const T = { key: 0 }, Y = {
4
+ class: "py-[12px] text-fill-900",
5
+ style: { "font-family": "MicrosoftYaHei, sans-serif" }
6
+ }, j = { class: "pt-[24px] pb-[12px]" }, q = /* @__PURE__ */ I({
7
+ __name: "CustomInputV2",
8
+ props: /* @__PURE__ */ H({
9
+ placeholder: { default: "请输入" },
10
+ isShowCondition: { type: Boolean, default: !0 },
11
+ name: { default: "" },
12
+ isShowMultiple: { type: Boolean, default: !0 },
13
+ options: { default: () => [
14
+ { label: "模糊匹配", value: !0 },
15
+ { label: "精准匹配", value: !1 }
16
+ ] }
17
+ }, {
18
+ modelValue: {},
19
+ modelModifiers: {},
20
+ condition: {},
21
+ conditionModifiers: {}
22
+ }),
23
+ emits: ["update:modelValue", "update:condition"],
24
+ setup(t) {
25
+ const u = S(t, "modelValue"), y = S(t, "condition"), m = t, k = c(), f = c("多个值以逗号隔开或空格隔开"), i = _(), B = E(), a = c(!1), x = (p) => {
26
+ const e = /,|,/;
27
+ return p.split(e);
28
+ };
29
+ return k.value = m.name || x(m.placeholder)[0], f.value = x(m.placeholder)[1], (p, e) => {
30
+ const g = d("el-option"), $ = d("el-select"), C = d("el-input"), w = d("el-button"), U = d("el-dialog");
31
+ return r(), v(b, null, [
32
+ n(C, F({ class: "custom-input" }, s(B), {
33
+ modelValue: u.value,
34
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
35
+ placeholder: t.placeholder
36
+ }), P({ _: 2 }, [
37
+ t.isShowCondition && !s(i).prepend ? {
38
+ name: "prepend",
39
+ fn: o(() => [
40
+ n($, {
41
+ class: "w-[100px] flex-shrink-0",
42
+ modelValue: y.value,
43
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => y.value = l)
44
+ }, {
45
+ default: o(() => [
46
+ (r(!0), v(b, null, R(t.options, (l, h) => (r(), z(g, {
47
+ key: h,
48
+ label: l.label,
49
+ value: l.value
50
+ }, null, 8, ["label", "value"]))), 128))
51
+ ]),
52
+ _: 1
53
+ }, 8, ["modelValue"])
54
+ ]),
55
+ key: "0"
56
+ } : void 0,
57
+ s(i).prepend ? {
58
+ name: "prepend",
59
+ fn: o(() => [
60
+ M(p.$slots, "prepend", {}, void 0, !0)
61
+ ]),
62
+ key: "1"
63
+ } : void 0,
64
+ t.isShowMultiple && !s(i).append ? {
65
+ name: "append",
66
+ fn: o(() => [
67
+ V("span", {
68
+ onClick: e[1] || (e[1] = (l) => a.value = !0)
69
+ }, "•••")
70
+ ]),
71
+ key: "2"
72
+ } : void 0,
73
+ s(i).append ? {
74
+ name: "append",
75
+ fn: o(() => [
76
+ M(p.$slots, "append", {}, void 0, !0)
77
+ ]),
78
+ key: "3"
79
+ } : void 0
80
+ ]), 1040, ["modelValue", "placeholder"]),
81
+ t.isShowMultiple ? (r(), v("div", T, [
82
+ n(U, {
83
+ class: "order-dialog",
84
+ modelValue: a.value,
85
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => a.value = l),
86
+ width: "480px",
87
+ title: k.value,
88
+ "align-center": "",
89
+ draggable: "",
90
+ "close-on-click-modal": !1
91
+ }, {
92
+ footer: o(() => [
93
+ V("div", j, [
94
+ n(w, {
95
+ type: "info",
96
+ plain: "",
97
+ onClick: e[4] || (e[4] = (l) => a.value = !1)
98
+ }, {
99
+ default: o(() => [...e[7] || (e[7] = [
100
+ N("取消", -1)
101
+ ])]),
102
+ _: 1
103
+ }),
104
+ n(w, {
105
+ class: "!ml-[14px]",
106
+ type: "primary",
107
+ onClick: e[5] || (e[5] = (l) => a.value = !1)
108
+ }, {
109
+ default: o(() => [...e[8] || (e[8] = [
110
+ N("确认", -1)
111
+ ])]),
112
+ _: 1
113
+ })
114
+ ])
115
+ ]),
116
+ default: o(() => [
117
+ V("div", Y, A(f.value), 1),
118
+ n(C, {
119
+ modelValue: u.value,
120
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => u.value = l),
121
+ type: "textarea",
122
+ autosize: { minRows: 3, maxRows: 5 },
123
+ placeholder: f.value
124
+ }, null, 8, ["modelValue", "placeholder"])
125
+ ]),
126
+ _: 1
127
+ }, 8, ["modelValue", "title"])
128
+ ])) : D("", !0)
129
+ ], 64);
130
+ };
131
+ }
132
+ }), K = /* @__PURE__ */ L(q, [["__scopeId", "data-v-8fc92e44"]]);
133
+ export {
134
+ K as C
135
+ };
@@ -0,0 +1 @@
1
+ .custom-input[data-v-8fc92e44] .el-input-group__append{cursor:pointer;padding-left:8px;padding-right:8px}
@@ -0,0 +1,109 @@
1
+ import { defineComponent as B, ref as m, watch as N, resolveComponent as p, openBlock as v, createElementBlock as V, createVNode as a, withKeys as S, createSlots as I, withCtx as n, createElementVNode as r, createTextVNode as y, createCommentVNode as M } from "vue";
2
+ import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import './CustomMultipleInput.css';const $ = { class: "w-full" }, E = { key: 0 }, K = { class: "pt-[24px] pb-[12px]" }, R = /* @__PURE__ */ B({
4
+ __name: "CustomMultipleInput",
5
+ props: {
6
+ name: {
7
+ type: String,
8
+ default: "请输入"
9
+ },
10
+ modelValue: {
11
+ type: String,
12
+ required: !0
13
+ },
14
+ multiple: {
15
+ type: Boolean,
16
+ default: !0
17
+ },
18
+ clear: {
19
+ type: Boolean,
20
+ default: !0
21
+ }
22
+ },
23
+ emits: ["update:modelValue", "enter"],
24
+ setup(t, { emit: x }) {
25
+ const C = t, i = x, u = m("");
26
+ N(() => C.modelValue, (d) => u.value = d, { immediate: !0 });
27
+ const g = (d) => i("update:modelValue", d), s = m(""), o = m(!1), w = () => {
28
+ s.value = u.value, o.value = !0;
29
+ }, k = () => {
30
+ i("update:modelValue", s.value), o.value = !1;
31
+ }, _ = () => i("enter");
32
+ return (d, e) => {
33
+ const c = p("el-input"), f = p("el-button"), b = p("el-dialog");
34
+ return v(), V("div", $, [
35
+ a(c, {
36
+ class: "custom-input",
37
+ modelValue: u.value,
38
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => u.value = l),
39
+ placeholder: `${t.name}${t.multiple ? ",多个用逗号或空格分隔" : ""}`,
40
+ clearable: "",
41
+ onChange: g,
42
+ onKeydown: S(_, ["enter"])
43
+ }, I({ _: 2 }, [
44
+ t.multiple ? {
45
+ name: "append",
46
+ fn: n(() => [
47
+ r("span", { onClick: w }, "•••")
48
+ ]),
49
+ key: "0"
50
+ } : void 0
51
+ ]), 1032, ["modelValue", "placeholder"]),
52
+ t.multiple ? (v(), V("div", E, [
53
+ a(b, {
54
+ class: "order-dialog",
55
+ modelValue: o.value,
56
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => o.value = l),
57
+ width: "480px",
58
+ title: t.name,
59
+ "align-center": "",
60
+ draggable: "",
61
+ "close-on-click-modal": !1
62
+ }, {
63
+ footer: n(() => [
64
+ r("div", K, [
65
+ a(f, {
66
+ type: "info",
67
+ plain: "",
68
+ onClick: e[2] || (e[2] = (l) => o.value = !1)
69
+ }, {
70
+ default: n(() => [...e[4] || (e[4] = [
71
+ y("取消", -1)
72
+ ])]),
73
+ _: 1
74
+ }),
75
+ a(f, {
76
+ class: "!ml-[14px]",
77
+ type: "primary",
78
+ onClick: k
79
+ }, {
80
+ default: n(() => [...e[5] || (e[5] = [
81
+ y("确认", -1)
82
+ ])]),
83
+ _: 1
84
+ })
85
+ ])
86
+ ]),
87
+ default: n(() => [
88
+ e[6] || (e[6] = r("div", {
89
+ class: "py-[12px] text-fill-900",
90
+ style: { "font-family": "MicrosoftYaHei, sans-serif" }
91
+ }, " 多个值以逗号隔开或空格隔开 ", -1)),
92
+ a(c, {
93
+ modelValue: s.value,
94
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => s.value = l),
95
+ type: "textarea",
96
+ autosize: { minRows: 3, maxRows: 5 },
97
+ placeholder: "多个用逗号或空格分隔"
98
+ }, null, 8, ["modelValue"])
99
+ ]),
100
+ _: 1
101
+ }, 8, ["modelValue", "title"])
102
+ ])) : M("", !0)
103
+ ]);
104
+ };
105
+ }
106
+ }), z = /* @__PURE__ */ U(R, [["__scopeId", "data-v-5686d705"]]);
107
+ export {
108
+ z as C
109
+ };
@@ -0,0 +1 @@
1
+ .custom-input[data-v-5686d705]{width:100%}.custom-input[data-v-5686d705] .el-input-group__append{cursor:pointer;padding-left:8px;padding-right:8px}
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.customer-move-dialog{position:relative;z-index:99;overflow:hidden;background:#f1f3f9;border-radius:4px;box-sizing:border-box}.customer-move-dialog.floating{position:fixed;background-color:#fff;border:1px solid #B9BEC7;box-shadow:0 0 8px 2px rgba(0,0,0,.16)}.customer-move-dialog.parent-constrained{position:absolute!important}.customer-move-dialog .drag-header{width:100%;height:15px}.customer-move-dialog .drag-header.draggable{cursor:move}.resize-handle{position:absolute;z-index:99;box-sizing:border-box}.resize-handle-t{top:0;right:0;left:0;height:6px;cursor:row-resize}.resize-handle-t:hover{border-top:2px solid #2779ff}.resize-handle-t:hover .resize-handle-area{display:block}.resize-handle-r{top:0;right:0;bottom:0;width:6px;cursor:col-resize}.resize-handle-r:hover{border-right:2px solid #2779ff}.resize-handle-b{right:0;bottom:0;left:0;height:6px;cursor:row-resize}.resize-handle-b:hover{border-bottom:2px solid #2779ff}.resize-handle-l{top:0;bottom:0;left:0;width:6px;cursor:col-resize}.resize-handle-l:hover{border-left:2px solid #2779ff}.resize-handle-rt{top:0;right:0;width:8px;height:8px;cursor:ne-resize}.resize-handle-rb{right:0;bottom:0;width:8px;height:8px;cursor:se-resize}.resize-handle-lb{bottom:0;left:0;width:8px;height:8px;cursor:sw-resize}.resize-handle-lt{top:0;left:0;width:8px;height:8px;cursor:nw-resize}.resize-handle-rt:hover,.resize-handle-rb:hover,.resize-handle-lb:hover,.resize-handle-lt:hover{background-color:#2779ff}.resize-handle-rt:after,.resize-handle-rb:after,.resize-handle-lb:after,.resize-handle-lt:after{position:absolute;top:50%;left:50%;width:6px;height:6px;background-color:transparent;border-radius:50%;content:"";transform:translate(-50%,-50%)}.dialog-content{height:calc(100% - 15px)}
@@ -0,0 +1,167 @@
1
+ import { defineComponent as j, ref as G, onMounted as I, openBlock as y, createElementBlock as S, normalizeClass as z, Fragment as J, renderList as K, createElementVNode as X, createCommentVNode as Y, renderSlot as k } from "vue";
2
+ import './DragResizable.css';const O = ["data-direction"], Q = { class: "dialog-content" }, Z = /* @__PURE__ */ j({
3
+ __name: "DragResizable",
4
+ props: {
5
+ width: { default: 600 },
6
+ height: { default: 400 },
7
+ minWidth: { default: 400 },
8
+ minHeight: { default: 250 },
9
+ left: {},
10
+ top: {},
11
+ handles: { default: () => ["t", "r", "b", "l", "rt", "rb", "lb", "lt"] },
12
+ draggable: { type: Boolean, default: !0 },
13
+ resizable: { type: Boolean, default: !0 },
14
+ overflowScreen: { type: Boolean, default: !1 },
15
+ floating: { type: Boolean, default: !0 },
16
+ parentSelector: { default: "" }
17
+ },
18
+ emits: ["resizing", "dragging", "resizeStop", "dragStop"],
19
+ setup(c, { emit: C }) {
20
+ const H = G(), l = c, p = C;
21
+ let i = null, w, v, f, g, u, m, s, W, L, b = !1, x = !1;
22
+ const q = () => {
23
+ if (!l.parentSelector)
24
+ return {
25
+ left: 0,
26
+ top: 0,
27
+ right: window.innerWidth,
28
+ bottom: window.innerHeight,
29
+ width: window.innerWidth,
30
+ height: window.innerHeight
31
+ };
32
+ const t = document.querySelector(l.parentSelector);
33
+ if (!t)
34
+ return {
35
+ left: 0,
36
+ top: 0,
37
+ right: window.innerWidth,
38
+ bottom: window.innerHeight,
39
+ width: window.innerWidth,
40
+ height: window.innerHeight
41
+ };
42
+ const e = t.getBoundingClientRect();
43
+ return {
44
+ left: 0,
45
+ // 相对于父元素的左边距
46
+ top: 0,
47
+ // 相对于父元素的上边距
48
+ right: e.width,
49
+ bottom: e.height,
50
+ width: e.width,
51
+ height: e.height
52
+ };
53
+ }, N = () => {
54
+ var e, n;
55
+ if (i = H.value, !i) return;
56
+ let t = {
57
+ left: (e = l.left) != null ? e : window.innerWidth - l.width,
58
+ top: (n = l.top) != null ? n : window.innerHeight - l.height,
59
+ width: l.width,
60
+ height: l.height
61
+ };
62
+ if (t = $(t.left, t.top, t.width, t.height), t = M(t.left, t.top, t.width, t.height), l.floating ? (i.style.left = `${t.left}px`, i.style.top = `${t.top}px`, i.style.height = `${t.height}px`) : i.style.height = "100%", l.parentSelector) {
63
+ const r = document.querySelector(l.parentSelector);
64
+ r && window.getComputedStyle(r).position === "static" && (r.style.position = "relative");
65
+ }
66
+ i.style.width = `${t.width}px`, i.style.minWidth = `${l.minWidth}px`, i.style.minHeight = `${l.minHeight}px`, t.width, t.height, t.left, t.top;
67
+ };
68
+ function P(t) {
69
+ t.preventDefault(), b = !0, s = t.target.getAttribute("data-direction"), w = t.clientX, v = t.clientY, f = i.offsetWidth, g = i.offsetHeight, u = i.offsetTop, m = i.offsetLeft, document.addEventListener("mousemove", E), document.addEventListener("mouseup", B), i.classList.add("resizing");
70
+ }
71
+ function E(t) {
72
+ if (!b) return;
73
+ let e = f, n = g, r = u, a = m;
74
+ const A = t.clientX, F = t.clientY, d = A - w, h = F - v;
75
+ s.includes("t") ? (n = g - h, r = u + h) : s.includes("r") ? e = f + d : s.includes("b") ? n = g + h : s.includes("l") && (e = f - d, a = m + d), s.length === 2 && (s === "rt" ? (n = g - h, r = u + h, e = f + d) : s === "rb" ? (e = f + d, n = g + h) : s === "lb" ? (e = f - d, a = m + d, n = g + h) : s === "lt" && (e = f - d, n = g - h, a = m + d, r = u + h));
76
+ let o = {
77
+ left: a,
78
+ top: r,
79
+ width: e,
80
+ height: n
81
+ };
82
+ o = $(o.left, o.top, o.width, o.height), o = M(o.left, o.top, o.width, o.height), i.style.width = `${o.width}px`, i.style.height = `${o.height}px`, l.floating && (i.style.top = `${o.top}px`, i.style.left = `${o.left}px`), o.width, o.height, o.left, o.top, p("resizing", o);
83
+ }
84
+ function B() {
85
+ b = !1, document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", B), i.classList.remove("resizing"), p("resizeStop", {
86
+ width: i.offsetWidth,
87
+ height: i.offsetHeight,
88
+ left: i.offsetLeft,
89
+ top: i.offsetTop
90
+ });
91
+ }
92
+ function V(t) {
93
+ l.draggable && (t.preventDefault(), x = !0, W = i.offsetLeft, L = i.offsetTop, w = t.clientX, v = t.clientY, document.addEventListener("mousemove", D), document.addEventListener("mouseup", R), i.classList.add("dragging"));
94
+ }
95
+ function D(t) {
96
+ if (!l.floating || !x) return;
97
+ let e = {
98
+ left: W + (t.clientX - w),
99
+ top: L + (t.clientY - v),
100
+ width: i.offsetWidth,
101
+ height: i.offsetHeight
102
+ };
103
+ e = $(e.left, e.top, e.width, e.height), e = M(e.left, e.top, e.width, e.height), i.style.left = `${e.left}px`, i.style.top = `${e.top}px`, e.left, e.top, p("dragging", {
104
+ left: e.left,
105
+ top: e.top,
106
+ width: e.width,
107
+ height: e.height
108
+ });
109
+ }
110
+ function R() {
111
+ x = !1, document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", R), i.classList.remove("dragging"), p("dragStop", {
112
+ left: i.offsetLeft,
113
+ top: i.offsetTop,
114
+ width: i.offsetWidth,
115
+ height: i.offsetHeight
116
+ });
117
+ }
118
+ const $ = (t, e, n, r) => (l.overflowScreen || (t = Math.min(Math.max(t, 0), window.innerWidth - i.offsetWidth), e = Math.min(Math.max(e, 0), window.innerHeight - i.offsetHeight), n = Math.min(n, window.innerWidth - t), r = Math.min(r, window.innerHeight - e)), {
119
+ left: t,
120
+ top: e,
121
+ width: n,
122
+ height: r
123
+ }), M = (t, e, n, r) => {
124
+ if (l.parentSelector) {
125
+ const a = q();
126
+ t = Math.min(t, a.width - i.offsetWidth), e = Math.min(e, a.height - i.offsetHeight), t = Math.max(t, 0), e = Math.max(e, 0), n = Math.min(n, a.width - t), r = Math.min(r, a.height - e);
127
+ }
128
+ return {
129
+ left: t,
130
+ top: e,
131
+ width: n,
132
+ height: r
133
+ };
134
+ };
135
+ return I(() => {
136
+ N();
137
+ }), (t, e) => (y(), S("div", {
138
+ class: z(["customer-move-dialog", { floating: c.floating, "parent-constrained": c.parentSelector }]),
139
+ ref_key: "moveDialogRef",
140
+ ref: H
141
+ }, [
142
+ c.resizable ? (y(!0), S(J, { key: 0 }, K(c.handles, (n, r) => (y(), S("div", {
143
+ class: z(["resize-handle", `resize-handle-${n}`]),
144
+ "data-direction": n,
145
+ key: r,
146
+ onMousedown: P
147
+ }, [
148
+ X("div", {
149
+ class: z(["resize-handle-area", `resize-handle-area-${n}`])
150
+ }, null, 2)
151
+ ], 42, O))), 128)) : Y("", !0),
152
+ c.floating ? (y(), S("div", {
153
+ key: 1,
154
+ class: z(["drag-header", c.draggable ? "draggable" : ""]),
155
+ onMousedown: V
156
+ }, [
157
+ k(t.$slots, "header")
158
+ ], 34)) : Y("", !0),
159
+ X("div", Q, [
160
+ k(t.$slots, "default")
161
+ ])
162
+ ], 2));
163
+ }
164
+ });
165
+ export {
166
+ Z as _
167
+ };
@@ -0,0 +1,66 @@
1
+ import { defineComponent as S, ref as x, watch as I, resolveComponent as h, openBlock as p, createBlock as k, withCtx as g, createElementVNode as B, createVNode as E, TransitionGroup as $, createElementBlock as f, Fragment as y, renderList as L, withModifiers as N, normalizeClass as V, renderSlot as j } from "vue";
2
+ import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import './DragSort.css';const A = { class: "drag-list" }, F = ["draggable", "onDragstart", "onDragenter"], G = /* @__PURE__ */ S({
4
+ __name: "DragSort",
5
+ props: {
6
+ list: { default: () => [] },
7
+ props: { default: () => ({ id: "id" }) }
8
+ },
9
+ emits: ["sortChange"],
10
+ setup(v, { expose: D, emit: _ }) {
11
+ const l = v, i = _, n = x(l.list);
12
+ let d = null, u = null;
13
+ const m = (t) => {
14
+ t.preventDefault();
15
+ let e = null, a = null, o = {};
16
+ const s = [...n.value];
17
+ n.value.forEach((r, c) => {
18
+ (r[l.props.id] || r) === d && (e = c, o = r), (r[l.props.id] || r) === u && (a = c);
19
+ }), s.splice(e, 1), s.splice(a, 0, o), n.value = s, d = null, u = null, i("sortChange", n.value);
20
+ }, w = (t, e) => {
21
+ d = e[l.props.id] || e;
22
+ }, b = (t) => {
23
+ t.preventDefault();
24
+ }, C = (t, e) => {
25
+ t.preventDefault(), u = e[l.props.id] || e;
26
+ };
27
+ return I(l, (t) => {
28
+ n.value = t.list;
29
+ }), D({ $getSort: () => {
30
+ i("sortChange", n.value);
31
+ }, sortList: n }), (t, e) => {
32
+ const a = h("el-scrollbar");
33
+ return p(), k(a, null, {
34
+ default: g(() => [
35
+ B("ul", A, [
36
+ E($, null, {
37
+ default: g(() => [
38
+ (p(!0), f(y, null, L(n.value, (o, s) => (p(), f("li", {
39
+ key: o[l.props.id] || o,
40
+ class: V(["drag-container drag-list-item flex justify-between", { "cursor-move": !o.noSort }]),
41
+ draggable: !o.noSort,
42
+ onDragstart: (r) => w(r, o),
43
+ onDragend: e[0] || (e[0] = (r) => m(r)),
44
+ onDragover: e[1] || (e[1] = N(() => {
45
+ }, ["prevent"])),
46
+ onDragenter: (r) => C(r, o),
47
+ onDragleave: e[2] || (e[2] = (r) => b(r))
48
+ }, [
49
+ j(t.$slots, "main", {
50
+ data: o,
51
+ index: s
52
+ }, void 0, !0)
53
+ ], 42, F))), 128))
54
+ ]),
55
+ _: 3
56
+ })
57
+ ])
58
+ ]),
59
+ _: 3
60
+ });
61
+ };
62
+ }
63
+ }), H = /* @__PURE__ */ z(G, [["__scopeId", "data-v-b9b2c678"]]);
64
+ export {
65
+ H as D
66
+ };
@@ -0,0 +1 @@
1
+ .drag-container[data-v-b9b2c678]{padding:10px 5px;cursor:move;transition:all .3s}
@@ -0,0 +1,32 @@
1
+ import { defineComponent as l, openBlock as c, createElementBlock as s, createElementVNode as o } from "vue";
2
+ import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import './ErrorImage.css';const p = ["fill"], m = /* @__PURE__ */ l({
4
+ __name: "ErrorImage",
5
+ props: {
6
+ color: {
7
+ type: String,
8
+ default: "#f5f5f5"
9
+ },
10
+ offset: {
11
+ type: Number,
12
+ default: () => 0
13
+ }
14
+ },
15
+ setup(t) {
16
+ const r = t;
17
+ return (v, e) => (c(), s("svg", {
18
+ class: "error-image",
19
+ fill: r.color,
20
+ viewBox: "0 0 1024 1024",
21
+ version: "1.1",
22
+ xmlns: "http://www.w3.org/2000/svg",
23
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
24
+ }, [...e[0] || (e[0] = [
25
+ o("path", { d: "M537.5 611.3L323.1 338.8 71.5 764.6V155.1h773.8v282.2c24.2 4.2 47.3 11.4 68.9 21.4V121.1c0-19.3-15.6-34.9-34.9-34.9H34.9C15.6 86.2 0 101.8 0 121.1v739C0 879.4 15.6 895 34.9 895h552.7c-42.7-48.5-68.8-112.6-68.8-182.8v-0.4c0-35.5 6.6-69.3 18.7-100.5z" }, null, -1),
26
+ o("path", { d: "M839.8 630.1v0.3l-0.1 0.2v0.2l-0.1 0.2S812 759.3 812 759.6c0 0 1.9-9.6 0 0-1.9 9.7-6.7 15-15 15s-12.6-6.1-15.2-16.1c-2.6-10-26.9-124.7-26.9-124.8v-0.2l-0.1-0.2v-0.7l-0.1-0.1v-0.3l-0.1-0.2v-0.4l-0.1-0.2v-0.8l-0.1-0.2v-0.4c-0.6-2.7-0.9-5.7-0.9-8.9 0-24.1 19.6-43.7 43.7-43.7s43.7 19.6 43.7 43.7c0 3.1-0.3 6.2-1 9.2l-0.1-0.2zM797 872.9c-18.1 0-32.7-14.6-32.7-32.6s14.6-32.6 32.6-32.6 32.6 14.6 32.6 32.6c0.1 18-14.5 32.6-32.5 32.6z m0.7-387.2c-125 0-226.2 101.2-226.3 226.1 0.1 124.9 101.3 226.1 226.2 226.1h0.2c124.9 0 226.1-101.2 226.2-226.1-0.1-124.9-101.3-226.1-226.3-226.1 0.1 0 0 0 0 0z" }, null, -1)
27
+ ])], 8, p));
28
+ }
29
+ }), i = /* @__PURE__ */ n(m, [["__scopeId", "data-v-612063c5"]]);
30
+ export {
31
+ i as E
32
+ };
@@ -0,0 +1 @@
1
+ .error-image[data-v-612063c5]{width:100%;height:100%}
@@ -0,0 +1 @@
1
+ .cascader-virtual-list[data-v-a251fab9]{height:100%;min-height:204px;max-height:204px}.cascader-virtual-list[data-v-a251fab9] .vue-recycle-scroller__item-view{width:100%}.empty-panel{padding:10px 0;margin:0;text-align:center;color:#909399}.el-cascader__suggestion-item-label{font-style:normal}.cascader-popper-deep .el-cascader-panel .el-radio,.cascader-popper-deep .el-cascader-panel .el-checkbox{position:absolute;top:0;left:20px;z-index:10;width:calc(100% - 50px);height:100%}.cascader-popper-deep .el-cascader-node__label{padding:0 20px}.cascader-popper-deep .cascader-footer-slot{border-top:1px solid #e4e7ed;padding:10px}