@farris/ui-vue 1.2.4 → 1.2.6
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/components/accordion/index.esm.js +58 -58
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +124 -116
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/index.esm.js +1 -1
- package/components/capsule/index.umd.cjs +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +219 -209
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +36 -28
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/index.esm.js +2 -2
- package/components/common/index.umd.cjs +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +406 -402
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +4439 -4273
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2904 -2892
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +250 -242
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.css +1 -0
- package/components/designer-canvas/index.esm.js +24 -21
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/index.esm.js +44 -42
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/index.esm.js +28 -467
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +984 -928
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +281 -277
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1917 -1901
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +4185 -4023
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +595 -581
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.css +1 -0
- package/components/flow-canvas/index.esm.js +38 -35
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +256 -248
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1522 -1519
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4629 -4410
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4454 -4255
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/index.esm.js +511 -469
- package/components/nav/index.umd.cjs +2 -2
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +972 -920
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +917 -893
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/index.esm.js +491 -449
- package/components/pagination/index.umd.cjs +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +108 -101
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +361 -349
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +72 -64
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +452 -439
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +610 -592
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +4041 -3749
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +159 -178
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1450 -1408
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +86 -78
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +387 -379
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +95 -93
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +4437 -4271
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +1989 -1985
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12989 -12513
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/condition/index.d.ts +60 -1
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
- package/types/data-view/composition/types.d.ts +2 -0
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/list-view/src/composition/types.d.ts +1 -1
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/message-box/index.d.ts +84 -1
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/notify/index.d.ts +84 -1
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
- package/components/button-edit/style.css +0 -1
- package/components/designer-canvas/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/flow-canvas/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(f,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("@farris/ui-vue/components/tree-view"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","@farris/ui-vue/components/tree-view","lodash-es"],u):(f=typeof globalThis<"u"?globalThis:f||self,u(f["designer-outline"]={},f.Vue,f.treeView,f.LodashES))})(this,function(f,u,P,T){"use strict";const F={data:{type:Object,default:[]},selectable:{type:Boolean,default:!1},autoCheckChildren:{type:Boolean,default:!0},cascade:{type:Boolean,default:!0},showTreeNodeIcons:{type:Boolean,default:!0},showLines:{type:Boolean,default:!1},newDataItem:{type:Object,default:{}},lineColor:{type:String,default:"#9399a0"},cellHeight:{type:Number,default:28}};var y=(r=>(r.Frame="frame",r.dataGrid="data-grid",r.listView="list-view",r.form="form",r.attachmentPanel="attachment-panel",r.modalFrame="modal-frame",r.table="table",r.appointmentCalendar="appointment-calendar",r))(y||{});function V(){function r(e){let n="controlIcon mr-2 fd-i-Family ",l="";switch(e==null?void 0:e.type){case"form-group":{l=e.editor&&e.editor.type?`fd_pc-${e.editor.type}`:"";break}default:n+=`fd_pc-${e.type}`}return n+=l,n}function C(e,n){var w;let l=e.id;const s=n==null?void 0:n.contents;if((n==null?void 0:n.type)==="splitter"&&s&&s.length===2){const t=n.direction!=="column";e.id===((w=s[0])==null?void 0:w.id)?l=t?"左侧区域":"上方区域":l=t?"右侧区域":"下方区域"}return l}function o(e){if(e.isLikeCardContainer)return"区块";const n=e.appearance&&e.appearance.class||"",l=n.split(" ");return e.id==="page-header"&&n&&n==="f-page-header"?"页头":l.includes("f-page-header-base")?"页头容器":l.includes("f-page-header-extend")?"页头扩展容器":l.includes("f-title")?"标题容器":l.includes("f-page")?"根容器":l.includes("f-page-main")?"内容区域":l.includes("f-scrollspy-content")&&e.isScrollspyContainer?"滚动监听容器":l.includes("f-grid-is-sub")?"表格容器":l.includes("f-filter-container")?"筛选条容器":"容器"}function b(e){const{componentType:n}=e;switch(n){case y.Frame:return"根组件";case y.dataGrid:case y.table:return"表格组件";case y.attachmentPanel:return"附件组件";case y.listView:case"ListView":return"列表视图组件";case y.modalFrame:return"弹窗页面";case y.appointmentCalendar:return"预约日历组件";default:if(n.startsWith("form"))return"卡片组件"}return"组件"}function N(e,n){const l=e.name||e.text||e.label||e.title||e.mainTitle;if(l&&typeof l=="string")return l.trim();switch(e.type){case"content-container":return o(e);case"splitter-pane":return C(e,n);case"component":return b(e);default:return e.id}}function v(e){const n=e.length?e[0]:null,l=n?`${n.originalId}-design-item`:"",s=document.getElementById(l);if(s){const w=document.getElementsByClassName("dgComponentSelected");w&&w.length===1&&w[0]===s||s&&s.click()}}return{getIcon:r,getTitle:N,onChanged:v}}function k(r,C){const o=r.data.module?u.ref(r.data.module.components[0]):u.ref(r.data),{getIcon:b,getTitle:N}=C;function v(t,i,c,d){var h;const a=(h=r.data.module)==null?void 0:h.components.find(g=>g.id===t.component);a&&e([a],i,c,d)}function e(t,i,c,d){return t.forEach(a=>{if(a.type==="component-ref"){v(a,i,c,d);return}const h={originalId:a.id,layer:c,originalParent:d==null?void 0:d.id,name:N(a,d),type:a.type,controlIcon:b(a),rawSchema:a};i.push(T.cloneDeep(h)),(a.contents||a.buttons)&&e(a.contents||a.buttons,i,c+1,a)}),i}function n(t){const i=[],c=t.find(g=>g.layer===0);t=t.filter(g=>g.layer!==0),i.push(c);let d=c.originalId,a=0,h=1e3;for(;t.length!==0||h===0;){const g=t.find(S=>S.originalParent===d);g?(i.push(g),d=g.originalId,t=t.filter(S=>S.originalId!==d),a=0):(a-=1,d=i.slice(a)[0].originalId),h-=1}return i}function l(t){return t.forEach((i,c)=>{i.id=(c+1).toString()}),t.forEach(i=>{var c;i.parent=((c=t.find(d=>d.originalId===i.originalParent))==null?void 0:c.id)||""}),t.forEach(i=>{i.hasChildren=t.findIndex(c=>c.parent===i.id)>0}),t}function s(t){const i={originalId:"page",layer:0,originalParent:null,name:"页面",type:"Frame",controlIcon:"fd-i-Family fd_pc-
|
|
1
|
+
(function(f,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("@farris/ui-vue/components/tree-view"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","@farris/ui-vue/components/tree-view","lodash-es"],u):(f=typeof globalThis<"u"?globalThis:f||self,u(f["designer-outline"]={},f.Vue,f.treeView,f.LodashES))})(this,function(f,u,P,T){"use strict";const F={data:{type:Object,default:[]},selectable:{type:Boolean,default:!1},autoCheckChildren:{type:Boolean,default:!0},cascade:{type:Boolean,default:!0},showTreeNodeIcons:{type:Boolean,default:!0},showLines:{type:Boolean,default:!1},newDataItem:{type:Object,default:{}},lineColor:{type:String,default:"#9399a0"},cellHeight:{type:Number,default:28}};var y=(r=>(r.Frame="frame",r.dataGrid="data-grid",r.listView="list-view",r.form="form",r.attachmentPanel="attachment-panel",r.modalFrame="modal-frame",r.table="table",r.appointmentCalendar="appointment-calendar",r))(y||{});function V(){function r(e){let n="controlIcon mr-2 fd-i-Family ",l="";switch(e==null?void 0:e.type){case"form-group":{l=e.editor&&e.editor.type?`fd_pc-${e.editor.type}`:"";break}default:n+=`fd_pc-${e.type}`}return n+=l,n}function C(e,n){var w;let l=e.id;const s=n==null?void 0:n.contents;if((n==null?void 0:n.type)==="splitter"&&s&&s.length===2){const t=n.direction!=="column";e.id===((w=s[0])==null?void 0:w.id)?l=t?"左侧区域":"上方区域":l=t?"右侧区域":"下方区域"}return l}function o(e){if(e.isLikeCardContainer)return"区块";const n=e.appearance&&e.appearance.class||"",l=n.split(" ");return e.id==="page-header"&&n&&n==="f-page-header"?"页头":l.includes("f-page-header-base")?"页头容器":l.includes("f-page-header-extend")?"页头扩展容器":l.includes("f-title")?"标题容器":l.includes("f-page")?"根容器":l.includes("f-page-main")?"内容区域":l.includes("f-scrollspy-content")&&e.isScrollspyContainer?"滚动监听容器":l.includes("f-grid-is-sub")?"表格容器":l.includes("f-filter-container")?"筛选条容器":"容器"}function b(e){const{componentType:n}=e;switch(n){case y.Frame:return"根组件";case y.dataGrid:case y.table:return"表格组件";case y.attachmentPanel:return"附件组件";case y.listView:case"ListView":return"列表视图组件";case y.modalFrame:return"弹窗页面";case y.appointmentCalendar:return"预约日历组件";default:if(n.startsWith("form"))return"卡片组件"}return"组件"}function N(e,n){const l=e.name||e.text||e.label||e.title||e.mainTitle;if(l&&typeof l=="string")return l.trim();switch(e.type){case"content-container":return o(e);case"splitter-pane":return C(e,n);case"component":return b(e);case"response-form":return"卡片面板";default:return e.id}}function v(e){const n=e.length?e[0]:null,l=n?`${n.originalId}-design-item`:"",s=document.getElementById(l);if(s){const w=document.getElementsByClassName("dgComponentSelected");w&&w.length===1&&w[0]===s||s&&s.click()}}return{getIcon:r,getTitle:N,onChanged:v}}function k(r,C){const o=r.data.module?u.ref(r.data.module.components[0]):u.ref(r.data),{getIcon:b,getTitle:N}=C;function v(t,i,c,d){var h;const a=(h=r.data.module)==null?void 0:h.components.find(g=>g.id===t.component);a&&e([a],i,c,d)}function e(t,i,c,d){return t.forEach(a=>{if(a.type==="component-ref"){v(a,i,c,d);return}const h={originalId:a.id,layer:c,originalParent:d==null?void 0:d.id,name:N(a,d),type:a.type,controlIcon:b(a),rawSchema:a};i.push(T.cloneDeep(h)),(a.contents||a.buttons)&&e(a.contents||a.buttons,i,c+1,a)}),i}function n(t){const i=[],c=t.find(g=>g.layer===0);t=t.filter(g=>g.layer!==0),i.push(c);let d=c.originalId,a=0,h=1e3;for(;t.length!==0||h===0;){const g=t.find(S=>S.originalParent===d);g?(i.push(g),d=g.originalId,t=t.filter(S=>S.originalId!==d),a=0):(a-=1,d=i.slice(a)[0].originalId),h-=1}return i}function l(t){return t.forEach((i,c)=>{i.id=(c+1).toString()}),t.forEach(i=>{var c;i.parent=((c=t.find(d=>d.originalId===i.originalParent))==null?void 0:c.id)||""}),t.forEach(i=>{i.hasChildren=t.findIndex(c=>c.parent===i.id)>0}),t}function s(t){const i={originalId:"page",layer:0,originalParent:null,name:"页面",type:"Frame",controlIcon:"fd-i-Family fd_pc-module",rawSchema:o};return t[0].originalParent=i.originalId,t.unshift(i),i}function w(){let t;if(o.value){const i=[];i.push(o.value);const a=e(i,[],1,null);s(a);const h=n(a);t=l(h)}return t}return{getData:w}}const E=u.defineComponent({name:"FDesignerOutline",props:F,emits:["outputValue","currentEvent","selectionChanged"],setup(r,C){const o=u.ref(),b=u.ref(r.selectable),N=u.ref(r.autoCheckChildren),v=u.ref(r.cascade),e=u.ref(r.showTreeNodeIcons),n=u.ref(r.showLines),l=u.ref(r.newDataItem),s=u.ref(r.lineColor),w=u.ref(r.cellHeight),t=V(),{onChanged:i}=t,{getData:c}=k(r,t);let d=c();function a(){d=c(),o.value&&o.value.updateDataSource&&o.value.updateDataSource(d)}function h(g){if(o.value&&o.value.selectItem){const S=d.findIndex(O=>O.originalId===g.id);S>-1&&o.value.selectItem(S)}}return C.expose({selectControlTreeNode:h,refreshControlTree:a}),()=>u.createVNode("div",{class:"designer-control-tree"},[u.createVNode(P.FTreeView,{ref:o,data:d,selectable:b.value,autoCheckChildren:N.value,cascade:v.value,showTreeNodeIcons:e.value,showLines:n.value,newDataItem:l.value,lineColor:s.value,cellHeight:w.value,iconField:"controlIcon",onSelectionChange:i},null)])}});f.ComponentType=y,f.FDesignerOutline=E,f.designerOutlineProps=F,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as m, ref as i, watch as C, createVNode as a } from "vue";
|
|
2
2
|
const v = {
|
|
3
3
|
id: { type: String, default: "" },
|
|
4
4
|
dragula: { type: Object }
|
|
5
|
-
},
|
|
5
|
+
}, T = [
|
|
6
6
|
{
|
|
7
7
|
type: "input",
|
|
8
8
|
name: "输入类控件",
|
|
@@ -11,23 +11,13 @@ const v = {
|
|
|
11
11
|
id: "TextBox",
|
|
12
12
|
type: "input-group",
|
|
13
13
|
name: "文本",
|
|
14
|
-
category: "input"
|
|
15
|
-
updating: !0
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: "Text",
|
|
19
|
-
type: "text",
|
|
20
|
-
name: "静态文本",
|
|
21
|
-
category: "input",
|
|
22
|
-
icon: "static-text"
|
|
14
|
+
category: "input"
|
|
23
15
|
},
|
|
24
16
|
{
|
|
25
17
|
id: "MultiTextBox",
|
|
26
|
-
type: "
|
|
18
|
+
type: "textarea",
|
|
27
19
|
name: "多行文本",
|
|
28
|
-
category: "input"
|
|
29
|
-
icon: "multi-text-box",
|
|
30
|
-
updating: !0
|
|
20
|
+
category: "input"
|
|
31
21
|
},
|
|
32
22
|
{
|
|
33
23
|
id: "DateBox",
|
|
@@ -35,32 +25,12 @@ const v = {
|
|
|
35
25
|
name: "日期",
|
|
36
26
|
category: "input"
|
|
37
27
|
},
|
|
38
|
-
{
|
|
39
|
-
id: "TimePicker",
|
|
40
|
-
type: "time-picker",
|
|
41
|
-
name: "时间选择",
|
|
42
|
-
category: "input"
|
|
43
|
-
},
|
|
44
28
|
{
|
|
45
29
|
id: "EnumField",
|
|
46
30
|
type: "combo-list",
|
|
47
31
|
name: "下拉列表",
|
|
48
32
|
category: "input"
|
|
49
33
|
},
|
|
50
|
-
{
|
|
51
|
-
id: "Dropdown",
|
|
52
|
-
type: "dropdown",
|
|
53
|
-
name: "下拉列表2",
|
|
54
|
-
category: "input",
|
|
55
|
-
icon: "combo-list"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: "NumberRange",
|
|
59
|
-
type: "number-range",
|
|
60
|
-
name: "数值区间",
|
|
61
|
-
category: "input",
|
|
62
|
-
icon: "number-spinner"
|
|
63
|
-
},
|
|
64
34
|
{
|
|
65
35
|
id: "NumericBox",
|
|
66
36
|
type: "number-spinner",
|
|
@@ -69,10 +39,15 @@ const v = {
|
|
|
69
39
|
},
|
|
70
40
|
{
|
|
71
41
|
id: "CheckBox",
|
|
72
|
-
type: "
|
|
42
|
+
type: "check-box",
|
|
43
|
+
name: "复选框",
|
|
44
|
+
category: "input"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "CheckBoxGroup",
|
|
48
|
+
type: "check-group",
|
|
73
49
|
name: "复选框组",
|
|
74
|
-
category: "input"
|
|
75
|
-
icon: "check-group"
|
|
50
|
+
category: "input"
|
|
76
51
|
},
|
|
77
52
|
{
|
|
78
53
|
id: "RadioGroup",
|
|
@@ -86,454 +61,40 @@ const v = {
|
|
|
86
61
|
name: "开关",
|
|
87
62
|
category: "input"
|
|
88
63
|
},
|
|
89
|
-
{
|
|
90
|
-
id: "Capsule",
|
|
91
|
-
type: "capsule",
|
|
92
|
-
name: "选项卡",
|
|
93
|
-
category: "input",
|
|
94
|
-
icon: "switch"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: "Image",
|
|
98
|
-
type: "image",
|
|
99
|
-
name: "图像",
|
|
100
|
-
category: "input",
|
|
101
|
-
updating: !0
|
|
102
|
-
},
|
|
103
64
|
{
|
|
104
65
|
id: "LookupEdit",
|
|
105
66
|
type: "lookup",
|
|
106
67
|
name: "帮助",
|
|
107
|
-
category: "input"
|
|
108
|
-
updating: !0
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: "RichTextBox",
|
|
112
|
-
type: "rich-text-box",
|
|
113
|
-
name: "富文本",
|
|
114
|
-
category: "input",
|
|
115
|
-
updating: !0
|
|
68
|
+
category: "input"
|
|
116
69
|
},
|
|
117
70
|
{
|
|
118
71
|
id: "InputGroup",
|
|
119
72
|
type: "input-group",
|
|
120
73
|
name: "智能输入框",
|
|
121
|
-
category: "input",
|
|
122
|
-
updating: !0
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: "LanguageTextBox",
|
|
126
|
-
type: "language-text-box",
|
|
127
|
-
name: "多语言输入框",
|
|
128
|
-
category: "input",
|
|
129
|
-
updating: !0
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
id: "Tags",
|
|
133
|
-
type: "tags",
|
|
134
|
-
name: "标记组",
|
|
135
|
-
category: "input",
|
|
136
|
-
icon: "tag"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: "ColorPicker",
|
|
140
|
-
type: "color-picker",
|
|
141
|
-
name: "颜色选择器",
|
|
142
|
-
category: "input",
|
|
143
|
-
icon: "input-group"
|
|
144
|
-
}
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
type: "dataCollection",
|
|
149
|
-
name: "数据集合类控件",
|
|
150
|
-
items: [
|
|
151
|
-
{
|
|
152
|
-
id: "Form",
|
|
153
|
-
type: "response-form",
|
|
154
|
-
name: "卡片面板",
|
|
155
|
-
category: "dataCollection"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
id: "DataGrid",
|
|
159
|
-
type: "data-grid",
|
|
160
|
-
name: "表格",
|
|
161
|
-
category: "dataCollection"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
id: "TreeGrid",
|
|
165
|
-
type: "tree-grid",
|
|
166
|
-
name: "树表格",
|
|
167
|
-
category: "dataCollection",
|
|
168
|
-
updating: !0
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: "TreeView",
|
|
172
|
-
type: "tree-view",
|
|
173
|
-
name: "树列表",
|
|
174
|
-
category: "dataCollection",
|
|
175
|
-
icon: "tree-grid"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
id: "ListView",
|
|
179
|
-
type: "list-view",
|
|
180
|
-
name: "列表",
|
|
181
|
-
category: "dataCollection"
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
type: "command",
|
|
187
|
-
name: "命令类控件",
|
|
188
|
-
items: [
|
|
189
|
-
{
|
|
190
|
-
id: "Button",
|
|
191
|
-
type: "button-group",
|
|
192
|
-
name: "按钮",
|
|
193
|
-
category: "command"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
id: "ResponseToolbar",
|
|
197
|
-
type: "response-toolbar",
|
|
198
|
-
name: "响应式工具条",
|
|
199
|
-
category: "command",
|
|
200
|
-
icon: "button-group"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
id: "NavTab",
|
|
204
|
-
type: "nav-tab",
|
|
205
|
-
name: "标签类导航",
|
|
206
|
-
category: "command",
|
|
207
|
-
updating: !0
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
id: "FilterBar",
|
|
211
|
-
type: "filter-bar",
|
|
212
|
-
name: "筛选条",
|
|
213
|
-
category: "commands",
|
|
214
|
-
icon: "list-filter"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
id: "QuerySolution",
|
|
218
|
-
type: "query-solution",
|
|
219
|
-
name: "筛选方案",
|
|
220
|
-
category: "commands",
|
|
221
|
-
icon: "query-solution"
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: "container",
|
|
227
|
-
name: "容器类控件",
|
|
228
|
-
items: [
|
|
229
|
-
{
|
|
230
|
-
id: "Tab",
|
|
231
|
-
type: "tabs",
|
|
232
|
-
name: "标签页区域",
|
|
233
|
-
category: "container"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
id: "HtmlTemplate",
|
|
237
|
-
type: "html-template",
|
|
238
|
-
name: "模版容器",
|
|
239
|
-
category: "container",
|
|
240
|
-
updating: !0
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
id: "ContentContainer",
|
|
244
|
-
type: "content-container",
|
|
245
|
-
name: "容器",
|
|
246
|
-
category: "container"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
id: "Section",
|
|
250
|
-
type: "section",
|
|
251
|
-
name: "分组面板",
|
|
252
|
-
category: "container"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
id: "Accordion",
|
|
256
|
-
type: "accordion",
|
|
257
|
-
name: "收折面板",
|
|
258
|
-
category: "container",
|
|
259
|
-
icon: "zhediezhankai"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
id: "FieldSet",
|
|
263
|
-
type: "field-set",
|
|
264
|
-
name: "分组",
|
|
265
|
-
category: "container",
|
|
266
|
-
updating: !0
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
id: "ExternalContainer",
|
|
270
|
-
type: "external-container",
|
|
271
|
-
name: "外部容器",
|
|
272
|
-
category: "container",
|
|
273
|
-
icon: "content-container"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
id: "ModalContainer",
|
|
277
|
-
type: "modal-container",
|
|
278
|
-
name: "弹窗容器",
|
|
279
|
-
category: "container",
|
|
280
|
-
icon: "content-container",
|
|
281
|
-
updating: !0
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
id: "Nav",
|
|
285
|
-
type: "nav",
|
|
286
|
-
name: "导航",
|
|
287
|
-
category: "container",
|
|
288
|
-
icon: "list-nav"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
id: "ListNav",
|
|
292
|
-
type: "list-nav",
|
|
293
|
-
name: "列表导航",
|
|
294
|
-
category: "container"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
id: "Header",
|
|
298
|
-
type: "page-header",
|
|
299
|
-
name: "页头",
|
|
300
|
-
category: "container",
|
|
301
|
-
icon: "page-header"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
id: "Footer",
|
|
305
|
-
type: "page-footer",
|
|
306
|
-
name: "页脚",
|
|
307
|
-
category: "container",
|
|
308
|
-
icon: "modal-footer"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
id: "Pagination",
|
|
312
|
-
type: "pagination",
|
|
313
|
-
name: "分页条",
|
|
314
|
-
category: "container",
|
|
315
|
-
icon: "header"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
id: "Splitter",
|
|
319
|
-
type: "splitter",
|
|
320
|
-
name: "分栏面板",
|
|
321
|
-
category: "container"
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
type: "business",
|
|
327
|
-
name: "业务类控件",
|
|
328
|
-
items: [
|
|
329
|
-
{
|
|
330
|
-
id: "Avatar",
|
|
331
|
-
type: "avatar",
|
|
332
|
-
name: "头像",
|
|
333
74
|
category: "input"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
id: "Calendar",
|
|
337
|
-
type: "calendar",
|
|
338
|
-
name: "日程表",
|
|
339
|
-
category: "dataCollection",
|
|
340
|
-
icon: "date-picker"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
id: "DateView",
|
|
344
|
-
type: "date-view",
|
|
345
|
-
name: "日期导航",
|
|
346
|
-
category: "commands",
|
|
347
|
-
icon: "date-picker"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
id: "PersonnelSelector",
|
|
351
|
-
type: "personnel-selector",
|
|
352
|
-
name: "人员选择",
|
|
353
|
-
category: "input",
|
|
354
|
-
updating: !0
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
id: "OrganizationSelector",
|
|
358
|
-
type: "organization-selector",
|
|
359
|
-
name: "组织选择",
|
|
360
|
-
category: "input",
|
|
361
|
-
updating: !0
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: "Uploader",
|
|
365
|
-
type: "uploader",
|
|
366
|
-
name: "附件上传预览",
|
|
367
|
-
category: "uploader",
|
|
368
|
-
icon: "file-upload"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
id: "DiscussionEditor",
|
|
372
|
-
type: "discussion-editor",
|
|
373
|
-
name: "评论编辑区",
|
|
374
|
-
category: "discussion",
|
|
375
|
-
icon: "discussion-editor",
|
|
376
|
-
updating: !0
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
id: "DiscussionList",
|
|
380
|
-
type: "discussion-list",
|
|
381
|
-
name: "评论列表",
|
|
382
|
-
category: "discussion",
|
|
383
|
-
icon: "discussion-list",
|
|
384
|
-
updating: !0
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
id: "Steps",
|
|
388
|
-
type: "step",
|
|
389
|
-
name: "步骤条",
|
|
390
|
-
category: "commands",
|
|
391
|
-
icon: "steps"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
id: "SearchBox",
|
|
395
|
-
type: "search-box",
|
|
396
|
-
name: "搜索框",
|
|
397
|
-
category: "commands",
|
|
398
|
-
icon: "sousuo"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
id: "Progress",
|
|
402
|
-
type: "progress",
|
|
403
|
-
name: "进度条",
|
|
404
|
-
category: "commands",
|
|
405
|
-
icon: "liushuihao"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
id: "Rate",
|
|
409
|
-
type: "rate",
|
|
410
|
-
name: "评分",
|
|
411
|
-
category: "commands",
|
|
412
|
-
icon: "dingzhi"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
id: "Order",
|
|
416
|
-
type: "order",
|
|
417
|
-
name: "排序列",
|
|
418
|
-
category: "commands",
|
|
419
|
-
icon: "multi-select"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
id: "VerifyDetail",
|
|
423
|
-
type: "verify-detail",
|
|
424
|
-
name: "验证",
|
|
425
|
-
category: "commands",
|
|
426
|
-
icon: "approval-logs"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
id: "Transfer",
|
|
430
|
-
type: "transfer",
|
|
431
|
-
name: "穿梭框",
|
|
432
|
-
category: "commands",
|
|
433
|
-
icon: "multi-select"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
id: "Weather",
|
|
437
|
-
type: "weather",
|
|
438
|
-
name: "天气",
|
|
439
|
-
category: "dataCollection",
|
|
440
|
-
icon: "anheimoshi"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
id: "Wizard",
|
|
444
|
-
type: "wizard",
|
|
445
|
-
name: "向导",
|
|
446
|
-
category: "container",
|
|
447
|
-
updating: !0
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
id: "ImageCropper",
|
|
451
|
-
type: "image-cropper",
|
|
452
|
-
name: "图片裁切",
|
|
453
|
-
category: "container",
|
|
454
|
-
icon: "image"
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
type: "response-layout",
|
|
460
|
-
name: "布局容器",
|
|
461
|
-
items: [
|
|
462
|
-
{
|
|
463
|
-
id: "ResponseLayout2",
|
|
464
|
-
type: "response-layout",
|
|
465
|
-
name: "1列",
|
|
466
|
-
category: "container",
|
|
467
|
-
feature: {
|
|
468
|
-
splitter: "12"
|
|
469
|
-
},
|
|
470
|
-
icon: "response-layout-1"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
id: "ResponseLayout2",
|
|
474
|
-
type: "response-layout",
|
|
475
|
-
name: "2列",
|
|
476
|
-
category: "container",
|
|
477
|
-
feature: {
|
|
478
|
-
splitter: "6:6"
|
|
479
|
-
},
|
|
480
|
-
icon: "response-layout-2"
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
id: "ResponseLayout3",
|
|
484
|
-
type: "response-layout",
|
|
485
|
-
name: "3列",
|
|
486
|
-
category: "container",
|
|
487
|
-
feature: {
|
|
488
|
-
splitter: "4:4:4"
|
|
489
|
-
},
|
|
490
|
-
icon: "response-layout-3"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
id: "ResponseLayout4",
|
|
494
|
-
type: "response-layout",
|
|
495
|
-
name: "4列",
|
|
496
|
-
category: "container",
|
|
497
|
-
feature: {
|
|
498
|
-
splitter: "3:3:3:3"
|
|
499
|
-
},
|
|
500
|
-
icon: "response-layout-4"
|
|
501
|
-
}
|
|
502
|
-
]
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
type: "user-business",
|
|
506
|
-
name: "用户业务组件",
|
|
507
|
-
items: [
|
|
508
|
-
{
|
|
509
|
-
id: "SmokeDetector",
|
|
510
|
-
type: "smoke-detector",
|
|
511
|
-
name: "烟雾报警器",
|
|
512
|
-
category: "command",
|
|
513
|
-
icon: "response-layout-1"
|
|
514
75
|
}
|
|
515
76
|
]
|
|
516
77
|
}
|
|
517
|
-
], x = /* @__PURE__ */
|
|
78
|
+
], x = /* @__PURE__ */ m({
|
|
518
79
|
name: "FDesignerToolbox",
|
|
519
80
|
props: v,
|
|
520
81
|
emits: [],
|
|
521
82
|
setup(n) {
|
|
522
|
-
const
|
|
523
|
-
function
|
|
83
|
+
const o = i(T), r = i(n.dragula);
|
|
84
|
+
function d(e, t) {
|
|
524
85
|
t.isHide = !t.isHide;
|
|
525
86
|
}
|
|
526
|
-
function
|
|
87
|
+
function c(e) {
|
|
527
88
|
return {
|
|
528
89
|
"f-icon": !0,
|
|
529
90
|
"f-icon-arrow-60-down": !e.isHide,
|
|
530
91
|
"f-icon-arrow-e": e.isHide
|
|
531
92
|
};
|
|
532
93
|
}
|
|
533
|
-
function
|
|
94
|
+
function l(e) {
|
|
534
95
|
return a("div", {
|
|
535
96
|
class: "card-header",
|
|
536
|
-
onClick: (t) =>
|
|
97
|
+
onClick: (t) => d(t, e)
|
|
537
98
|
}, [a("div", {
|
|
538
99
|
class: "panel-item-title"
|
|
539
100
|
}, [a("div", {
|
|
@@ -543,7 +104,7 @@ const v = {
|
|
|
543
104
|
}, [a("div", {
|
|
544
105
|
class: "f-toolbar mr-2"
|
|
545
106
|
}, [a("span", {
|
|
546
|
-
class:
|
|
107
|
+
class: c(e)
|
|
547
108
|
}, null)]), a("div", {
|
|
548
109
|
class: "f-title f-utils-fill d-flex justify-content-between"
|
|
549
110
|
}, [a("span", null, [e.name])])])])])]);
|
|
@@ -564,7 +125,7 @@ const v = {
|
|
|
564
125
|
}, g = `fd_pc-${e.icon || e.type}`;
|
|
565
126
|
return t[g] = !0, t;
|
|
566
127
|
}
|
|
567
|
-
function
|
|
128
|
+
function p(e, t) {
|
|
568
129
|
return a("div", {
|
|
569
130
|
class: s(e),
|
|
570
131
|
"data-sourceType": "control",
|
|
@@ -582,25 +143,25 @@ const v = {
|
|
|
582
143
|
class: "controlName"
|
|
583
144
|
}, [e.name])])]);
|
|
584
145
|
}
|
|
585
|
-
function
|
|
146
|
+
function y(e) {
|
|
586
147
|
return a("div", {
|
|
587
148
|
class: "card-body px-2 py-0 border-0 controlCategory no-drop"
|
|
588
|
-
}, [e.items.map((t) =>
|
|
149
|
+
}, [e.items.map((t) => p(t, e))]);
|
|
589
150
|
}
|
|
590
|
-
function
|
|
151
|
+
function f(e) {
|
|
591
152
|
return !e.hideInControlBox && a("div", {
|
|
592
153
|
class: "farris-panel-item card border-0"
|
|
593
|
-
}, [
|
|
154
|
+
}, [l(e), y(e)]);
|
|
594
155
|
}
|
|
595
156
|
return C(() => n.dragula, (e) => {
|
|
596
157
|
var t;
|
|
597
|
-
|
|
158
|
+
r.value = e, (t = r.value) == null || t.attachToolbox();
|
|
598
159
|
}), () => a("div", {
|
|
599
160
|
class: "controlBox f-utils-fill-flex-column"
|
|
600
161
|
}, [a("div", {
|
|
601
162
|
class: "farris-panel f-utils-fill-flex-column",
|
|
602
163
|
style: "overflow:auto;"
|
|
603
|
-
}, [
|
|
164
|
+
}, [o.value.map((e) => f(e))])]);
|
|
604
165
|
}
|
|
605
166
|
});
|
|
606
167
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["designer-toolbox"]={},n.Vue))})(this,function(n,t){"use strict";const
|
|
1
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["designer-toolbox"]={},n.Vue))})(this,function(n,t){"use strict";const i={id:{type:String,default:""},dragula:{type:Object}},d=[{type:"input",name:"输入类控件",items:[{id:"TextBox",type:"input-group",name:"文本",category:"input"},{id:"MultiTextBox",type:"textarea",name:"多行文本",category:"input"},{id:"DateBox",type:"date-picker",name:"日期",category:"input"},{id:"EnumField",type:"combo-list",name:"下拉列表",category:"input"},{id:"NumericBox",type:"number-spinner",name:"数值",category:"input"},{id:"CheckBox",type:"check-box",name:"复选框",category:"input"},{id:"CheckBoxGroup",type:"check-group",name:"复选框组",category:"input"},{id:"RadioGroup",type:"radio-group",name:"单选组",category:"input"},{id:"SwitchField",type:"switch",name:"开关",category:"input"},{id:"LookupEdit",type:"lookup",name:"帮助",category:"input"},{id:"InputGroup",type:"input-group",name:"智能输入框",category:"input"}]}],c=t.defineComponent({name:"FDesignerToolbox",props:i,emits:[],setup(r){const s=t.ref(d),o=t.ref(r.dragula);function l(e,a){a.isHide=!a.isHide}function p(e){return{"f-icon":!0,"f-icon-arrow-60-down":!e.isHide,"f-icon-arrow-e":e.isHide}}function u(e){return t.createVNode("div",{class:"card-header",onClick:a=>l(a,e)},[t.createVNode("div",{class:"panel-item-title"},[t.createVNode("div",{class:"f-section-formgroup-legend"},[t.createVNode("div",{class:"f-header px-2 col-form-label"},[t.createVNode("div",{class:"f-toolbar mr-2"},[t.createVNode("span",{class:p(e)},null)]),t.createVNode("div",{class:"f-title f-utils-fill d-flex justify-content-between"},[t.createVNode("span",null,[e.name])])])])])])}function f(e){return{"d-none":e.dependentParent||e.hideInControlBox,controlPanel:!0,"drag-copy":!0,"no-drag":e.disable,updating:e.updating}}function y(e){const a={farrisControlIcon:!0,"fd-i-Family":!0},N=`fd_pc-${e.icon||e.type}`;return a[N]=!0,a}function g(e,a){return t.createVNode("div",{class:f(e),"data-sourceType":"control","data-controlType":e.type,"data-controlTypeName":e.name,"data-category":e.category,"data-feature":e.feature?JSON.stringify(e.feature):"","data-fieldType":e.fieldType,"data-templateId":e.id,"data-templateCategory":e.templateCategory,hidden:a.isHide},[t.createVNode("div",null,[t.createVNode("div",{class:y(e)},null),t.createVNode("div",{class:"controlName"},[e.name])])])}function m(e){return t.createVNode("div",{class:"card-body px-2 py-0 border-0 controlCategory no-drop"},[e.items.map(a=>g(a,e))])}function C(e){return!e.hideInControlBox&&t.createVNode("div",{class:"farris-panel-item card border-0"},[u(e),m(e)])}return t.watch(()=>r.dragula,e=>{var a;o.value=e,(a=o.value)==null||a.attachToolbox()}),()=>t.createVNode("div",{class:"controlBox f-utils-fill-flex-column"},[t.createVNode("div",{class:"farris-panel f-utils-fill-flex-column",style:"overflow:auto;"},[s.value.map(e=>C(e))])])}});n.FDesignerToolbox=c,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|