liyu-pc-base 1.0.445 → 1.0.447
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/FieldRender-DtPg5aL3.js +2 -0
- package/dist/{FieldRender-BCJMzot4.js → FieldRender-h_7sWuWm.js} +2 -2
- package/dist/{FieldRender-BCJMzot4.js.map → FieldRender-h_7sWuWm.js.map} +1 -1
- package/dist/{FieldRender2-DkXqFh7K.js → FieldRender2-C2KuAjeI.js} +5 -5
- package/dist/{FieldRender2-DkXqFh7K.js.map → FieldRender2-C2KuAjeI.js.map} +1 -1
- package/dist/FormRender3-BrLDc6PN.js +2 -0
- package/dist/{FormRender3-DYxyFmob.js → FormRender3-DrZwlTI8.js} +3 -3
- package/dist/{FormRender3-DYxyFmob.js.map → FormRender3-DrZwlTI8.js.map} +1 -1
- package/dist/RemoteModal-B3Vw7EPw.js +2 -0
- package/dist/{RemoteModal-BWZCRQbO.js → RemoteModal-jn_BF1Qc.js} +1 -1
- package/dist/{RemoteModal-BWZCRQbO.js.map → RemoteModal-jn_BF1Qc.js.map} +1 -1
- package/dist/{RemoteSelectPro-Cmc84ZsR.js → RemoteSelectPro-DXlx3__y.js} +27 -29
- package/dist/RemoteSelectPro-DXlx3__y.js.map +1 -0
- package/dist/{SearchRender-joh4n3bq.js → SearchRender-BK7TelFL.js} +1 -1
- package/dist/{SearchRender-joh4n3bq.js.map → SearchRender-BK7TelFL.js.map} +1 -1
- package/dist/SearchRender-Cx0m126U.js +2 -0
- package/dist/{TinymceEditor-DicUhhQY.js → TinymceEditor-Czp3rC1v.js} +2 -2
- package/dist/{TinymceEditor-DicUhhQY.js.map → TinymceEditor-Czp3rC1v.js.map} +1 -1
- package/dist/components/index.js +9 -9
- package/dist/{function-CaGMqBdj.js → function-CCxDERgN.js} +14 -22
- package/dist/{function-CaGMqBdj.js.map → function-CCxDERgN.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-B5N3TOLu.js → tableModal-CL_f8M2x.js} +1 -1
- package/dist/{tableModal-B5N3TOLu.js.map → tableModal-CL_f8M2x.js.map} +1 -1
- package/dist/{tablePro-B3dkk7po.js → tablePro-B5bMmltZ.js} +6 -12
- package/dist/{tablePro-B3dkk7po.js.map → tablePro-B5bMmltZ.js.map} +1 -1
- package/dist/tablePro-BiqwTUIo.js +2 -0
- package/dist/utils/function.js +1 -1
- package/dist/utils/hooks/useFetchData.js +1 -1
- package/package.json +1 -1
- package/dist/FieldRender-dSn9dkzF.js +0 -2
- package/dist/FormRender3-CZr0d4LB.js +0 -2
- package/dist/RemoteModal-BYhpbVT4.js +0 -2
- package/dist/RemoteSelectPro-Cmc84ZsR.js.map +0 -1
- package/dist/SearchRender-DqksjUck.js +0 -2
- package/dist/tablePro-DuXiEaeX.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableModal-
|
|
1
|
+
{"version":3,"file":"tableModal-CL_f8M2x.js","names":[],"sources":["../src/components/FormRender/RemoteSelectPro/tableModal.vue","../src/components/FormRender/RemoteSelectPro/tableModal.vue"],"sourcesContent":["<template>\n <a-modal\n :open=\"true\"\n title=\"请选择\"\n width=\"80%\"\n :destroyOnClose=\"true\"\n @ok=\"onOk\"\n >\n <div\n class=\"table-modal\"\n :style=\"{ height: `${height}px` }\"\n >\n <div class=\"header\">\n 当前选择:\n <a-tag\n v-for=\"item in innerValue\"\n :closable=\"true\"\n :key=\"item.value\"\n @close=\"handlerClose(item)\"\n >\n {{ item.label }}\n </a-tag>\n </div>\n <component\n :is=\"asyncTable\"\n :config=\"tableConfig\"\n :initSelectValue=\"initSelectValue\"\n :initValueKey=\"valueKey\"\n @selectChange=\"handlerSelectChange\"\n ></component>\n </div>\n </a-modal>\n</template>\n<script setup lang=\"ts\">\nimport { computed, defineAsyncComponent, onMounted, onUnmounted, ref } from 'vue';\nconst emit = defineEmits(['ok']);\nconst props = defineProps({\n tableConfig: {\n type: Object,\n required: true,\n },\n isMultiple: {\n type: Boolean,\n default: true,\n },\n value: {\n type: Object as () => any,\n default: () => null,\n },\n labelKey: {\n type: String,\n default: 'name',\n },\n labelKeyList: {\n type: Array,\n default: () => [],\n },\n labelKeyType: {\n type: Number,\n default: 0,\n },\n labelSpace: {\n type: String,\n default: '',\n },\n valueKey: {\n type: String,\n default: 'id',\n },\n});\nconst asyncTable = defineAsyncComponent(\n () => import('liyu-pc-base/components/tablePro/tablePro.vue'),\n);\nconst height = ref(500);\nconst innerValue = ref([]);\n\nconst resize = () => {\n height.value = window.innerHeight - 300;\n};\nconst initSelectValue = computed(() => {\n if (innerValue.value) {\n return innerValue.value.map(item => {\n return item.value;\n });\n } else {\n return [];\n }\n});\nonMounted(() => {\n resize();\n window.addEventListener('resize', resize);\n innerValue.value = props.value;\n});\nonUnmounted(() => {\n window.removeEventListener('resize', resize);\n});\nconst handlerClose = item => {\n innerValue.value = innerValue.value.filter(i => i.value !== item.value);\n};\nconst getLable = item => {\n let label;\n if (props.labelKeyList && props.labelKeyList.length > 0 && props?.labelKeyType !== 1) {\n const labelList = [];\n for (const key of props.labelKeyList) {\n labelList.push(item[key as string]);\n }\n label = labelList.join(props.labelSpace);\n } else {\n label = item[props.labelKey];\n }\n return label;\n};\nconst handlerSelectChange = (selectdRecord, unSelectdRecord) => {\n if (props.isMultiple) {\n const tmpValue = [...(innerValue.value || [])];\n for (const item of unSelectdRecord) {\n const value = item[props.valueKey];\n if (!tmpValue.some(i => i.value === value)) {\n continue;\n }\n tmpValue.splice(\n tmpValue.findIndex(i => i.value === value),\n 1,\n );\n }\n for (const item of selectdRecord) {\n const value = item[props.valueKey];\n const label = getLable(item);\n if (!tmpValue.some(i => i.value === value)) {\n tmpValue.push({\n value: value,\n label: label,\n });\n }\n }\n\n innerValue.value = tmpValue;\n } else {\n if (selectdRecord?.length > 0) {\n const item = selectdRecord[0];\n const value = item[props.valueKey];\n const label = getLable(item);\n innerValue.value = [\n {\n value: value,\n label: label,\n },\n ];\n } else {\n innerValue.value = [];\n }\n }\n};\nconst onOk = () => {\n emit('ok', innerValue.value);\n};\n</script>\n<style scoped lang=\"less\">\n.table-modal {\n display: flex;\n flex-direction: column;\n gap: 8px;\n .header {\n padding: 4px;\n }\n}\n</style>\n","<template>\n <a-modal\n :open=\"true\"\n title=\"请选择\"\n width=\"80%\"\n :destroyOnClose=\"true\"\n @ok=\"onOk\"\n >\n <div\n class=\"table-modal\"\n :style=\"{ height: `${height}px` }\"\n >\n <div class=\"header\">\n 当前选择:\n <a-tag\n v-for=\"item in innerValue\"\n :closable=\"true\"\n :key=\"item.value\"\n @close=\"handlerClose(item)\"\n >\n {{ item.label }}\n </a-tag>\n </div>\n <component\n :is=\"asyncTable\"\n :config=\"tableConfig\"\n :initSelectValue=\"initSelectValue\"\n :initValueKey=\"valueKey\"\n @selectChange=\"handlerSelectChange\"\n ></component>\n </div>\n </a-modal>\n</template>\n<script setup lang=\"ts\">\nimport { computed, defineAsyncComponent, onMounted, onUnmounted, ref } from 'vue';\nconst emit = defineEmits(['ok']);\nconst props = defineProps({\n tableConfig: {\n type: Object,\n required: true,\n },\n isMultiple: {\n type: Boolean,\n default: true,\n },\n value: {\n type: Object as () => any,\n default: () => null,\n },\n labelKey: {\n type: String,\n default: 'name',\n },\n labelKeyList: {\n type: Array,\n default: () => [],\n },\n labelKeyType: {\n type: Number,\n default: 0,\n },\n labelSpace: {\n type: String,\n default: '',\n },\n valueKey: {\n type: String,\n default: 'id',\n },\n});\nconst asyncTable = defineAsyncComponent(\n () => import('liyu-pc-base/components/tablePro/tablePro.vue'),\n);\nconst height = ref(500);\nconst innerValue = ref([]);\n\nconst resize = () => {\n height.value = window.innerHeight - 300;\n};\nconst initSelectValue = computed(() => {\n if (innerValue.value) {\n return innerValue.value.map(item => {\n return item.value;\n });\n } else {\n return [];\n }\n});\nonMounted(() => {\n resize();\n window.addEventListener('resize', resize);\n innerValue.value = props.value;\n});\nonUnmounted(() => {\n window.removeEventListener('resize', resize);\n});\nconst handlerClose = item => {\n innerValue.value = innerValue.value.filter(i => i.value !== item.value);\n};\nconst getLable = item => {\n let label;\n if (props.labelKeyList && props.labelKeyList.length > 0 && props?.labelKeyType !== 1) {\n const labelList = [];\n for (const key of props.labelKeyList) {\n labelList.push(item[key as string]);\n }\n label = labelList.join(props.labelSpace);\n } else {\n label = item[props.labelKey];\n }\n return label;\n};\nconst handlerSelectChange = (selectdRecord, unSelectdRecord) => {\n if (props.isMultiple) {\n const tmpValue = [...(innerValue.value || [])];\n for (const item of unSelectdRecord) {\n const value = item[props.valueKey];\n if (!tmpValue.some(i => i.value === value)) {\n continue;\n }\n tmpValue.splice(\n tmpValue.findIndex(i => i.value === value),\n 1,\n );\n }\n for (const item of selectdRecord) {\n const value = item[props.valueKey];\n const label = getLable(item);\n if (!tmpValue.some(i => i.value === value)) {\n tmpValue.push({\n value: value,\n label: label,\n });\n }\n }\n\n innerValue.value = tmpValue;\n } else {\n if (selectdRecord?.length > 0) {\n const item = selectdRecord[0];\n const value = item[props.valueKey];\n const label = getLable(item);\n innerValue.value = [\n {\n value: value,\n label: label,\n },\n ];\n } else {\n innerValue.value = [];\n }\n }\n};\nconst onOk = () => {\n emit('ok', innerValue.value);\n};\n</script>\n<style scoped lang=\"less\">\n.table-modal {\n display: flex;\n flex-direction: column;\n gap: 8px;\n .header {\n padding: 4px;\n }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCA,IAAM,IAAO,GACP,IAAQ,GAkCR,IAAa,QACX,OAAO,0BACd,EACK,IAAS,EAAI,IAAI,EACjB,IAAa,EAAI,EAAE,CAAC,EAEpB,UAAe;AACnB,KAAO,QAAQ,OAAO,cAAc;KAEhC,IAAkB,QAClB,EAAW,QACN,EAAW,MAAM,KAAI,MACnB,EAAK,MACZ,GAEK,EAAE,CAEX;AAMF,EALA,QAAgB;AAGd,GAFA,GAAQ,EACR,OAAO,iBAAiB,UAAU,EAAO,EACz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
5
5
|
import { t as s } from "./lodash-T_IuH2iQ.js";
|
|
6
6
|
import { getApiData as c } from "./api/api-model.js";
|
|
7
|
-
import { F as l, M as u, N as d, b as f, c as p, r as m, t as h, x as g } from "./function-
|
|
7
|
+
import { F as l, M as u, N as d, b as f, c as p, r as m, t as h, x as g } from "./function-CCxDERgN.js";
|
|
8
8
|
import { ConditionOperatorMap as _ } from "./api/typing.js";
|
|
9
|
-
import { t as v } from "./RemoteModal-
|
|
10
|
-
import { n as y, r as b, t as x } from "./RemoteSelectPro-
|
|
9
|
+
import { t as v } from "./RemoteModal-jn_BF1Qc.js";
|
|
10
|
+
import { n as y, r as b, t as x } from "./RemoteSelectPro-DXlx3__y.js";
|
|
11
11
|
import { t as ee } from "./RemoteFilterSelect-CapzhUOg.js";
|
|
12
12
|
import { t as S } from "./AttributeNomTable-BV3zeA9I.js";
|
|
13
13
|
import { t as te } from "./AttributeTable-Dztznjrx.js";
|
|
@@ -15,7 +15,7 @@ import { t as ne } from "./JsonStr-DE1QSIsP.js";
|
|
|
15
15
|
import { t as re } from "./JsonObj-Bq62nHPb.js";
|
|
16
16
|
import { t as ie } from "./RemoteText-BCKZJK52.js";
|
|
17
17
|
import { t as C } from "./modal-tools-9zfwQHxQ.js";
|
|
18
|
-
import { a as ae, c as oe, f as se, i as ce, l as le, n as ue, o as de, r as fe, s as pe, t as me, u as he } from "./TinymceEditor-
|
|
18
|
+
import { a as ae, c as oe, f as se, i as ce, l as le, n as ue, o as de, r as fe, s as pe, t as me, u as he } from "./TinymceEditor-Czp3rC1v.js";
|
|
19
19
|
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as ge, createTextVNode as A, createVNode as j, defineComponent as M, h as N, inject as _e, normalizeClass as ve, normalizeStyle as P, onActivated as ye, onDeactivated as be, onMounted as xe, onUnmounted as Se, openBlock as F, provide as Ce, reactive as I, ref as L, renderList as R, renderSlot as we, resolveComponent as z, resolveDynamicComponent as B, toDisplayString as V, unref as H, watch as U, withCtx as W } from "vue";
|
|
20
20
|
import { Modal as Te, message as G } from "ant-design-vue";
|
|
21
21
|
import { debounce as K, isArray as Ee, isEqual as De } from "lodash-es";
|
|
@@ -4246,13 +4246,7 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4246
4246
|
column_fields: t,
|
|
4247
4247
|
sort_fields: n
|
|
4248
4248
|
};
|
|
4249
|
-
if (q.value === "advanced") i.conditions = [
|
|
4250
|
-
op: "and",
|
|
4251
|
-
children: p(a.config.base_conditions)
|
|
4252
|
-
}, {
|
|
4253
|
-
op: "and",
|
|
4254
|
-
children: p(b.value)
|
|
4255
|
-
}];
|
|
4249
|
+
if (q.value === "advanced") i.conditions = [[...p(a.config.base_conditions), ...p(b.value)]];
|
|
4256
4250
|
else if (q.value === "simple") for (let e of p(b.value)) {
|
|
4257
4251
|
let t = kt(e.operator, e), n = e.value;
|
|
4258
4252
|
t === 1 && (n = n[0]), i[e.field_name] = n;
|
|
@@ -4865,6 +4859,6 @@ var Hn = /* @__PURE__ */ a(Rn, [["render", Vn]]), Un = { class: "ant-pro-table-l
|
|
|
4865
4859
|
])) : D("", !0)], 64);
|
|
4866
4860
|
};
|
|
4867
4861
|
}
|
|
4868
|
-
}), [["__scopeId", "data-v-
|
|
4862
|
+
}), [["__scopeId", "data-v-6e699e2c"]]);
|
|
4869
4863
|
//#endregion
|
|
4870
4864
|
export { Ct as a, _t as c, bt as i, $ as l, St as n, vt as o, gt as r, yt as s, ur as t };
|