form-imagining 0.0.89-13-cs2 → 0.0.89-13-cs4
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/{App-BEFMYq5r.js → App-CYdk6Ku5.js} +1 -1
- package/dist/Col-B436ti67.js +4 -0
- package/dist/Collapse-BRkGgqdV.js +4 -0
- package/dist/{Demo-DoP4d86z.js → Demo-DzkXA7tu.js} +1 -1
- package/dist/FView-D5g5NOY5.js +4 -0
- package/dist/FX-Q6p5s1ur.js +4 -0
- package/dist/{FormGridCopy-BSATKJrq.js → FormGridCopy-rb7ZrAsQ.js} +1 -1
- package/dist/GenerateForm-sZHfHq2K.js +4 -0
- package/dist/GenerateReport-CzPMqzeu.js +4 -0
- package/dist/{HelloWorld-B5mcy50p.js → HelloWorld-Bb2PleWl.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-DC4zzq88.js → 244-CjrLiS2m.js} +1 -1
- package/dist/Label-/345/210/240/351/231/{244-B6jXNg4e.js → 244-BJw8ocNS.js} +1 -1
- package/dist/{Login-CslPa4ft.js → Login-BuRjkhFy.js} +1 -1
- package/dist/RView-7LptaItj.js +4 -0
- package/dist/SqlModule-DyRgcOxZ.js +4 -0
- package/dist/TableBtnModal-BJhQ_0Eh.js +4 -0
- package/dist/childForm-MNm-nhY9.js +4 -0
- package/dist/{cssMode-CBAl5X0f.js → cssMode-D_Lmkx0C.js} +1 -1
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +8 -8
- package/dist/{formTest-XxJbWvyR.js → formTest-B8EtxApG.js} +1 -1
- package/dist/{freemarker2-B7n8GgnN.js → freemarker2-BPJJgr4c.js} +1 -1
- package/dist/{handlebars-DqpsjM4k.js → handlebars-B7WXQGpE.js} +1 -1
- package/dist/{html-C9ysmoBM.js → html-BUVQ9e46.js} +1 -1
- package/dist/{htmlMode-Dg7zregt.js → htmlMode-CKQHQ1LQ.js} +1 -1
- package/dist/{index-BNin1nk1.js → index-BWPXJV_z.js} +1 -1
- package/dist/{index-D5t1LvMD.js → index-D5nCqGEy.js} +3463 -3461
- package/dist/{index-Bu-16yaz.js → index-qbTr4Oek.js} +1 -1
- package/dist/{javascript-j_bUX2cJ.js → javascript-CqN-uLko.js} +1 -1
- package/dist/{jsonMode-3C5MnbK8.js → jsonMode-DhxPl6_O.js} +1 -1
- package/dist/{liquid-BIwg8TO3.js → liquid-Dq6FZm3-.js} +1 -1
- package/dist/{mdx-BYEre6RY.js → mdx-D5HGCyNm.js} +1 -1
- package/dist/{python-CD3qV_bY.js → python-C5fBogLK.js} +1 -1
- package/dist/{razor-D8ENpy-u.js → razor-D9FIFzoN.js} +1 -1
- package/dist/{tableSelectDemo-ZzK9Fgee.js → tableSelectDemo-Bq-J8CvT.js} +1 -1
- package/dist/{tableSelectDemo2-Dnv2PT0a.js → tableSelectDemo2-CK_kotuK.js} +1 -1
- package/dist/{testIndex-DNJuqMdR.js → testIndex-CP32E1or.js} +3 -3
- package/dist/{tsMode-d7v-Rz4D.js → tsMode-Bu-Jvnjq.js} +1 -1
- package/dist/{typescript-tJCgNZ1e.js → typescript-CwIn6NV4.js} +1 -1
- package/dist/{xml-AVaaG15y.js → xml-DQY6gIsg.js} +1 -1
- package/dist/{yaml-DqUbJ_oC.js → yaml-K6B8Alsq.js} +1 -1
- package/package.json +1 -1
- package/dist/Col-DAvaHA8z.js +0 -4
- package/dist/Collapse-Dg0afpyv.js +0 -4
- package/dist/FView-BKAMwSXT.js +0 -4
- package/dist/FX-DfyARilm.js +0 -4
- package/dist/GenerateForm-BCacmLJO.js +0 -4
- package/dist/GenerateReport-UcztFjIb.js +0 -4
- package/dist/RView-BZOq0KsF.js +0 -4
- package/dist/SqlModule-CBbFuZgA.js +0 -4
- package/dist/TableBtnModal-BiU24FxT.js +0 -4
- package/dist/childForm-DFR6PPDu.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, onMounted as r, resolveComponent as t, openBlock as n, createBlock as a, unref as c, withCtx as l, createVNode as p } from "vue";
|
|
2
|
-
import { u as m, l as s, F as _ } from "./index-
|
|
2
|
+
import { u as m, l as s, F as _ } from "./index-D5nCqGEy.js";
|
|
3
3
|
const h = /* @__PURE__ */ o({
|
|
4
4
|
__name: "App",
|
|
5
5
|
setup(f) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
-
import { b as useFormStore, g as generateReportHtml, d as defHttp } from "./index-
|
|
2
|
+
import { b as useFormStore, g as generateReportHtml, d as defHttp } from "./index-D5nCqGEy.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "Demo",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as z, ref as J, watch as L, resolveComponent as h, openBlock as o, createElementBlock as u, createElementVNode as W, createVNode as r, unref as f, createCommentVNode as x, normalizeStyle as C, withCtx as g, Fragment as I, renderList as k, createBlock as w, normalizeClass as b } from "vue";
|
|
2
|
-
import { b as j, D as q, V as A, o as K, C as P, p as D, q as S, M as R, _ as H } from "./index-
|
|
2
|
+
import { b as j, D as q, V as A, o as K, C as P, p as D, q as S, M as R, _ as H } from "./index-D5nCqGEy.js";
|
|
3
3
|
const Q = { class: "move" }, T = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "widget-view-drag"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, resolveComponent as f, openBlock as m, createBlock as v, withCtx as u, createVNode as t } from "vue";
|
|
2
|
-
import { b as c } from "./index-
|
|
2
|
+
import { b as c } from "./index-D5nCqGEy.js";
|
|
3
3
|
const s = /* @__PURE__ */ i({
|
|
4
4
|
__name: "Input-删除",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, resolveComponent as o, openBlock as n, createBlock as l, withCtx as i, createElementBlock as u, Fragment as d, renderList as r, createVNode as k, createTextVNode as x, toDisplayString as D, createCommentVNode as w } from "vue";
|
|
2
|
-
import { b as U } from "./index-
|
|
2
|
+
import { b as U } from "./index-D5nCqGEy.js";
|
|
3
3
|
const L = /* @__PURE__ */ _({
|
|
4
4
|
__name: "Label-删除",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as et } from "./index-
|
|
1
|
+
import { A as et } from "./index-D5nCqGEy.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
package/dist/form-imagining.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as s, Q as t, E as o, G as n, g as r, I as l, z as d, K as f, L as m, H as i, y as I, O as g, N as u, J as p, P as F } from "./index-
|
|
1
|
+
import { R as s, Q as t, E as o, G as n, g as r, I as l, z as d, K as f, L as m, H as i, y as I, O as g, N as u, J as p, P as F } from "./index-D5nCqGEy.js";
|
|
2
2
|
export {
|
|
3
3
|
s as default,
|
|
4
4
|
t as eventBus,
|
|
@@ -613,7 +613,7 @@ function updateNewData(_data: any) {
|
|
|
613
613
|
${K}
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
`,Z}function getReportTableBodyTemp(W,C){let Q="",H="";W.action=dealTableAction(W.isedit,W.action);let Z=W.action.filter(
|
|
616
|
+
`,Z}function getReportTableBodyTemp(W,C){var oe,se,ae;let Q="",H="";W.action=dealTableAction(W.isedit,W.action);let Z=W.action.filter(le=>!le.isedit);const K=Z.length;for(let le=0;le<K;le++){const ce=Z[le];let de=ce.extend||"",ue=ce.callbackEvent?`,${ce.callbackEvent}`:"",fe=W.isedit?`<a-button type="link" ${de} @click="${ce.oper}(record, editableData${ue})">${ce.title}</a-button>`:`<a-button type="link" ${de} @click="${ce.oper}(record${ue})">${ce.title}</a-button>`;H+=`${fe}`}let U="",G="";const X=W.isedit;let ee=((oe=W.action.find(le=>le.isedit&&le.oper=="saveRow"))==null?void 0:oe.callbackEvent)||"",te=((se=W.action.find(le=>le.isedit&&le.oper=="editRow"))==null?void 0:se.callbackEvent)||"",ie=((ae=W.action.find(le=>le.isedit&&le.oper=="delRow"))==null?void 0:ae.callbackEvent)||"";return X&&(U=`
|
|
617
617
|
<span v-if="editableData[record.${W.keyCol||"id"}]">
|
|
618
618
|
<a-button type="link" @click="saveRow(record.${W.keyCol||"id"}, editableData, dataSource,'${W.keyCol}', reportInfo.tableName${ee?","+ee:""})">保存</a-button>
|
|
619
619
|
<a-divider type="vertical" />
|
|
@@ -784,18 +784,18 @@ function updateNewData(_data: any) {
|
|
|
784
784
|
<a-row class="wonderform-row-css ${ie}" style="${X}" ${W.extended||""} :gutter="[${W.options.gutter}, 0]" tyle="flex">`;for(let se=0;se<W.columns.length;se++){const ae=W.columns[se];U+=`
|
|
785
785
|
<a-col :span="${ae.options.span}" :offset="${ae.options.offset}" ${ae.options.extended||""}>`;for(let le=0;le<ae.list.length;le++){const ce=ae.list[le];U+=generateBase(ce,C,H,Z,K)}U+=" </a-col>"}return U+="</a-row>",` <a-form id="wonder-form-css" ${Q.labelWidth==null?"":`:label-col="{ style: { width:'${Q.labelWidth}px'} }"`} :labelWrap="true" ${ee+te}>${U}</a-form>`}function generateParagraph(W,C,Q,H,Z,K,U){var ce;let G="";const X=getPaddingStyle(W),ee=X?`padding: ${X}`:"",ie=`${W.display=="inline"?"display: inline":W.display=="flex-row"?"display: flex; flex-direction: row; flex-wrap: wrap":W.display=="flex-column"?"display: flex; flex-direction: column":""}; ${ee} `,ne=W.inputStyle=="underline"?"underlineInput":"";G+=`
|
|
786
786
|
<div class="paragraphPanel ${W.classname}">
|
|
787
|
-
`;let oe=Q.labelWidth==null?"":`:label-col="{ style: { width:'${Q.labelWidth}px'} }"`,se=((ce=W.content)==null?void 0:ce.length)>0?`<a-form class="form-container" ${oe} style="${ie}">`:"";G+=se;let ae=W.content;for(let de=0;de<ae.length;de++){let ue=ae[de];if(ue.inputClass=ne,W.display=="inline")ue._display="inline-block",ue.lineHeight=W.lineHeight;else if(W.display=="flex-row"){let fe=W.columnNum=="2"?"flex-row-2":W.columnNum=="3"?"flex-row-3":W.columnNum=="4"?"flex-row-4":"",pe="";if(W.columnNum=="auto")if(W.autoColumn){const ve=W.autoColumn.replace(" ","").split(",")||W.autoColumn.replace(" ","").split(",");ve[de]&&ve[de]!="auto"?pe=`width: ${ve[de]}`:pe="flex: 1"}else pe="flex: 1";G+=`<div class='${fe}' style='${pe}'>`}switch(W.fontSize&&(ue._fontSize=W.fontSize),ue.type){case"paragraph":G+=generateParagraph(ue,C,Q,H,Z,K,U);break;case"tabs":G+=generateTabs(ue,C,Q,H,K,Z,U);break;case"grid":G+=generateGrid(ue,C,Q,H,Z,K);break;case"collapse":G+=generateCollapsePanel(ue,C,Q,H,K,Z,U);break;case"label":let fe=ue.formItemMargin==null?"":`c-form-item-margin-${ue.formItemMargin}`,pe="";W.display=="inline"&&(pe=fe?`class="labelInlineFormItem ${fe}"`:'class="labelInlineFormItem"');let ve=ue.font?`${ue.font}px`:ue._fontSize?ue._fontSize:"14px";ue._fromParagraph=!0,G+=`<a-form-item ${pe} style="fontSize:${ve};textAlign:${ue.align};${ue.cssextended}">`,G+=generateBase(ue,C,H,Z,K),G+="</a-form-item>";break;default:G+=generateBase(ue,C,H,Z,K);break}W.display=="flex-row"&&(G+="</div>")}let le=ae.length>0?"</a-form>":"";return G+=le,G+="</div>",G}function generatePage(W,C,Q,H){let Z;if(C.options.pagination){const K=C.options.pageSize;Z={bindName:C.model,total:0,current:1,pageSize:K,change:`onChange1($event,'${W}')`,showSizeChanger:!1,showTotal:U=>`共 ${U} 条数据`}}else Z={bindName:C.model};Reflect.set(H.paginations,W,Z)}function generateTable(W,C,Q,H,Z,K){const U="columns-"+W.key,G="pagination-"+W.key,X=W.isedit;generatePage(G,W,W.key,K);let te=moveHiddenItems([...W.tableColumns]);te=te.map(
|
|
787
|
+
`;let oe=Q.labelWidth==null?"":`:label-col="{ style: { width:'${Q.labelWidth}px'} }"`,se=((ce=W.content)==null?void 0:ce.length)>0?`<a-form class="form-container" ${oe} style="${ie}">`:"";G+=se;let ae=W.content;for(let de=0;de<ae.length;de++){let ue=ae[de];if(ue.inputClass=ne,W.display=="inline")ue._display="inline-block",ue.lineHeight=W.lineHeight;else if(W.display=="flex-row"){let fe=W.columnNum=="2"?"flex-row-2":W.columnNum=="3"?"flex-row-3":W.columnNum=="4"?"flex-row-4":"",pe="";if(W.columnNum=="auto")if(W.autoColumn){const ve=W.autoColumn.replace(" ","").split(",")||W.autoColumn.replace(" ","").split(",");ve[de]&&ve[de]!="auto"?pe=`width: ${ve[de]}`:pe="flex: 1"}else pe="flex: 1";G+=`<div class='${fe}' style='${pe}'>`}switch(W.fontSize&&(ue._fontSize=W.fontSize),ue.type){case"paragraph":G+=generateParagraph(ue,C,Q,H,Z,K,U);break;case"tabs":G+=generateTabs(ue,C,Q,H,K,Z,U);break;case"grid":G+=generateGrid(ue,C,Q,H,Z,K);break;case"collapse":G+=generateCollapsePanel(ue,C,Q,H,K,Z,U);break;case"label":let fe=ue.formItemMargin==null?"":`c-form-item-margin-${ue.formItemMargin}`,pe="";W.display=="inline"&&(pe=fe?`class="labelInlineFormItem ${fe}"`:'class="labelInlineFormItem"');let ve=ue.font?`${ue.font}px`:ue._fontSize?ue._fontSize:"14px";ue._fromParagraph=!0,G+=`<a-form-item ${pe} style="fontSize:${ve};textAlign:${ue.align};${ue.cssextended}">`,G+=generateBase(ue,C,H,Z,K),G+="</a-form-item>";break;default:G+=generateBase(ue,C,H,Z,K);break}W.display=="flex-row"&&(G+="</div>")}let le=ae.length>0?"</a-form>":"";return G+=le,G+="</div>",G}function generatePage(W,C,Q,H){let Z;if(C.options.pagination){const K=C.options.pageSize;Z={bindName:C.model,total:0,current:1,pageSize:K,change:`onChange1($event,'${W}')`,showSizeChanger:!1,showTotal:U=>`共 ${U} 条数据`}}else Z={bindName:C.model};Reflect.set(H.paginations,W,Z)}function generateTable(W,C,Q,H,Z,K){var pe,ve,ke;const U="columns-"+W.key,G="pagination-"+W.key,X=W.isedit;generatePage(G,W,W.key,K);let te=moveHiddenItems([...W.tableColumns]);te=te.map(Se=>(Se.dataIndex&&(Se.dataIndex=Se.dataIndex.toLowerCase()),Se)),te=dealTableColumn(W.options.showAction,te);let ie="",ne="";W.options.pagination&&W.options.pageSize?ne=`:pagination="paginations['${G}']" @change="onChange1($event,'${G}')"`:ne=`:pagination="paginations['${G}']"`,X&&K.editTable==0&&(Q.value.importScript+="import { cloneDeep } from 'lodash-es';",Q.value.contentScript+=getTableEditScript(),K.editTable++);let oe="";W.action=dealTableAction(W.isedit,W.action);let se=W.action.filter(Se=>!Se.isedit);const ae=se.length;let le="";if(W.options.showAction){for(let xe=0;xe<ae;xe++){const Je=se[xe];let De=Je.extend||"",Ae=Je.callbackEvent?`,${Je.callbackEvent}`:"";X?oe+=`<a-button type="link" ${De} @click="${Je.oper}(record, index, editableData${Ae})">${Je.title}</a-button>`:oe+=`<a-button type="link" ${De} @click="${Je.oper}(record, index${Ae})">${Je.title}</a-button>`}let Se="",Ce="";if(X){let xe=((pe=W.action.find(Ae=>Ae.isedit&&Ae.oper=="saveRow"))==null?void 0:pe.callbackEvent)||"",Je=((ve=W.action.find(Ae=>Ae.isedit&&Ae.oper=="editRow"))==null?void 0:ve.callbackEvent)||"",De=((ke=W.action.find(Ae=>Ae.isedit&&Ae.oper=="delRow"))==null?void 0:ke.callbackEvent)||"";Se=`
|
|
788
788
|
<template v-if="editableData[record.${W.keyCol||"id"}]">
|
|
789
|
-
<a-button type="link" @click="saveRow(record.${W.keyCol||"id"}, editableData, viewData.${W.model},'${W.keyCol}', '${W.model}'${
|
|
789
|
+
<a-button type="link" @click="saveRow(record.${W.keyCol||"id"}, editableData, viewData.${W.model},'${W.keyCol}', '${W.model}'${xe?","+xe:""})">保存</a-button>
|
|
790
790
|
<a-popconfirm title="确定取消吗?" @confirm="cancelRow(record.${W.keyCol||"id"},editableData)">
|
|
791
791
|
<a-button type="link">取消</a-button>
|
|
792
792
|
</a-popconfirm>
|
|
793
793
|
</template>
|
|
794
794
|
<template v-else>
|
|
795
|
-
<a-button type="link" @click="editRow(record.${W.keyCol||"id"}, editableData, viewData.${W.model}, '${W.keyCol}'${
|
|
795
|
+
<a-button type="link" @click="editRow(record.${W.keyCol||"id"}, editableData, viewData.${W.model}, '${W.keyCol}'${Je?","+Je:""})">编辑</a-button>
|
|
796
796
|
</template>
|
|
797
|
-
`,
|
|
798
|
-
<a-popconfirm title="确定删除吗?" @confirm="delRow(record.${W.keyCol||"id"}, viewData.${W.model}, '${W.keyCol}','${W.model}', index${
|
|
797
|
+
`,Ce+=`
|
|
798
|
+
<a-popconfirm title="确定删除吗?" @confirm="delRow(record.${W.keyCol||"id"}, viewData.${W.model}, '${W.keyCol}','${W.model}', index${De?","+De:""})">
|
|
799
799
|
<a-button type="link">删除</a-button>
|
|
800
800
|
</a-popconfirm>
|
|
801
801
|
`}le=`
|
|
@@ -804,9 +804,9 @@ function updateNewData(_data: any) {
|
|
|
804
804
|
<template #split>
|
|
805
805
|
<a-divider type="vertical" />
|
|
806
806
|
</template>
|
|
807
|
-
${
|
|
807
|
+
${Se}
|
|
808
808
|
${oe}
|
|
809
|
-
${
|
|
809
|
+
${Ce}
|
|
810
810
|
</a-space>
|
|
811
811
|
</template>
|
|
812
812
|
`}let ce="",de=`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as t, onMounted as c, unref as r, openBlock as s, createBlock as m, createCommentVNode as d } from "vue";
|
|
2
|
-
import { u as l, F as f } from "./index-
|
|
2
|
+
import { u as l, F as f } from "./index-D5nCqGEy.js";
|
|
3
3
|
const v = /* @__PURE__ */ u({
|
|
4
4
|
__name: "formTest",
|
|
5
5
|
setup(i) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as f } from "./index-
|
|
1
|
+
import { A as f } from "./index-D5nCqGEy.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as l } from "./index-
|
|
1
|
+
import { A as l } from "./index-D5nCqGEy.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s } from "./index-
|
|
1
|
+
import { A as s } from "./index-D5nCqGEy.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as lt } from "./index-
|
|
1
|
+
import { A as lt } from "./index-D5nCqGEy.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|