qmw-form-design 0.0.14 → 0.0.16
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/lib/{dyTableWidget-C0D_8JWX.mjs → dyTableWidget-BfcOMW2a.mjs} +1 -1
- package/lib/{dyTableWidget-BwXq9gqU.js → dyTableWidget-LGbqlxV8.js} +1 -1
- package/lib/{formDesign-Bz0cDWO8.mjs → formDesign-BqcnRCDW.mjs} +7 -5
- package/lib/{formDesign-CmiGe2Yl.js → formDesign-RYpFDgpj.js} +22 -22
- package/lib/{groupWidget-CRF4qrso.mjs → groupWidget-Duvkcy9J.mjs} +1 -1
- package/lib/{groupWidget-BvszbMhz.js → groupWidget-rdVS_R6-.js} +1 -1
- package/lib/qmw-form-design.js +1 -1
- package/lib/qmw-form-design.mjs +1 -1
- package/lib/{rowColWidget-Dczlm4PO.mjs → rowColWidget-DMFevXQv.mjs} +1 -1
- package/lib/{rowColWidget-T8O622sg.js → rowColWidget-Pzp4bL6g.js} +1 -1
- package/lib/{tableWidget-DR3cMHqT.mjs → tableWidget-C5kz1s52.mjs} +1 -1
- package/lib/{tableWidget-CWwPH6Ue.js → tableWidget-DYXQz7Wc.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mergeModels as g, useModel as p, onMounted as y, createElementBlock as n, openBlock as o, normalizeStyle as r, createElementVNode as u, toDisplayString as f, createVNode as s, unref as l, withCtx as v, Fragment as h, renderList as w, normalizeClass as _, withModifiers as x, createBlock as b, resolveDynamicComponent as C } from "vue";
|
|
2
|
-
import { l as k, _ as S, a as M } from "./formDesign-
|
|
2
|
+
import { l as k, _ as S, a as M } from "./formDesign-BqcnRCDW.mjs";
|
|
3
3
|
const V = { style: { "min-height": "60px", border: "1px solid #e8eaec", "border-style": "dashed", "border-radius": "4px" } }, W = ["onClick"], L = {
|
|
4
4
|
__name: "dyTableWidget",
|
|
5
5
|
props: /* @__PURE__ */ g({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./formDesign-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./formDesign-RYpFDgpj.js"),a={style:{"min-height":"60px",border:"1px solid #e8eaec","border-style":"dashed","border-radius":"4px"}},c=["onClick"],u={__name:"dyTableWidget",props:e.mergeModels({style:{type:Object,default:()=>({})}},{widget:{},widgetModifiers:{}}),emits:["update:widget"],setup(r){const l=e.useModel(r,"widget"),n=window.$formDesignerStore;return e.onMounted(()=>{}),(m,o)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(r.style),class:"dyTable-widget"},[e.createElementVNode("div",{style:e.normalizeStyle(l.value.labelStyle)},e.toDisplayString(l.value.config.label),5),e.createElementVNode("div",a,[e.createVNode(e.unref(i.lo),{modelValue:l.value.children,"onUpdate:modelValue":o[0]||(o[0]=t=>l.value.children=t),animation:"150",group:"formContainer",onAdd:o[1]||(o[1]=t=>{e.unref(n).addWidget(t,l.value.children,l.value)}),onEnd:e.unref(n).saveHistoryStep,style:{"min-height":"30px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.children,(t,d)=>(e.openBlock(),e.createElementBlock("div",{key:t.type,onClick:e.withModifiers(s=>{e.unref(n).onClickFormWidget(s,t,t.children)},["stop"]),class:e.normalizeClass(["widget-div",e.unref(n).setAreaClass(t)])},[e.createVNode(i._sfc_main,{widget:t},null,8,["widget"]),e.createVNode(i._sfc_main$1,{widget:t,widgetList:t.children,widgetIndex:d,pWidget:t},null,8,["widget","widgetList","widgetIndex","pWidget"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.widgetType),{widget:t,style:e.normalizeStyle(t.style)},null,8,["widget","style"]))],10,c))),128))]),_:1},8,["modelValue","onEnd"])])],4))}};exports.default=u;
|
|
@@ -252180,7 +252180,7 @@ const q2 = /* @__PURE__ */ dT("formDesigner", {
|
|
|
252180
252180
|
},
|
|
252181
252181
|
deleteWidgetAfter(e, x) {
|
|
252182
252182
|
let i = e.splice(x, 1);
|
|
252183
|
-
this.selectWidget.id == i.id && (this.selectWidget = null), this.saveHistoryStep(), i.pType == "formWidget" && i.type != "dyTable" && i.type != "group" && this.emit("
|
|
252183
|
+
this.selectWidget.id == i.id && (this.selectWidget = null), this.saveHistoryStep(), i.pType == "formWidget" && i.type != "dyTable" && i.type != "group" && this.emit("onDeleteWidgetAfter", i, (t) => {
|
|
252184
252184
|
t || this.undoHistory();
|
|
252185
252185
|
});
|
|
252186
252186
|
},
|
|
@@ -252583,7 +252583,9 @@ const q2 = /* @__PURE__ */ dT("formDesigner", {
|
|
|
252583
252583
|
//清除所有组件
|
|
252584
252584
|
deleteAllWidget() {
|
|
252585
252585
|
this.formConfig.formWidgetList.length != 0 && this.showMsgModal("confirm", "是否确定清除所有组件?", () => {
|
|
252586
|
-
this.msgModal.show = !1, this.formConfig.formWidgetList = [], this.selectWidget && (this.selectWidget = null), this.saveHistoryStep()
|
|
252586
|
+
this.msgModal.show = !1, this.formConfig.formWidgetList = [], this.selectWidget && (this.selectWidget = null), this.saveHistoryStep(), this.emit("onDeleteAllWidgetAfter", (e) => {
|
|
252587
|
+
e || this.undoHistory();
|
|
252588
|
+
});
|
|
252587
252589
|
});
|
|
252588
252590
|
},
|
|
252589
252591
|
//清除指定组件内部所有组件
|
|
@@ -273488,14 +273490,14 @@ return formData.jeezj>100;
|
|
|
273488
273490
|
}
|
|
273489
273491
|
};
|
|
273490
273492
|
function UZ(e) {
|
|
273491
|
-
const x = /* @__PURE__ */ Object.assign({ "./rowColWidget.vue": () => import("./rowColWidget-
|
|
273493
|
+
const x = /* @__PURE__ */ Object.assign({ "./rowColWidget.vue": () => import("./rowColWidget-DMFevXQv.mjs"), "./tableWidget.vue": () => import("./tableWidget-C5kz1s52.mjs") });
|
|
273492
273494
|
for (const i in x) {
|
|
273493
273495
|
let t = i.replace("./", "").replace(".vue", "");
|
|
273494
273496
|
e.component(t, _r(x[i]));
|
|
273495
273497
|
}
|
|
273496
273498
|
}
|
|
273497
273499
|
function FZ(e) {
|
|
273498
|
-
const x = /* @__PURE__ */ Object.assign({ "./cascaderWidget.vue": () => import("./cascaderWidget-C4dPsqu5.mjs"), "./checkboxWidget.vue": () => import("./checkboxWidget-CU0seXqA.mjs"), "./datetimeWidget.vue": () => import("./datetimeWidget-DXuUUSdH.mjs"), "./dyTableWidget.vue": () => import("./dyTableWidget-
|
|
273500
|
+
const x = /* @__PURE__ */ Object.assign({ "./cascaderWidget.vue": () => import("./cascaderWidget-C4dPsqu5.mjs"), "./checkboxWidget.vue": () => import("./checkboxWidget-CU0seXqA.mjs"), "./datetimeWidget.vue": () => import("./datetimeWidget-DXuUUSdH.mjs"), "./dyTableWidget.vue": () => import("./dyTableWidget-BfcOMW2a.mjs"), "./groupWidget.vue": () => import("./groupWidget-Duvkcy9J.mjs"), "./labelWidget.vue": () => import("./labelWidget-S3O3hW-n.mjs"), "./numberWidget.vue": () => import("./numberWidget-C3bkkH0P.mjs"), "./radioWidget.vue": () => import("./radioWidget-Bj9O6GMx.mjs"), "./richEditorWidget.vue": () => import("./richEditorWidget-wRZ8Jn-i.mjs"), "./selectWidget.vue": () => import("./selectWidget-BbLn1CnV.mjs"), "./switchWidget.vue": () => import("./switchWidget-CpKRT5Nf.mjs"), "./textWidget.vue": () => import("./textWidget-CGDnbqCG.mjs"), "./textareaWidget.vue": () => import("./textareaWidget-BU6qvVd6.mjs"), "./treeWidget.vue": () => import("./treeWidget-MJEuA8BS.mjs"), "./uploadWidget.vue": () => import("./uploadWidget-i60454Yn.mjs") });
|
|
273499
273501
|
for (const i in x) {
|
|
273500
273502
|
let t = i.replace("./", "").replace(".vue", "");
|
|
273501
273503
|
e.component(t, _r(x[i]));
|
|
@@ -273527,7 +273529,7 @@ const YZ = { class: "container-left" }, GZ = { class: "panel-group-title" }, HZ
|
|
|
273527
273529
|
default: 0
|
|
273528
273530
|
}
|
|
273529
273531
|
},
|
|
273530
|
-
emits: ["addCustomizeWidget", "
|
|
273532
|
+
emits: ["addCustomizeWidget", "onDeleteWidgetAfter", "onDeleteAllWidgetAfter", "onPreview"],
|
|
273531
273533
|
setup(e, { expose: x, emit: i }) {
|
|
273532
273534
|
const t = e, h = i, g = q2(j2);
|
|
273533
273535
|
window.$formDesignerStore = g;
|