kouxiangtang 0.1.29-beta.2 → 0.1.30
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.
- package/dist/{AttachmentUploader-Gl4uwpi0.js → AttachmentUploader-CqZvNLjp.js} +2 -2
- package/dist/{AttachmentUploader-Gl4uwpi0.js.map → AttachmentUploader-CqZvNLjp.js.map} +1 -1
- package/dist/{ImageUploader-Ecxbu5yB.js → ImageUploader-BO9H3K96.js} +2 -2
- package/dist/{ImageUploader-Ecxbu5yB.js.map → ImageUploader-BO9H3K96.js.map} +1 -1
- package/dist/{ImagesUploader-DiaKghBH.js → ImagesUploader-HPjV03pF.js} +2 -2
- package/dist/{ImagesUploader-DiaKghBH.js.map → ImagesUploader-HPjV03pF.js.map} +1 -1
- package/dist/{RichTextEditor-bJlEkb34.js → RichTextEditor-B2M7zkFs.js} +2 -2
- package/dist/{RichTextEditor-bJlEkb34.js.map → RichTextEditor-B2M7zkFs.js.map} +1 -1
- package/dist/{config-BNxcHvPM.js → config-BO5zOtvQ.js} +3 -3
- package/dist/{config-BNxcHvPM.js.map → config-BO5zOtvQ.js.map} +1 -1
- package/dist/{config-DSE87t_O.js → config-BU1ASpQ3.js} +2 -2
- package/dist/{config-DSE87t_O.js.map → config-BU1ASpQ3.js.map} +1 -1
- package/dist/{config-Bbs_ly6P.js → config-Bu9X2qA5.js} +2 -2
- package/dist/{config-Bbs_ly6P.js.map → config-Bu9X2qA5.js.map} +1 -1
- package/dist/{config-Bmby6rfL.js → config-BxKEHQF5.js} +3 -3
- package/dist/{config-Bmby6rfL.js.map → config-BxKEHQF5.js.map} +1 -1
- package/dist/{config-Dh16WhJb.js → config-BymsJwle.js} +2 -2
- package/dist/{config-Dh16WhJb.js.map → config-BymsJwle.js.map} +1 -1
- package/dist/{config-BMdtWu5R.js → config-CIz8N_B8.js} +2 -2
- package/dist/{config-BMdtWu5R.js.map → config-CIz8N_B8.js.map} +1 -1
- package/dist/{config-CDG1L4Oi.js → config-C_03mBxe.js} +2 -2
- package/dist/{config-CDG1L4Oi.js.map → config-C_03mBxe.js.map} +1 -1
- package/dist/{config-ssH8d7K9.js → config-Cbunz5c7.js} +2 -2
- package/dist/{config-ssH8d7K9.js.map → config-Cbunz5c7.js.map} +1 -1
- package/dist/{config-Dr_SXi5U.js → config-CqXtSzw0.js} +2 -2
- package/dist/{config-Dr_SXi5U.js.map → config-CqXtSzw0.js.map} +1 -1
- package/dist/{config-BSYmo88x.js → config-CrgMgLvC.js} +2 -2
- package/dist/{config-BSYmo88x.js.map → config-CrgMgLvC.js.map} +1 -1
- package/dist/{config-B04hLt3e.js → config-D0Q_3HIz.js} +2 -2
- package/dist/{config-B04hLt3e.js.map → config-D0Q_3HIz.js.map} +1 -1
- package/dist/{config-Xk01hDVk.js → config-D5KDDUDX.js} +2 -2
- package/dist/{config-Xk01hDVk.js.map → config-D5KDDUDX.js.map} +1 -1
- package/dist/{config-CEbwLzea.js → config-DFmMEuSd.js} +2 -2
- package/dist/{config-CEbwLzea.js.map → config-DFmMEuSd.js.map} +1 -1
- package/dist/{config-C8MFDKwG.js → config-De6kHEXC.js} +2 -2
- package/dist/{config-C8MFDKwG.js.map → config-De6kHEXC.js.map} +1 -1
- package/dist/{config-KtTeOyV6.js → config-DpQsB0Wn.js} +2 -2
- package/dist/{config-KtTeOyV6.js.map → config-DpQsB0Wn.js.map} +1 -1
- package/dist/{config-CE-gN7KM.js → config-Dxg5dNtI.js} +2 -2
- package/dist/{config-CE-gN7KM.js.map → config-Dxg5dNtI.js.map} +1 -1
- package/dist/{config-yVymOXO_.js → config-HIw7lgrK.js} +2 -2
- package/dist/{config-yVymOXO_.js.map → config-HIw7lgrK.js.map} +1 -1
- package/dist/{config-ys3nFgYd.js → config-uXBfJs4O.js} +2 -2
- package/dist/config-uXBfJs4O.js.map +1 -0
- package/dist/{config-DrJPQ_iz.js → config-wqoIRf6T.js} +3 -3
- package/dist/{config-DrJPQ_iz.js.map → config-wqoIRf6T.js.map} +1 -1
- package/dist/{config-DQerJfRt.js → config-xytc8y6s.js} +2 -2
- package/dist/{config-DQerJfRt.js.map → config-xytc8y6s.js.map} +1 -1
- package/dist/{index-lFCbFvdk.js → index-BsT_4hup.js} +53 -58
- package/dist/index-BsT_4hup.js.map +1 -0
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +4 -4
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/dist/config-ys3nFgYd.js.map +0 -1
- package/dist/index-lFCbFvdk.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-DFmMEuSd.js","sources":["../src/framework/field/string/FieldDisplay.vue","../src/framework/field/string/FieldEditor.vue","../src/framework/field/string/config.js"],"sourcesContent":["<template>\r\n <span v-if=\"!isEmpty\"> {{ formattedValue }} </span>\r\n <EmptyTip v-else />\r\n</template>\r\n\r\n<script setup>\r\nimport EmptyTip from \"../../component/EmptyTip.vue\";\r\nimport { ref, watch } from \"vue\";\r\n\r\nconst props = defineProps({\r\n field: {\r\n type: Object,\r\n },\r\n row: {\r\n type: Object,\r\n },\r\n});\r\nconst isEmpty = ref(false);\r\nconst formattedValue = ref(\"...\");\r\n\r\nasync function getName() {\r\n if (props.field?.formatter) {\r\n formattedValue.value = props.field.formatter(props.row);\r\n isEmpty.value = !formattedValue.value;\r\n return;\r\n }\r\n const fields = props.field.code.toString().split(\".\");\r\n const value = fields.reduce((acc, curr) => acc[curr], props.row);\r\n\r\n if (value === undefined || value === null) {\r\n isEmpty.value = true;\r\n } else if (`${value}`.trim() === \"\") {\r\n isEmpty.value = true;\r\n } else {\r\n formattedValue.value = value;\r\n isEmpty.value = false;\r\n }\r\n}\r\n\r\nwatch(() => props.row, getName, { immediate: true });\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","<template>\r\n <el-input\r\n v-model=\"_form.value\"\r\n :type=\"field.type\"\r\n clearable\r\n :disabled=\"props.disabled\"\r\n :placeholder=\"field.placeholder\"\r\n @input=\"change\"\r\n >\r\n <template v-if=\"field.prefix\" #prefix>\r\n <div class=\"annotation\">{{ field.prefix }}</div>\r\n </template>\r\n <template v-if=\"field.suffix\" #suffix>\r\n <div class=\"annotation\">{{ field.suffix }}</div></template\r\n >\r\n </el-input>\r\n</template>\r\n\r\n<script setup>\r\nimport { ElInput } from \"element-plus\";\r\nimport { reactive, watch } from \"vue\";\r\n\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\nconst props = defineProps({\r\n modelValue: [Object, String, Number],\r\n field: Object,\r\n type: String,\r\n disabled: Boolean,\r\n});\r\nconst _form = reactive({ value: props.modelValue });\r\n\r\nfunction change() {\r\n emit(\"update:modelValue\", _form.value);\r\n}\r\n\r\nwatch(\r\n () => props.modelValue,\r\n () => {\r\n _form.value = props.modelValue;\r\n },\r\n { immediate: true },\r\n);\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n.annotation {\r\n color: #606266;\r\n}\r\n</style>\r\n","import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\nimport FieldEditor from \"./FieldEditor.vue\";\r\n\r\nexport default class StringFieldConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.display = FieldDisplay;\r\n this.editor = FieldEditor;\r\n this.formatter = rawConfig.formatter;\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n}\r\n"],"names":["props","__props","isEmpty","ref","formattedValue","getName","_a","value","acc","curr","watch","emit","__emit","_form","reactive","change","StringFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAQRC,IAAUC,EAAI,EAAK,GACnBC,IAAiBD,EAAI,KAAK;AAEhC,mBAAeE,IAAU;;AACvB,WAAIC,IAAAN,EAAM,UAAN,QAAAM,EAAa,WAAW;AAC1B,QAAAF,EAAe,QAAQJ,EAAM,MAAM,UAAUA,EAAM,GAAG,GACtDE,EAAQ,QAAQ,CAACE,EAAe;AAChC;AAAA,MACD;AAED,YAAMG,IADSP,EAAM,MAAM,KAAK,WAAW,MAAM,GAAG,EAC/B,OAAO,CAACQ,GAAKC,MAASD,EAAIC,CAAI,GAAGT,EAAM,GAAG;AAE/D,MAA2BO,KAAU,QAE1B,GAAGA,CAAK,GAAG,KAAI,MAAO,KAD/BL,EAAQ,QAAQ,MAIhBE,EAAe,QAAQG,GACvBL,EAAQ,QAAQ;AAAA,IAEpB;AAEA,WAAAQ,EAAM,MAAMV,EAAM,KAAKK,GAAS,EAAE,WAAW,GAAI,CAAE;;;;;;;;;;;;ACjBnD,UAAMM,IAAOC,GACPZ,IAAQC,GAMRY,IAAQC,EAAS,EAAE,OAAOd,EAAM,WAAY,CAAA;AAElD,aAASe,IAAS;AAChB,MAAAJ,EAAK,qBAAqBE,EAAM,KAAK;AAAA,IACvC;AAEA,WAAAH;AAAA,MACE,MAAMV,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAa,EAAM,QAAQb,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;ACrCe,MAAMgB,UAA0BC,EAAgB;AAAA,EAC7D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUC,GACf,KAAK,SAASC,GACd,KAAK,YAAYH,EAAU,WAE3B,KAAK,qBAAqBA,CAAS;AAAA,EACpC;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as i, F as s } from "./index-
|
|
1
|
+
import { B as i, F as s } from "./index-BsT_4hup.js";
|
|
2
2
|
class u extends i {
|
|
3
3
|
constructor(t, e) {
|
|
4
4
|
super(t, e), this.editable = () => !1, this.isRouter = this.isRouter(t), this.rowQuery = t.rowQuery || (() => ({})), this.display = s, this.fixed = !0, this.checkValidProperties(t);
|
|
@@ -17,4 +17,4 @@ class u extends i {
|
|
|
17
17
|
export {
|
|
18
18
|
u as default
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=config-
|
|
20
|
+
//# sourceMappingURL=config-De6kHEXC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-De6kHEXC.js","sources":["../src/framework/field/row-id/config.js"],"sourcesContent":["import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\n\r\nexport default class RowIdFieldConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.editable = () => false;\r\n this.isRouter = this.isRouter(rawConfig);\r\n this.rowQuery = rawConfig.rowQuery || (() => ({}));\r\n this.display = FieldDisplay;\r\n this.fixed = true;\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n\r\n isRouter(rawConfig) {\r\n const raw = rawConfig.isRouter;\r\n\r\n if (typeof raw == \"boolean\") {\r\n return () => raw;\r\n }\r\n\r\n if (typeof raw == \"function\") {\r\n return raw;\r\n }\r\n\r\n if (typeof raw == \"undefined\") {\r\n return () => true;\r\n }\r\n\r\n throw new Exception(`invalid isRouter : ${raw}`);\r\n }\r\n}\r\n"],"names":["RowIdFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","raw"],"mappings":";AAGe,MAAMA,UAAyBC,EAAgB;AAAA,EAC5D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,WAAW,MAAM,IACtB,KAAK,WAAW,KAAK,SAASD,CAAS,GACvC,KAAK,WAAWA,EAAU,aAAa,OAAO,CAAA,KAC9C,KAAK,UAAUE,GACf,KAAK,QAAQ,IAEb,KAAK,qBAAqBF,CAAS;AAAA,EACpC;AAAA,EAED,SAASA,GAAW;AAClB,UAAMG,IAAMH,EAAU;AAEtB,QAAI,OAAOG,KAAO;AAChB,aAAO,MAAMA;AAGf,QAAI,OAAOA,KAAO;AAChB,aAAOA;AAGT,QAAI,OAAOA,IAAO;AAChB,aAAO,MAAM;AAGf,UAAM,IAAI,UAAU,sBAAsBA,CAAG,EAAE;AAAA,EAChD;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as p, B as f } from "./index-
|
|
1
|
+
import { E as p, B as f } from "./index-BsT_4hup.js";
|
|
2
2
|
import { ref as d, watch as u, openBlock as r, createElementBlock as h, toDisplayString as v, createBlock as m, reactive as _, unref as y } from "vue";
|
|
3
3
|
import { ElTimePicker as V } from "element-plus";
|
|
4
4
|
const b = { key: 0 }, k = {
|
|
@@ -59,4 +59,4 @@ class T extends f {
|
|
|
59
59
|
export {
|
|
60
60
|
T as default
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=config-
|
|
62
|
+
//# sourceMappingURL=config-DpQsB0Wn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-DpQsB0Wn.js","sources":["../src/framework/field/time/FieldDisplay.vue","../src/framework/field/time/FieldEditor.vue","../src/framework/field/time/config.js"],"sourcesContent":["<script setup>\r\nimport EmptyTip from \"../../component/EmptyTip.vue\";\r\nimport { ref, watch } from \"vue\";\r\n\r\nconst props = defineProps({\r\n field: {\r\n type: Object,\r\n },\r\n row: {\r\n type: Object,\r\n },\r\n});\r\nconst isEmpty = ref(false);\r\nconst formattedValue = ref(\"...\");\r\n\r\nasync function getTime() {\r\n const value = props.row[props.field.code];\r\n\r\n if (value === undefined || value === null) {\r\n isEmpty.value = true;\r\n } else if (`${value}`.trim() === \"\") {\r\n isEmpty.value = true;\r\n } else {\r\n formattedValue.value = value;\r\n isEmpty.value = false;\r\n }\r\n}\r\n\r\nwatch(() => props.row, getTime, { immediate: true });\r\n</script>\r\n\r\n<template>\r\n <span v-if=\"!isEmpty\">\r\n {{ formattedValue }}\r\n </span>\r\n <EmptyTip v-else />\r\n</template>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","<template>\r\n <el-time-picker\r\n v-model=\"_form.value\"\r\n :disabled=\"props.disabled\"\r\n :format=\"props.field.format\"\r\n :value-format=\"props.field.format\"\r\n @change=\"change\"\r\n >\r\n </el-time-picker>\r\n</template>\r\n\r\n<script setup>\r\nimport { ElTimePicker } from \"element-plus\";\r\nimport { reactive, watch } from \"vue\";\r\n\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\nconst props = defineProps({\r\n modelValue: String,\r\n field: Object,\r\n disabled: Boolean,\r\n});\r\nconst _form = reactive({ value: props.modelValue });\r\n\r\nfunction change() {\r\n emit(\"update:modelValue\", _form.value);\r\n}\r\n\r\nwatch(\r\n () => props.modelValue,\r\n () => {\r\n _form.value = props.modelValue;\r\n },\r\n { immediate: true },\r\n);\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\nimport FieldEditor from \"./FieldEditor.vue\";\r\n\r\nexport default class TimeFieldConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.display = FieldDisplay;\r\n this.editor = FieldEditor;\r\n this.width = this.computeWidth(rawConfig);\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n\r\n computeWidth(rawConfig) {\r\n if (rawConfig.width) {\r\n return rawConfig.width;\r\n }\r\n\r\n return 200;\r\n }\r\n}\r\n"],"names":["props","__props","isEmpty","ref","formattedValue","getTime","value","watch","emit","__emit","_form","reactive","change","TimeFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;AAIA,UAAMA,IAAQC,GAQRC,IAAUC,EAAI,EAAK,GACnBC,IAAiBD,EAAI,KAAK;AAEhC,mBAAeE,IAAU;AACvB,YAAMC,IAAQN,EAAM,IAAIA,EAAM,MAAM,IAAI;AAExC,MAA2BM,KAAU,QAE1B,GAAGA,CAAK,GAAG,KAAI,MAAO,KAD/BJ,EAAQ,QAAQ,MAIhBE,EAAe,QAAQE,GACvBJ,EAAQ,QAAQ;AAAA,IAEpB;AAEA,WAAAK,EAAM,MAAMP,EAAM,KAAKK,GAAS,EAAE,WAAW,GAAI,CAAE;;;;;;;;;;;ACbnD,UAAMG,IAAOC,GACPT,IAAQC,GAKRS,IAAQC,EAAS,EAAE,OAAOX,EAAM,WAAY,CAAA;AAElD,aAASY,IAAS;AAChB,MAAAJ,EAAK,qBAAqBE,EAAM,KAAK;AAAA,IACvC;AAEA,WAAAH;AAAA,MACE,MAAMP,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAU,EAAM,QAAQV,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;;;AC7Be,MAAMa,UAAwBC,EAAgB;AAAA,EAC3D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUC,GACf,KAAK,SAASC,GACd,KAAK,QAAQ,KAAK,aAAaH,CAAS,GAExC,KAAK,qBAAqBA,CAAS;AAAA,EACpC;AAAA,EAED,aAAaA,GAAW;AACtB,WAAIA,EAAU,QACLA,EAAU,QAGZ;AAAA,EACR;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as w, s as b, E as B, B as C } from "./index-
|
|
1
|
+
import { _ as w, s as b, E as B, B as C } from "./index-BsT_4hup.js";
|
|
2
2
|
import { ref as f, watch as g, openBlock as n, createElementBlock as _, Fragment as V, renderList as x, createBlock as v, unref as h, withCtx as y, createElementVNode as F, normalizeStyle as R, toDisplayString as k, reactive as D, createTextVNode as O } from "vue";
|
|
3
3
|
import { ElTooltip as S, ElRadioGroup as T, ElRadio as $ } from "element-plus";
|
|
4
4
|
import { c as j } from "./color-DbNhHNpt.js";
|
|
@@ -121,4 +121,4 @@ class A extends C {
|
|
|
121
121
|
export {
|
|
122
122
|
A as default
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=config-
|
|
124
|
+
//# sourceMappingURL=config-Dxg5dNtI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-Dxg5dNtI.js","sources":["../src/framework/field/radio-group/FieldDisplay.vue","../src/framework/field/radio-group/FieldEditor.vue","../src/framework/field/radio-group/config.js"],"sourcesContent":["<script setup>\r\nimport { ElTooltip } from \"element-plus\";\r\nimport color from \"../../utils/color\";\r\nimport EmptyTip from \"../../component/EmptyTip.vue\";\r\nimport { ref, watch } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\nimport { setupRouteQuery } from \"../../utils/route-query\";\r\n\r\nconst route = useRoute();\r\nconst routeQuery = setupRouteQuery(route);\r\nconst props = defineProps({\r\n field: {\r\n type: Object,\r\n },\r\n row: {\r\n type: Object,\r\n },\r\n});\r\nconst invalidTip = ref(\"...\");\r\nconst found = ref(false);\r\nconst items = ref([]);\r\n\r\nasync function getRadioName() {\r\n const val = props.row[props.field.code];\r\n const label = props.field.label;\r\n if (val === undefined || val === null) {\r\n invalidTip.value = \"--\";\r\n found.value = false;\r\n return;\r\n }\r\n\r\n const options = await props.field.options(props.row, routeQuery);\r\n if (!options) {\r\n invalidTip.value = `<无>`;\r\n found.value = false;\r\n return;\r\n }\r\n\r\n let radioGroupOptions = \"\";\r\n radioGroupOptions = options.filter((item) => val === item.code); //formattedValue\r\n\r\n if (radioGroupOptions.length === 0) {\r\n invalidTip.value = `<无>`;\r\n found.value = false;\r\n return;\r\n }\r\n\r\n items.value = radioGroupOptions.map((item) => ({\r\n bgColor: color.strToHexColor(`${item.code}-${item.name}`),\r\n code: item.code,\r\n name: item.name,\r\n }));\r\n\r\n found.value = true;\r\n}\r\n\r\nwatch(() => props.row, getRadioName, { immediate: true });\r\n</script>\r\n\r\n<template>\r\n <template v-if=\"found\">\r\n <div class=\"radio-fields\">\r\n <el-tooltip\r\n v-for=\"item in items\"\r\n :content=\"`${item.code}`\"\r\n placement=\"top\"\r\n >\r\n <div class=\"radio-field found\" :style=\"`background: ${item.bgColor}`\">\r\n {{ item.name }}\r\n </div>\r\n </el-tooltip>\r\n </div>\r\n </template>\r\n <EmptyTip v-else :text=\"invalidTip\" />\r\n</template>\r\n\r\n<style scoped lang=\"scss\">\r\n.radio-fields {\r\n display: inline-block;\r\n line-height: inherit;\r\n}\r\n\r\n.radio-field {\r\n font-size: 12px;\r\n padding: 0 6px;\r\n border-radius: 4px;\r\n}\r\n\r\n.found {\r\n color: #fff;\r\n}\r\n</style>\r\n","<template>\r\n <el-radio-group\r\n v-model=\"_form.value\"\r\n style=\"width: 100%\"\r\n :disabled=\"props.disabled\"\r\n placeholder=\"\"\r\n @change=\"change\"\r\n >\r\n <template v-for=\"option in options\" :key=\"option.code\">\r\n <el-radio :label=\"option.code\" :disabled=\"option.disabled\">{{\r\n option.name\r\n }}</el-radio>\r\n </template>\r\n </el-radio-group>\r\n</template>\r\n\r\n<script setup>\r\nimport { ElRadioGroup, ElRadio } from \"element-plus\";\r\nimport { reactive, watch, ref } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\nimport { setupRouteQuery } from \"../../utils/route-query\";\r\n\r\nconst route = useRoute();\r\nconst routeQuery = setupRouteQuery(route);\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\nconst props = defineProps({\r\n modelValue: [String, Number],\r\n field: Object,\r\n type: String,\r\n disabled: Boolean,\r\n formData: Object,\r\n});\r\nconst _form = reactive({ value: props.modelValue });\r\nconst options = ref([]);\r\n\r\nasync function remoteSearch(keyword) {\r\n options.value = await props.field.options(\r\n props.formData,\r\n routeQuery,\r\n keyword,\r\n );\r\n}\r\n\r\nfunction change() {\r\n emit(\"update:modelValue\", _form.value);\r\n if (props?.field?.change) {\r\n props.field.change(_form.value);\r\n }\r\n}\r\n\r\nwatch(\r\n () => props.modelValue,\r\n () => {\r\n _form.value = props.modelValue;\r\n },\r\n { immediate: true },\r\n);\r\nremoteSearch();\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\nimport FieldEditor from \"./FieldEditor.vue\";\r\n\r\nclass RadioGroupFieldConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.options = rawConfig.options || (() => [{ code: 0, name: \"未实现\" }]);\r\n this.formChange = rawConfig.formChange || (() => {});\r\n this.display = FieldDisplay;\r\n this.editor = FieldEditor;\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n}\r\n\r\nexport default RadioGroupFieldConfig;\r\n"],"names":["route","useRoute","routeQuery","setupRouteQuery","props","__props","invalidTip","ref","found","items","getRadioName","val","options","radioGroupOptions","item","color","watch","emit","__emit","_form","reactive","remoteSearch","keyword","change","_a","RadioGroupFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQA,UAAMA,IAAQC,EAAQ,GAChBC,IAAaC,EAAgBH,CAAK,GAClCI,IAAQC,GAQRC,IAAaC,EAAI,KAAK,GACtBC,IAAQD,EAAI,EAAK,GACjBE,IAAQF,EAAI,CAAA,CAAE;AAEpB,mBAAeG,IAAe;AAC5B,YAAMC,IAAMP,EAAM,IAAIA,EAAM,MAAM,IAAI;AAEtC,UADcA,EAAM,MAAM,OACDO,KAAQ,MAAM;AACrC,QAAAL,EAAW,QAAQ,MACnBE,EAAM,QAAQ;AACd;AAAA,MACD;AAED,YAAMI,IAAU,MAAMR,EAAM,MAAM,QAAQA,EAAM,KAAKF,CAAU;AAC/D,UAAI,CAACU,GAAS;AACZ,QAAAN,EAAW,QAAQ,OACnBE,EAAM,QAAQ;AACd;AAAA,MACD;AAED,UAAIK,IAAoB;AAGxB,UAFAA,IAAoBD,EAAQ,OAAO,CAACE,MAASH,MAAQG,EAAK,IAAI,GAE1DD,EAAkB,WAAW,GAAG;AAClC,QAAAP,EAAW,QAAQ,OACnBE,EAAM,QAAQ;AACd;AAAA,MACD;AAED,MAAAC,EAAM,QAAQI,EAAkB,IAAI,CAACC,OAAU;AAAA,QAC7C,SAASC,EAAM,cAAc,GAAGD,EAAK,IAAI,IAAIA,EAAK,IAAI,EAAE;AAAA,QACxD,MAAMA,EAAK;AAAA,QACX,MAAMA,EAAK;AAAA,MACZ,EAAC,GAEFN,EAAM,QAAQ;AAAA,IAChB;AAEA,WAAAQ,EAAM,MAAMZ,EAAM,KAAKM,GAAc,EAAE,WAAW,GAAI,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClCxD,UAAMV,IAAQC,EAAQ,GAChBC,IAAaC,EAAgBH,CAAK,GAClCiB,IAAOC,GACPd,IAAQC,GAORc,IAAQC,EAAS,EAAE,OAAOhB,EAAM,WAAY,CAAA,GAC5CQ,IAAUL,EAAI,CAAA,CAAE;AAEtB,mBAAec,EAAaC,GAAS;AACnC,MAAAV,EAAQ,QAAQ,MAAMR,EAAM,MAAM;AAAA,QAChCA,EAAM;AAAA,QACNF;AAAA,QACAoB;AAAA,MACJ;AAAA,IACA;AAEA,aAASC,IAAS;;AAChB,MAAAN,EAAK,qBAAqBE,EAAM,KAAK,IACjCK,IAAApB,KAAA,gBAAAA,EAAO,UAAP,QAAAoB,EAAc,UAChBpB,EAAM,MAAM,OAAOe,EAAM,KAAK;AAAA,IAElC;AAEA,WAAAH;AAAA,MACE,MAAMZ,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAe,EAAM,QAAQf,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB,GACAiB;;;;;;;;;;;;;;;;;;;;;;;;ACrDA,MAAMI,UAA8BC,EAAgB;AAAA,EAClD,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUD,EAAU,YAAY,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,MAAK,CAAE,IACpE,KAAK,aAAaA,EAAU,eAAe,MAAM;AAAA,IAAE,IACnD,KAAK,UAAUE,GACf,KAAK,SAASC,GAEd,KAAK,qBAAqBH,CAAS;AAAA,EACpC;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as V, B as y } from "./index-
|
|
1
|
+
import { E as V, B as y } from "./index-BsT_4hup.js";
|
|
2
2
|
import { defineAsyncComponent as c, ref as m, watch as p, openBlock as i, createBlock as s, unref as f, reactive as b } from "vue";
|
|
3
3
|
const h = {
|
|
4
4
|
__name: "FieldDisplay",
|
|
@@ -73,4 +73,4 @@ class k extends y {
|
|
|
73
73
|
export {
|
|
74
74
|
k as default
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=config-
|
|
76
|
+
//# sourceMappingURL=config-HIw7lgrK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-HIw7lgrK.js","sources":["../src/framework/field/json/FieldDisplay.vue","../src/framework/field/json/FieldEditor.vue","../src/framework/field/json/config.js"],"sourcesContent":["<script setup>\r\nimport { defineAsyncComponent, ref, watch } from \"vue\";\r\nimport EmptyTip from \"../../component/EmptyTip.vue\";\r\n\r\nconst JsonEditorVue = defineAsyncComponent(() => {\r\n return import(\"json-editor-vue\");\r\n});\r\n\r\nconst props = defineProps({\r\n field: {\r\n type: Object,\r\n },\r\n row: {\r\n type: Object,\r\n },\r\n});\r\n\r\nconst valid = ref(false);\r\nconst formattedValue = ref(\"加载中...\");\r\n\r\nwatch(\r\n () => props.row,\r\n () => {\r\n valid.value = false;\r\n const value = props.row[props.field.code];\r\n if (value === undefined || value === null) {\r\n return;\r\n }\r\n\r\n if (`${value}`.trim() === \"\") {\r\n return;\r\n }\r\n\r\n valid.value = true;\r\n formattedValue.value = value;\r\n },\r\n { immediate: true },\r\n);\r\n</script>\r\n\r\n<template>\r\n <JsonEditorVue\r\n v-if=\"valid\"\r\n v-model=\"formattedValue\"\r\n mode=\"text\"\r\n :main-menu-bar=\"false\"\r\n :navigation-bar=\"false\"\r\n :read-only=\"true\"\r\n />\r\n <EmptyTip v-else />\r\n</template>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","<template>\r\n <JsonEditorVue\r\n v-model=\"_form.value\"\r\n style=\"width: 100%; height: 300px\"\r\n mode=\"text\"\r\n :main-menu-bar=\"false\"\r\n :navigation-bar=\"false\"\r\n @change=\"change\"\r\n />\r\n</template>\r\n\r\n<script setup>\r\nimport { reactive, watch, defineAsyncComponent } from \"vue\";\r\n\r\nconst JsonEditorVue = defineAsyncComponent(() => {\r\n return import(\"json-editor-vue\");\r\n});\r\n\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\nconst props = defineProps({\r\n modelValue: Object,\r\n field: Object,\r\n disabled: Boolean,\r\n});\r\nconst _form = reactive({ value: props.modelValue });\r\n\r\nfunction change(value) {\r\n _form.value = value.text;\r\n emit(\"update:modelValue\", _form.value);\r\n}\r\n\r\nwatch(\r\n () => props.modelValue,\r\n () => {\r\n _form.value = props.modelValue;\r\n },\r\n { immediate: true },\r\n);\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\nimport FieldEditor from \"./FieldEditor.vue\";\r\n\r\nexport default class JsonFieldConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.display = FieldDisplay;\r\n this.editor = FieldEditor;\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n\r\n defaultConfig() {\r\n return {\r\n showInList: false,\r\n };\r\n }\r\n}\r\n"],"names":["JsonEditorVue","defineAsyncComponent","props","__props","valid","ref","formattedValue","watch","value","emit","__emit","_form","reactive","change","JsonFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;AAIA,UAAMA,IAAgBC,EAAqB,MAClC,OAAO,iBAAiB,CAChC,GAEKC,IAAQC,GASRC,IAAQC,EAAI,EAAK,GACjBC,IAAiBD,EAAI,QAAQ;AAEnC,WAAAE;AAAA,MACE,MAAML,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAE,EAAM,QAAQ;AACd,cAAMI,IAAQN,EAAM,IAAIA,EAAM,MAAM,IAAI;AACxC,QAA2BM,KAAU,QAIjC,GAAGA,CAAK,GAAG,KAAI,MAAO,OAI1BJ,EAAM,QAAQ,IACdE,EAAe,QAAQE;AAAA,MACxB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;;;;;;;;;;;;ACvBA,UAAMR,IAAgBC,EAAqB,MAClC,OAAO,iBAAiB,CAChC,GAEKQ,IAAOC,GACPR,IAAQC,GAKRQ,IAAQC,EAAS,EAAE,OAAOV,EAAM,WAAY,CAAA;AAElD,aAASW,EAAOL,GAAO;AACrB,MAAAG,EAAM,QAAQH,EAAM,MACpBC,EAAK,qBAAqBE,EAAM,KAAK;AAAA,IACvC;AAEA,WAAAJ;AAAA,MACE,MAAML,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAS,EAAM,QAAQT,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;;;;ACjCe,MAAMY,UAAwBC,EAAgB;AAAA,EAC3D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUC,GACf,KAAK,SAASC,GAEd,KAAK,qBAAqBH,CAAS;AAAA,EACpC;AAAA,EAED,gBAAgB;AACd,WAAO;AAAA,MACL,YAAY;AAAA,IAClB;AAAA,EACG;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as m, B as f } from "./index-
|
|
1
|
+
import { E as m, B as f } from "./index-BsT_4hup.js";
|
|
2
2
|
import { ref as r, watch as p, openBlock as o, createElementBlock as y, toDisplayString as h, createBlock as d, reactive as v, unref as _ } from "vue";
|
|
3
3
|
import { ElInputNumber as V } from "element-plus";
|
|
4
4
|
const b = { key: 0 }, x = {
|
|
@@ -60,4 +60,4 @@ class D extends f {
|
|
|
60
60
|
export {
|
|
61
61
|
D as default
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=config-
|
|
63
|
+
//# sourceMappingURL=config-uXBfJs4O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-uXBfJs4O.js","sources":["../src/framework/field/input-number/FieldDisplay.vue","../src/framework/field/input-number/FieldEditor.vue","../src/framework/field/input-number/config.js"],"sourcesContent":["<script setup>\r\nimport EmptyTip from \"../../component/EmptyTip.vue\";\r\nimport { ref, watch } from \"vue\";\r\n\r\nconst props = defineProps({\r\n field: {\r\n type: Object,\r\n },\r\n row: {\r\n type: Object,\r\n },\r\n});\r\nconst isEmpty = ref(false);\r\nconst formattedValue = ref(\"...\");\r\n\r\nasync function getName() {\r\n const value = props.row[props.field.code];\r\n if (value === undefined || value === null) {\r\n isEmpty.value = true;\r\n } else if (`${value}`.trim() === \"\") {\r\n isEmpty.value = true;\r\n } else {\r\n formattedValue.value = value;\r\n isEmpty.value = false;\r\n }\r\n}\r\n\r\nwatch(() => props.row, getName, { immediate: true });\r\n</script>\r\n\r\n<template>\r\n <span v-if=\"!isEmpty\">\r\n {{ formattedValue }}\r\n </span>\r\n <EmptyTip v-else />\r\n</template>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","<template>\r\n <el-input-number\r\n v-model=\"_form.value\"\r\n :disabled=\"props.disabled\"\r\n :min=\"props.field.min\"\r\n :max=\"props.field.max\"\r\n :step=\"props.field.step\"\r\n :precision=\"props.field.precision\"\r\n :step-atrictly=\"props.field.stepAtrictly\"\r\n @change=\"change\"\r\n />\r\n</template>\r\n\r\n<script setup>\r\nimport { ElInputNumber } from \"element-plus\";\r\nimport { reactive, watch } from \"vue\";\r\n\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\nconst props = defineProps({\r\n modelValue: String,\r\n field: Object,\r\n type: String,\r\n disabled: Boolean,\r\n});\r\nconst _form = reactive({ value: props.modelValue });\r\n\r\nfunction change() {\r\n emit(\"update:modelValue\", _form.value);\r\n}\r\n\r\nwatch(\r\n () => props.modelValue,\r\n () => {\r\n _form.value = props.modelValue;\r\n },\r\n { immediate: true },\r\n);\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\nimport FieldEditor from \"./FieldEditor.vue\";\r\n\r\nexport default class InputNumberConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.display = FieldDisplay;\r\n this.editor = FieldEditor;\r\n this.min = rawConfig.min;\r\n this.max = rawConfig.max;\r\n this.step = rawConfig.step || 1;\r\n this.precision = rawConfig.precision;\r\n this.stepAtrictly = rawConfig.stepAtrictly || false;\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n}\r\n"],"names":["props","__props","isEmpty","ref","formattedValue","getName","value","watch","emit","__emit","_form","reactive","change","InputNumberConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;AAIA,UAAMA,IAAQC,GAQRC,IAAUC,EAAI,EAAK,GACnBC,IAAiBD,EAAI,KAAK;AAEhC,mBAAeE,IAAU;AACvB,YAAMC,IAAQN,EAAM,IAAIA,EAAM,MAAM,IAAI;AACxC,MAA2BM,KAAU,QAE1B,GAAGA,CAAK,GAAG,KAAI,MAAO,KAD/BJ,EAAQ,QAAQ,MAIhBE,EAAe,QAAQE,GACvBJ,EAAQ,QAAQ;AAAA,IAEpB;AAEA,WAAAK,EAAM,MAAMP,EAAM,KAAKK,GAAS,EAAE,WAAW,GAAI,CAAE;;;;;;;;;;;;ACVnD,UAAMG,IAAOC,GACPT,IAAQC,GAMRS,IAAQC,EAAS,EAAE,OAAOX,EAAM,WAAY,CAAA;AAElD,aAASY,IAAS;AAChB,MAAAJ,EAAK,qBAAqBE,EAAM,KAAK;AAAA,IACvC;AAEA,WAAAH;AAAA,MACE,MAAMP,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAU,EAAM,QAAQV,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;;;;;;AChCe,MAAMa,UAA0BC,EAAgB;AAAA,EAC7D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUC,GACf,KAAK,SAASC,GACd,KAAK,MAAMH,EAAU,KACrB,KAAK,MAAMA,EAAU,KACrB,KAAK,OAAOA,EAAU,QAAQ,GAC9B,KAAK,YAAYA,EAAU,WAC3B,KAAK,eAAeA,EAAU,gBAAgB,IAE9C,KAAK,qBAAqBA,CAAS;AAAA,EACpC;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as u, B as p } from "./index-
|
|
1
|
+
import { _ as u, B as p } from "./index-BsT_4hup.js";
|
|
2
2
|
import { openBlock as r, createElementBlock as a, createElementVNode as m, defineAsyncComponent as _, reactive as f, watch as d, createVNode as h, unref as v } from "vue";
|
|
3
3
|
const V = { class: "editor-field" }, y = ["innerHTML"], b = {
|
|
4
4
|
__name: "FieldDisplay",
|
|
@@ -28,7 +28,7 @@ const V = { class: "editor-field" }, y = ["innerHTML"], b = {
|
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:modelValue"],
|
|
30
30
|
setup(o, { emit: e }) {
|
|
31
|
-
const i = _(() => import("./RichTextEditor-
|
|
31
|
+
const i = _(() => import("./RichTextEditor-B2M7zkFs.js")), s = e, n = o, t = f({ value: n.modelValue });
|
|
32
32
|
return d(
|
|
33
33
|
() => t.value,
|
|
34
34
|
() => {
|
|
@@ -62,4 +62,4 @@ class k extends p {
|
|
|
62
62
|
export {
|
|
63
63
|
k as default
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=config-
|
|
65
|
+
//# sourceMappingURL=config-wqoIRf6T.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-wqoIRf6T.js","sources":["../src/framework/field/rich-text/FieldDisplay.vue","../src/framework/field/rich-text/FieldEditor.vue","../src/framework/field/rich-text/config.js"],"sourcesContent":["<script setup>\r\nconst props = defineProps({\r\n field: {\r\n type: Object,\r\n },\r\n row: {\r\n type: Object,\r\n },\r\n});\r\n</script>\r\n\r\n<template>\r\n <div class=\"editor-field\">\r\n <div class=\"content\" v-html=\"props.row[props.field.code]\" />\r\n </div>\r\n</template>\r\n\r\n<style scoped lang=\"scss\">\r\n.editor-field {\r\n width: 100%;\r\n background: #999;\r\n padding: 20px 0;\r\n\r\n .content {\r\n word-wrap: break-word;\r\n font-family: \"Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif\" !important;\r\n max-width: 500px;\r\n padding: 20px;\r\n margin: 0 auto;\r\n background: white;\r\n white-space: break-spaces;\r\n :deep(img) {\r\n width: 100%;\r\n max-width: 100%;\r\n }\r\n }\r\n}\r\n</style>\r\n","<template>\r\n <div style=\"width: 100%\">\r\n <RichTextEditor v-model:content=\"_form.value\" :field=\"props.field\" />\r\n </div>\r\n</template>\r\n\r\n<script setup>\r\nimport { reactive, watch, defineAsyncComponent, defineEmits } from \"vue\";\r\n\r\nconst RichTextEditor = defineAsyncComponent(() => {\r\n return import(\"./RichTextEditor.vue\");\r\n});\r\n\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\nconst props = defineProps({\r\n modelValue: String,\r\n field: Object,\r\n disabled: Boolean,\r\n});\r\nconst _form = reactive({ value: props.modelValue });\r\n\r\nwatch(\r\n () => _form.value,\r\n () => {\r\n emit(\"update:modelValue\", _form.value);\r\n },\r\n);\r\nwatch(\r\n () => props.modelValue,\r\n async () => {\r\n _form.value = props.modelValue;\r\n },\r\n { immediate: true },\r\n);\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\nimport FieldEditor from \"./FieldEditor.vue\";\r\n\r\nexport default class EditorFieldConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.display = FieldDisplay;\r\n this.editor = FieldEditor;\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n\r\n defaultConfig() {\r\n return {\r\n showInList: false,\r\n };\r\n }\r\n}\r\n"],"names":["props","__props","RichTextEditor","defineAsyncComponent","emit","__emit","_form","reactive","watch","EditorFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;AACA,UAAMA,IAAQC;;;;;;;;;;;;;;;;;ACQd,UAAMC,IAAiBC,EAAqB,MACnC,OAAO,8BAAsB,CACrC,GAEKC,IAAOC,GACPL,IAAQC,GAKRK,IAAQC,EAAS,EAAE,OAAOP,EAAM,WAAY,CAAA;AAElD,WAAAQ;AAAA,MACE,MAAMF,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAF,EAAK,qBAAqBE,EAAM,KAAK;AAAA,MACtC;AAAA,IACH,GACAE;AAAA,MACE,MAAMR,EAAM;AAAA,MACZ,YAAY;AACV,QAAAM,EAAM,QAAQN,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;;AC7Be,MAAMS,UAA0BC,EAAgB;AAAA,EAC7D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUC,GACf,KAAK,SAASC,GAEd,KAAK,qBAAqBH,CAAS;AAAA,EACpC;AAAA,EAED,gBAAgB;AACd,WAAO;AAAA,MACL,YAAY;AAAA,IAClB;AAAA,EACG;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as p } from "./index-
|
|
1
|
+
import { B as p } from "./index-BsT_4hup.js";
|
|
2
2
|
import { ref as f, computed as h, openBlock as u, createElementBlock as b, createVNode as V, unref as c, reactive as v, watch as g, createBlock as y } from "vue";
|
|
3
3
|
import { ElSwitch as m } from "element-plus";
|
|
4
4
|
import "./el-switch-l0sNRNKZ.js";
|
|
@@ -67,4 +67,4 @@ class O extends p {
|
|
|
67
67
|
export {
|
|
68
68
|
O as default
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=config-
|
|
70
|
+
//# sourceMappingURL=config-xytc8y6s.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-xytc8y6s.js","sources":["../src/framework/field/switch/FieldDisplay.vue","../src/framework/field/switch/FieldEditor.vue","../src/framework/field/switch/config.js"],"sourcesContent":["<template>\r\n <span style=\"display: flex; align-items: center\">\r\n <el-switch\r\n v-model=\"value\"\r\n size=\"small\"\r\n :disabled=\"isDeleted ? true : false\"\r\n :before-change=\"($event) => switchChange(row, field.label)\"\r\n />\r\n </span>\r\n</template>\r\n\r\n<script setup>\r\nimport { ElSwitch } from \"element-plus\";\r\nimport { computed, ref } from \"vue\";\r\n\r\nconst emit = defineEmits([\"enable\"]);\r\nconst props = defineProps({\r\n field: {\r\n type: Object,\r\n },\r\n row: {\r\n type: Object,\r\n },\r\n});\r\nconst isDeleted = ref(props.row.deletedAt);\r\n\r\nfunction switchChange(row, label) {\r\n row.label = label;\r\n return new Promise((resolve, reject) => {\r\n emit(\"enable\", row);\r\n });\r\n}\r\n\r\nconst value = computed(() => {\r\n return props.row[props.field.code];\r\n});\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","<template>\r\n <el-switch\r\n v-model=\"_form.value\"\r\n :disabled=\"props.disabled\"\r\n @change=\"change\"\r\n />\r\n</template>\r\n\r\n<script setup>\r\nimport { ElSwitch } from \"element-plus\";\r\nimport { reactive, watch } from \"vue\";\r\n\r\nconst emit = defineEmits([\"update:modelValue\"]);\r\nconst props = defineProps({\r\n modelValue: Boolean,\r\n field: Object,\r\n disabled: Boolean,\r\n});\r\nconst _form = reactive({ value: props.modelValue });\r\n\r\nfunction change() {\r\n emit(\"update:modelValue\", _form.value);\r\n}\r\n\r\nwatch(\r\n () => props.modelValue,\r\n () => {\r\n _form.value = props.modelValue;\r\n },\r\n { immediate: true },\r\n);\r\n</script>\r\n\r\n<style scoped lang=\"scss\"></style>\r\n","import BaseFieldConfig from \"../base-field-config\";\r\nimport FieldDisplay from \"./FieldDisplay.vue\";\r\nimport FieldEditor from \"./FieldEditor.vue\";\r\n\r\nexport default class SwitchFieldConfig extends BaseFieldConfig {\r\n constructor(rawConfig, domain) {\r\n super(rawConfig, domain);\r\n this.formChange = rawConfig.formChange || (() => {});\r\n this.default = rawConfig.default || false;\r\n this.display = FieldDisplay;\r\n this.editor = FieldEditor;\r\n\r\n this.checkValidProperties(rawConfig);\r\n }\r\n}\r\n"],"names":["emit","__emit","props","__props","isDeleted","ref","switchChange","row","label","resolve","reject","value","computed","_form","reactive","change","watch","SwitchFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;;;AAeA,UAAMA,IAAOC,GACPC,IAAQC,GAQRC,IAAYC,EAAIH,EAAM,IAAI,SAAS;AAEzC,aAASI,EAAaC,GAAKC,GAAO;AAChC,aAAAD,EAAI,QAAQC,GACL,IAAI,QAAQ,CAACC,GAASC,MAAW;AACtC,QAAAV,EAAK,UAAUO,CAAG;AAAA,MACtB,CAAG;AAAA,IACH;AAEA,UAAMI,IAAQC,EAAS,MACdV,EAAM,IAAIA,EAAM,MAAM,IAAI,CAClC;;;;;;;;;;;;;;;;;;;;ACvBD,UAAMF,IAAOC,GACPC,IAAQC,GAKRU,IAAQC,EAAS,EAAE,OAAOZ,EAAM,WAAY,CAAA;AAElD,aAASa,IAAS;AAChB,MAAAf,EAAK,qBAAqBa,EAAM,KAAK;AAAA,IACvC;AAEA,WAAAG;AAAA,MACE,MAAMd,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAW,EAAM,QAAQX,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;AC1Be,MAAMe,UAA0BC,EAAgB;AAAA,EAC7D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,aAAaD,EAAU,eAAe,MAAM;AAAA,IAAE,IACnD,KAAK,UAAUA,EAAU,WAAW,IACpC,KAAK,UAAUE,GACf,KAAK,SAASC,GAEd,KAAK,qBAAqBH,CAAS;AAAA,EACpC;AACH;"}
|
|
@@ -1883,7 +1883,7 @@ class ea {
|
|
|
1883
1883
|
return oe.get(`${this.side}/${this.resources}/${e.id}`);
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
|
-
const
|
|
1886
|
+
const Tl = {
|
|
1887
1887
|
Client: Zo,
|
|
1888
1888
|
ReadOnlyClient: ea,
|
|
1889
1889
|
GET_LIST: Ue,
|
|
@@ -2009,7 +2009,7 @@ const at = {
|
|
|
2009
2009
|
"input-number": { config: "input-number" }
|
|
2010
2010
|
};
|
|
2011
2011
|
async function en(t, e, n) {
|
|
2012
|
-
const s = await ta(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2012
|
+
const s = await ta(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-BO5zOtvQ.js"), "./field/belongs-to/config.js": () => import("./config-D0Q_3HIz.js"), "./field/boolean/config.js": () => import("./config-D5KDDUDX.js"), "./field/cascader/config.js": () => import("./config-Cbunz5c7.js"), "./field/component/config.js": () => import("./config-CqXtSzw0.js"), "./field/date/config.js": () => import("./config-CrgMgLvC.js"), "./field/datetime/config.js": () => import("./config-C_03mBxe.js"), "./field/image/config.js": () => import("./config-BxKEHQF5.js"), "./field/images/config.js": () => import("./config-BymsJwle.js"), "./field/input-number/config.js": () => import("./config-uXBfJs4O.js"), "./field/json/config.js": () => import("./config-HIw7lgrK.js"), "./field/radio-group/config.js": () => import("./config-Dxg5dNtI.js"), "./field/rich-text/config.js": () => import("./config-wqoIRf6T.js"), "./field/row-id/config.js": () => import("./config-De6kHEXC.js"), "./field/select/config.js": () => import("./config-CIz8N_B8.js"), "./field/string/config.js": () => import("./config-DFmMEuSd.js"), "./field/switch/config.js": () => import("./config-xytc8y6s.js"), "./field/text/config.js": () => import("./config-Bu9X2qA5.js"), "./field/time/config.js": () => import("./config-DpQsB0Wn.js"), "./field/tree-select/config.js": () => import("./config-BU1ASpQ3.js") }), `./field/${t}/config.js`, 4);
|
|
2013
2013
|
return new s.default(e, n);
|
|
2014
2014
|
}
|
|
2015
2015
|
function ze(t, e = "unknown") {
|
|
@@ -2039,10 +2039,10 @@ let _t = {
|
|
|
2039
2039
|
fileUploadUrl: "",
|
|
2040
2040
|
idempotentUrl: ""
|
|
2041
2041
|
}, $e = {};
|
|
2042
|
-
function
|
|
2042
|
+
function Pl(t) {
|
|
2043
2043
|
_t = { ..._t, ...t }, $e = t.domainConfigs;
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2045
|
+
function Ll(t) {
|
|
2046
2046
|
Object.keys($e).forEach((e) => {
|
|
2047
2047
|
const n = $e[e];
|
|
2048
2048
|
Object.keys(n).forEach((s) => {
|
|
@@ -2083,7 +2083,7 @@ class aa {
|
|
|
2083
2083
|
this.code = s.code, this.fields = ze(s.fields, s.code), this.detailGroupFields = (o = s == null ? void 0 : s.detailGroupFields) == null ? void 0 : o.map((r) => ({
|
|
2084
2084
|
...r,
|
|
2085
2085
|
childrenFields: ze(r.childrenFields, s.code)
|
|
2086
|
-
})), !s.simple && (this.name = Ft()[e][s.code].name, this.filters = s.filters || [], this.coverField = s.coverField, this.nameField = s.nameField || "name", this.showSubmit = s.showSubmit || !0, this.showEdit = this.setupShowEdit(s.showEdit), this.submitConfirm = s.submitConfirm, this.removeConfirm = s.removeConfirm, this.showCreate = this.setupShowCreate(s.showCreate), this.hasMany = this.createHasMany(n), this.hasOne = this.createHasOne(n), this.detailSubType = s.detailSubType ? "list" : "tabs", this.formatName = this.createFormatName(n.formatName), this.rest = this.createRestClient(n.rest), this.rowActions = this.setupRowActions(n), this.pageActions = this.setupPageActions(n), this.actionsWidth = n.actionsWidth || 150, this.formHook = n.form || {}, this.filterHook = n.filterForm || {}, this.restRepeat = this.restRepeat(n.restRepeat), this.btnVisible = n.btnVisible || {}, this.operations = this.setupOperations(), this.formLayout = n.formLayout || [], this.displayMode = n.displayMode || {}, this.showPagination = n.showPagination ?? !0, this.extendTableColumnfields = n.extendTableColumnfields || null, this.formStyleConfig = this.getFormStyleConfig(n.formConfig), this.delText = n.delText || "确定要删除该条数据吗?", this.showDetailInfo = n.showDetailInfo
|
|
2086
|
+
})), !s.simple && (this.name = Ft()[e][s.code].name, this.filters = s.filters || [], this.coverField = s.coverField, this.nameField = s.nameField || "name", this.showSubmit = s.showSubmit || !0, this.showEdit = this.setupShowEdit(s.showEdit), this.submitConfirm = s.submitConfirm, this.removeConfirm = s.removeConfirm, this.showCreate = this.setupShowCreate(s.showCreate), this.hasMany = this.createHasMany(n), this.hasOne = this.createHasOne(n), this.detailSubType = s.detailSubType ? "list" : "tabs", this.formatName = this.createFormatName(n.formatName), this.rest = this.createRestClient(n.rest), this.rowActions = this.setupRowActions(n), this.pageActions = this.setupPageActions(n), this.actionsWidth = n.actionsWidth || 150, this.formHook = n.form || {}, this.filterHook = n.filterForm || {}, this.restRepeat = this.restRepeat(n.restRepeat), this.btnVisible = n.btnVisible || {}, this.operations = this.setupOperations(), this.formLayout = n.formLayout || [], this.displayMode = n.displayMode || {}, this.showPagination = n.showPagination ?? !0, this.extendTableColumnfields = n.extendTableColumnfields || null, this.formStyleConfig = this.getFormStyleConfig(n.formConfig), this.delText = n.delText || "确定要删除该条数据吗?", this.showDetailInfo = n.showDetailInfo);
|
|
2087
2087
|
}
|
|
2088
2088
|
wrapFields(e, n) {
|
|
2089
2089
|
return ze(e, n);
|
|
@@ -2092,7 +2092,7 @@ class aa {
|
|
|
2092
2092
|
return e;
|
|
2093
2093
|
}
|
|
2094
2094
|
createFormatName(e) {
|
|
2095
|
-
return (n) => e ? `${e(n)}` : n.name ? n.name : n.title ? n.title : `#${n.id}
|
|
2095
|
+
return (n) => e ? `${e(n)}` : n.name ? n.name : n.title ? n.title : n.id ? `#${n.id}` : "";
|
|
2096
2096
|
}
|
|
2097
2097
|
createHasOne(e) {
|
|
2098
2098
|
return (n) => {
|
|
@@ -2313,13 +2313,13 @@ const V = (t, e) => {
|
|
|
2313
2313
|
_: 1
|
|
2314
2314
|
}));
|
|
2315
2315
|
}
|
|
2316
|
-
},
|
|
2316
|
+
}, Bl = /* @__PURE__ */ V(ga, [["__scopeId", "data-v-a711a147"]]), ya = {}, va = { style: { padding: "20px 0" } };
|
|
2317
2317
|
function ba(t, e) {
|
|
2318
2318
|
return l(), x("div", va, [
|
|
2319
2319
|
Y(t.$slots, "default")
|
|
2320
2320
|
]);
|
|
2321
2321
|
}
|
|
2322
|
-
const
|
|
2322
|
+
const jl = /* @__PURE__ */ V(ya, [["render", ba]]), wa = {
|
|
2323
2323
|
__name: "DashboardRow",
|
|
2324
2324
|
setup(t) {
|
|
2325
2325
|
return (e, n) => (l(), S(p(he), {
|
|
@@ -2332,7 +2332,7 @@ const Il = /* @__PURE__ */ V(ya, [["render", ba]]), wa = {
|
|
|
2332
2332
|
_: 3
|
|
2333
2333
|
}));
|
|
2334
2334
|
}
|
|
2335
|
-
},
|
|
2335
|
+
}, Il = /* @__PURE__ */ V(wa, [["__scopeId", "data-v-a22ec57e"]]);
|
|
2336
2336
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
2337
2337
|
var Ea = /* @__PURE__ */ z({
|
|
2338
2338
|
name: "ArrowDown",
|
|
@@ -2362,7 +2362,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2362
2362
|
})
|
|
2363
2363
|
]));
|
|
2364
2364
|
}
|
|
2365
|
-
}),
|
|
2365
|
+
}), Vl = Sa, xa = /* @__PURE__ */ z({
|
|
2366
2366
|
name: "CirclePlus",
|
|
2367
2367
|
__name: "circle-plus",
|
|
2368
2368
|
setup(t) {
|
|
@@ -2454,7 +2454,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2454
2454
|
})
|
|
2455
2455
|
]));
|
|
2456
2456
|
}
|
|
2457
|
-
}),
|
|
2457
|
+
}), Ml = Pa, La = /* @__PURE__ */ z({
|
|
2458
2458
|
name: "Download",
|
|
2459
2459
|
__name: "download",
|
|
2460
2460
|
setup(t) {
|
|
@@ -2468,7 +2468,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2468
2468
|
})
|
|
2469
2469
|
]));
|
|
2470
2470
|
}
|
|
2471
|
-
}),
|
|
2471
|
+
}), Nl = La, Ba = /* @__PURE__ */ z({
|
|
2472
2472
|
name: "EditPen",
|
|
2473
2473
|
__name: "edit-pen",
|
|
2474
2474
|
setup(t) {
|
|
@@ -2524,7 +2524,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2524
2524
|
})
|
|
2525
2525
|
]));
|
|
2526
2526
|
}
|
|
2527
|
-
}),
|
|
2527
|
+
}), zl = za, Ua = /* @__PURE__ */ z({
|
|
2528
2528
|
name: "Minus",
|
|
2529
2529
|
__name: "minus",
|
|
2530
2530
|
setup(t) {
|
|
@@ -2566,7 +2566,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2566
2566
|
})
|
|
2567
2567
|
]));
|
|
2568
2568
|
}
|
|
2569
|
-
}),
|
|
2569
|
+
}), Ul = Qa, Ja = /* @__PURE__ */ z({
|
|
2570
2570
|
name: "PriceTag",
|
|
2571
2571
|
__name: "price-tag",
|
|
2572
2572
|
setup(t) {
|
|
@@ -2598,7 +2598,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2598
2598
|
})
|
|
2599
2599
|
]));
|
|
2600
2600
|
}
|
|
2601
|
-
}),
|
|
2601
|
+
}), Hl = Ga, Ya = /* @__PURE__ */ z({
|
|
2602
2602
|
name: "Refresh",
|
|
2603
2603
|
__name: "refresh",
|
|
2604
2604
|
setup(t) {
|
|
@@ -2654,7 +2654,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2654
2654
|
})
|
|
2655
2655
|
]));
|
|
2656
2656
|
}
|
|
2657
|
-
}),
|
|
2657
|
+
}), ql = nr, sr = /* @__PURE__ */ z({
|
|
2658
2658
|
name: "View",
|
|
2659
2659
|
__name: "view",
|
|
2660
2660
|
setup(t) {
|
|
@@ -2668,7 +2668,7 @@ var Ea = /* @__PURE__ */ z({
|
|
|
2668
2668
|
})
|
|
2669
2669
|
]));
|
|
2670
2670
|
}
|
|
2671
|
-
}),
|
|
2671
|
+
}), Wl = sr;
|
|
2672
2672
|
function Q(t) {
|
|
2673
2673
|
const e = { ...t.query, ...t.params };
|
|
2674
2674
|
if (t.params.domain && t.params.id) {
|
|
@@ -3004,7 +3004,7 @@ const Fe = {
|
|
|
3004
3004
|
_: 1
|
|
3005
3005
|
}, 8, ["modelValue", "width"]));
|
|
3006
3006
|
}
|
|
3007
|
-
},
|
|
3007
|
+
}, Ql = {
|
|
3008
3008
|
__name: "RowActionFormEditor",
|
|
3009
3009
|
props: {
|
|
3010
3010
|
row: {
|
|
@@ -3110,7 +3110,7 @@ const Fe = {
|
|
|
3110
3110
|
const e = t;
|
|
3111
3111
|
return (n, s) => (l(), x("span", hr, R(e.text), 1));
|
|
3112
3112
|
}
|
|
3113
|
-
},
|
|
3113
|
+
}, Jl = /* @__PURE__ */ V(_r, [["__scopeId", "data-v-765bd99b"]]), Gl = {
|
|
3114
3114
|
__name: "FieldEditor",
|
|
3115
3115
|
props: {
|
|
3116
3116
|
modelValue: {
|
|
@@ -3124,7 +3124,7 @@ const Fe = {
|
|
|
3124
3124
|
},
|
|
3125
3125
|
emits: ["update:modelValue"],
|
|
3126
3126
|
setup(t, { emit: e }) {
|
|
3127
|
-
const n = ns(() => import("./ImagesUploader-
|
|
3127
|
+
const n = ns(() => import("./ImagesUploader-HPjV03pF.js")), s = Qe().fileUploadUrl, o = e, r = t, a = De({ value: r.modelValue }), i = r.field.converter;
|
|
3128
3128
|
function d(c) {
|
|
3129
3129
|
let u = -1;
|
|
3130
3130
|
c.id && (u = a.value.findIndex((E) => E.id === c.id)), c.url && (u = a.value.findIndex((E) => E.url === c.url)), u >= 0 && (a.value.splice(u, 1), o("update:modelValue", a.value));
|
|
@@ -5504,7 +5504,7 @@ const Bi = {
|
|
|
5504
5504
|
}, 8, ["locale"]);
|
|
5505
5505
|
};
|
|
5506
5506
|
}
|
|
5507
|
-
},
|
|
5507
|
+
}, Yl = /* @__PURE__ */ V(Ki, [["__scopeId", "data-v-7ead3030"]]), Xi = {
|
|
5508
5508
|
key: 1,
|
|
5509
5509
|
class: "loading-wrapper"
|
|
5510
5510
|
}, Zi = {
|
|
@@ -5987,7 +5987,7 @@ const Bi = {
|
|
|
5987
5987
|
key: 0,
|
|
5988
5988
|
domain: s.domain
|
|
5989
5989
|
}, null, 8, ["domain"])) : T("", !0),
|
|
5990
|
-
s.type == "has-one" ? (l(), S(
|
|
5990
|
+
s.type == "has-one" ? (l(), S(xl, {
|
|
5991
5991
|
key: 1,
|
|
5992
5992
|
domain: s.domain
|
|
5993
5993
|
}, null, 8, ["domain"])) : T("", !0)
|
|
@@ -6043,12 +6043,9 @@ const Bi = {
|
|
|
6043
6043
|
};
|
|
6044
6044
|
}
|
|
6045
6045
|
}, El = /* @__PURE__ */ V(wl, [["__scopeId", "data-v-f928d31a"]]), $l = {
|
|
6046
|
-
key:
|
|
6047
|
-
class: "detail"
|
|
6048
|
-
}, Sl = {
|
|
6049
|
-
key: 2,
|
|
6046
|
+
key: 1,
|
|
6050
6047
|
class: "loading-wrapper"
|
|
6051
|
-
},
|
|
6048
|
+
}, Sl = {
|
|
6052
6049
|
__name: "Detail",
|
|
6053
6050
|
props: {
|
|
6054
6051
|
domain: {
|
|
@@ -6076,20 +6073,18 @@ const Bi = {
|
|
|
6076
6073
|
query: () => ({})
|
|
6077
6074
|
});
|
|
6078
6075
|
}
|
|
6079
|
-
return (h, c) => a.value
|
|
6080
|
-
|
|
6081
|
-
])) : a.value ? (l(), S(El, {
|
|
6082
|
-
key: 1,
|
|
6076
|
+
return (h, c) => a.value ? (l(), S(El, {
|
|
6077
|
+
key: 0,
|
|
6083
6078
|
settings: a.value,
|
|
6084
6079
|
associations: i.value
|
|
6085
|
-
}, null, 8, ["settings", "associations"])) : ye((l(), x("div",
|
|
6080
|
+
}, null, 8, ["settings", "associations"])) : ye((l(), x("div", $l, null, 512)), [
|
|
6086
6081
|
[p(ve), !0]
|
|
6087
6082
|
]);
|
|
6088
6083
|
}
|
|
6089
|
-
},
|
|
6084
|
+
}, xl = /* @__PURE__ */ V(Sl, [["__scopeId", "data-v-e6c82e88"]]), kl = { key: 0 }, Ol = {
|
|
6090
6085
|
key: 1,
|
|
6091
6086
|
class: "loading-wrapper"
|
|
6092
|
-
},
|
|
6087
|
+
}, Fl = {
|
|
6093
6088
|
__name: "DetailTab",
|
|
6094
6089
|
props: {
|
|
6095
6090
|
association: {
|
|
@@ -6106,7 +6101,7 @@ const Bi = {
|
|
|
6106
6101
|
});
|
|
6107
6102
|
},
|
|
6108
6103
|
{ immediate: !0 }
|
|
6109
|
-
), (a, i) => r.value && o.association.domainData ? (l(), x("div",
|
|
6104
|
+
), (a, i) => r.value && o.association.domainData ? (l(), x("div", kl, [
|
|
6110
6105
|
r.value.type === "has-many" ? (l(), S(Yn, {
|
|
6111
6106
|
key: `has-many-${r.value.domain}`,
|
|
6112
6107
|
settings: r.value.settings,
|
|
@@ -6118,22 +6113,22 @@ const Bi = {
|
|
|
6118
6113
|
query: p(s),
|
|
6119
6114
|
settings: r.value.settings
|
|
6120
6115
|
}, null, 8, ["query", "settings"])) : T("", !0)
|
|
6121
|
-
])) : ye((l(), x("div",
|
|
6116
|
+
])) : ye((l(), x("div", Ol, null, 512)), [
|
|
6122
6117
|
[p(ve), !0]
|
|
6123
6118
|
]);
|
|
6124
6119
|
}
|
|
6125
|
-
},
|
|
6120
|
+
}, Kl = /* @__PURE__ */ V(Fl, [["__scopeId", "data-v-fa1c18aa"]]);
|
|
6126
6121
|
export {
|
|
6127
|
-
|
|
6122
|
+
Ql as A,
|
|
6128
6123
|
sa as B,
|
|
6129
6124
|
Ct as C,
|
|
6130
|
-
|
|
6131
|
-
|
|
6125
|
+
jl as D,
|
|
6126
|
+
Jl as E,
|
|
6132
6127
|
Jr as F,
|
|
6133
6128
|
Yn as G,
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6129
|
+
Yl as H,
|
|
6130
|
+
xl as I,
|
|
6131
|
+
Kl as J,
|
|
6137
6132
|
le as K,
|
|
6138
6133
|
el as L,
|
|
6139
6134
|
At as M,
|
|
@@ -6141,31 +6136,31 @@ export {
|
|
|
6141
6136
|
_a as S,
|
|
6142
6137
|
ca as W,
|
|
6143
6138
|
V as _,
|
|
6144
|
-
|
|
6139
|
+
Nl as a,
|
|
6145
6140
|
Wn as b,
|
|
6146
6141
|
oa as c,
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6142
|
+
Ml as d,
|
|
6143
|
+
ql as e,
|
|
6144
|
+
Vl as f,
|
|
6150
6145
|
Dt as g,
|
|
6151
6146
|
oe as h,
|
|
6152
|
-
|
|
6147
|
+
Gl as i,
|
|
6153
6148
|
Qe as j,
|
|
6154
6149
|
Fa as k,
|
|
6155
|
-
|
|
6150
|
+
zl as l,
|
|
6156
6151
|
W as m,
|
|
6157
6152
|
Ta as n,
|
|
6158
6153
|
Jo as o,
|
|
6159
|
-
|
|
6160
|
-
|
|
6154
|
+
Ul as p,
|
|
6155
|
+
Hl as q,
|
|
6161
6156
|
Go as r,
|
|
6162
6157
|
Q as s,
|
|
6163
|
-
|
|
6158
|
+
Tl as t,
|
|
6164
6159
|
ra as u,
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6160
|
+
Wl as v,
|
|
6161
|
+
Pl as w,
|
|
6162
|
+
Ll as x,
|
|
6163
|
+
Bl as y,
|
|
6164
|
+
Il as z
|
|
6170
6165
|
};
|
|
6171
|
-
//# sourceMappingURL=index-
|
|
6166
|
+
//# sourceMappingURL=index-BsT_4hup.js.map
|