@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,118 @@
1
+ import { _ as g, b as w } from "./install-DSQCBsd_.js";
2
+ import { resolveComponent as p, openBlock as l, createElementBlock as o, createVNode as u, createElementVNode as i, withCtx as h, Fragment as b, renderList as _, createCommentVNode as I } from "vue";
3
+ const v = {
4
+ name: "paraExplainSet",
5
+ props: {
6
+ columnData: {
7
+ type: Object,
8
+ default: () => ({})
9
+ },
10
+ disabled: Boolean,
11
+ postFunc: Function,
12
+ // API请求函数
13
+ extendPost: Object
14
+ // 额外的请求参数
15
+ },
16
+ data() {
17
+ return {
18
+ fileType: ["png", "jpg", "jpeg", "gif"]
19
+ };
20
+ },
21
+ mounted() {
22
+ this.columnData.extraInfo.operationPictures || (this.columnData.extraInfo.operationPictures = []);
23
+ },
24
+ computed: {
25
+ uploadUrl() {
26
+ return `${w()}/v2/attachment/upload/remarkOperation`;
27
+ }
28
+ },
29
+ methods: {
30
+ /**
31
+ * 上传成功
32
+ * */
33
+ fileSuccess(a) {
34
+ var e, t;
35
+ a.code ? this.$message.warning(a.msg) : ((e = this.columnData.extraInfo.operationPictures) == null ? void 0 : e.length) < 15 ? ((t = this.columnData.extraInfo.operationPictures) == null || t.length, this.columnData.extraInfo.operationPictures.push(a.data.url)) : this.$message.warning("上传文件个数不能超过15个");
36
+ },
37
+ /**
38
+ * 附件上传前
39
+ * */
40
+ beforeUpload(a) {
41
+ var s;
42
+ if (((s = this.columnData.extraInfo.operationPictures) == null ? void 0 : s.length) >= 15)
43
+ return this.$message.warning("上传文件个数不能超过15个"), !1;
44
+ const e = 50, t = 1048576 * e;
45
+ if (a.size > t)
46
+ return this.$message.warning(`上传文件大小不能超出${e}MB`), !1;
47
+ const d = a.name.split(".").pop().toLowerCase();
48
+ return this.fileType.includes(d) ? !0 : (this.$message.warning("仅支持上传图片"), !1);
49
+ },
50
+ /**
51
+ * 删除图片
52
+ * */
53
+ deleteImage(a) {
54
+ this.columnData.extraInfo.operationPictures.splice(a, 1);
55
+ }
56
+ }
57
+ }, D = { class: "paraExplainSet" }, E = { class: "w-flex-left w-flex-wrap w-flex-gap8 w-margin-top10" }, P = ["onClick"];
58
+ function S(a, e, t, d, s, n) {
59
+ const m = p("el-input"), f = p("el-upload"), x = p("el-image");
60
+ return l(), o("div", D, [
61
+ u(m, {
62
+ type: "textarea",
63
+ resize: "none",
64
+ rows: 3,
65
+ modelValue: t.columnData.extraInfo.paraExplain,
66
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => t.columnData.extraInfo.paraExplain = r),
67
+ placeholder: "填写说明",
68
+ clearable: "",
69
+ disabled: t.disabled,
70
+ maxlength: 800,
71
+ "show-word-limit": ""
72
+ }, null, 8, ["modelValue", "disabled"]),
73
+ i("div", E, [
74
+ u(f, {
75
+ class: "paraExplainSet-upload",
76
+ ref: "uploadInput",
77
+ action: n.uploadUrl,
78
+ "show-file-list": !1,
79
+ disabled: t.disabled,
80
+ "before-upload": n.beforeUpload,
81
+ multiple: "",
82
+ "on-success": n.fileSuccess
83
+ }, {
84
+ default: h(() => [...e[1] || (e[1] = [
85
+ i("div", { class: "paraExplainSet-upload-btn w-flex-center w-flex-lrCenter" }, [
86
+ i("span", { class: "bnUIcon bnUIcon-upImg w-font24 w-color-blue" })
87
+ ], -1)
88
+ ])]),
89
+ _: 1
90
+ }, 8, ["action", "disabled", "before-upload", "on-success"]),
91
+ (l(!0), o(b, null, _(t.columnData.extraInfo.operationPictures, (r, c) => (l(), o("div", {
92
+ key: c,
93
+ class: "paraExplainSet-image-wrapper"
94
+ }, [
95
+ u(x, {
96
+ "preview-teleported": "",
97
+ style: { width: "40px", height: "40px" },
98
+ src: r,
99
+ "preview-src-list": t.columnData.extraInfo.operationPictures,
100
+ "show-progress": "",
101
+ "initial-index": c,
102
+ fit: "cover"
103
+ }, null, 8, ["src", "preview-src-list", "initial-index"]),
104
+ t.disabled ? I("", !0) : (l(), o("div", {
105
+ key: 0,
106
+ class: "paraExplainSet-image-delete",
107
+ onClick: (U) => n.deleteImage(c)
108
+ }, [...e[2] || (e[2] = [
109
+ i("span", { class: "bnUIcon bnUIcon-clear w-color-white" }, null, -1)
110
+ ])], 8, P))
111
+ ]))), 128))
112
+ ])
113
+ ]);
114
+ }
115
+ const C = /* @__PURE__ */ g(v, [["render", S], ["__scopeId", "data-v-3ca32118"]]);
116
+ export {
117
+ C as default
118
+ };
@@ -0,0 +1,109 @@
1
+ import { isEmpty as u } from "lodash";
2
+ import { resolveComponent as m, resolveDirective as f, withDirectives as h, openBlock as i, createElementBlock as n, createElementVNode as a, Fragment as g, renderList as _, normalizeClass as y, toDisplayString as F, createVNode as k } from "vue";
3
+ import { _ as v } from "./install-DSQCBsd_.js";
4
+ const x = {
5
+ name: "packageFilter",
6
+ computed: {
7
+ filterColumns() {
8
+ return this.columnList.filter((t) => this.columnData.extraInfo.filterColumn.includes(t.columnCode));
9
+ }
10
+ },
11
+ props: {
12
+ columnData: {
13
+ type: Object,
14
+ default: () => ({})
15
+ },
16
+ postFunc: Function,
17
+ // API请求函数
18
+ extendPost: Object,
19
+ // 额外的请求参数
20
+ columnList: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ disabled: Boolean
25
+ },
26
+ data() {
27
+ return {
28
+ dataFilterByPackage: {},
29
+ lazyLoad: !1,
30
+ //因为下拉菜单多的时候可能会影响加载速度,这里做个延迟加载
31
+ componentWidth: 0
32
+ // 组件宽度
33
+ };
34
+ },
35
+ mounted() {
36
+ var t, o;
37
+ this.dataFilterByPackage = (t = this.columnData.extraInfo) != null && t.dataFilterByPackage ? JSON.parse((o = this.columnData.extraInfo) == null ? void 0 : o.dataFilterByPackage) : {}, this.calculateWidth(), this.filterColumns.length > 4 ? setTimeout(() => {
38
+ this.lazyLoad = !0;
39
+ }, 200) : this.lazyLoad = !0;
40
+ },
41
+ methods: {
42
+ isEmpty: u,
43
+ /**
44
+ * 计算组件宽度
45
+ */
46
+ calculateWidth() {
47
+ this.$nextTick(() => {
48
+ const t = this.$el;
49
+ t && (this.componentWidth = t.offsetWidth);
50
+ });
51
+ },
52
+ /**
53
+ * 滚动到列表底部
54
+ */
55
+ changeDataFilter() {
56
+ this.columnData.extraInfo.dataFilterByPackage = JSON.stringify(this.dataFilterByPackage);
57
+ }
58
+ }
59
+ }, B = { class: "packageFilter" }, w = {
60
+ key: 0,
61
+ class: "packageFilter-list",
62
+ ref: "optionList"
63
+ }, D = ["title"], C = { class: "w-flex-center" }, P = {
64
+ key: 1,
65
+ class: "w-empty"
66
+ };
67
+ function b(t, o, c, L, l, s) {
68
+ const r = m("BnSelect"), d = f("loading");
69
+ return h((i(), n("div", B, [
70
+ o[0] || (o[0] = a("div", { class: "packageFilter-top w-flex-center" }, [
71
+ a("div", { class: "packageFilter-top-title" }, "数据过滤"),
72
+ a("div", { class: "w-margin-left8" }, [
73
+ a("span", { class: "w-font12 w-color-orange" }, "(选择包裹时,不会展示符合下方条件的ERP单据)")
74
+ ])
75
+ ], -1)),
76
+ l.lazyLoad ? (i(), n("div", w, [
77
+ (i(!0), n(g, null, _(s.filterColumns, (e) => (i(), n("div", {
78
+ class: y(["packageFilter-list-item", [l.componentWidth > 400 ? "two" : "one"]])
79
+ }, [
80
+ a("div", {
81
+ class: "w-font14 w-color-black6 w-text-over w-margin-bottom4",
82
+ title: e.name
83
+ }, F(e.name), 9, D),
84
+ a("div", C, [
85
+ k(r, {
86
+ modelValue: l.dataFilterByPackage[e.columnCode],
87
+ "onUpdate:modelValue": (p) => l.dataFilterByPackage[e.columnCode] = p,
88
+ clearable: "",
89
+ filterable: "",
90
+ labelInValue: !1,
91
+ onChange: s.changeDataFilter,
92
+ optionProps: { value: "code", label: "title" },
93
+ multiple: !0,
94
+ options: e.moduleDefinition,
95
+ pathUrl: e.pathUrl,
96
+ "post-data": e.postData,
97
+ postFunc: c.postFunc
98
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "options", "pathUrl", "post-data", "postFunc"])
99
+ ])
100
+ ], 2))), 256))
101
+ ], 512)) : (i(), n("div", P, " 数据加载中... "))
102
+ ])), [
103
+ [d, !l.lazyLoad]
104
+ ]);
105
+ }
106
+ const W = /* @__PURE__ */ v(x, [["render", b], ["__scopeId", "data-v-a92dc360"]]);
107
+ export {
108
+ W as default
109
+ };
@@ -0,0 +1,64 @@
1
+ import { a as i, f as s } from "./formItemFooter-B3nlSwnS.js";
2
+ import { resolveComponent as o, openBlock as d, createElementBlock as r, createVNode as t, createElementVNode as f } from "vue";
3
+ import { _ as p } from "./install-DSQCBsd_.js";
4
+ const h = {
5
+ name: "editSelectCol",
6
+ components: { formItemFooter: s, formItemTop: i },
7
+ props: {
8
+ column: {
9
+ type: Object,
10
+ default: function() {
11
+ return {};
12
+ }
13
+ },
14
+ disabled: Boolean,
15
+ // 接口请求外部转发
16
+ postFunc: Function,
17
+ // 表级别扩展信息
18
+ extraInfo: {
19
+ type: Object,
20
+ default: function() {
21
+ return {};
22
+ }
23
+ },
24
+ taskId: {}
25
+ },
26
+ methods: {
27
+ /**
28
+ * 组件值发生变化
29
+ * */
30
+ changeValue() {
31
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
32
+ }
33
+ }
34
+ }, _ = { class: "w-default-wrap" }, g = { class: "w-default-wrap" };
35
+ function I(b, n, e, x, F, l) {
36
+ const a = o("formItemTop"), c = o("BnSelect"), m = o("formItemFooter");
37
+ return d(), r("div", _, [
38
+ t(a, { column: e.column }, null, 8, ["column"]),
39
+ f("div", g, [
40
+ t(c, {
41
+ modelValue: e.column.value,
42
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => e.column.value = u),
43
+ options: e.column.moduleDefinition,
44
+ multiple: e.column.behaviorType == 5,
45
+ disabled: e.disabled || !e.taskId && e.extraInfo.isAutoAssign == 1 && e.column.columnCode == "executor",
46
+ optionProps: { value: "code", label: "title" },
47
+ pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
48
+ pathUrl: e.column.pathUrl,
49
+ postData: e.column.postData,
50
+ postFunc: e.postFunc,
51
+ placeholder: !e.taskId && e.extraInfo.isAutoAssign && e.column.columnCode == "executor" ? "已开启自动分配" : "请选择",
52
+ clearable: "",
53
+ collapseTags: !1,
54
+ filterable: "",
55
+ onChange: l.changeValue
56
+ }, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc", "placeholder", "onChange"])
57
+ ]),
58
+ t(m, { column: e.column }, null, 8, ["column"])
59
+ ]);
60
+ }
61
+ const k = /* @__PURE__ */ p(h, [["render", I]]);
62
+ export {
63
+ k as default
64
+ };
@@ -0,0 +1,51 @@
1
+ import { a as f, f as _ } from "./formItemFooter-B3nlSwnS.js";
2
+ import { resolveComponent as n, openBlock as o, createElementBlock as t, createVNode as a, createElementVNode as p, Fragment as h, renderList as v, createCommentVNode as F } from "vue";
3
+ import { _ as g } from "./install-DSQCBsd_.js";
4
+ const V = {
5
+ name: "radioForm",
6
+ components: { formItemFooter: _, formItemTop: f },
7
+ props: {
8
+ column: {
9
+ type: Object,
10
+ default: function() {
11
+ return {};
12
+ }
13
+ },
14
+ disabled: Boolean
15
+ },
16
+ methods: {
17
+ changeVal() {
18
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
19
+ }
20
+ }
21
+ }, w = { class: "w-default-wrap radioForm" }, I = { class: "w-default-wrap clearFix" }, b = {
22
+ key: 0,
23
+ class: "w-default-wrap radioForm-empty"
24
+ };
25
+ function x(B, l, e, C, k, m) {
26
+ const r = n("formItemTop"), c = n("BnRadio"), d = n("formItemFooter");
27
+ return o(), t("div", w, [
28
+ a(r, { column: e.column }, null, 8, ["column"]),
29
+ p("div", I, [
30
+ (o(!0), t(h, null, v(e.column.moduleDefinition, (i, u) => (o(), t("div", {
31
+ class: "radioForm-item",
32
+ key: u
33
+ }, [
34
+ a(c, {
35
+ modelValue: e.column.value,
36
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => e.column.value = s),
37
+ optionProps: { value: "code", label: "title" },
38
+ disabled: e.disabled,
39
+ trueData: i,
40
+ onChange: m.changeVal
41
+ }, null, 8, ["modelValue", "disabled", "trueData", "onChange"])
42
+ ]))), 128)),
43
+ e.column.moduleDefinition.length == 0 ? (o(), t("div", b, " 无数据 ")) : F("", !0)
44
+ ]),
45
+ a(d, { column: e.column }, null, 8, ["column"])
46
+ ]);
47
+ }
48
+ const T = /* @__PURE__ */ g(V, [["render", x], ["__scopeId", "data-v-7a529164"]]);
49
+ export {
50
+ T as default
51
+ };
@@ -0,0 +1,58 @@
1
+ import { a as f, f as h } from "./formItemFooter-B3nlSwnS.js";
2
+ import { resolveComponent as l, openBlock as o, createElementBlock as n, createVNode as m, createElementVNode as _, Fragment as p, renderList as k, createBlock as b, createCommentVNode as v } from "vue";
3
+ import { _ as x } from "./install-DSQCBsd_.js";
4
+ const F = {
5
+ name: "checkboxForm",
6
+ components: {
7
+ formItemFooter: h,
8
+ formItemTop: f
9
+ },
10
+ props: {
11
+ column: {
12
+ type: Object,
13
+ default: function() {
14
+ return {};
15
+ }
16
+ },
17
+ disabled: Boolean
18
+ },
19
+ methods: {
20
+ /**
21
+ * Change事件
22
+ * */
23
+ onChange(a, t) {
24
+ this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column, "change");
25
+ }
26
+ }
27
+ }, g = { class: "w-default-wrap checkboxForm" }, C = { class: "w-default-wrap checkboxForm-behavior clearFix" }, w = {
28
+ key: 0,
29
+ class: "w-default-wrap checkboxForm-empty"
30
+ };
31
+ function I(a, t, e, y, B, r) {
32
+ const d = l("formItemTop"), u = l("BnCheck"), s = l("formItemFooter");
33
+ return o(), n("div", g, [
34
+ m(d, { column: e.column }, null, 8, ["column"]),
35
+ _("div", C, [
36
+ (o(!0), n(p, null, k(e.column.moduleDefinition, (c) => (o(), n("div", {
37
+ class: "checkboxForm-item",
38
+ key: c.id
39
+ }, [
40
+ (o(), b(u, {
41
+ key: c.code,
42
+ modelValue: e.column.value,
43
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.column.value = i),
44
+ "true-data": c,
45
+ disabled: e.disabled,
46
+ optionProps: { value: "code", label: "title" },
47
+ onChange: r.onChange
48
+ }, null, 8, ["modelValue", "true-data", "disabled", "onChange"]))
49
+ ]))), 128)),
50
+ e.column.moduleDefinition.length == 0 ? (o(), n("div", w, " 无数据 ")) : v("", !0)
51
+ ]),
52
+ m(s, { column: e.column }, null, 8, ["column"])
53
+ ]);
54
+ }
55
+ const D = /* @__PURE__ */ x(F, [["render", I], ["__scopeId", "data-v-81241159"]]);
56
+ export {
57
+ D as default
58
+ };
@@ -0,0 +1,183 @@
1
+ import { debounce as F } from "lodash";
2
+ import { f as E, a as Q } from "./formItemFooter-B3nlSwnS.js";
3
+ import { resolveComponent as u, openBlock as r, createElementBlock as v, createVNode as i, createElementVNode as b, createBlock as d, withCtx as C, createTextVNode as U, toDisplayString as R, createCommentVNode as D } from "vue";
4
+ import { _ as N } from "./install-DSQCBsd_.js";
5
+ const T = {
6
+ name: "stringForm",
7
+ components: { formItemTop: Q, formItemFooter: E },
8
+ props: {
9
+ column: Object,
10
+ dataBack: Object,
11
+ extraInfo: Object,
12
+ disabled: Boolean,
13
+ postFunc: Function
14
+ },
15
+ data() {
16
+ return {
17
+ lastQueryValue: null,
18
+ lastQueryResults: []
19
+ };
20
+ },
21
+ computed: {
22
+ parsedDataExtra() {
23
+ var l, t;
24
+ const e = ((t = (l = this.column) == null ? void 0 : l.extraInfo) == null ? void 0 : t.dataExtra) || "";
25
+ if (!e) return null;
26
+ try {
27
+ return JSON.parse(e);
28
+ } catch {
29
+ return null;
30
+ }
31
+ },
32
+ isUrlType() {
33
+ var e;
34
+ return !!((e = this.parsedDataExtra) != null && e.searchUrl);
35
+ },
36
+ dataExtraUrl() {
37
+ var e;
38
+ return ((e = this.parsedDataExtra) == null ? void 0 : e.searchUrl) || "";
39
+ }
40
+ },
41
+ methods: {
42
+ /**
43
+ * 输入框输入事件
44
+ * */
45
+ onInput(e) {
46
+ this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.onChange(e);
47
+ },
48
+ /**
49
+ * 输入框Change事件
50
+ * @param {String} type 是否是其他事件类型
51
+ * */
52
+ onChange: F(function(e, l) {
53
+ this.column.value && this.checkValue(), this.$emit("onChange", this.column);
54
+ }, 500),
55
+ /**
56
+ * 输入框onFocus事件
57
+ * */
58
+ onFocus(e) {
59
+ this.$emit("focus", this.column);
60
+ },
61
+ /**
62
+ * 输入框失去焦点事件
63
+ * */
64
+ onBlur() {
65
+ this.$emit("blur", this.column);
66
+ },
67
+ /**
68
+ * 检查输入框的值,并判断是否需要调用检查数据唯一
69
+ *
70
+ * */
71
+ checkValue() {
72
+ try {
73
+ this.column.extraInfo.regular && (new RegExp(this.column.extraInfo.regular).test(this.column.value) || (this.column.error = this.column.extraInfo.paraExplain || "请输入符合要求的" + this.column.name));
74
+ } catch (e) {
75
+ console.log("stringForm.changeErr:" + e);
76
+ }
77
+ },
78
+ /**
79
+ * 远程搜索建议(聚焦时用当前值筛选,输入变更时用输入值筛选)
80
+ */
81
+ querySearch(e, l) {
82
+ if (!e) {
83
+ this.lastQueryValue = null, this.lastQueryResults = [], l([]);
84
+ return;
85
+ }
86
+ if (this.lastQueryValue === e) {
87
+ l(this.lastQueryResults);
88
+ return;
89
+ }
90
+ const t = {
91
+ ...this.column.postData || {},
92
+ column: this.column.columnCode,
93
+ keyword: e || "",
94
+ pageNo: 1,
95
+ pageSize: 50
96
+ }, m = this.dataExtraUrl;
97
+ this.postFunc(m, t).then((s) => {
98
+ var o;
99
+ if (!s.code && ((o = s.data) != null && o.results)) {
100
+ const c = s.data.results.map((n) => ({ value: n.value || n.label || "", ...n }));
101
+ this.lastQueryValue = e, this.lastQueryResults = c, l(c);
102
+ } else
103
+ this.lastQueryValue = e, this.lastQueryResults = [], l([]);
104
+ }).catch(() => {
105
+ this.lastQueryValue = e, this.lastQueryResults = [], l([]);
106
+ });
107
+ },
108
+ handleSelect(e) {
109
+ this.column.value = e.value, this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.$emit("onChange", this.column);
110
+ }
111
+ }
112
+ }, O = { class: "w-default-wrap" }, S = { class: "w-default-wrap" }, j = {
113
+ key: 3,
114
+ class: "w-margin-top6"
115
+ };
116
+ function z(e, l, t, m, s, o) {
117
+ var f, p, x, I, y, V, k, g;
118
+ const c = u("formItemTop"), n = u("el-autocomplete"), h = u("el-input"), B = u("el-button"), _ = u("formItemFooter");
119
+ return r(), v("div", O, [
120
+ i(c, {
121
+ column: t.column,
122
+ dataBack: t.dataBack
123
+ }, null, 8, ["column", "dataBack"]),
124
+ b("div", S, [
125
+ o.isUrlType ? (r(), d(n, {
126
+ key: 0,
127
+ modelValue: t.column.value,
128
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => t.column.value = a),
129
+ "fetch-suggestions": o.querySearch,
130
+ clearable: "",
131
+ class: "w-50",
132
+ placeholder: ((p = (f = t.column) == null ? void 0 : f.extraInfo) == null ? void 0 : p.placeholder) || "",
133
+ onSelect: o.handleSelect
134
+ }, null, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect"])) : ((I = (x = t.column) == null ? void 0 : x.extraInfo) == null ? void 0 : I.dataExtra) == "textarea" ? (r(), d(h, {
135
+ key: 1,
136
+ modelValue: t.column.value,
137
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => t.column.value = a),
138
+ onInput: o.onInput,
139
+ onFocus: o.onFocus,
140
+ onBlur: o.onBlur,
141
+ clearable: "",
142
+ "show-word-limit": "",
143
+ placeholder: ((V = (y = t.column) == null ? void 0 : y.extraInfo) == null ? void 0 : V.placeholder) || "",
144
+ type: "textarea",
145
+ rows: 4,
146
+ maxlength: 500
147
+ }, null, 8, ["modelValue", "onInput", "onFocus", "onBlur", "placeholder"])) : (r(), d(h, {
148
+ key: 2,
149
+ modelValue: t.column.value,
150
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => t.column.value = a),
151
+ disabled: t.disabled,
152
+ placeholder: ((g = (k = t.column) == null ? void 0 : k.extraInfo) == null ? void 0 : g.placeholder) || "",
153
+ onInput: o.onInput,
154
+ onFocus: o.onFocus,
155
+ onBlur: o.onBlur,
156
+ clearable: "",
157
+ "show-word-limit": ""
158
+ }, null, 8, ["modelValue", "disabled", "placeholder", "onInput", "onFocus", "onBlur"])),
159
+ t.dataBack && t.dataBack.key == t.column.columnCode ? (r(), v("div", j, [
160
+ i(B, {
161
+ link: "",
162
+ type: "primary",
163
+ style: { "padding-left": "0" },
164
+ onClick: l[3] || (l[3] = (a) => e.$emit("operate", this.column, "choosePackage"))
165
+ }, {
166
+ default: C(() => [
167
+ U("选择" + R(t.column.name || ""), 1)
168
+ ]),
169
+ _: 1
170
+ })
171
+ ])) : D("", !0)
172
+ ]),
173
+ i(_, {
174
+ column: t.column,
175
+ extraInfo: t.extraInfo,
176
+ onOperate: l[4] || (l[4] = (a, w) => e.$emit("operate", a, w))
177
+ }, null, 8, ["column", "extraInfo"])
178
+ ]);
179
+ }
180
+ const H = /* @__PURE__ */ N(T, [["render", z]]);
181
+ export {
182
+ H as default
183
+ };
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ .radioForm-empty[data-v-7a529164]{width:330px;line-height:32px;text-align:center;font-size:12px;color:#999}.radioForm-item[data-v-7a529164]{display:inline-block;line-height:32px;height:32px;min-width:200px;margin-right:16px}.radioForm-item .radio-box-label[data-v-7a529164]{width:100%;box-sizing:border-box;height:32px}.radioForm .radioForm-4[data-v-7a529164]{width:calc(25% - 16px);min-width:auto}.radioForm-evaluate[data-v-7a529164]{min-width:150px}
@@ -0,0 +1 @@
1
+ .checkboxForm-title[data-v-81241159]{line-height:24px!important;margin-bottom:8px;font-size:14px;color:#666}.checkboxForm-tips[data-v-81241159]{line-height:32px;font-size:12px}.checkboxForm-item[data-v-81241159]{display:inline-block;width:calc(33% - 16px);line-height:32px;height:32px;min-width:200px;margin-right:16px;vertical-align:middle}.checkboxForm-empty[data-v-81241159]{width:330px;line-height:32px;text-align:center;font-size:12px;color:#999}
@@ -0,0 +1 @@
1
+ .fileForm-btn[data-v-ce213ba4]{width:257px;height:20px;padding:5px 16px;border:1px solid rgba(0,0,0,.15);box-sizing:content-box;border-radius:2px;color:#666}.fileForm[data-v-ce213ba4] .fileForm-upload .el-upload{display:inline-block}.fileForm[data-v-ce213ba4] .fileForm-upload .el-upload-dragger{border:none;width:auto;height:auto;border-radius:0;padding:0}.fileForm-list[data-v-ce213ba4]{position:relative}.fileForm[data-v-ce213ba4] .fileForm-input{width:145px;display:inline-block}.fileForm[data-v-ce213ba4] .fileForm-input .el-input__wrapper{border:1px dashed rgba(0,0,0,.15)}.fileForm-tip[data-v-ce213ba4]{margin-left:8px;display:inline-block;font-size:12px;line-height:32px;color:#00000040}.fileForm-progress[data-v-ce213ba4]{width:100%;max-width:444px;margin-top:8px}
@@ -0,0 +1 @@
1
+ .childFormFile-btn[data-v-a1b3b6de]{width:257px;height:20px;padding:5px 16px;border:1px solid rgba(0,0,0,.15);box-sizing:content-box;border-radius:2px;color:#666}.childFormFile[data-v-a1b3b6de] .childFormFile-upload .el-upload{display:inline-block}.childFormFile[data-v-a1b3b6de] .childFormFile-upload .el-upload-dragger{border:none;width:auto;height:auto;border-radius:0;padding:0}.childFormFile-list[data-v-a1b3b6de]{position:relative}.childFormFile[data-v-a1b3b6de] .childFormFile-input{width:145px;display:inline-block}.childFormFile[data-v-a1b3b6de] .childFormFile-input .el-input__wrapper{border:1px dashed rgba(0,0,0,.15)}.childFormFile-tip[data-v-a1b3b6de]{margin-left:8px;display:inline-block;font-size:12px;line-height:32px;color:#00000040}.childFormFile-progress[data-v-a1b3b6de]{width:100%;max-width:444px;margin-top:8px}.inventory[data-v-7c5817ba]{min-height:46px;padding:10px;border:1px solid #eee}.childFormBody-file[data-v-60725962]{order:1;display:flex;align-items:center}.childFormBody-file-icon[data-v-60725962]{font-size:22px}.childFormBody-file-view[data-v-60725962]{width:calc(100% - 20px);overflow:hidden}.childFormBody-td[data-v-60725962]{flex-grow:1}.childFormBody-operate[data-v-60725962]{display:flex;align-items:center}
@@ -0,0 +1 @@
1
+ .paraExplainSet[data-v-3ca32118]{width:100%}.paraExplainSet-upload[data-v-3ca32118]{width:40px;height:40px}.paraExplainSet-upload-btn[data-v-3ca32118]{width:40px;height:40px;border:1px solid rgba(0,0,0,.12);box-shadow:0 0 12px #0000001f}.paraExplainSet-image-wrapper[data-v-3ca32118]{position:relative;width:40px;height:40px}.paraExplainSet-image-wrapper:hover .paraExplainSet-image-delete[data-v-3ca32118]{opacity:1}.paraExplainSet-image-delete[data-v-3ca32118]{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background-color:#0009;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .2s;z-index:10}.paraExplainSet-image-delete[data-v-3ca32118]:hover{background-color:#000c}.paraExplainSet-image-delete .el-icon-close[data-v-3ca32118]{color:#fff;font-size:12px}
@@ -0,0 +1 @@
1
+ .childrenSetOpt-top[data-v-290e160f]{height:32px;font-size:14px}.childrenSetOpt-top-title[data-v-290e160f]{font-weight:500}.childrenSetOpt-list[data-v-290e160f]{margin-top:10px;padding-right:10px}.childrenSetOpt-list .el-scrollbar__view>div[data-v-290e160f]{display:flex;flex-wrap:wrap;gap:10px}.childrenSetOpt-list-item[data-v-290e160f]{position:relative;cursor:pointer;background:#ebeef5;border-radius:6px;padding:10px}.childrenSetOpt-list-item.two[data-v-290e160f]{width:calc(50% - 5px)}.childrenSetOpt-list-item.one[data-v-290e160f]{width:100%}.childrenSetOpt-list-item[data-v-290e160f]:hover{background:#e4e7ed;box-shadow:0 0 6px #0000001f}.childrenSetOpt-list-item-content[data-v-290e160f]{flex:1;min-width:0;overflow:hidden}.childrenSetOpt-list-item-text[data-v-290e160f]{flex:1;min-width:0}.childrenSetOpt-list-item-memo[data-v-290e160f]{font-size:12px;padding:12px 0 4px 22px}.childrenSetOpt-list-item-drag[data-v-290e160f]{padding-right:8px;flex-shrink:0}
@@ -0,0 +1 @@
1
+ .packageFilter-top[data-v-a92dc360]{height:32px;font-size:14px}.packageFilter-top-title[data-v-a92dc360]{font-weight:500}.packageFilter-list[data-v-a92dc360]{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;max-height:300px;overflow-y:auto}.packageFilter-list-item[data-v-a92dc360]{position:relative;cursor:pointer;background:#ebeef5;border-radius:6px;padding:10px}.packageFilter-list-item.two[data-v-a92dc360]{width:calc(50% - 5px)}.packageFilter-list-item.one[data-v-a92dc360]{width:100%}.packageFilter-list-item[data-v-a92dc360]:hover{background:#e4e7ed;box-shadow:0 0 6px #0000001f}