fangguo-component 1.0.0 → 1.1.1

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 (191) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +70 -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-uARhbFc8.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-CHv0gJmo.js +179 -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-DXwP88Bn.js +1655 -0
  22. package/dist/HSelect-Drf6YBwO.js +468 -0
  23. package/dist/HSelect.css +1 -0
  24. package/dist/HSelectAll.vue_vue_type_script_setup_true_lang-Blq9xpfa.js +36 -0
  25. package/dist/HSelectSJ-D3GrXmvj.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-Dm5259kY.js +911 -0
  46. package/dist/SelectTree.css +1 -0
  47. package/dist/SvgIcon-C2ah8E0Z.js +30 -0
  48. package/dist/TextCopy-hOj-Wj2H.js +41 -0
  49. package/dist/TextCopy.css +1 -0
  50. package/dist/TextEllipsisTooltip.vue_vue_type_script_setup_true_lang-aZbEQmbM.js +112 -0
  51. package/dist/VirtualTable-BWugJiQ5.js +349 -0
  52. package/dist/VirtualTable.css +1 -0
  53. package/dist/_commonjsHelpers-ByYUsBRP.js +33 -0
  54. package/dist/common-BIEgCXbl.js +7030 -0
  55. package/dist/components/VirtualTable/VirtualTable.vue.d.ts +127 -0
  56. package/dist/components/VirtualTable/index.d.ts +2 -0
  57. package/dist/components/VirtualTable/index.js +4 -0
  58. package/dist/components/argHover/ArgHover.vue.d.ts +51 -0
  59. package/dist/components/argHover/index.d.ts +1 -0
  60. package/dist/components/argHover/index.js +4 -0
  61. package/dist/components/buttonGroup/ButtonGroup.vue.d.ts +17 -0
  62. package/dist/components/buttonGroup/index.d.ts +1 -0
  63. package/dist/components/buttonGroup/index.js +4 -0
  64. package/dist/components/cascader/cascader/{cascader.vue.d.ts → ElCascader.vue.d.ts} +46 -43
  65. package/dist/components/cascader/cascader/FgCascader.vue.d.ts +4204 -0
  66. package/dist/components/cascader/cascader/cascader.d.ts +1 -0
  67. package/dist/components/cascader/cascader/index.d.ts +1 -3
  68. package/dist/components/cascader/cascader-panel/index.vue.d.ts +8 -8
  69. package/dist/components/cascader/cascader-panel/menu.vue.d.ts +3 -3
  70. package/dist/components/cascader/cascader-panel/node.vue.d.ts +2 -2
  71. package/dist/components/cascader/index.d.ts +1 -3
  72. package/dist/components/cascader/index.js +1 -1
  73. package/dist/components/cascader/utils/vue/props/util.d.ts +0 -1
  74. package/dist/components/cascader/utils/vue/size.d.ts +1 -1
  75. package/dist/components/citySelect/CitySelect.vue.d.ts +21 -0
  76. package/dist/components/citySelect/demos/mockAddressTree.d.ts +8 -0
  77. package/dist/components/citySelect/index.d.ts +1 -0
  78. package/dist/components/citySelect/index.js +4 -0
  79. package/dist/components/contentTitle/ContentTitle.vue.d.ts +20 -0
  80. package/dist/components/contentTitle/index.d.ts +1 -0
  81. package/dist/components/contentTitle/index.js +4 -0
  82. package/dist/components/customInputV2/CustomInputV2.vue.d.ts +47 -0
  83. package/dist/components/customInputV2/index.d.ts +1 -0
  84. package/dist/components/customInputV2/index.js +4 -0
  85. package/dist/components/customMultipleInput/CustomMultipleInput.vue.d.ts +46 -0
  86. package/dist/components/customMultipleInput/index.d.ts +1 -0
  87. package/dist/components/customMultipleInput/index.js +4 -0
  88. package/dist/components/dragResizable/DragResizable.vue.d.ts +59 -0
  89. package/dist/components/dragResizable/index.d.ts +1 -0
  90. package/dist/components/dragResizable/index.js +4 -0
  91. package/dist/components/dragSort/DragSort.vue.d.ts +34 -0
  92. package/dist/components/dragSort/index.d.ts +1 -0
  93. package/dist/components/dragSort/index.js +4 -0
  94. package/dist/components/errorImage/ErrorImage.vue.d.ts +23 -0
  95. package/dist/components/errorImage/index.d.ts +1 -0
  96. package/dist/components/errorImage/index.js +4 -0
  97. package/dist/components/hSelect/HSelect.vue.d.ts +103 -0
  98. package/dist/components/hSelect/demos/mockApi.d.ts +12 -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/demos/mockApi.d.ts +10 -0
  103. package/dist/components/hSelectAll/index.d.ts +1 -0
  104. package/dist/components/hSelectAll/index.js +4 -0
  105. package/dist/components/hSelectSJ/HSelectSJ.vue.d.ts +105 -0
  106. package/dist/components/hSelectSJ/demos/mockApi.d.ts +11 -0
  107. package/dist/components/hSelectSJ/index.d.ts +1 -0
  108. package/dist/components/hSelectSJ/index.js +4 -0
  109. package/dist/components/identifyAddress/IdentifyAddress.vue.d.ts +10 -0
  110. package/dist/components/identifyAddress/index.d.ts +1 -0
  111. package/dist/components/identifyAddress/index.js +4 -0
  112. package/dist/components/imageLoupe/ImageLoupe.vue.d.ts +35 -0
  113. package/dist/components/imageLoupe/index.d.ts +1 -0
  114. package/dist/components/imageLoupe/index.js +4 -0
  115. package/dist/components/index.d.ts +29 -0
  116. package/dist/components/index.js +62 -4
  117. package/dist/components/lazyComponent/LazyComponent.vue.d.ts +37 -0
  118. package/dist/components/lazyComponent/index.d.ts +1 -0
  119. package/dist/components/lazyComponent/index.js +4 -0
  120. package/dist/components/lazyPopover/LazyPopover.vue.d.ts +31 -0
  121. package/dist/components/lazyPopover/index.d.ts +1 -0
  122. package/dist/components/lazyPopover/index.js +4 -0
  123. package/dist/components/loadingBtn/LoadingBtn.vue.d.ts +34 -0
  124. package/dist/components/loadingBtn/index.d.ts +1 -0
  125. package/dist/components/loadingBtn/index.js +4 -0
  126. package/dist/components/mInput/index.js +1 -1
  127. package/dist/components/myTable/MyTable.vue.d.ts +46 -0
  128. package/dist/components/myTable/index.d.ts +1 -0
  129. package/dist/components/myTable/index.js +4 -0
  130. package/dist/components/noRender/NoRender.vue.d.ts +23 -0
  131. package/dist/components/noRender/index.d.ts +1 -0
  132. package/dist/components/noRender/index.js +4 -0
  133. package/dist/components/selectAddress/SelectAddress.vue.d.ts +106 -0
  134. package/dist/components/selectAddress/demos/mockAddressTree.d.ts +7 -0
  135. package/dist/components/selectAddress/index.d.ts +1 -0
  136. package/dist/components/selectAddress/index.js +4 -0
  137. package/dist/components/selectAll/SelectAll.vue.d.ts +124 -0
  138. package/dist/components/selectAll/index.d.ts +1 -0
  139. package/dist/components/selectAll/index.js +4 -0
  140. package/dist/components/selectAll2/SelectAll2.vue.d.ts +81 -0
  141. package/dist/components/selectAll2/index.d.ts +1 -0
  142. package/dist/components/selectAll2/index.js +4 -0
  143. package/dist/components/selectCustomAll/SelectCustomAll.vue.d.ts +77 -0
  144. package/dist/components/selectCustomAll/index.d.ts +1 -0
  145. package/dist/components/selectCustomAll/index.js +4 -0
  146. package/dist/components/selectTimePicker/SelectTimePicker.vue.d.ts +24 -0
  147. package/dist/components/selectTimePicker/index.d.ts +1 -0
  148. package/dist/components/selectTimePicker/index.js +4 -0
  149. package/dist/components/selectTree/SelectTree.vue.d.ts +39 -0
  150. package/dist/components/selectTree/demos/treeData.d.ts +9 -0
  151. package/dist/components/selectTree/index.d.ts +1 -0
  152. package/dist/components/selectTree/index.js +4 -0
  153. package/dist/components/svgIcon/index.d.ts +1 -0
  154. package/dist/components/svgIcon/index.js +4 -0
  155. package/dist/components/textCopy/TextCopy.vue.d.ts +21 -0
  156. package/dist/components/textCopy/index.d.ts +1 -0
  157. package/dist/components/textCopy/index.js +4 -0
  158. package/dist/components/textEllipsisTooltip/TextEllipsisTooltip.vue.d.ts +19 -0
  159. package/dist/components/textEllipsisTooltip/index.d.ts +1 -0
  160. package/dist/components/textEllipsisTooltip/index.js +4 -0
  161. package/dist/dateShortcuts-DDPtAhDI.js +26 -0
  162. package/dist/index-CQzFbjNL.js +68 -0
  163. package/dist/index-DIX8TpoT.js +118 -0
  164. package/dist/index-epuVZjZV.js +103 -0
  165. package/dist/index-uf7oyYDF.js +16847 -0
  166. package/dist/index.css +1 -0
  167. package/dist/index.d.ts +164 -6
  168. package/dist/index.js +193 -46
  169. package/dist/shims.d.ts +53 -13
  170. package/dist/tools/ImageParserUtils/common.d.ts +117 -0
  171. package/dist/tools/ImageParserUtils/etagBrowser.d.ts +4 -0
  172. package/dist/tools/ImageParserUtils/index.d.ts +7 -0
  173. package/dist/tools/ImageParserUtils/index.js +13116 -0
  174. package/dist/tools/ImageParserUtils/parseImage.d.ts +18 -0
  175. package/dist/tools/ImageParserUtils/parsePSD.d.ts +22 -0
  176. package/dist/tools/ImageParserUtils/parseTIFF.d.ts +18 -0
  177. package/dist/tools/common/common.d.ts +335 -23
  178. package/dist/tools/common/dateShortcuts.d.ts +5 -0
  179. package/dist/tools/common/index.d.ts +1 -0
  180. package/dist/tools/common/index.js +86 -5085
  181. package/dist/tools/index.d.ts +1 -1
  182. package/dist/tools/index.js +97 -8
  183. package/dist/vue-virtual-scroller.esm-CH-jx4ri.js +1051 -0
  184. package/package.json +92 -81
  185. package/dist/cascader.css +0 -1
  186. package/dist/cascader.vue_vue_type_script_setup_true_lang-HFhhhQva.js +0 -2268
  187. package/dist/index-DihzpZcR.js +0 -14
  188. package/dist/index-wUcQXc_Z.js +0 -10
  189. package/dist/tools/Grid/Grid.d.ts +0 -48
  190. package/dist/tools/Grid/index.d.ts +0 -1
  191. package/dist/tools/Grid/index.js +0 -217
@@ -0,0 +1,135 @@
1
+ import { defineComponent as I, useModel as w, ref as f, useSlots as _, useAttrs as E, resolveComponent as d, openBlock as r, createElementBlock as v, Fragment as S, 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 = w(t, "modelValue"), y = w(t, "condition"), m = t, k = f(), c = f("多个值以逗号隔开或空格隔开"), i = _(), B = E(), a = f(!1), x = (p) => {
26
+ const e = /,|,/;
27
+ return p.split(e);
28
+ };
29
+ return k.value = m.name || x(m.placeholder)[0], c.value = x(m.placeholder)[1], (p, e) => {
30
+ const g = d("el-option"), $ = d("el-select"), C = d("el-input"), b = d("el-button"), U = d("el-dialog");
31
+ return r(), v(S, 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(S, 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(b, {
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(b, {
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(c.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: c.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-ce2bdbe3"]]);
133
+ export {
134
+ K as C
135
+ };
@@ -0,0 +1 @@
1
+ .custom-input[data-v-ce2bdbe3] .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,179 @@
1
+ import { defineComponent as I, ref as J, onMounted as K, openBlock as y, createElementBlock as H, normalizeClass as S, Fragment as O, renderList as Q, createElementVNode as k, createCommentVNode as C, renderSlot as q } from "vue";
2
+ import './DragResizable.css';const T = ["data-direction"], U = { class: "dialog-content" }, _ = /* @__PURE__ */ I({
3
+ __name: "DragResizable",
4
+ props: {
5
+ width: { default: 100 },
6
+ height: { default: 100 },
7
+ minWidth: { default: 100 },
8
+ minHeight: { default: 100 },
9
+ maxWidth: {},
10
+ maxHeight: {},
11
+ left: {},
12
+ top: {},
13
+ handles: { default: () => ["t", "r", "b", "l", "rt", "rb", "lb", "lt"] },
14
+ draggable: { type: Boolean, default: !0 },
15
+ resizable: { type: Boolean, default: !0 },
16
+ overflowScreen: { type: Boolean, default: !1 },
17
+ floating: { type: Boolean, default: !0 },
18
+ parentSelector: { default: "" }
19
+ },
20
+ emits: ["resizing", "dragging", "resizeStop", "dragStop"],
21
+ setup(f, { emit: N }) {
22
+ const L = J(), n = f, w = N;
23
+ let i = null, v, x, g, c, m, u, r, E, B, W = !1, z = !1;
24
+ const P = () => {
25
+ if (!n.parentSelector)
26
+ return {
27
+ left: 0,
28
+ top: 0,
29
+ right: window.innerWidth,
30
+ bottom: window.innerHeight,
31
+ width: window.innerWidth,
32
+ height: window.innerHeight
33
+ };
34
+ const t = document.querySelector(n.parentSelector);
35
+ if (!t)
36
+ return {
37
+ left: 0,
38
+ top: 0,
39
+ right: window.innerWidth,
40
+ bottom: window.innerHeight,
41
+ width: window.innerWidth,
42
+ height: window.innerHeight
43
+ };
44
+ const e = t.getBoundingClientRect();
45
+ return {
46
+ left: 0,
47
+ // 相对于父元素的左边距
48
+ top: 0,
49
+ // 相对于父元素的上边距
50
+ right: e.width,
51
+ bottom: e.height,
52
+ width: e.width,
53
+ height: e.height
54
+ };
55
+ }, V = () => {
56
+ var e, o;
57
+ if (i = L.value, !i) return;
58
+ let t = {
59
+ left: (e = n.left) != null ? e : window.innerWidth - n.width,
60
+ top: (o = n.top) != null ? o : window.innerHeight - n.height,
61
+ width: n.width,
62
+ height: n.height
63
+ };
64
+ if (t = $(t.left, t.top, t.width, t.height), t = b(t.left, t.top, t.width, t.height), t = M(t.left, t.top, t.width, t.height), n.floating ? (i.style.left = `${t.left}px`, i.style.top = `${t.top}px`, i.style.height = `${t.height}px`) : i.style.height = "100%", n.parentSelector) {
65
+ const h = document.querySelector(n.parentSelector);
66
+ h && window.getComputedStyle(h).position === "static" && (h.style.position = "relative");
67
+ }
68
+ i.style.width = `${t.width}px`, A(), t.width, t.height, t.left, t.top;
69
+ }, M = (t, e, o, h) => {
70
+ let a = Math.max(o, n.minWidth), p = Math.max(h, n.minHeight);
71
+ return n.maxWidth != null && (a = Math.min(a, n.maxWidth)), n.maxHeight != null && (p = Math.min(p, n.maxHeight)), {
72
+ left: t,
73
+ top: e,
74
+ width: a,
75
+ height: p
76
+ };
77
+ }, A = () => {
78
+ i.style.minWidth = `${n.minWidth}px`, i.style.minHeight = `${n.minHeight}px`, n.maxWidth != null && (i.style.maxWidth = `${n.maxWidth}px`), n.maxHeight != null && (i.style.maxHeight = `${n.maxHeight}px`);
79
+ };
80
+ function F(t) {
81
+ t.preventDefault(), W = !0, r = t.target.getAttribute("data-direction"), v = t.clientX, x = t.clientY, g = i.offsetWidth, c = i.offsetHeight, m = i.offsetTop, u = i.offsetLeft, document.addEventListener("mousemove", D), document.addEventListener("mouseup", R), i.classList.add("resizing");
82
+ }
83
+ function D(t) {
84
+ if (!W) return;
85
+ let e = g, o = c, h = m, a = u;
86
+ const p = t.clientX, G = t.clientY, d = p - v, s = G - x;
87
+ r.includes("t") ? (o = c - s, h = m + s) : r.includes("r") ? e = g + d : r.includes("b") ? (o = c + s, console.log(o, s, 1111)) : r.includes("l") && (e = g - d, a = u + d), r.length === 2 && (r === "rt" ? (o = c - s, h = m + s, e = g + d) : r === "rb" ? (e = g + d, o = c + s) : r === "lb" ? (e = g - d, a = u + d, o = c + s) : r === "lt" && (e = g - d, o = c - s, a = u + d, h = m + s));
88
+ let l = {
89
+ left: a,
90
+ top: h,
91
+ width: e,
92
+ height: o
93
+ };
94
+ l = $(l.left, l.top, l.width, l.height), l = b(l.left, l.top, l.width, l.height), l = M(l.left, l.top, l.width, l.height), i.style.width = `${l.width}px`, i.style.height = `${l.height}px`, console.log(l.height, 2222), n.floating && (i.style.top = `${l.top}px`, i.style.left = `${l.left}px`), l.width, l.height, l.left, l.top, w("resizing", l);
95
+ }
96
+ function R() {
97
+ W = !1, document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", R), i.classList.remove("resizing"), w("resizeStop", {
98
+ width: i.offsetWidth,
99
+ height: i.offsetHeight,
100
+ left: i.offsetLeft,
101
+ top: i.offsetTop
102
+ });
103
+ }
104
+ function j(t) {
105
+ n.draggable && (t.preventDefault(), z = !0, E = i.offsetLeft, B = i.offsetTop, v = t.clientX, x = t.clientY, document.addEventListener("mousemove", X), document.addEventListener("mouseup", Y), i.classList.add("dragging"));
106
+ }
107
+ function X(t) {
108
+ if (!n.floating || !z) return;
109
+ let e = {
110
+ left: E + (t.clientX - v),
111
+ top: B + (t.clientY - x),
112
+ width: i.offsetWidth,
113
+ height: i.offsetHeight
114
+ };
115
+ e = $(e.left, e.top, e.width, e.height), e = b(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, w("dragging", {
116
+ left: e.left,
117
+ top: e.top,
118
+ width: e.width,
119
+ height: e.height
120
+ });
121
+ }
122
+ function Y() {
123
+ z = !1, document.removeEventListener("mousemove", X), document.removeEventListener("mouseup", Y), i.classList.remove("dragging"), w("dragStop", {
124
+ left: i.offsetLeft,
125
+ top: i.offsetTop,
126
+ width: i.offsetWidth,
127
+ height: i.offsetHeight
128
+ });
129
+ }
130
+ const $ = (t, e, o, h) => (!n.overflowScreen && n.floating && (t = Math.min(Math.max(t, 0), window.innerWidth - i.offsetWidth), e = Math.min(Math.max(e, 0), window.innerHeight - i.offsetHeight), o = Math.min(o, window.innerWidth - t), h = Math.min(h, window.innerHeight - e)), {
131
+ left: t,
132
+ top: e,
133
+ width: o,
134
+ height: h
135
+ }), b = (t, e, o, h) => {
136
+ if (n.parentSelector) {
137
+ const a = P();
138
+ 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), o = Math.min(o, a.width - t), h = Math.min(h, a.height - e);
139
+ }
140
+ return {
141
+ left: t,
142
+ top: e,
143
+ width: o,
144
+ height: h
145
+ };
146
+ };
147
+ return K(() => {
148
+ V();
149
+ }), (t, e) => (y(), H("div", {
150
+ class: S(["customer-move-dialog", { floating: f.floating, "parent-constrained": f.floating && f.parentSelector }]),
151
+ ref_key: "moveDialogRef",
152
+ ref: L
153
+ }, [
154
+ f.resizable ? (y(!0), H(O, { key: 0 }, Q(f.handles, (o, h) => (y(), H("div", {
155
+ class: S(["resize-handle", `resize-handle-${o}`]),
156
+ "data-direction": o,
157
+ key: h,
158
+ onMousedown: F
159
+ }, [
160
+ k("div", {
161
+ class: S(["resize-handle-area", `resize-handle-area-${o}`])
162
+ }, null, 2)
163
+ ], 42, T))), 128)) : C("", !0),
164
+ f.floating ? (y(), H("div", {
165
+ key: 1,
166
+ class: S(["drag-header", f.draggable ? "draggable" : ""]),
167
+ onMousedown: j
168
+ }, [
169
+ q(t.$slots, "header")
170
+ ], 34)) : C("", !0),
171
+ k("div", U, [
172
+ q(t.$slots, "default")
173
+ ])
174
+ ], 2));
175
+ }
176
+ });
177
+ export {
178
+ _
179
+ };
@@ -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 span{white-space:nowrap}.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;height:16px}.cascader-popper-deep .cascader-footer-slot{border-top:1px solid #e4e7ed;padding:10px}