@bytenew/bn-bus-ui 1.1.461 → 1.1.463

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 (167) hide show
  1. package/install.js +134 -0
  2. package/package.json +20 -4
  3. package/packages/BnAddress/index.vue +141 -0
  4. package/packages/BnAddressParse/index.vue +75 -0
  5. package/packages/BnAdvancedFilter/BnFilterView.vue +145 -0
  6. package/packages/BnAdvancedFilter/index.vue +345 -0
  7. package/packages/BnAdvancedFilter/util.js +171 -0
  8. package/packages/BnCascader/BnCascader.vue +543 -0
  9. package/packages/BnCascader/BnCascaderPanel.vue +1331 -0
  10. package/packages/BnCascader/cascaderDisplay.js +102 -0
  11. package/packages/BnCheck/BnCheck.vue +253 -0
  12. package/packages/BnColumnConfig/columnConfigDialog.vue +134 -0
  13. package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +143 -0
  14. package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +314 -0
  15. package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +243 -0
  16. package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +114 -0
  17. package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +210 -0
  18. package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +126 -0
  19. package/packages/BnColumnConfig/component/packageFilter/index.vue +141 -0
  20. package/packages/BnColumnConfig/component/paraExplainSet/index.vue +156 -0
  21. package/packages/BnColumnConfig/component/setOption/setOption.vue +321 -0
  22. package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +277 -0
  23. package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +144 -0
  24. package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +642 -0
  25. package/packages/BnColumnConfig/data.js +129 -0
  26. package/packages/BnColumnConfig/index.scss +23 -0
  27. package/packages/BnColumnConfig/index.vue +309 -0
  28. package/packages/BnCondVal/BnCondVal.vue +112 -0
  29. package/packages/BnCondVal/itemVal/dateRegVal.vue +39 -0
  30. package/packages/BnCondVal/itemVal/dateVal.vue +39 -0
  31. package/packages/BnCondVal/itemVal/numRegVal.vue +67 -0
  32. package/packages/BnCondVal/itemVal/numVal.vue +44 -0
  33. package/packages/BnCondVal/itemVal/relationVal.vue +73 -0
  34. package/packages/BnCondVal/itemVal/selectColumnVal.vue +58 -0
  35. package/packages/BnCondVal/itemVal/selectVal.vue +59 -0
  36. package/packages/BnCondVal/itemVal/stringVal.vue +156 -0
  37. package/packages/BnCondition/index.vue +551 -0
  38. package/packages/BnCondition/util.js +232 -0
  39. package/packages/BnDatePicker/BnDatePicker.vue +194 -0
  40. package/packages/BnDrop/BnDrop.vue +917 -0
  41. package/packages/BnEmptyTip/BnEmptyTip.vue +107 -0
  42. package/packages/BnExportOrder/BnExportOrder.vue +241 -0
  43. package/packages/BnExportOrder/validatorCode.vue +94 -0
  44. package/packages/BnFileView/BnFileView.vue +271 -0
  45. package/packages/BnFileView/FileDetail.vue +125 -0
  46. package/packages/BnFileView/videoPreview.vue +70 -0
  47. package/packages/BnFilterOption/BnFilterOption.vue +160 -0
  48. package/packages/BnFunExpr/BnFunExpr.vue +608 -0
  49. package/packages/BnImportOrder/BnImportOrder.vue +323 -0
  50. package/packages/BnImportTemplate/BnImportTemplate.vue +866 -0
  51. package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
  52. package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
  53. package/packages/BnImportTemplate/assets/xls.png +0 -0
  54. package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +198 -0
  55. package/packages/BnImportTemplate/components/TemplateEditDialog.vue +340 -0
  56. package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +401 -0
  57. package/packages/BnImportTemplate/components/TemplateListDialog.vue +297 -0
  58. package/packages/BnInpNum/BnInpNum.vue +165 -0
  59. package/packages/BnMenus/BnMenus.vue +502 -0
  60. package/packages/BnMenus/MenuItem.vue +321 -0
  61. package/packages/BnOrderCard/BnOrderCard.vue +389 -0
  62. package/packages/BnOrderCard/orderRemark.vue +178 -0
  63. package/packages/BnOrderCard/util.js +94 -0
  64. package/packages/BnOrderDetail/BnOrderDetail.vue +338 -0
  65. package/packages/BnOrderDetail/filterLogByUser.vue +108 -0
  66. package/packages/BnOrderDetail/orderLogs.vue +53 -0
  67. package/packages/BnOrderDetail/showSubForm/index.vue +41 -0
  68. package/packages/BnOrderDetail/showSubForm/showChildTable.vue +61 -0
  69. package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +131 -0
  70. package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +84 -0
  71. package/packages/BnOrderShare/index.vue +378 -0
  72. package/packages/BnOrderShare/shareUrlInp.vue +54 -0
  73. package/packages/BnRadio/BnRadio.vue +181 -0
  74. package/packages/BnRelation/BnRelation.vue +120 -0
  75. package/packages/BnSelect/BnSelect.vue +485 -0
  76. package/packages/BnSmartForm/BnBatchForm.vue +334 -0
  77. package/packages/BnSmartForm/BnBatchFormDialog.vue +423 -0
  78. package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +57 -0
  79. package/packages/BnSmartForm/BnSmartElf/index.vue +95 -0
  80. package/packages/BnSmartForm/BnSmartFormPsychic.js +629 -0
  81. package/packages/BnSmartForm/BnSmartFormUtil.js +524 -0
  82. package/packages/BnSmartForm/addressForm/index.vue +73 -0
  83. package/packages/BnSmartForm/checkboxForm/index.vue +99 -0
  84. package/packages/BnSmartForm/childrenForm/childFormFile.vue +237 -0
  85. package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +260 -0
  86. package/packages/BnSmartForm/childrenForm/index.vue +110 -0
  87. package/packages/BnSmartForm/childrenForm/searchInventory.vue +115 -0
  88. package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +451 -0
  89. package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +229 -0
  90. package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +84 -0
  91. package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +158 -0
  92. package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +307 -0
  93. package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +84 -0
  94. package/packages/BnSmartForm/choosePackage/choosePackage.vue +361 -0
  95. package/packages/BnSmartForm/dateDualForm/index.vue +37 -0
  96. package/packages/BnSmartForm/dateForm/index.vue +38 -0
  97. package/packages/BnSmartForm/fileForm/fileFormData.js +50 -0
  98. package/packages/BnSmartForm/fileForm/index.vue +240 -0
  99. package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +38 -0
  100. package/packages/BnSmartForm/formItemTop/formItemTop.vue +42 -0
  101. package/packages/BnSmartForm/index.vue +1201 -0
  102. package/packages/BnSmartForm/numberForm/index.vue +63 -0
  103. package/packages/BnSmartForm/radioForm/index.vue +72 -0
  104. package/packages/BnSmartForm/receiveForm/index.vue +112 -0
  105. package/packages/BnSmartForm/relationForm/index.vue +82 -0
  106. package/packages/BnSmartForm/scoreForm/index.vue +39 -0
  107. package/packages/BnSmartForm/selectForm/index.vue +55 -0
  108. package/packages/BnSmartForm/showValForm/index.vue +42 -0
  109. package/packages/BnSmartForm/showValForm/showValFormTable.vue +104 -0
  110. package/packages/BnSmartForm/smartFormsCommon.scss +43 -0
  111. package/packages/BnSmartForm/stringForm/index.vue +170 -0
  112. package/packages/BnVirtPopover/index.vue +319 -0
  113. package/packages/BnWebLog/BnWebLog.vue +140 -0
  114. package/packages/BnWorkSettingDrop/advancedOptions.js +112 -0
  115. package/packages/BnWorkSettingDrop/benBenAIUtil.js +89 -0
  116. package/packages/BnWorkSettingDrop/index.vue +292 -0
  117. package/packages/font/iconfont.css +243 -0
  118. package/packages/font/iconfont.ttf +0 -0
  119. package/packages/font/iconfont.woff +0 -0
  120. package/packages/font/iconfont.woff2 +0 -0
  121. package/utils/addressParse-old.js +645 -0
  122. package/utils/addressParse.js +735 -0
  123. package/utils/config.js +68 -0
  124. package/utils/index.js +1171 -0
  125. package/dist/assocTableSearch-C14i_zJO.js +0 -349
  126. package/dist/assocTableSearch.css +0 -1
  127. package/dist/bn-bus-ui.es.js +0 -65
  128. package/dist/bn-bus-ui.umd.js +0 -49
  129. package/dist/chooseIPaasData-Cl_5qkFA.js +0 -391
  130. package/dist/chooseIPaasData.css +0 -1
  131. package/dist/defaultSet-I4xpf8a4.js +0 -297
  132. package/dist/defaultSet.css +0 -1
  133. package/dist/fileFormData-D_Q1vylE.js +0 -53
  134. package/dist/formItemFooter-CTA7rDtV.js +0 -108
  135. package/dist/formItemFooter.css +0 -1
  136. package/dist/funcExprDialog-Cm5BiRM3.js +0 -139
  137. package/dist/funcExprDialog.css +0 -1
  138. package/dist/index-B6b4uj8v.js +0 -51
  139. package/dist/index-BWdkDTbz.js +0 -109
  140. package/dist/index-BdZ1zOap.js +0 -89
  141. package/dist/index-BdzNjjMC.js +0 -64
  142. package/dist/index-BfpZqab2.js +0 -66
  143. package/dist/index-BmkiB4hr.js +0 -66
  144. package/dist/index-Br1sqCoo.js +0 -58
  145. package/dist/index-C9qrl-yc.js +0 -183
  146. package/dist/index-CXFJXCn5.js +0 -746
  147. package/dist/index-DF114jZq.js +0 -135
  148. package/dist/index-DFPfZ_Il.js +0 -178
  149. package/dist/index-DSEtu7TN.js +0 -44
  150. package/dist/index-Did0UUWV.js +0 -221
  151. package/dist/index-DrPj-tmI.js +0 -45
  152. package/dist/index-DzDf9s2W.js +0 -89
  153. package/dist/index-LnjudNEI.js +0 -118
  154. package/dist/index-ObCfCmDT.js +0 -45
  155. package/dist/index.css +0 -1
  156. package/dist/index2.css +0 -1
  157. package/dist/index3.css +0 -1
  158. package/dist/index4.css +0 -1
  159. package/dist/index5.css +0 -1
  160. package/dist/index6.css +0 -1
  161. package/dist/index7.css +0 -1
  162. package/dist/install-C-scqkds.js +0 -23103
  163. package/dist/install.css +0 -1
  164. package/dist/setOption-CSnWzOny.js +0 -329
  165. package/dist/setOption.css +0 -1
  166. package/dist/setRelationOption-CJcHdfaa.js +0 -5217
  167. package/dist/setRelationOption.css +0 -1
@@ -1,135 +0,0 @@
1
- import { debounce as v } from "lodash";
2
- import { f, a as b } from "./formItemFooter-CTA7rDtV.js";
3
- import { B as w } from "./index-DzDf9s2W.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-C-scqkds.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
- };
@@ -1,178 +0,0 @@
1
- import { a as b, f as I } from "./formItemFooter-CTA7rDtV.js";
2
- import { _ as F, a5 as v } from "./install-C-scqkds.js";
3
- import { f as w } from "./fileFormData-D_Q1vylE.js";
4
- import { resolveComponent as o, openBlock as m, createElementBlock as y, createBlock as N, createCommentVNode as x, createElementVNode as a, createVNode as i, withCtx as V, createTextVNode as T, toDisplayString as r, withDirectives as B, vShow as C } from "vue";
5
- const D = {
6
- name: "FileForm",
7
- components: { formItemFooter: I, formItemTop: b },
8
- props: {
9
- column: { type: Object, default: () => ({}) },
10
- disabled: Boolean,
11
- // 隐藏头部
12
- hiddenTop: Boolean
13
- },
14
- data() {
15
- return {
16
- fileType: this.column.fileType || w,
17
- pasteValue: "",
18
- pasteImgList: [],
19
- //用来存放粘贴的图片
20
- // 上传进度
21
- uploadProgress: 0,
22
- uploadFileCount: 0,
23
- //记录上传次数,限制最多上传5个
24
- uploadFileNumber: this.column.uploadFileNumber || 10,
25
- //可上传附件那个数
26
- showLimit: 15,
27
- //单文件最大M数
28
- uploadAction: "/v2/attachment/upload",
29
- uploadData: { source: "task" }
30
- };
31
- },
32
- methods: {
33
- /**
34
- * 上传成功
35
- * */
36
- fileSuccess(t) {
37
- if (this.column.error = "", this.uploadProgress = 0, t.code)
38
- this.$message({
39
- message: t.msg,
40
- type: "warning"
41
- });
42
- else {
43
- const e = {
44
- title: t.data.fileName,
45
- id: t.data.id,
46
- code: t.data.id,
47
- size: t.data.fileSize,
48
- type: t.data.suffix,
49
- url: t.data.url
50
- };
51
- this.column.value.length < this.uploadFileNumber ? (this.column.value.push(e), this.$emit("onChange", this.column)) : this.$message({
52
- message: `上传文件个数不能超过${this.uploadFileNumber}个`,
53
- type: "warning"
54
- }), this.uploadFileCount = this.column.value.length;
55
- }
56
- },
57
- /**
58
- * 附件上传前
59
- * */
60
- beforeUpload(t) {
61
- if (this.column.value.length >= this.uploadFileNumber)
62
- return this.$message({
63
- message: `上传文件个数不能超过${this.uploadFileNumber}个`,
64
- type: "warning"
65
- }), !1;
66
- const e = 50, s = 1048576 * e;
67
- if (t.size > s)
68
- return this.$message({
69
- message: `上传文件大小不能超出${e}MB`,
70
- type: "warning"
71
- }), !1;
72
- const u = t.name.split(".").pop().toLowerCase();
73
- return this.fileType.includes(u) ? (this.uploadFileCount++, !0) : (this.$message({
74
- message: "上传的文件格式不支持",
75
- type: "warning"
76
- }), !1);
77
- },
78
- handleUploadProgress(t) {
79
- this.uploadProgress = Math.round(t.percent);
80
- },
81
- //粘贴图片到编辑器,事件处理方法,主要用于事件销毁
82
- pasteEvent(t) {
83
- if (this.column.value.length >= this.uploadFileNumber)
84
- return this.$message({
85
- message: `上传文件个数不能超过${this.uploadFileNumber}个`,
86
- type: "warning"
87
- }), !1;
88
- this.column.error = "", this.pasteImgList.push(t), v(t, this.column.pathUrl || this.uploadAction).then((e) => {
89
- if (e.code)
90
- this.$message({
91
- message: e.msg,
92
- type: "warning"
93
- });
94
- else {
95
- const s = {
96
- title: e.data.fileName,
97
- id: e.data.id,
98
- code: e.data.id,
99
- size: e.data.fileSize,
100
- type: e.data.suffix,
101
- url: e.data.url
102
- };
103
- this.column.value.push(s), this.$emit("onChange", this.column), this.column.value.length >= this.uploadFileNumber && (this.pasteImgList = []);
104
- }
105
- });
106
- }
107
- },
108
- mounted() {
109
- this.$refs.pasteImgInput && this.$refs.pasteImgInput.$el && this.$refs.pasteImgInput.$el.addEventListener("paste", this.pasteEvent);
110
- },
111
- //实例销毁前
112
- beforeDestroy() {
113
- this.$refs.pasteImgInput && this.$refs.pasteImgInput.$el && this.$refs.pasteImgInput.$el.removeEventListener(
114
- "paste",
115
- this.pasteEvent
116
- );
117
- }
118
- }, U = { class: "fileForm" }, E = { class: "" }, L = { class: "fileForm-tip" };
119
- function S(t, e, s, u, l, n) {
120
- const p = o("formItemTop"), d = o("el-upload"), c = o("el-input"), h = o("el-progress"), f = o("BnFileView"), g = o("formItemFooter");
121
- return m(), y("div", U, [
122
- s.hiddenTop ? x("", !0) : (m(), N(p, {
123
- key: 0,
124
- column: s.column
125
- }, null, 8, ["column"])),
126
- a("div", E, [
127
- i(d, {
128
- class: "fileForm-upload",
129
- ref: "uploadInput",
130
- drag: "",
131
- action: s.column.pathUrl || l.uploadAction,
132
- "show-file-list": !1,
133
- disabled: s.disabled,
134
- "before-upload": n.beforeUpload,
135
- multiple: "",
136
- data: l.uploadData,
137
- "on-progress": n.handleUploadProgress,
138
- "on-success": n.fileSuccess
139
- }, {
140
- default: V(() => [...e[1] || (e[1] = [
141
- a("div", { class: "fileForm-btn" }, [
142
- a("span", { class: "bnUIcon bnUIcon-upload" }),
143
- T(" 选择或拖拽上传文件 ")
144
- ], -1)
145
- ])]),
146
- _: 1
147
- }, 8, ["action", "disabled", "before-upload", "data", "on-progress", "on-success"]),
148
- i(c, {
149
- modelValue: l.pasteValue,
150
- "onUpdate:modelValue": e[0] || (e[0] = (_) => l.pasteValue = _),
151
- ref: "pasteImgInput",
152
- placeholder: "复制粘贴上传截图",
153
- class: "fileForm-input",
154
- disabled: s.disabled
155
- }, null, 8, ["modelValue", "disabled"]),
156
- a("span", L, "最多可上传" + r(l.uploadFileNumber) + "个文件,单个文件不超过" + r(l.showLimit) + "M", 1)
157
- ]),
158
- B(i(h, {
159
- style: { width: "100%", "max-width": "444px" },
160
- percentage: l.uploadProgress,
161
- class: "fileForm-progress"
162
- }, null, 8, ["percentage"]), [
163
- [C, l.uploadProgress > 0]
164
- ]),
165
- a("div", null, [
166
- i(f, {
167
- "file-list": s.column.value,
168
- isDel: !s.disabled,
169
- row: "2"
170
- }, null, 8, ["file-list", "isDel"])
171
- ]),
172
- i(g, { column: s.column }, null, 8, ["column"])
173
- ]);
174
- }
175
- const A = /* @__PURE__ */ F(D, [["render", S], ["__scopeId", "data-v-ce213ba4"]]);
176
- export {
177
- A as default
178
- };
@@ -1,44 +0,0 @@
1
- import { a as d, f as s } from "./formItemFooter-CTA7rDtV.js";
2
- import { resolveComponent as o, openBlock as u, createElementBlock as i, createVNode as n, createElementVNode as f } from "vue";
3
- import { _ } from "./install-C-scqkds.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
- };
@@ -1,221 +0,0 @@
1
- import { isEmpty as O, cloneDeep as T } from "lodash";
2
- import { _ as U, W as F } from "./install-C-scqkds.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 V, createBlock as $, defineAsyncComponent as D } from "vue";
4
- const W = {
5
- name: "childrenFormSetting",
6
- components: {
7
- columnConfigDialog: D(() => import("./install-C-scqkds.js").then((t) => t.V)),
8
- assocTableSearch: D(() => import("./assocTableSearch-C14i_zJO.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
- }, B = { 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", B, [
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: V(["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(), $(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(W, [["render", Y], ["__scopeId", "data-v-290e160f"]]);
219
- export {
220
- oe as default
221
- };
@@ -1,45 +0,0 @@
1
- import { f as d, a as s } from "./formItemFooter-CTA7rDtV.js";
2
- import { debounce as f } from "lodash";
3
- import { resolveComponent as n, openBlock as i, createElementBlock as _, createVNode as t, createElementVNode as p } from "vue";
4
- import { _ as x } from "./install-C-scqkds.js";
5
- const h = {
6
- name: "numberForm",
7
- components: { formItemTop: s, formItemFooter: d },
8
- props: {
9
- column: {
10
- type: Object,
11
- default: function() {
12
- return {};
13
- }
14
- },
15
- disabled: Boolean
16
- },
17
- methods: {
18
- /**
19
- * 输入框Change事件
20
- * */
21
- onChange: f(function(m, o) {
22
- this.$emit("onChange", this.column);
23
- }, 500)
24
- }
25
- }, I = { class: "w-default-wrap" }, b = { class: "w-default-wrap" };
26
- function v(m, o, e, C, g, a) {
27
- const l = n("formItemTop"), c = n("el-rate"), r = n("formItemFooter");
28
- return i(), _("div", I, [
29
- t(l, { column: e.column }, null, 8, ["column"]),
30
- p("div", b, [
31
- t(c, {
32
- modelValue: e.column.value,
33
- "onUpdate:modelValue": o[0] || (o[0] = (u) => e.column.value = u),
34
- disabled: e.disabled,
35
- onChange: a.onChange,
36
- max: e.column.extraInfo.valueMaxSize ? parseInt(e.column.extraInfo.valueMaxSize) : 5
37
- }, null, 8, ["modelValue", "disabled", "onChange", "max"])
38
- ]),
39
- t(r, { column: e.column }, null, 8, ["column"])
40
- ]);
41
- }
42
- const T = /* @__PURE__ */ x(h, [["render", v]]);
43
- export {
44
- T as default
45
- };