liyu-pc-base 1.0.409 → 1.0.413
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-BtVHqH5T.js +2 -0
- package/dist/{FieldRender-D31r6qkp.js → FieldRender-DskvKT0O.js} +1 -1
- package/dist/{FieldRender-D31r6qkp.js.map → FieldRender-DskvKT0O.js.map} +1 -1
- package/dist/{FieldRender2-CnS4qeov.js → FieldRender2-Bi-2umbv.js} +4 -4
- package/dist/{FieldRender2-CnS4qeov.js.map → FieldRender2-Bi-2umbv.js.map} +1 -1
- package/dist/FormRender3-BIe94gk3.js +2 -0
- package/dist/{FormRender3-CCdB88mS.js → FormRender3-DnRt6BH0.js} +2 -2
- package/dist/{FormRender3-CCdB88mS.js.map → FormRender3-DnRt6BH0.js.map} +1 -1
- package/dist/{ImportExcelModal-C4tdTnYK.js → ImportExcelModal-RqLC4zwa.js} +118 -18
- package/dist/ImportExcelModal-RqLC4zwa.js.map +1 -0
- package/dist/{RemoteSelectPro-BuaxspIh.js → RemoteSelectPro-DXCAqoi5.js} +1 -1
- package/dist/{RemoteSelectPro-BuaxspIh.js.map → RemoteSelectPro-DXCAqoi5.js.map} +1 -1
- package/dist/{SearchRender-vGnupD_1.js → SearchRender-PFQ2bLV3.js} +1 -1
- package/dist/{SearchRender-vGnupD_1.js.map → SearchRender-PFQ2bLV3.js.map} +1 -1
- package/dist/SearchRender-vHcwEsFw.js +2 -0
- package/dist/{TinymceEditor-CiIRNR2c.js → TinymceEditor-Z6uOTa2S.js} +1 -1
- package/dist/{TinymceEditor-CiIRNR2c.js.map → TinymceEditor-Z6uOTa2S.js.map} +1 -1
- package/dist/components/index.js +7 -7
- package/dist/index.js +1 -1
- package/dist/{tableModal-Cf2V1-zL.js → tableModal-DZd3vWHO.js} +1 -1
- package/dist/{tableModal-Cf2V1-zL.js.map → tableModal-DZd3vWHO.js.map} +1 -1
- package/dist/{tablePro-D4PxgHEP.js → tablePro-D1_7IFQF.js} +2 -2
- package/dist/{tablePro-D4PxgHEP.js.map → tablePro-D1_7IFQF.js.map} +1 -1
- package/dist/tablePro-zFwGfk2A.js +2 -0
- package/package.json +1 -1
- package/dist/FieldRender-BqD17c1E.js +0 -2
- package/dist/FormRender3-DU5jfVFh.js +0 -2
- package/dist/ImportExcelModal-C4tdTnYK.js.map +0 -1
- package/dist/SearchRender-R7GmoRMs.js +0 -2
- package/dist/tablePro-BaiTKi_V.js +0 -2
package/dist/components/index.js
CHANGED
|
@@ -7,15 +7,15 @@ import { getApiData as d } from "../api/api-model.js";
|
|
|
7
7
|
import { D as f, N as p, r as m } from "../function-H7GI-Ydw.js";
|
|
8
8
|
import { n as h } from "../remotePages-BIrVZZC4.js";
|
|
9
9
|
import { t as g } from "../RemoteModal-DYWn6fNv.js";
|
|
10
|
-
import { t as _ } from "../RemoteSelectPro-
|
|
10
|
+
import { t as _ } from "../RemoteSelectPro-DXCAqoi5.js";
|
|
11
11
|
import { t as v } from "../JsonObj-Bq62nHPb.js";
|
|
12
12
|
import { t as y } from "../modal-tools-9zfwQHxQ.js";
|
|
13
|
-
import { t as b } from "../FieldRender-
|
|
14
|
-
import { c as x, d as S, f as ee, i as C } from "../TinymceEditor-
|
|
15
|
-
import { t as w } from "../FieldRender2-
|
|
16
|
-
import { t as T } from "../SearchRender-
|
|
17
|
-
import { t as E } from "../FormRender3-
|
|
18
|
-
import { a as te, c as ne, i as re, l as D, n as ie, o as ae, r as oe, s as O, t as k } from "../tablePro-
|
|
13
|
+
import { t as b } from "../FieldRender-DskvKT0O.js";
|
|
14
|
+
import { c as x, d as S, f as ee, i as C } from "../TinymceEditor-Z6uOTa2S.js";
|
|
15
|
+
import { t as w } from "../FieldRender2-Bi-2umbv.js";
|
|
16
|
+
import { t as T } from "../SearchRender-PFQ2bLV3.js";
|
|
17
|
+
import { t as E } from "../FormRender3-DnRt6BH0.js";
|
|
18
|
+
import { a as te, c as ne, i as re, l as D, n as ie, o as ae, r as oe, s as O, t as k } from "../tablePro-D1_7IFQF.js";
|
|
19
19
|
import { gridPageStateSymbol as A } from "./gridPage/utils.js";
|
|
20
20
|
import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, getCurrentInstance as se, inject as ce, markRaw as le, mergeProps as ue, nextTick as B, normalizeClass as de, normalizeStyle as V, onActivated as fe, onBeforeMount as pe, onBeforeUnmount as me, onMounted as he, onUnmounted as ge, openBlock as H, provide as U, reactive as W, ref as G, renderList as K, renderSlot as _e, resolveComponent as q, resolveDynamicComponent as ve, shallowRef as ye, toDisplayString as J, unref as be, vShow as xe, watch as Y, withCtx as X, withDirectives as Se, withModifiers as Z } from "vue";
|
|
21
21
|
import { Modal as Ce, message as Q } from "ant-design-vue";
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { I as e, M as t, P as n, a as r, b as i, c as a, d as o, g as s, i as c,
|
|
|
3
3
|
import { defineAsyncComponent as y } from "vue";
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
var b = { install(b, x) {
|
|
6
|
-
x?.env && b.use(r(x.env)), x?.globMap && b.use(u(x.globMap)), x?.bus && b.use(g(x.bus)), x?.useAppStore && b.use(i(x.useAppStore)), x?.useUserStore && b.use(n(x.useUserStore)), x?.request && b.use(d(x.request)), x?.useRequiredConditionStore && b.use(t(x.useRequiredConditionStore)), x?.required_condition_event_obj && b.use(s(x.required_condition_event_obj)), x?.event_obj && b.use(h(x.event_obj)), x?.ls && b.use(_(x.ls)), x?.sourceStore && b.use(v(x.sourceStore)), x?.usePageConfigStore && b.use(l(x.usePageConfigStore)), x?.remoteSelectStore && b.use(p(x.remoteSelectStore)), x?.cellComponentMap && b.use(f(x.cellComponentMap)), x?.cellFormatExcelValueMap && b.use(m(x.cellFormatExcelValueMap)), x?.menuComponents && b.use(o(x.menuComponents)), x?.debugCodeComponent && b.use(c(x.debugCodeComponent)), x?.extraMenuIcons && b.use(a(x.extraMenuIcons)), x?.workerHostFunctions && b.use(e(x.workerHostFunctions)), b.component("FieldRender", y(() => import("./FieldRender-
|
|
6
|
+
x?.env && b.use(r(x.env)), x?.globMap && b.use(u(x.globMap)), x?.bus && b.use(g(x.bus)), x?.useAppStore && b.use(i(x.useAppStore)), x?.useUserStore && b.use(n(x.useUserStore)), x?.request && b.use(d(x.request)), x?.useRequiredConditionStore && b.use(t(x.useRequiredConditionStore)), x?.required_condition_event_obj && b.use(s(x.required_condition_event_obj)), x?.event_obj && b.use(h(x.event_obj)), x?.ls && b.use(_(x.ls)), x?.sourceStore && b.use(v(x.sourceStore)), x?.usePageConfigStore && b.use(l(x.usePageConfigStore)), x?.remoteSelectStore && b.use(p(x.remoteSelectStore)), x?.cellComponentMap && b.use(f(x.cellComponentMap)), x?.cellFormatExcelValueMap && b.use(m(x.cellFormatExcelValueMap)), x?.menuComponents && b.use(o(x.menuComponents)), x?.debugCodeComponent && b.use(c(x.debugCodeComponent)), x?.extraMenuIcons && b.use(a(x.extraMenuIcons)), x?.workerHostFunctions && b.use(e(x.workerHostFunctions)), b.component("FieldRender", y(() => import("./FieldRender-BtVHqH5T.js"))).component("AttributeTable", y(() => import("./AttributeTable-Dztznjrx.js").then((e) => e.n))).component("AttributeNomTable", y(() => import("./AttributeNomTable-BV3zeA9I.js").then((e) => e.n))).component("SearchRender", y(() => import("./SearchRender-vHcwEsFw.js"))).component("RemoteSelect", y(() => import("./RemoteSelect-DvptpIwS.js").then((e) => e.n))).component("RemoteCascader", y(() => import("./RemoteCascader-DyHXstUo.js").then((e) => e.n))).component("RemoteFilterSelect", y(() => import("./RemoteFilterSelect-CapzhUOg.js").then((e) => e.n))).component("RemoteModal", y(() => import("./RemoteModal-Bf2X-87c.js"))).component("JsonStr", y(() => import("./JsonStr-DE1QSIsP.js").then((e) => e.n))).component("JsonObj", y(() => import("./JsonObj-Bq62nHPb.js").then((e) => e.n))).component("RemoteText", y(() => import("./RemoteText-BCKZJK52.js").then((e) => e.n))).component("RemoteTable2", y(() => import("./RemoteTable2-DEUCRHzb.js").then((e) => e.n))).component("FormRender3", y(() => import("./FormRender3-BIe94gk3.js")));
|
|
7
7
|
} };
|
|
8
8
|
//#endregion
|
|
9
9
|
export { b as default };
|
|
@@ -39,7 +39,7 @@ var b = { class: "header" }, x = /* @__PURE__ */ e(/* @__PURE__ */ c({
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["ok"],
|
|
41
41
|
setup(e, { emit: c }) {
|
|
42
|
-
let x = c, S = e, C = s(() => import("./tablePro-
|
|
42
|
+
let x = c, S = e, C = s(() => import("./tablePro-zFwGfk2A.js")), w = p(500), T = p([]), E = () => {
|
|
43
43
|
w.value = window.innerHeight - 300;
|
|
44
44
|
}, D = n(() => T.value ? T.value.map((e) => e.value) : []);
|
|
45
45
|
u(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableModal-
|
|
1
|
+
{"version":3,"file":"tableModal-DZd3vWHO.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 @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 = props.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 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 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 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 @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 = props.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 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 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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCA,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,EACzC,EAAW,QAAQ,EAAM;IACzB,EACF,QAAkB;AAChB,UAAO,oBAAoB,UAAU,EAAO;IAC5C;EACF,IAAM,KAAe,MAAQ;AAC3B,KAAW,QAAQ,EAAM,MAAM,QAAO,MAAK,EAAE,UAAU,EAAK,MAAM;KAE9D,KAAW,MAAQ;GACvB,IAAI;AACJ,OAAI,EAAM,gBAAgB,EAAM,aAAa,SAAS,KAAK,GAAO,iBAAiB,GAAG;IACpF,IAAM,IAAY,EAAE;AACpB,SAAK,IAAM,KAAO,EAAM,aACtB,GAAU,KAAK,EAAK,GAAe;AAErC,QAAQ,EAAU,KAAK,EAAM,WAAW;SAExC,KAAQ,EAAK,EAAM;AAErB,UAAO;KAEH,KAAuB,GAAe,MAAoB;AAC9D,OAAI,EAAM,YAAY;IACpB,IAAM,IAAW,CAAC,GAAI,EAAW,SAAS,EAAE,CAAE;AAC9C,SAAK,IAAM,KAAQ,GAAe;KAChC,IAAM,IAAQ,EAAK,EAAM,WACnB,IAAQ,EAAS,EAAK;AAC5B,KAAK,EAAS,MAAK,MAAK,EAAE,UAAU,EAAM,IACxC,EAAS,KAAK;MACL;MACA;MACR,CAAC;;AAIN,SAAK,IAAM,KAAQ,GAAiB;KAClC,IAAM,IAAQ,EAAK,EAAM;AACpB,OAAS,MAAK,MAAK,EAAE,UAAU,EAAM,IAG1C,EAAS,OACP,EAAS,WAAU,MAAK,EAAE,UAAU,EAAM,EAC1C,EACD;;AAEH,MAAW,QAAQ;cAEf,GAAe,SAAS,GAAG;IAC7B,IAAM,IAAO,EAAc;AAG3B,MAAW,QAAQ,CACjB;KACS,OAJG,EAAK,EAAM;KAKd,OAJG,EAAS,EAAK;KAKzB,CACF;SAED,GAAW,QAAQ,EAAE;KAIrB,UAAa;AACjB,KAAK,MAAM,EAAW,MAAM"}
|
|
@@ -7,7 +7,7 @@ import { getApiData as c } from "./api/api-model.js";
|
|
|
7
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-H7GI-Ydw.js";
|
|
8
8
|
import { ConditionOperatorMap as _ } from "./api/typing.js";
|
|
9
9
|
import { t as v } from "./RemoteModal-DYWn6fNv.js";
|
|
10
|
-
import { n as y, r as b, t as x } from "./RemoteSelectPro-
|
|
10
|
+
import { n as y, r as b, t as x } from "./RemoteSelectPro-DXCAqoi5.js";
|
|
11
11
|
import { t as S } from "./RemoteFilterSelect-CapzhUOg.js";
|
|
12
12
|
import { t as C } from "./AttributeNomTable-BV3zeA9I.js";
|
|
13
13
|
import { t as ee } from "./AttributeTable-Dztznjrx.js";
|
|
@@ -15,7 +15,7 @@ import { t as te } from "./JsonStr-DE1QSIsP.js";
|
|
|
15
15
|
import { t as ne } from "./JsonObj-Bq62nHPb.js";
|
|
16
16
|
import { t as re } from "./RemoteText-BCKZJK52.js";
|
|
17
17
|
import { t as w } from "./modal-tools-9zfwQHxQ.js";
|
|
18
|
-
import { a as ie, c as ae, f as oe, i as se, l as ce, n as le, o as ue, r as de, s as fe, t as pe, u as me } from "./TinymceEditor-
|
|
18
|
+
import { a as ie, c as ae, f as oe, i as se, l as ce, n as le, o as ue, r as de, s as fe, t as pe, u as me } from "./TinymceEditor-Z6uOTa2S.js";
|
|
19
19
|
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createSlots as he, createTextVNode as j, createVNode as M, defineComponent as N, h as P, inject as ge, normalizeClass as _e, normalizeStyle as F, onActivated as ve, onDeactivated as ye, onMounted as be, onUnmounted as xe, openBlock as I, provide as Se, reactive as L, ref as R, renderList as z, renderSlot as Ce, resolveComponent as B, resolveDynamicComponent as V, toDisplayString as H, unref as U, watch as W, withCtx as G } from "vue";
|
|
20
20
|
import { Modal as we, message as K } from "ant-design-vue";
|
|
21
21
|
import { debounce as Te, isArray as Ee, isEqual as De } from "lodash-es";
|