kouxiangtang 0.0.71 → 0.0.73
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-LX5bVl-8.js → AttachmentUploader-cAHfI5Yj.js} +2 -2
- package/dist/{AttachmentUploader-LX5bVl-8.js.map → AttachmentUploader-cAHfI5Yj.js.map} +1 -1
- package/dist/{ImageUploader-B4tYXQqr.js → ImageUploader-lk9N-Sni.js} +2 -2
- package/dist/{ImageUploader-B4tYXQqr.js.map → ImageUploader-lk9N-Sni.js.map} +1 -1
- package/dist/{ImagesUploader-B6RAe6Xu.js → ImagesUploader-9qOx2FfT.js} +2 -2
- package/dist/{ImagesUploader-B6RAe6Xu.js.map → ImagesUploader-9qOx2FfT.js.map} +1 -1
- package/dist/{RichTextEditor-YxcPp2j_.js → RichTextEditor-4VJbZesz.js} +2 -2
- package/dist/{RichTextEditor-YxcPp2j_.js.map → RichTextEditor-4VJbZesz.js.map} +1 -1
- package/dist/config-BPInBpGk.js +124 -0
- package/dist/config-BPInBpGk.js.map +1 -0
- package/dist/{config-o_GAg-he.js → config-BSD8uO2H.js} +2 -2
- package/dist/{config-o_GAg-he.js.map → config-BSD8uO2H.js.map} +1 -1
- package/dist/{config-C1M9lhud.js → config-BUi_68JX.js} +2 -2
- package/dist/{config-C1M9lhud.js.map → config-BUi_68JX.js.map} +1 -1
- package/dist/{config-DbQaCNRb.js → config-BVaWa82F.js} +2 -2
- package/dist/{config-DbQaCNRb.js.map → config-BVaWa82F.js.map} +1 -1
- package/dist/{config-DtRJPPfP.js → config-BnHH9EEx.js} +2 -2
- package/dist/{config-DtRJPPfP.js.map → config-BnHH9EEx.js.map} +1 -1
- package/dist/{config-BEL_jgH8.js → config-BnQ5RNT5.js} +2 -2
- package/dist/{config-BEL_jgH8.js.map → config-BnQ5RNT5.js.map} +1 -1
- package/dist/{config-BhpCGpOI.js → config-Bo0Ejvao.js} +3 -3
- package/dist/{config-BhpCGpOI.js.map → config-Bo0Ejvao.js.map} +1 -1
- package/dist/{config-C-pAKmPf.js → config-C7aBNMoz.js} +2 -2
- package/dist/{config-C-pAKmPf.js.map → config-C7aBNMoz.js.map} +1 -1
- package/dist/{config-BY9CR27I.js → config-CE86st16.js} +2 -2
- package/dist/{config-BY9CR27I.js.map → config-CE86st16.js.map} +1 -1
- package/dist/{config-CNDGpOqG.js → config-CV0wJl5O.js} +14 -13
- package/dist/config-CV0wJl5O.js.map +1 -0
- package/dist/{config-CW4vsRQz.js → config-Cd-l6zLr.js} +2 -2
- package/dist/{config-CW4vsRQz.js.map → config-Cd-l6zLr.js.map} +1 -1
- package/dist/{config-DpbJfHVo.js → config-CvalidFy.js} +3 -3
- package/dist/{config-DpbJfHVo.js.map → config-CvalidFy.js.map} +1 -1
- package/dist/{config-CeArDsdO.js → config-CwVeOemE.js} +2 -2
- package/dist/{config-CeArDsdO.js.map → config-CwVeOemE.js.map} +1 -1
- package/dist/{config-rbkXeVUC.js → config-DxnWEDaj.js} +5 -4
- package/dist/{config-rbkXeVUC.js.map → config-DxnWEDaj.js.map} +1 -1
- package/dist/{config-oY5BEG5O.js → config-KFcY3l3O.js} +3 -3
- package/dist/{config-oY5BEG5O.js.map → config-KFcY3l3O.js.map} +1 -1
- package/dist/{config-C3y3qsgJ.js → config-pICAEHCe.js} +2 -2
- package/dist/{config-C3y3qsgJ.js.map → config-pICAEHCe.js.map} +1 -1
- package/dist/{config-DWVxm-4g.js → config-sHhddDkQ.js} +2 -2
- package/dist/{config-DWVxm-4g.js.map → config-sHhddDkQ.js.map} +1 -1
- package/dist/{config-BfPFwgV2.js → config-vsqFsOM9.js} +2 -2
- package/dist/{config-BfPFwgV2.js.map → config-vsqFsOM9.js.map} +1 -1
- package/dist/{config-Bmz1W4fL.js → config-zgnv_Y78.js} +2 -2
- package/dist/{config-Bmz1W4fL.js.map → config-zgnv_Y78.js.map} +1 -1
- package/dist/el-radio-l0sNRNKZ.js +2 -0
- package/dist/el-radio-l0sNRNKZ.js.map +1 -0
- package/dist/{index-Cpf2E6EU.js → index-B5R2-PIR.js} +8 -6
- package/dist/index-B5R2-PIR.js.map +1 -0
- package/dist/kouxiangtang.js +1 -1
- package/dist/kouxiangtang.umd.cjs +8 -8
- package/dist/kouxiangtang.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/config-CNDGpOqG.js.map +0 -1
- package/dist/index-Cpf2E6EU.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-Cd-l6zLr.js","sources":["../src/framework/field/date/FieldDisplay.vue","../src/framework/field/date/FieldEditor.vue","../src/framework/field/date/config.js"],"sourcesContent":["<script setup>\nimport EmptyTip from \"../../component/EmptyTip.vue\";\nimport { ref, watch } from \"vue\";\n\nconst props = defineProps({\n field: {\n type: Object,\n },\n row: {\n type: Object,\n },\n});\nconst isEmpty = ref(false);\nconst formattedValue = ref(\"...\");\n\nasync function getTime() {\n const value = props.row[props.field.code];\n\n if (value === undefined || value === null) {\n isEmpty.value = true;\n } else if (`${value}`.trim() === \"\") {\n isEmpty.value = true;\n } else {\n formattedValue.value = value;\n isEmpty.value = false;\n }\n}\n\nwatch(() => props.row, getTime, { immediate: true });\n</script>\n\n<template>\n <span v-if=\"!isEmpty\">\n {{ formattedValue }}\n </span>\n <EmptyTip v-else />\n</template>\n\n<style scoped lang=\"scss\"></style>\n","<template>\n <el-date-picker\n v-model=\"_form.value\"\n :disabled=\"props.disabled\"\n type=\"date\"\n format=\"YYYY-MM-DD\"\n value-format=\"YYYY-MM-DD\"\n @change=\"change\"\n />\n</template>\n\n<script setup>\nimport { ElDatePicker } from \"element-plus\";\nimport { reactive, watch } from \"vue\";\n\nconst emit = defineEmits([\"update:modelValue\"]);\nconst props = defineProps({\n modelValue: String,\n field: Object,\n disabled: Boolean,\n});\nconst _form = reactive({ value: props.modelValue });\n\nfunction change() {\n emit(\"update:modelValue\", _form.value);\n}\n\nwatch(\n () => props.modelValue,\n () => {\n _form.value = props.modelValue;\n },\n { immediate: true },\n);\n</script>\n\n<style scoped lang=\"scss\"></style>\n","import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\nimport FieldEditor from \"./FieldEditor.vue\";\n\nexport default class DateFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.display = FieldDisplay;\n this.editor = FieldEditor;\n this.width = this.computeWidth(rawConfig);\n\n this.checkValidProperties(rawConfig);\n }\n\n computeWidth(rawConfig) {\n if (rawConfig.width) {\n return rawConfig.width;\n }\n\n return 200;\n }\n}\n"],"names":["props","__props","isEmpty","ref","formattedValue","getTime","value","watch","emit","__emit","_form","reactive","change","DateFieldConfig","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 f, B as h } from "./index-
|
|
1
|
+
import { _ as f, B as h } from "./index-B5R2-PIR.js";
|
|
2
2
|
import { ref as d, watch as p, openBlock as i, createElementBlock as n, normalizeClass as g, createBlock as u, unref as m, withCtx as y, createElementVNode as a, toDisplayString as b, pushScopeId as w, popScopeId as S, defineAsyncComponent as V, reactive as I } from "vue";
|
|
3
3
|
import { ElImage as k } from "element-plus";
|
|
4
4
|
const _ = (t) => (w("data-v-3b7cda77"), t = t(), S(), t), x = { class: "loading-error" }, B = /* @__PURE__ */ _(() => /* @__PURE__ */ a("div", null, "加载失败", -1)), F = {
|
|
@@ -58,7 +58,7 @@ const _ = (t) => (w("data-v-3b7cda77"), t = t(), S(), t), x = { class: "loading-
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["update:modelValue"],
|
|
60
60
|
setup(t, { emit: e }) {
|
|
61
|
-
const o = V(() => import("./ImageUploader-
|
|
61
|
+
const o = V(() => import("./ImageUploader-lk9N-Sni.js")), l = e, s = t, r = I({ value: s.modelValue });
|
|
62
62
|
function v(c) {
|
|
63
63
|
l("update:modelValue", c);
|
|
64
64
|
}
|
|
@@ -83,4 +83,4 @@ class U extends h {
|
|
|
83
83
|
export {
|
|
84
84
|
U as default
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=config-
|
|
86
|
+
//# sourceMappingURL=config-CvalidFy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-CvalidFy.js","sources":["../src/framework/field/image/FieldDisplay.vue","../src/framework/field/image/FieldEditor.vue","../src/framework/field/image/config.js"],"sourcesContent":["<script setup>\nimport { ElImage } from \"element-plus\";\nimport { watch, ref } from \"vue\";\n\nconst props = defineProps({\n field: {\n type: Object,\n },\n row: {\n type: Object,\n },\n mode: {\n type: String,\n },\n});\n\nconst url = ref(null);\nconst urls = ref([]);\n\nwatch(\n () => props.row,\n () => {\n url.value = props.row[props.field.code];\n urls.value = [props.row[props.field.code]];\n },\n { immediate: true },\n);\n</script>\n\n<template>\n <div :class=\"`image-card ${props.mode}`\">\n <el-image\n v-if=\"url\"\n :src=\"url\"\n preview-teleported\n fit=\"contain\"\n :preview-src-list=\"urls\"\n class=\"image\"\n >\n <template #error>\n <div class=\"loading-error\">\n <div>加载失败</div>\n <div>{{ url }}</div>\n </div>\n </template>\n </el-image>\n <div v-else class=\"loading-error\">\n <div>暂无</div>\n </div>\n </div>\n</template>\n\n<style scoped lang=\"scss\">\n.image-card {\n width: 100%;\n height: 200px;\n display: flex;\n justify-content: center;\n align-items: center;\n background: #eee;\n border: 1px solid #ddd;\n border-radius: 4px;\n overflow: hidden;\n}\n\n.image {\n width: 100%;\n height: 100%;\n}\n\n.list {\n height: 50px;\n}\n\n.extend {\n width: 200px;\n height: 200px;\n}\n\n.loading-error {\n width: 100%;\n height: 100%;\n min-height: 50px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background: var(--el-color-error);\n color: var(--el-color-white);\n}\n</style>\n","<template>\n <ImageUploader\n :image-url=\"_form.value\"\n :disabled=\"props.disabled\"\n @on-success=\"change\"\n />\n</template>\n\n<script setup>\nimport { reactive, defineAsyncComponent, watch } from \"vue\";\n\nconst ImageUploader = defineAsyncComponent(() => {\n return import(\"./ImageUploader.vue\");\n});\n\nconst emit = defineEmits([\"update:modelValue\"]);\nconst props = defineProps({\n modelValue: String,\n field: Object,\n type: String,\n disabled: Boolean,\n});\nconst _form = reactive({ value: props.modelValue });\n\nfunction change(image) {\n emit(\"update:modelValue\", image);\n}\n\nwatch(\n () => props.modelValue,\n async () => {\n _form.value = props.modelValue;\n },\n { immediate: true },\n);\n</script>\n\n<style scoped lang=\"scss\"></style>\n","import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\nimport FieldEditor from \"./FieldEditor.vue\";\n\nexport default class ImageFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.display = FieldDisplay;\n this.editor = FieldEditor;\n\n this.checkValidProperties(rawConfig);\n }\n}\n"],"names":["props","__props","url","ref","urls","watch","ImageUploader","defineAsyncComponent","emit","__emit","_form","reactive","change","image","ImageFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,UAAMA,IAAQC,GAYRC,IAAMC,EAAI,IAAI,GACdC,IAAOD,EAAI,CAAA,CAAE;AAEnB,WAAAE;AAAA,MACE,MAAML,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAE,EAAI,QAAQF,EAAM,IAAIA,EAAM,MAAM,IAAI,GACtCI,EAAK,QAAQ,CAACJ,EAAM,IAAIA,EAAM,MAAM,IAAI,CAAC;AAAA,MAC1C;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACfA,UAAMM,IAAgBC,EAAqB,MAClC,OAAO,6BAAqB,CACpC,GAEKC,IAAOC,GACPT,IAAQC,GAMRS,IAAQC,EAAS,EAAE,OAAOX,EAAM,WAAY,CAAA;AAElD,aAASY,EAAOC,GAAO;AACrB,MAAAL,EAAK,qBAAqBK,CAAK;AAAA,IACjC;AAEA,WAAAR;AAAA,MACE,MAAML,EAAM;AAAA,MACZ,YAAY;AACV,QAAAU,EAAM,QAAQV,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;AC9Be,MAAMc,UAAyBC,EAAgB;AAAA,EAC5D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUC,GACf,KAAK,SAASC,GAEd,KAAK,qBAAqBH,CAAS;AAAA,EACpC;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as f, f as _, q as h, B as V } from "./index-
|
|
1
|
+
import { e as f, f as _, q as h, B as V } from "./index-B5R2-PIR.js";
|
|
2
2
|
import { computed as y, openBlock as s, createElementBlock as v, createBlock as i, unref as l, withCtx as c, createVNode as u, reactive as b, watch as B } from "vue";
|
|
3
3
|
import { ElIcon as r, ElSwitch as k } from "element-plus";
|
|
4
4
|
import "./el-switch-l0sNRNKZ.js";
|
|
@@ -81,4 +81,4 @@ class D extends V {
|
|
|
81
81
|
export {
|
|
82
82
|
D as default
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=config-
|
|
84
|
+
//# sourceMappingURL=config-CwVeOemE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-CwVeOemE.js","sources":["../src/framework/field/boolean/FieldDisplay.vue","../src/framework/field/boolean/FieldEditor.vue","../src/framework/field/boolean/config.js"],"sourcesContent":["<template>\n <span style=\"display: flex; align-items: center\">\n <el-icon v-if=\"value == true\" color=\"#529b2e\" :size=\"20\">\n <SuccessFilled />\n </el-icon>\n <el-icon v-else-if=\"value == false\" color=\"#F56C6C\" :size=\"20\">\n <CircleCloseFilled />\n </el-icon>\n <el-icon v-else color=\"#73767a\" :size=\"20\">\n <QuestionFilled />\n </el-icon>\n </span>\n</template>\n\n<script setup>\nimport { ElIcon } from \"element-plus\";\nimport { computed } from \"vue\";\nimport {\n SuccessFilled,\n CircleCloseFilled,\n QuestionFilled,\n} from \"@element-plus/icons-vue\";\n\nconst props = defineProps({\n field: {\n type: Object,\n },\n row: {\n type: Object,\n },\n});\n\nconst value = computed(() => {\n return props.row[props.field.code];\n});\n</script>\n\n<style scoped lang=\"scss\"></style>\n","<template>\n <el-switch\n v-model=\"_form.value\"\n :disabled=\"props.disabled\"\n @change=\"change\"\n />\n</template>\n\n<script setup>\nimport { ElSwitch } from \"element-plus\";\nimport { reactive, watch } from \"vue\";\n\nconst emit = defineEmits([\"update:modelValue\"]);\nconst props = defineProps({\n modelValue: Boolean,\n field: Object,\n disabled: Boolean,\n});\nconst _form = reactive({ value: props.modelValue });\n\nfunction change() {\n emit(\"update:modelValue\", _form.value);\n}\n\nwatch(\n () => props.modelValue,\n () => {\n _form.value = props.modelValue;\n },\n { immediate: true },\n);\n</script>\n\n<style scoped lang=\"scss\"></style>\n","import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\nimport FieldEditor from \"./FieldEditor.vue\";\n\nexport default class BooleanFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.default = rawConfig.default || false;\n this.display = FieldDisplay;\n this.editor = FieldEditor;\n this.formChange = rawConfig.formChange || (() => {});\n\n this.checkValidProperties(rawConfig);\n }\n}\n"],"names":["props","__props","value","computed","emit","__emit","_form","reactive","change","watch","BooleanFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;;AAuBA,UAAMA,IAAQC,GASRC,IAAQC,EAAS,MACdH,EAAM,IAAIA,EAAM,MAAM,IAAI,CAClC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtBD,UAAMI,IAAOC,GACPL,IAAQC,GAKRK,IAAQC,EAAS,EAAE,OAAOP,EAAM,WAAY,CAAA;AAElD,aAASQ,IAAS;AAChB,MAAAJ,EAAK,qBAAqBE,EAAM,KAAK;AAAA,IACvC;AAEA,WAAAG;AAAA,MACE,MAAMT,EAAM;AAAA,MACZ,MAAM;AACJ,QAAAM,EAAM,QAAQN,EAAM;AAAA,MACrB;AAAA,MACD,EAAE,WAAW,GAAM;AAAA,IACrB;;;;;;;;AC1Be,MAAMU,UAA2BC,EAAgB;AAAA,EAC9D,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,UAAUD,EAAU,WAAW,IACpC,KAAK,UAAUE,GACf,KAAK,SAASC,GACd,KAAK,aAAaH,EAAU,eAAe,MAAM;AAAA,IAAE,IAEnD,KAAK,qBAAqBA,CAAS;AAAA,EACpC;AACH;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { E as f, B as h } from "./index-
|
|
1
|
+
import { E as f, B as h } from "./index-B5R2-PIR.js";
|
|
2
2
|
import { ref as u, watch as p, openBlock as r, createElementBlock as d, toDisplayString as v, createBlock as n, createTextVNode as y, reactive as _, unref as V } from "vue";
|
|
3
3
|
import { ElCascader as B } from "element-plus";
|
|
4
|
+
import "./el-radio-l0sNRNKZ.js";
|
|
4
5
|
const k = { key: 0 }, E = {
|
|
5
6
|
__name: "FieldDisplay",
|
|
6
7
|
props: {
|
|
@@ -51,7 +52,7 @@ const k = { key: 0 }, E = {
|
|
|
51
52
|
}, null, 8, ["modelValue", "props"]));
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
|
-
class
|
|
55
|
+
class C extends h {
|
|
55
56
|
constructor(e, t) {
|
|
56
57
|
super(e, t), this.props = e.props || (() => {
|
|
57
58
|
}), this.formChange = e.formChange || (() => {
|
|
@@ -59,6 +60,6 @@ class j extends h {
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
export {
|
|
62
|
-
|
|
63
|
+
C as default
|
|
63
64
|
};
|
|
64
|
-
//# sourceMappingURL=config-
|
|
65
|
+
//# sourceMappingURL=config-DxnWEDaj.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-DxnWEDaj.js","sources":["../src/framework/field/cascader/FieldDisplay.vue","../src/framework/field/cascader/FieldEditor.vue","../src/framework/field/cascader/config.js"],"sourcesContent":["<template>\n <div>\n <span v-if=\"!isEmpty\">\n {{ formattedValue }}\n </span>\n <EmptyTip v-else />\n edit\n </div>\n</template>\n\n<script setup>\nimport EmptyTip from \"../../component/EmptyTip.vue\";\nimport { ref, watch } from \"vue\";\n\nconst props = defineProps({\n field: {\n type: Object,\n },\n row: {\n type: Object,\n },\n});\nconst isEmpty = ref(false);\nconst formattedValue = ref(\"...\");\n\nasync function getName() {\n const value = props.row[props.field.code];\n\n if (value === undefined || value === null) {\n isEmpty.value = true;\n } else if (`${value}`.trim() === \"\") {\n isEmpty.value = true;\n } else {\n formattedValue.value = value;\n isEmpty.value = false;\n }\n}\n\nwatch(() => props.row, getName, { immediate: true });\n</script>\n\n<style scoped lang=\"scss\"></style>\n","<template>\n <el-cascader\n v-model=\"_form.value\"\n :props=\"props.field.props\"\n clearable\n style=\"width: 100%\"\n @change=\"change\"\n />\n</template>\n\n<script setup>\nimport { ElCascader } from \"element-plus\";\nimport { reactive, watch } from \"vue\";\n\nconst emit = defineEmits([\"update:modelValue\"]);\nconst props = defineProps({\n modelValue: Array,\n field: Object,\n disabled: Boolean,\n});\nconst _form = reactive({ value: props.modelValue });\n\nfunction change() {\n emit(\"update:modelValue\", _form.value);\n}\n\nwatch(\n () => props.modelValue,\n () => {\n _form.value = props.modelValue;\n },\n { immediate: true },\n);\n</script>\n\n<style scoped lang=\"scss\"></style>\n","import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\nimport FieldEditor from \"./FieldEditor.vue\";\n\nclass CascaderFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.props = rawConfig.props || (() => {});\n this.formChange = rawConfig.formChange || (() => {});\n this.display = FieldDisplay;\n this.editor = FieldEditor;\n this.multiple = this.defaultBy(rawConfig.multiple, false);\n\n this.checkValidProperties(rawConfig);\n }\n}\n\nexport default CascaderFieldConfig;\n"],"names":["props","__props","isEmpty","ref","formattedValue","getName","value","watch","emit","__emit","_form","reactive","change","CascaderFieldConfig","BaseFieldConfig","rawConfig","domain","FieldDisplay","FieldEditor"],"mappings":";;;;;;;;;;;;;;;AAcA,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;;;;;;;;;;;;;;ACxBnD,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;;;;;;;;;;AC5BA,MAAMa,UAA4BC,EAAgB;AAAA,EAChD,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,QAAQD,EAAU,UAAU,MAAM;AAAA,IAAE,IACzC,KAAK,aAAaA,EAAU,eAAe,MAAM;AAAA,IAAE,IACnD,KAAK,UAAUE,GACf,KAAK,SAASC,GACd,KAAK,WAAW,KAAK,UAAUH,EAAU,UAAU,EAAK,GAExD,KAAK,qBAAqBA,CAAS;AAAA,EACpC;AACH;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, B as p } from "./index-
|
|
1
|
+
import { _ as a, B as p } from "./index-B5R2-PIR.js";
|
|
2
2
|
import { openBlock as l, createElementBlock as r, createElementVNode as u, defineAsyncComponent as _, reactive as f, watch as m, createVNode as h, unref as v } from "vue";
|
|
3
3
|
const y = { class: "editor-field" }, V = ["innerHTML"], x = {
|
|
4
4
|
__name: "FieldDisplay",
|
|
@@ -28,7 +28,7 @@ const y = { class: "editor-field" }, V = ["innerHTML"], x = {
|
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:modelValue"],
|
|
30
30
|
setup(t, { emit: e }) {
|
|
31
|
-
const o = _(() => import("./RichTextEditor-
|
|
31
|
+
const o = _(() => import("./RichTextEditor-4VJbZesz.js")), n = e, s = t, i = f({ value: s.modelValue });
|
|
32
32
|
return m(
|
|
33
33
|
() => i.value,
|
|
34
34
|
() => {
|
|
@@ -56,4 +56,4 @@ class k extends p {
|
|
|
56
56
|
export {
|
|
57
57
|
k as default
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=config-
|
|
59
|
+
//# sourceMappingURL=config-KFcY3l3O.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-KFcY3l3O.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>\nconst props = defineProps({\n field: {\n type: Object,\n },\n row: {\n type: Object,\n },\n});\n</script>\n\n<template>\n <div class=\"editor-field\">\n <div class=\"content\" v-html=\"props.row[props.field.code]\" />\n </div>\n</template>\n\n<style scoped lang=\"scss\">\n.editor-field {\n width: 100%;\n background: #999;\n padding: 20px 0;\n\n .content {\n word-wrap: break-word;\n font-family: \"Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif\" !important;\n max-width: 500px;\n padding: 20px;\n margin: 0 auto;\n background: white;\n white-space: break-spaces;\n :deep(img) {\n width: 100%;\n max-width: 100%;\n }\n }\n}\n</style>\n","<template>\n <div style=\"width: 100%\">\n <RichTextEditor v-model:content=\"_form.value\" :field=\"props.field\" />\n </div>\n</template>\n\n<script setup>\nimport { reactive, watch, defineAsyncComponent, defineEmits } from \"vue\";\n\nconst RichTextEditor = defineAsyncComponent(() => {\n return import(\"./RichTextEditor.vue\");\n});\n\nconst emit = defineEmits([\"update:modelValue\"]);\nconst props = defineProps({\n modelValue: String,\n field: Object,\n disabled: Boolean,\n});\nconst _form = reactive({ value: props.modelValue });\n\nwatch(\n () => _form.value,\n () => {\n emit(\"update:modelValue\", _form.value);\n },\n);\n</script>\n\n<style scoped lang=\"scss\"></style>\n","import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\nimport FieldEditor from \"./FieldEditor.vue\";\n\nexport default class EditorFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.display = FieldDisplay;\n this.editor = FieldEditor;\n\n this.checkValidProperties(rawConfig);\n }\n\n defaultConfig() {\n return {\n showInList: false,\n };\n }\n}\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;;;;;;;;;ACtBe,MAAMG,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 i, F as s } from "./index-
|
|
1
|
+
import { B as i, F as s } from "./index-B5R2-PIR.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-pICAEHCe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-pICAEHCe.js","sources":["../src/framework/field/row-id/config.js"],"sourcesContent":["import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\n\nexport default class RowIdFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.editable = () => false;\n this.isRouter = this.isRouter(rawConfig);\n this.rowQuery = rawConfig.rowQuery || (() => ({}));\n this.display = FieldDisplay;\n this.fixed = true;\n\n this.checkValidProperties(rawConfig);\n }\n\n isRouter(rawConfig) {\n const raw = rawConfig.isRouter;\n\n if (typeof raw == \"boolean\") {\n return () => raw;\n }\n\n if (typeof raw == \"function\") {\n return raw;\n }\n\n if (typeof raw == \"undefined\") {\n return () => true;\n }\n\n throw new Exception(`invalid isRouter : ${raw}`);\n }\n}\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 { B as o } from "./index-
|
|
1
|
+
import { B as o } from "./index-B5R2-PIR.js";
|
|
2
2
|
class p extends o {
|
|
3
3
|
constructor(e, t) {
|
|
4
4
|
super(e, t), this.component = e.component, this.display = e.component, this.editor = e.component, this.checkValidProperties(e);
|
|
@@ -7,4 +7,4 @@ class p extends o {
|
|
|
7
7
|
export {
|
|
8
8
|
p as default
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=config-
|
|
10
|
+
//# sourceMappingURL=config-sHhddDkQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-sHhddDkQ.js","sources":["../src/framework/field/component/config.js"],"sourcesContent":["import BaseFieldConfig from \"../base-field-config\";\n\nexport default class ComponentFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.component = rawConfig.component;\n this.display = rawConfig.component;\n this.editor = rawConfig.component;\n\n this.checkValidProperties(rawConfig);\n }\n}\n"],"names":["ComponentFieldConfig","BaseFieldConfig","rawConfig","domain"],"mappings":";AAEe,MAAMA,UAA6BC,EAAgB;AAAA,EAChE,YAAYC,GAAWC,GAAQ;AAC7B,UAAMD,GAAWC,CAAM,GACvB,KAAK,YAAYD,EAAU,WAC3B,KAAK,UAAUA,EAAU,WACzB,KAAK,SAASA,EAAU,WAExB,KAAK,qBAAqBA,CAAS;AAAA,EACpC;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-B5R2-PIR.js";
|
|
2
2
|
import { ref as n, watch as u, openBlock as i, createElementBlock as v, toDisplayString as y, createBlock as d, reactive as _, unref as V } from "vue";
|
|
3
3
|
import { ElInput as b } from "element-plus";
|
|
4
4
|
const h = { key: 0 }, g = {
|
|
@@ -63,4 +63,4 @@ class j extends f {
|
|
|
63
63
|
export {
|
|
64
64
|
j as default
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=config-
|
|
66
|
+
//# sourceMappingURL=config-vsqFsOM9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-vsqFsOM9.js","sources":["../src/framework/field/text/FieldDisplay.vue","../src/framework/field/text/FieldEditor.vue","../src/framework/field/text/config.js"],"sourcesContent":["<script setup>\nimport EmptyTip from \"../../component/EmptyTip.vue\";\nimport { ref, watch } from \"vue\";\n\nconst props = defineProps({\n field: {\n type: Object,\n },\n row: {\n type: Object,\n },\n});\nconst isEmpty = ref(false);\nconst formattedValue = ref(\"...\");\n\nasync function getName() {\n const value = props.row[props.field.code];\n if (value === undefined || value === null) {\n isEmpty.value = true;\n } else if (`${value}`.trim() === \"\") {\n isEmpty.value = true;\n } else {\n formattedValue.value = value;\n isEmpty.value = false;\n }\n}\n\nwatch(() => props.row, getName, { immediate: true });\n</script>\n\n<template>\n <span v-if=\"!isEmpty\">\n {{ formattedValue }}\n </span>\n <EmptyTip v-else />\n</template>\n\n<style scoped lang=\"scss\"></style>\n","<template>\n <el-input\n v-model=\"_form.value\"\n type=\"textarea\"\n :rows=\"5\"\n clearable\n :disabled=\"props.disabled\"\n @input=\"change\"\n />\n</template>\n\n<script setup>\nimport { ElInput } from \"element-plus\";\nimport { reactive, watch } from \"vue\";\n\nconst emit = defineEmits([\"update:modelValue\"]);\nconst props = defineProps({\n modelValue: String,\n field: Object,\n type: String,\n disabled: Boolean,\n});\nconst _form = reactive({ value: props.modelValue });\n\nfunction change() {\n emit(\"update:modelValue\", _form.value);\n}\n\nwatch(\n () => props.modelValue,\n () => {\n _form.value = props.modelValue;\n },\n { immediate: true },\n);\n</script>\n\n<style scoped lang=\"scss\"></style>\n","import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\nimport FieldEditor from \"./FieldEditor.vue\";\n\nexport default class TextFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.display = FieldDisplay;\n this.editor = FieldEditor;\n\n this.checkValidProperties(rawConfig);\n }\n\n defaultConfig() {\n return {\n showInList: false,\n };\n }\n}\n"],"names":["props","__props","isEmpty","ref","formattedValue","getName","value","watch","emit","__emit","_form","reactive","change","TextFieldConfig","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;;;;;;;;;;;;ACZnD,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;;;;;;;;;;;AC9Be,MAAMa,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 p, B as f } from "./index-
|
|
1
|
+
import { E as p, B as f } from "./index-B5R2-PIR.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-zgnv_Y78.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-zgnv_Y78.js","sources":["../src/framework/field/time/FieldDisplay.vue","../src/framework/field/time/FieldEditor.vue","../src/framework/field/time/config.js"],"sourcesContent":["<script setup>\nimport EmptyTip from \"../../component/EmptyTip.vue\";\nimport { ref, watch } from \"vue\";\n\nconst props = defineProps({\n field: {\n type: Object,\n },\n row: {\n type: Object,\n },\n});\nconst isEmpty = ref(false);\nconst formattedValue = ref(\"...\");\n\nasync function getTime() {\n const value = props.row[props.field.code];\n\n if (value === undefined || value === null) {\n isEmpty.value = true;\n } else if (`${value}`.trim() === \"\") {\n isEmpty.value = true;\n } else {\n formattedValue.value = value;\n isEmpty.value = false;\n }\n}\n\nwatch(() => props.row, getTime, { immediate: true });\n</script>\n\n<template>\n <span v-if=\"!isEmpty\">\n {{ formattedValue }}\n </span>\n <EmptyTip v-else />\n</template>\n\n<style scoped lang=\"scss\"></style>\n","<template>\n <el-time-picker\n v-model=\"_form.value\"\n :disabled=\"props.disabled\"\n :format=\"props.field.format\"\n :value-format=\"props.field.format\"\n @change=\"change\"\n >\n </el-time-picker>\n</template>\n\n<script setup>\nimport { ElTimePicker } from \"element-plus\";\nimport { reactive, watch } from \"vue\";\n\nconst emit = defineEmits([\"update:modelValue\"]);\nconst props = defineProps({\n modelValue: String,\n field: Object,\n disabled: Boolean,\n});\nconst _form = reactive({ value: props.modelValue });\n\nfunction change() {\n emit(\"update:modelValue\", _form.value);\n}\n\nwatch(\n () => props.modelValue,\n () => {\n _form.value = props.modelValue;\n },\n { immediate: true },\n);\n</script>\n\n<style scoped lang=\"scss\"></style>\n","import BaseFieldConfig from \"../base-field-config\";\nimport FieldDisplay from \"./FieldDisplay.vue\";\nimport FieldEditor from \"./FieldEditor.vue\";\n\nexport default class TimeFieldConfig extends BaseFieldConfig {\n constructor(rawConfig, domain) {\n super(rawConfig, domain);\n this.display = FieldDisplay;\n this.editor = FieldEditor;\n this.width = this.computeWidth(rawConfig);\n\n this.checkValidProperties(rawConfig);\n }\n\n computeWidth(rawConfig) {\n if (rawConfig.width) {\n return rawConfig.width;\n }\n\n return 200;\n }\n}\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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"el-radio-l0sNRNKZ.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1901,7 +1901,7 @@ const ol = {
|
|
|
1901
1901
|
}, Zo = ["createdAt", "updatedAt", "deletedAt"];
|
|
1902
1902
|
class ea {
|
|
1903
1903
|
constructor(e, n) {
|
|
1904
|
-
this.domain = n, this.type = e.type || "string", this.code = e.code, this.label = e.label, this.showInList = this._showInList(e), this.showInDetail = this._showInDetail(e), this.extendDetail = e.extendDetail || !1, this.rules = e.rules || [], this.editable = this._editable(e), this.visible = this._visible(e), this.width = this.computeWidth(e), this.span = e.span || 6, this.wholeRow = (e == null ? void 0 : e.wholeRow) || !1, this.fixed = !1, this.maxImageCounts = e.maxImageCounts, this.format = e.format || "HH:mm:ss";
|
|
1904
|
+
this.domain = n, this.type = e.type || "string", this.code = e.code, this.label = e.label, this.showInList = this._showInList(e), this.showInDetail = this._showInDetail(e), this.extendDetail = e.extendDetail || !1, this.rules = e.rules || [], this.editable = this._editable(e), this.visible = this._visible(e), this.width = this.computeWidth(e), this.span = e.span || 6, this.wholeRow = (e == null ? void 0 : e.wholeRow) || !1, this.fixed = !1, this.maxImageCounts = e.maxImageCounts, this.format = e.format || "HH:mm:ss", this.change = (e == null ? void 0 : e.change) || null;
|
|
1905
1905
|
}
|
|
1906
1906
|
computeWidth(e) {
|
|
1907
1907
|
return e.width ? e.width : Zo.includes(e.code) ? 200 : e.code === "id" || e.type === "image" ? 100 : null;
|
|
@@ -2004,10 +2004,11 @@ const nt = {
|
|
|
2004
2004
|
},
|
|
2005
2005
|
"tree-select": { config: "tree-select" },
|
|
2006
2006
|
cascader: { config: "cascader" },
|
|
2007
|
+
"radio-group": { config: "radio-group" },
|
|
2007
2008
|
component: { config: "component" }
|
|
2008
2009
|
};
|
|
2009
2010
|
async function Kt(t, e, n) {
|
|
2010
|
-
const s = await Xo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-
|
|
2011
|
+
const s = await Xo(/* @__PURE__ */ Object.assign({ "./field/attachment/config.js": () => import("./config-Bo0Ejvao.js"), "./field/belongs-to/config.js": () => import("./config-BSD8uO2H.js"), "./field/boolean/config.js": () => import("./config-CwVeOemE.js"), "./field/cascader/config.js": () => import("./config-DxnWEDaj.js"), "./field/component/config.js": () => import("./config-sHhddDkQ.js"), "./field/date/config.js": () => import("./config-Cd-l6zLr.js"), "./field/datetime/config.js": () => import("./config-BUi_68JX.js"), "./field/image/config.js": () => import("./config-CvalidFy.js"), "./field/images/config.js": () => import("./config-BVaWa82F.js"), "./field/json/config.js": () => import("./config-BnHH9EEx.js"), "./field/radio-group/config.js": () => import("./config-BPInBpGk.js"), "./field/rich-text/config.js": () => import("./config-KFcY3l3O.js"), "./field/row-id/config.js": () => import("./config-pICAEHCe.js"), "./field/select/config.js": () => import("./config-BnQ5RNT5.js"), "./field/string/config.js": () => import("./config-C7aBNMoz.js"), "./field/switch/config.js": () => import("./config-CE86st16.js"), "./field/text/config.js": () => import("./config-vsqFsOM9.js"), "./field/time/config.js": () => import("./config-zgnv_Y78.js"), "./field/tree-select/config.js": () => import("./config-CV0wJl5O.js") }), `./field/${t}/config.js`, 4);
|
|
2011
2012
|
return new s.default(e, n);
|
|
2012
2013
|
}
|
|
2013
2014
|
function Yt(t, e = "unknown") {
|
|
@@ -2713,7 +2714,7 @@ const Se = {
|
|
|
2713
2714
|
},
|
|
2714
2715
|
emits: ["update:modelValue"],
|
|
2715
2716
|
setup(t, { emit: e }) {
|
|
2716
|
-
const n = Xn(() => import("./ImagesUploader-
|
|
2717
|
+
const n = Xn(() => import("./ImagesUploader-9qOx2FfT.js")), s = He().fileUploadUrl, o = e, a = t, r = Oe({ value: a.modelValue }), l = a.field.converter;
|
|
2717
2718
|
function d(c) {
|
|
2718
2719
|
const i = r.value.findIndex((E) => E.id === c.id);
|
|
2719
2720
|
i >= 0 && (r.value.splice(i, 1), o("update:modelValue", r.value));
|
|
@@ -5227,7 +5228,8 @@ const hi = {
|
|
|
5227
5228
|
"textarea",
|
|
5228
5229
|
"text",
|
|
5229
5230
|
"json",
|
|
5230
|
-
"tree-select"
|
|
5231
|
+
"tree-select",
|
|
5232
|
+
"radio-group"
|
|
5231
5233
|
], c = I(() => s.settings.fields.filter((v) => v.showInDetail(d.value, {
|
|
5232
5234
|
...a,
|
|
5233
5235
|
...s.query
|
|
@@ -5334,7 +5336,7 @@ const hi = {
|
|
|
5334
5336
|
])
|
|
5335
5337
|
]));
|
|
5336
5338
|
}
|
|
5337
|
-
}, Jn = /* @__PURE__ */ j(Ni, [["__scopeId", "data-v-
|
|
5339
|
+
}, Jn = /* @__PURE__ */ j(Ni, [["__scopeId", "data-v-dbcf33d5"]]), Ii = { class: "data-page-title" }, Vi = { class: "title" }, Mi = {
|
|
5338
5340
|
__name: "DataDetailHeader",
|
|
5339
5341
|
props: {
|
|
5340
5342
|
data: {
|
|
@@ -5648,4 +5650,4 @@ export {
|
|
|
5648
5650
|
il as y,
|
|
5649
5651
|
ul as z
|
|
5650
5652
|
};
|
|
5651
|
-
//# sourceMappingURL=index-
|
|
5653
|
+
//# sourceMappingURL=index-B5R2-PIR.js.map
|