@bytenew/bn-bus-ui 1.1.399

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 (46) hide show
  1. package/README.md +637 -0
  2. package/common.scss +715 -0
  3. package/dist/assocTableSearch-C9KUFIpd.js +349 -0
  4. package/dist/assocTableSearch.css +1 -0
  5. package/dist/bn-bus-ui.es.js +58 -0
  6. package/dist/bn-bus-ui.umd.js +42 -0
  7. package/dist/chooseIPaasData-Bfm58C-0.js +391 -0
  8. package/dist/chooseIPaasData.css +1 -0
  9. package/dist/defaultSet-BA11k622.js +322 -0
  10. package/dist/defaultSet.css +1 -0
  11. package/dist/fileFormData-D_Q1vylE.js +53 -0
  12. package/dist/formItemFooter-B3nlSwnS.js +108 -0
  13. package/dist/formItemFooter.css +1 -0
  14. package/dist/funcExprDialog-DeHPFa-L.js +139 -0
  15. package/dist/funcExprDialog.css +1 -0
  16. package/dist/index-B8KbssVN.js +45 -0
  17. package/dist/index-CTZ-0Tyh.js +45 -0
  18. package/dist/index-CZOFm8wK.js +135 -0
  19. package/dist/index-C_ix9-hS.js +44 -0
  20. package/dist/index-Cov88CtD.js +221 -0
  21. package/dist/index-DAtLc2a1.js +89 -0
  22. package/dist/index-DCbIfKgk.js +66 -0
  23. package/dist/index-DDy1d3BS.js +178 -0
  24. package/dist/index-DJ15iYPg.js +89 -0
  25. package/dist/index-DNHXG3dr.js +62 -0
  26. package/dist/index-Dg5V1uNO.js +740 -0
  27. package/dist/index-Dme97Hra.js +118 -0
  28. package/dist/index-DnzoAsk8.js +109 -0
  29. package/dist/index-DrngruPb.js +64 -0
  30. package/dist/index-Q08paoUN.js +51 -0
  31. package/dist/index-VbL1cqCu.js +58 -0
  32. package/dist/index-aooX1QXm.js +183 -0
  33. package/dist/index.css +1 -0
  34. package/dist/index2.css +1 -0
  35. package/dist/index3.css +1 -0
  36. package/dist/index4.css +1 -0
  37. package/dist/index5.css +1 -0
  38. package/dist/index6.css +1 -0
  39. package/dist/index7.css +1 -0
  40. package/dist/install-DSQCBsd_.js +19155 -0
  41. package/dist/install.css +1 -0
  42. package/dist/setOption-BOD7nAuG.js +329 -0
  43. package/dist/setOption.css +1 -0
  44. package/dist/setRelationOption-D7FqiLWj.js +5217 -0
  45. package/dist/setRelationOption.css +1 -0
  46. package/package.json +57 -0
@@ -0,0 +1,45 @@
1
+ import { f as s, a as d } from "./formItemFooter-B3nlSwnS.js";
2
+ import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as t, createElementVNode as f } from "vue";
3
+ import { _ } from "./install-DSQCBsd_.js";
4
+ const p = {
5
+ name: "dateForm",
6
+ components: { formItemTop: d, formItemFooter: s },
7
+ props: {
8
+ column: {
9
+ type: Object,
10
+ default() {
11
+ return {};
12
+ }
13
+ },
14
+ disabled: Boolean
15
+ },
16
+ methods: {
17
+ changeVal() {
18
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column, "change");
19
+ }
20
+ }
21
+ }, h = { class: "w-default-wrap" }, Y = { class: "w-default-wrap" };
22
+ function g(V, n, e, b, v, m) {
23
+ const l = o("formItemTop"), a = o("el-date-picker"), c = o("formItemFooter");
24
+ return u(), i("div", h, [
25
+ t(l, { column: e.column }, null, 8, ["column"]),
26
+ f("div", Y, [
27
+ t(a, {
28
+ onChange: m.changeVal,
29
+ style: { width: "100%" },
30
+ disabled: e.disabled,
31
+ modelValue: e.column.value,
32
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => e.column.value = r),
33
+ type: "datetime",
34
+ placement: "bottom-start",
35
+ format: "YYYY-MM-DD HH:mm:ss",
36
+ "value-format": "YYYY-MM-DD HH:mm:ss"
37
+ }, null, 8, ["onChange", "disabled", "modelValue"])
38
+ ]),
39
+ t(c, { column: e.column }, null, 8, ["column"])
40
+ ]);
41
+ }
42
+ const x = /* @__PURE__ */ _(p, [["render", g]]);
43
+ export {
44
+ x as default
45
+ };
@@ -0,0 +1,135 @@
1
+ import { debounce as v } from "lodash";
2
+ import { f, a as b } from "./formItemFooter-B3nlSwnS.js";
3
+ import { B as w } from "./index-DAtLc2a1.js";
4
+ import { resolveComponent as t, openBlock as s, createElementBlock as B, createBlock as F, createCommentVNode as _, createVNode as a, createElementVNode as d } from "vue";
5
+ import { _ as y } from "./install-DSQCBsd_.js";
6
+ const I = {
7
+ name: "addressForm",
8
+ components: { BnAddressParse: w, formItemTop: b, formItemFooter: f },
9
+ props: {
10
+ column: Object,
11
+ disabled: Boolean,
12
+ postFunc: Function,
13
+ // 数据结构
14
+ valueProps: Object
15
+ },
16
+ computed: {
17
+ // 收寄信息value对象中对应的字段
18
+ valueKey() {
19
+ return this.valueProps ? this.valueProps : this.column.moduleDefinition ? {
20
+ name: this.column.moduleDefinition[0].columnCode,
21
+ phone: this.column.moduleDefinition[1].columnCode,
22
+ address: this.column.moduleDefinition[2].columnCode,
23
+ detail: this.column.moduleDefinition[3].columnCode
24
+ } : {
25
+ name: "name",
26
+ phone: "phone",
27
+ address: "address",
28
+ detail: "detail"
29
+ };
30
+ }
31
+ },
32
+ methods: {
33
+ /**
34
+ * 输入框输入事件
35
+ * */
36
+ onInput(n) {
37
+ this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.onChange(n);
38
+ },
39
+ /**
40
+ * 输入框Change事件
41
+ * @param {String} type 是否是其他事件类型
42
+ * */
43
+ onChange: v(function(n, o) {
44
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
45
+ }, 600),
46
+ /**
47
+ * 输入框onFocus事件
48
+ * */
49
+ onFocus(n) {
50
+ this.$emit("focus", this.column);
51
+ },
52
+ /**
53
+ * 输入框失去焦点事件
54
+ * */
55
+ onBlur() {
56
+ this.$emit("blur", this.column);
57
+ },
58
+ /**
59
+ *自动识别
60
+ * */
61
+ autoParse(n) {
62
+ this.column.value[this.valueKey.name] = n.name || "", this.column.value[this.valueKey.phone] = n.phone || "", this.column.value[this.valueKey.address] = n.address, this.column.value[this.valueKey.detail] = n.detail || "", this.onChange();
63
+ }
64
+ }
65
+ }, V = { class: "w-default-wrap" }, p = { class: "w-flex-between w-margin-bottom10 w-flex-column-gap8" }, g = { class: "w-default-wrap w-margin-bottom10" }, C = { class: "w-default-wrap" };
66
+ function K(n, o, e, P, x, l) {
67
+ const c = t("formItemTop"), r = t("BnAddressParse"), m = t("el-input"), i = t("BnAddress"), h = t("formItemFooter");
68
+ return s(), B("div", V, [
69
+ e.column.name ? (s(), F(c, {
70
+ key: 0,
71
+ column: e.column
72
+ }, null, 8, ["column"])) : _("", !0),
73
+ a(r, {
74
+ onParse: l.autoParse,
75
+ "post-func": e.postFunc
76
+ }, null, 8, ["onParse", "post-func"]),
77
+ d("div", p, [
78
+ a(m, {
79
+ modelValue: e.column.value[l.valueKey.name],
80
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => e.column.value[l.valueKey.name] = u),
81
+ disabled: e.disabled,
82
+ placeholder: "输入姓名",
83
+ onInput: l.onInput,
84
+ onFocus: l.onFocus,
85
+ onBlur: l.onBlur,
86
+ clearable: "",
87
+ "show-word-limit": ""
88
+ }, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"]),
89
+ a(m, {
90
+ modelValue: e.column.value[l.valueKey.phone],
91
+ "onUpdate:modelValue": o[1] || (o[1] = (u) => e.column.value[l.valueKey.phone] = u),
92
+ disabled: e.disabled,
93
+ placeholder: "输入手机号",
94
+ onInput: l.onInput,
95
+ onFocus: l.onFocus,
96
+ onBlur: l.onBlur,
97
+ clearable: "",
98
+ "show-word-limit": ""
99
+ }, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"])
100
+ ]),
101
+ d("div", g, [
102
+ a(i, {
103
+ modelValue: e.column.value[l.valueKey.address],
104
+ "onUpdate:modelValue": o[2] || (o[2] = (u) => e.column.value[l.valueKey.address] = u),
105
+ postFunc: e.postFunc,
106
+ onChange: l.onChange,
107
+ "value-key": "code",
108
+ "level-num": e.column.levelNum || 4,
109
+ pathUrl: e.column.pathUrl || "/address/getAreaDataList",
110
+ disabled: e.disabled
111
+ }, null, 8, ["modelValue", "postFunc", "onChange", "level-num", "pathUrl", "disabled"])
112
+ ]),
113
+ d("div", C, [
114
+ a(m, {
115
+ modelValue: e.column.value[l.valueKey.detail],
116
+ "onUpdate:modelValue": o[3] || (o[3] = (u) => e.column.value[l.valueKey.detail] = u),
117
+ type: "textarea",
118
+ rows: 3,
119
+ disabled: e.disabled,
120
+ resize: "none",
121
+ placeholder: "输入详细地址",
122
+ onInput: l.onInput,
123
+ onFocus: l.onFocus,
124
+ onBlur: l.onBlur,
125
+ clearable: "",
126
+ "show-word-limit": ""
127
+ }, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"])
128
+ ]),
129
+ a(h, { column: e.column }, null, 8, ["column"])
130
+ ]);
131
+ }
132
+ const T = /* @__PURE__ */ y(I, [["render", K]]);
133
+ export {
134
+ T as default
135
+ };
@@ -0,0 +1,44 @@
1
+ import { a as d, f as s } from "./formItemFooter-B3nlSwnS.js";
2
+ import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as n, createElementVNode as f } from "vue";
3
+ import { _ } from "./install-DSQCBsd_.js";
4
+ const p = {
5
+ name: "dateDualForm",
6
+ props: {
7
+ column: {
8
+ type: Object,
9
+ default() {
10
+ return {};
11
+ }
12
+ },
13
+ disabled: Boolean
14
+ },
15
+ components: {
16
+ formItemFooter: s,
17
+ formItemTop: d
18
+ },
19
+ methods: {
20
+ changeVal() {
21
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
22
+ }
23
+ }
24
+ }, h = { class: "w-default-wrap" }, g = { class: "w-default-wrap" };
25
+ function V(I, t, e, b, v, m) {
26
+ const l = o("formItemTop"), a = o("BnDatePicker"), c = o("formItemFooter");
27
+ return u(), i("div", h, [
28
+ n(l, { column: e.column }, null, 8, ["column"]),
29
+ f("div", g, [
30
+ n(a, {
31
+ modelValue: e.column.value,
32
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => e.column.value = r),
33
+ type: "datetimerange",
34
+ disabled: e.disabled,
35
+ onChange: m.changeVal
36
+ }, null, 8, ["modelValue", "disabled", "onChange"])
37
+ ]),
38
+ n(c, { column: e.column }, null, 8, ["column"])
39
+ ]);
40
+ }
41
+ const x = /* @__PURE__ */ _(p, [["render", V]]);
42
+ export {
43
+ x as default
44
+ };
@@ -0,0 +1,221 @@
1
+ import { isEmpty as O, cloneDeep as T } from "lodash";
2
+ import { _ as U, c as F } from "./install-DSQCBsd_.js";
3
+ import { resolveComponent as a, openBlock as i, createElementBlock as s, createVNode as d, mergeProps as b, createElementVNode as o, toDisplayString as f, withCtx as r, createTextVNode as m, createCommentVNode as c, normalizeClass as $, createBlock as V, defineAsyncComponent as D } from "vue";
4
+ const B = {
5
+ name: "childrenFormSetting",
6
+ components: {
7
+ columnConfigDialog: D(() => import("./install-DSQCBsd_.js").then((t) => t.a5)),
8
+ assocTableSearch: D(() => import("./assocTableSearch-C9KUFIpd.js"))
9
+ // assocTable: defineAsyncComponent(() => import("./assocTable.vue")),
10
+ },
11
+ props: {
12
+ columnData: {
13
+ type: Object,
14
+ default: () => ({})
15
+ },
16
+ postFunc: Function,
17
+ // API请求函数
18
+ extendPost: Object,
19
+ // 额外的请求参数
20
+ // 以下是从父组件传入的 props
21
+ row: {
22
+ type: Number,
23
+ default: 1
24
+ },
25
+ hideFiled: {
26
+ type: Array,
27
+ default: () => []
28
+ },
29
+ columnList: {
30
+ type: Array,
31
+ default: () => []
32
+ },
33
+ disabled: Boolean
34
+ },
35
+ data() {
36
+ return {
37
+ columnTypeMap: F,
38
+ componentWidth: 0
39
+ // 组件宽度
40
+ };
41
+ },
42
+ mounted() {
43
+ this.calculateWidth();
44
+ },
45
+ methods: {
46
+ isEmpty: O,
47
+ /**
48
+ * 计算组件宽度
49
+ */
50
+ calculateWidth() {
51
+ this.$nextTick(() => {
52
+ const t = this.$el;
53
+ t && (this.componentWidth = t.offsetWidth);
54
+ });
55
+ },
56
+ /**
57
+ * 滚动到列表底部
58
+ */
59
+ scrollToBottom() {
60
+ this.$nextTick(() => {
61
+ const t = this.$refs.optionList;
62
+ if (t && t.$el) {
63
+ const e = t.$el.querySelector(".el-scrollbar__wrap");
64
+ e && (e.scrollTop = e.scrollHeight);
65
+ }
66
+ });
67
+ },
68
+ /**
69
+ * 编辑或者新增组件
70
+ */
71
+ async editChildColumn(t) {
72
+ var e;
73
+ if (t.columnCode)
74
+ for (let n in this.columnData.moduleDefinition)
75
+ this.columnData.moduleDefinition[n].columnCode == t.columnCode && (this.columnData.moduleDefinition[n] = T(t));
76
+ else {
77
+ const n = ((e = this.extendPost) == null ? void 0 : e.appId) || "noApp", u = await this.postFunc(`/v2/projects/customId/1/${n}`, null, "get");
78
+ u.code || (this.columnData.moduleDefinition.push(
79
+ { ...t, columnCode: `cc_${u.data[0]}` }
80
+ ), this.scrollToBottom());
81
+ }
82
+ },
83
+ /**
84
+ * 删除选项
85
+ */
86
+ deleteOption(t) {
87
+ this.columnData.moduleDefinition.splice(t, 1);
88
+ }
89
+ }
90
+ }, W = { class: "childrenSetOpt" }, N = { class: "childrenSetOpt-top w-flex-center w-flex-between" }, A = { class: "w-flex-center" }, E = { class: "w-color-orange" }, j = { class: "w-flex-center w-flex-column-gap5" }, L = { key: 0 }, P = { key: 1 }, M = { class: "w-flex-between w-flex-center childrenSetOpt-list-item-content" }, q = ["title"], z = { class: "w-flex-center" }, H = { class: "w-color-purple childrenSetOpt-list-item-memo" }, G = {
91
+ key: 0,
92
+ class: "w-margin-left4"
93
+ }, J = {
94
+ key: 1,
95
+ class: "w-margin-left4"
96
+ }, K = { class: "w-flex-right w-flex-center w-flex-column-gap8" }, Q = ["onClick"], R = ["onClick"], X = {
97
+ key: 0,
98
+ class: "w-empty"
99
+ };
100
+ function Y(t, e, n, u, h, p) {
101
+ var g;
102
+ const v = a("columnConfigDialog"), y = a("assocTableSearch"), _ = a("el-button"), C = a("el-tooltip"), k = a("draggable"), x = a("el-scrollbar");
103
+ return i(), s("div", W, [
104
+ d(v, b({ ref: "columnConfigDialog" }, t.$props, {
105
+ onSaveOver: p.editChildColumn,
106
+ "is-children": ""
107
+ }), null, 16, ["onSaveOver"]),
108
+ d(y, b({ ref: "assocTableSearch" }, t.$props), null, 16),
109
+ o("div", N, [
110
+ o("div", A, [
111
+ e[3] || (e[3] = o("div", { class: "childrenSetOpt-top-title" }, "子组件设置", -1)),
112
+ o("div", E, " (共" + f(n.columnData.moduleDefinition.length) + "个子组件) ", 1)
113
+ ]),
114
+ o("div", j, [
115
+ n.hideFiled.includes("moduleDefinition") ? c("", !0) : (i(), s("div", L, [
116
+ d(_, {
117
+ link: "",
118
+ type: "primary",
119
+ onClick: e[0] || (e[0] = (l) => t.$refs.columnConfigDialog.open())
120
+ }, {
121
+ default: r(() => [...e[4] || (e[4] = [
122
+ o("span", { class: "bnUIcon bnUIcon-addFile w-padding-right2 w-font14" }, null, -1),
123
+ m("添加 ", -1)
124
+ ])]),
125
+ _: 1
126
+ })
127
+ ])),
128
+ ((g = n.columnData.insideDataSourceInfo) == null ? void 0 : g.type) == "group" ? (i(), s("div", P, [
129
+ d(_, {
130
+ link: "",
131
+ type: "primary",
132
+ onClick: e[1] || (e[1] = (l) => t.$refs.assocTableSearch.open())
133
+ }, {
134
+ default: r(() => [...e[5] || (e[5] = [
135
+ o("span", { class: "bnUIcon bnUIcon-search w-padding-right2" }, null, -1),
136
+ m(" 设置数据筛选 ", -1)
137
+ ])]),
138
+ _: 1
139
+ })
140
+ ])) : c("", !0)
141
+ ])
142
+ ]),
143
+ d(x, {
144
+ "max-height": "380px",
145
+ class: "childrenSetOpt-list",
146
+ ref: "optionList"
147
+ }, {
148
+ default: r(() => [
149
+ d(k, {
150
+ modelValue: n.columnData.moduleDefinition,
151
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => n.columnData.moduleDefinition = l),
152
+ "item-key": "id",
153
+ handle: ".childrenSetOpt-list-item-drag",
154
+ "ghost-class": "ghost-item",
155
+ "chosen-class": "chosen-item",
156
+ animation: "300",
157
+ tag: "div"
158
+ }, {
159
+ item: r(({ element: l, index: S }) => {
160
+ var w;
161
+ return [
162
+ o("div", {
163
+ class: $(["childrenSetOpt-list-item", [h.componentWidth > 400 ? "two" : "one"]])
164
+ }, [
165
+ o("div", M, [
166
+ e[7] || (e[7] = o("div", { class: "childrenSetOpt-list-item-drag w-default-hover" }, [
167
+ o("span", { class: "bnUIcon bnUIcon-move" })
168
+ ], -1)),
169
+ o("div", {
170
+ class: "w-font14 w-color-black6 childrenSetOpt-list-item-text w-text-over-two",
171
+ title: l.name
172
+ }, [
173
+ ((w = l.insideDataSourceInfo) == null ? void 0 : w.type) == "group" ? (i(), V(C, {
174
+ key: 0,
175
+ content: "来自关联表组件",
176
+ placement: "top"
177
+ }, {
178
+ default: r(() => [...e[6] || (e[6] = [
179
+ o("span", {
180
+ class: "bnUIcon bnUIcon-linkTable w-color-violet",
181
+ title: ""
182
+ }, null, -1)
183
+ ])]),
184
+ _: 1
185
+ })) : c("", !0),
186
+ m(" " + f(l.name), 1)
187
+ ], 8, q)
188
+ ]),
189
+ o("div", z, [
190
+ o("div", H, [
191
+ m(f(h.columnTypeMap[l.behaviorType]) + " ", 1),
192
+ p.isEmpty(l.defaultInfo) ? c("", !0) : (i(), s("span", G, "已配默认值")),
193
+ l.extraInfo.exprId ? (i(), s("span", J, "已配函数表达式")) : c("", !0)
194
+ ])
195
+ ]),
196
+ o("div", K, [
197
+ o("span", {
198
+ class: "bnUIcon bnUIcon-setting w-color-orange",
199
+ onClick: (I) => t.$refs.columnConfigDialog.open(l)
200
+ }, null, 8, Q),
201
+ n.hideFiled.includes("moduleDefinition") ? c("", !0) : (i(), s("span", {
202
+ key: 0,
203
+ class: "bnUIcon bnUIcon-delete w-color-orange",
204
+ onClick: (I) => p.deleteOption(S, l.name)
205
+ }, null, 8, R))
206
+ ])
207
+ ], 2)
208
+ ];
209
+ }),
210
+ _: 1
211
+ }, 8, ["modelValue"])
212
+ ]),
213
+ _: 1
214
+ }, 512),
215
+ !n.columnData.moduleDefinition || n.columnData.moduleDefinition.length == 0 ? (i(), s("div", X, "没有子组件 ")) : c("", !0)
216
+ ]);
217
+ }
218
+ const oe = /* @__PURE__ */ U(B, [["render", Y], ["__scopeId", "data-v-290e160f"]]);
219
+ export {
220
+ oe as default
221
+ };
@@ -0,0 +1,89 @@
1
+ import { debounce as h } from "lodash";
2
+ import { resolveComponent as n, openBlock as f, createElementBlock as w, createElementVNode as o, createVNode as l, withCtx as c, createTextVNode as r } from "vue";
3
+ import { _ } from "./install-DSQCBsd_.js";
4
+ const g = {
5
+ name: "BnAddressParse",
6
+ props: {
7
+ postFunc: Function
8
+ },
9
+ data() {
10
+ return {
11
+ address: "",
12
+ record: ""
13
+ };
14
+ },
15
+ methods: {
16
+ /**
17
+ * 自动识别方法(使用防抖)
18
+ */
19
+ autoAds: h(function() {
20
+ !this.address || this.address == this.record || this.postFunc("/address/parse", { address: this.address }).then((e) => {
21
+ if (!e.code && e.data) {
22
+ let t = [];
23
+ ["province", "city", "area", "street"].forEach((a, s) => {
24
+ e.data[a] && t.push({
25
+ id: e.data[`${a}Id`],
26
+ code: e.data[`${a}Id`],
27
+ title: e.data[a],
28
+ parentId: s ? t[s - 1].id : 1,
29
+ type: s + 2
30
+ //这个是后端定义的字段,不知道为啥是从2开始的
31
+ });
32
+ });
33
+ let d = {
34
+ name: e.data.name || "",
35
+ phone: e.data.phone || "",
36
+ detail: e.data.detail || "",
37
+ address: t
38
+ };
39
+ this.record = this.address, this.$emit("parse", d);
40
+ }
41
+ });
42
+ }, 60)
43
+ }
44
+ }, v = { class: "w-default-wrap" }, B = { class: "w-margin-bottom10 w-flex-center" };
45
+ function V(e, t, p, d, a, s) {
46
+ const i = n("el-popover"), u = n("el-input");
47
+ return f(), w("div", v, [
48
+ o("div", B, [
49
+ l(i, {
50
+ placement: "top-start",
51
+ width: 400,
52
+ trigger: "hover",
53
+ "show-arrow": !1
54
+ }, {
55
+ reference: c(() => [...t[1] || (t[1] = [
56
+ o("span", { class: "bnUIcon bnUIcon-searchAuto w-color-orange w-font22 w-margin-right10" }, null, -1)
57
+ ])]),
58
+ default: c(() => [
59
+ t[2] || (t[2] = o("div", { class: "w-font13 w-margin-bottom5" }, [
60
+ o("div", null, [
61
+ r("地址自动识别用于辅助回填繁琐的地址信息,但任何自动化识别都会存在一定错误率。 为了你的愉快使用,请尽量使用格式规范的完整地址信息进行识别,比如包含完整的 "),
62
+ o("span", { class: "w-color-orange" }, "省市区级别标识"),
63
+ r(" , "),
64
+ o("span", { class: "w-color-orange" }, "姓名和手机号尽量放在地址前面"),
65
+ r(" ,不要穿插其中。 ")
66
+ ]),
67
+ o("div", null, [
68
+ o("span", { class: "w-color-red" }, "文案不规范、信息有缺都有可能造成识别率下降,拆分地址出错。"),
69
+ o("span", null, "遇见这种情况请您手动调整文案并重试")
70
+ ])
71
+ ], -1))
72
+ ]),
73
+ _: 1
74
+ }),
75
+ l(u, {
76
+ modelValue: a.address,
77
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => a.address = m),
78
+ placeholder: "输入地址后自动识别",
79
+ clearable: "",
80
+ onChange: s.autoAds,
81
+ onBlur: s.autoAds
82
+ }, null, 8, ["modelValue", "onChange", "onBlur"])
83
+ ])
84
+ ]);
85
+ }
86
+ const x = /* @__PURE__ */ _(g, [["render", V]]);
87
+ export {
88
+ x as B
89
+ };
@@ -0,0 +1,66 @@
1
+ import { f as i, a as d } from "./formItemFooter-B3nlSwnS.js";
2
+ import { debounce as f } from "lodash";
3
+ import { resolveComponent as m, openBlock as p, createElementBlock as h, createVNode as u, createElementVNode as _ } from "vue";
4
+ import { _ as I } from "./install-DSQCBsd_.js";
5
+ const B = {
6
+ name: "numberForm",
7
+ components: { formItemTop: d, formItemFooter: i },
8
+ props: {
9
+ column: {
10
+ type: Object,
11
+ default: function() {
12
+ return {};
13
+ }
14
+ },
15
+ disabled: Boolean
16
+ },
17
+ methods: {
18
+ /**
19
+ * 输入框输入事件
20
+ * */
21
+ onInput(n) {
22
+ this.column.error = "", this.column.warning = "", n == this.column.value && (this.$emit("onInput", this.column), this.onChange());
23
+ },
24
+ /**
25
+ * 输入框Change事件
26
+ * */
27
+ onChange: f(function(n, e) {
28
+ this.$emit("onChange", this.column);
29
+ }, 500),
30
+ /**
31
+ * 输入框onFocus事件
32
+ * */
33
+ onFocus(n) {
34
+ this.$emit("focus", this.column);
35
+ },
36
+ /**
37
+ * 输入框失去焦点事件
38
+ * */
39
+ onBlur(n) {
40
+ this.$emit("blur", this.column);
41
+ }
42
+ }
43
+ }, b = { class: "w-default-wrap" }, F = { class: "w-default-wrap" };
44
+ function v(n, e, o, w, x, t) {
45
+ var l;
46
+ const c = m("formItemTop"), r = m("BnInpNum"), s = m("formItemFooter");
47
+ return p(), h("div", b, [
48
+ u(c, { column: o.column }, null, 8, ["column"]),
49
+ _("div", F, [
50
+ u(r, {
51
+ modelValue: o.column.value,
52
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => o.column.value = a),
53
+ disabled: o.disabled,
54
+ precision: (l = o.column.extraInfo) == null ? void 0 : l.valueType,
55
+ onInput: t.onInput,
56
+ onFocus: t.onFocus,
57
+ onBlur: t.onBlur
58
+ }, null, 8, ["modelValue", "disabled", "precision", "onInput", "onFocus", "onBlur"])
59
+ ]),
60
+ u(s, { column: o.column }, null, 8, ["column"])
61
+ ]);
62
+ }
63
+ const T = /* @__PURE__ */ I(B, [["render", v]]);
64
+ export {
65
+ T as default
66
+ };