@kp-ui/lowcode 1.0.98 → 1.0.100
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/index.js +45 -45
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js.map +1 -1
- package/src/components/form-designer/index.vue.js +19 -36
- package/src/components/form-designer/index.vue.js.map +1 -1
- package/src/components/form-designer/toolbar-panel/index.vue.js +2 -2
- package/src/components/form-designer/toolbar-panel/index.vue2.js +53 -49
- package/src/components/form-designer/toolbar-panel/index.vue2.js.map +1 -1
- package/src/components/public/ActionButtonListRender.vue.js +1 -1
- package/src/components/public/ActionButtonListRender.vue.js.map +1 -1
- package/src/components/public/ActionButtonListRender.vue2.js +1 -1
- package/src/components/public/ActionButtonListRender.vue2.js.map +1 -1
- package/src/components/public/CustomerModal/useCustomerModal.js +18 -18
- package/src/components/public/CustomerModal/useCustomerModal.js.map +1 -1
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/types/install.d.ts +0 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomerModal.js","sources":["../../../../../src/components/public/CustomerModal/useCustomerModal.tsx"],"sourcesContent":["import { App, createApp, defineAsyncComponent } from 'vue';\nimport { TpfConfigProvider } from 'tmgc2-share';\n\ntype CustomerModalProps = { type: string; formCode: string } & Record<string, any>;\n\nexport const openCustomerModal = (ops: CustomerModalProps) => {\n console.log('ops: ', ops);\n const { type, formCode, ...args } = ops;\n\n const div = document.createElement('div');\n document.body.appendChild(div);\n const Com = defineAsyncComponent(() => import('./CustomerModal.vue'));\n\n const hide = (modal: App<Element>) => {\n modal.unmount();\n div.remove();\n };\n\n const onCancel = () => {\n console.log('cancel');\n hide(modal);\n };\n\n const modal = createApp(\n <TpfConfigProvider>\n <Com type={type} formCode={formCode} {...{ onCancel }} {...args} />\n </TpfConfigProvider>\n );\n\n // 使用全局的useMountApp函数注册Ant Design组件\n if (
|
|
1
|
+
{"version":3,"file":"useCustomerModal.js","sources":["../../../../../src/components/public/CustomerModal/useCustomerModal.tsx"],"sourcesContent":["import { App, createApp, defineAsyncComponent } from 'vue';\nimport { TpfConfigProvider } from 'tmgc2-share';\n\ntype CustomerModalProps = { type: string; formCode: string } & Record<string, any>;\n\nexport const openCustomerModal = (ops: CustomerModalProps, useMountApp) => {\n console.log('ops: ', ops);\n const { type, formCode, ...args } = ops;\n\n const div = document.createElement('div');\n document.body.appendChild(div);\n const Com = defineAsyncComponent(() => import('./CustomerModal.vue'));\n\n const hide = (modal: App<Element>) => {\n modal.unmount();\n div.remove();\n };\n\n const onCancel = () => {\n console.log('cancel');\n hide(modal);\n };\n\n const modal = createApp(\n <TpfConfigProvider>\n <Com type={type} formCode={formCode} {...{ onCancel }} {...args} />\n </TpfConfigProvider>\n );\n\n // 使用全局的useMountApp函数注册Ant Design组件\n if (useMountApp) {\n useMountApp(modal);\n }\n\n modal.mount(div);\n};\n\n// export default function useCustomerModal(app: App, useMountApp: (app: App<Element>) => App) {\n// app.config.globalProperties.$openCustomerModal = ops => {\n// openCustomerModal(ops, useMountApp);\n// };\n// }\n"],"names":["openCustomerModal","ops","useMountApp","console","log","type","formCode","args","div","document","createElement","body","appendChild","Com","defineAsyncComponent","hide","modal","unmount","remove","onCancel","createApp","_createVNode","TpfConfigProvider","default","_mergeProps","mount"],"mappings":";;MAKaA,IAAoBA,CAACC,GAAyBC,MAAgB;AACvEC,UAAQC,IAAI,SAASH,CAAG;AACxB,QAAM;AAAA,IAAEI,MAAAA;AAAAA,IAAMC,UAAAA;AAAAA,IAAU,GAAGC;AAAAA,EAAK,IAAIN,GAE9BO,IAAMC,SAASC,cAAc,KAAK;AACxCD,WAASE,KAAKC,YAAYJ,CAAG;AAC7B,QAAMK,IAAMC,EAAqB,MAAM,OAAO,wBAAqB,CAAC,GAE9DC,IAAQC,CAAAA,MAAwB;AAClCA,IAAAA,EAAMC,QAAO,GACbT,EAAIU,OAAM;AAAA,EACd,GAEMC,IAAWA,MAAM;AACnBhB,YAAQC,IAAI,QAAQ,GACpBW,EAAKC,CAAK;AAAA,EACd,GAEMA,IAAQI,EAASC,EAAAC,GAAA,MAAA;AAAA,IAAAC,SAAAA,MAAA,CAAAF,EAAAR,GAAAW,EAAA;AAAA,MAAA,MAEJnB;AAAAA,MAAI,UAAYC;AAAAA,IAAQ,GAAA;AAAA,MAAQa,UAAAA;AAAAA,IAAQ,GAAQZ,CAAI,GAAA,IAAA,CAAA;AAAA,EAAA,CAAA,CAEvE;AAGA,EAAIL,KACAA,EAAYc,CAAK,GAGrBA,EAAMS,MAAMjB,CAAG;AACnB;"}
|