@farris/ui-vue 1.2.8 → 1.3.0
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 +180 -180
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +419 -331
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +346 -326
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +384 -384
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +205 -205
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +555 -467
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +239 -239
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1072 -364
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +129 -129
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +582 -327
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2433 -1134
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +307 -234
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6762 -4946
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4977 -3489
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3525 -2811
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +38 -37
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +282 -282
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2684 -1039
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +149 -101
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +573 -518
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +99 -99
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3607 -2799
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5438 -8236
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1679 -1759
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +421 -421
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +677 -593
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +326 -326
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +272 -199
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3739 -2273
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +11255 -9004
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6046 -5314
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +588 -444
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +568 -485
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +542 -454
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1967 -1105
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +160 -160
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +1282 -1151
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +705 -555
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +270 -270
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2231 -1517
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +813 -909
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3781 -2566
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +101 -101
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +538 -450
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +238 -233
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +155 -155
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1243 -1180
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +988 -877
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5413 -4867
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +199 -199
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +646 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +144 -144
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +464 -391
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +249 -249
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +483 -394
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2366 -2208
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +397 -399
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +394 -394
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +451 -367
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1252 -1144
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +510 -499
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5463 -9330
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +4058 -2597
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +510 -504
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +220 -220
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +653 -394
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +1028 -1028
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +20407 -18556
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +8 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +3 -1
- package/types/data-grid/src/data-grid.props.d.ts +3 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +36 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +12 -2
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(P,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es"],e):(P=typeof globalThis<"u"?globalThis:P||self,e(P.rate={},P.Vue,P.LodashES))})(this,function(P,e,W){"use strict";const Q={},U={};function q(a){const{properties:t,title:r,ignore:n}=a,o=n&&Array.isArray(n),b=Object.keys(t).reduce((g,v)=>((!o||!n.find(C=>C==v))&&(g[v]=t[v].type==="object"&&t[v].properties?q(t[v]):W.cloneDeep(t[v].default)),g),{});return(!o||!n.find(g=>g=="id"))&&(b.id=`${r}-${Date.now()}`),b}function _(a,t={},r){const n=Q[a];if(n){let o=q(n);const b=U[a];return o=b?b({getSchemaByType:_},o,t,r):o,o}return null}function Z(a,t){const r=q(t);return Object.keys(a).reduce((n,o)=>(n[o]&&W.isPlainObject(n[o])&&W.isPlainObject(a[o])?Object.assign(n[o],a[o]):n[o]=a[o],n),r),r}function x(a,t){return Object.keys(a).filter(n=>a[n]!=null).reduce((n,o)=>{if(t.has(o)){const b=t.get(o);if(typeof b=="string")n[b]=a[o];else{const g=b(o,a[o],a);Object.assign(n,g)}}else n[o]=a[o];return n},{})}function K(a,t,r=new Map){const n=Z(a,t);return x(n,r)}function I(a={}){function t(l,i,d,f){if(typeof d=="number")return f[l].length===d;if(typeof d=="object"){const S=Object.keys(d)[0],M=d[S];if(S==="not")return Number(f[l].length)!==Number(M);if(S==="moreThan")return Number(f[l].length)>=Number(M);if(S==="lessThan")return Number(f[l].length)<=Number(M)}return!1}function r(l,i,d,f){return f[l]&&f[l].propertyValue&&String(f[l].propertyValue.value)===String(d)}const n=new Map([["length",t],["getProperty",r]]);Object.keys(a).reduce((l,i)=>(l.set(i,a[i]),l),n);function o(l,i){const d=l;return typeof i=="number"?[{target:d,operator:"length",param:null,value:Number(i)}]:typeof i=="boolean"?[{target:d,operator:"getProperty",param:l,value:!!i}]:typeof i=="object"?Object.keys(i).map(f=>{if(f==="length")return{target:d,operator:"length",param:null,value:i[f]};const S=f,M=i[f];return{target:d,operator:"getProperty",param:S,value:M}}):[]}function b(l){return Object.keys(l).reduce((d,f)=>{const S=o(f,l[f]);return d.push(...S),d},[])}function g(l,i){if(n.has(l.operator)){const d=n.get(l.operator);return d&&d(l.target,l.param,l.value,i)||!1}return!1}function v(l,i){return b(l).reduce((S,M)=>S&&g(M,i),!0)}function C(l,i){const d=Object.keys(l),f=d.includes("allOf"),S=d.includes("anyOf"),M=f||S,N=(M?l[M?f?"allOf":"anyOf":"allOf"]:[l]).map(p=>v(p,i));return f?!N.includes(!1):N.includes(!0)}return{parseValueSchema:C}}const ee={},te={};I();function ae(a,t,r=new Map,n=(g,v,C)=>v,o={},b=g=>g){return Q[t.title]=t,U[t.title]=n,ee[t.title]=o,te[t.title]=b,(g={})=>{const v=K(g,t,r),C=Object.keys(a).reduce((l,i)=>(l[i]=a[i].default,l),{});return Object.assign(C,v)}}function re(a,t){return{customClass:t.class,customStyle:t.style}}const le=new Map([["appearance",re]]);function ne(a,t,r){return t}const oe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/rate.schema.json",title:"rate",description:"A Farris Component",type:"object",properties:{id:{description:"The unique identifier for rate",type:"string"},type:{description:"The type string of rate",type:"string",default:"rate"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},binding:{description:"",type:"object",default:{}},disable:{type:"string",default:!1},editable:{description:"",type:"boolean",default:!0},placeholder:{description:"",type:"string",default:""},readonly:{description:"",type:"boolean",default:!1},require:{description:"",type:"boolean",default:!1},tabindex:{description:"",type:"number",default:-1},visible:{description:"",type:"boolean",default:!0}},required:["id","type"],ignore:["id","appearance","binding"]},se={title:"rate",description:"A Farris Component",type:"object",categories:{basic:{description:"Basic Infomation",title:"基本信息",properties:{id:{description:"组件标识",title:"标识",type:"string",readonly:!0},type:{description:"组件类型",title:"控件类型",type:"select",editor:{type:"waiting for modification",enum:[]}}}}}},F={size:{type:String,default:"large"},enableHalf:{type:Boolean,default:!1},enableClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},pointSystem:{type:Number,default:5},lightColor:{type:String,default:""},darkColor:{type:String,default:""},iconClass:{type:String,default:"f-icon-star"},numOfStar:{type:Number,default:5},toolTipDisabled:{type:Boolean,default:!0},toolTipContents:{type:Array,default:["很不满意","不满意","一般","满意","非常满意"]},enableScore:{type:Boolean,default:!0},enableSatisfaction:{type:Boolean,default:!1},value:{type:Number,default:0},modelValue:{type:Number,default:0}},z=ae(F,oe,le,ne,se),E=e.defineComponent({name:"FRate",props:F,emits:["selectedValue","update:modelValue"],setup(a,t){const r=e.ref(a.size),n=e.ref(a.enableHalf),o=e.ref(a.enableClear),b=e.ref(a.disabled),g=e.ref(a.pointSystem),v=e.ref(a.lightColor),C=e.ref(a.darkColor),l=e.ref(a.iconClass),i=e.ref(a.numOfStar),d=e.ref(a.toolTipDisabled),f=e.ref(a.toolTipContents),S=e.ref(a.enableScore),M=e.ref(a.enableSatisfaction);let m;const V=e.ref(0),N=e.ref(0),T=e.ref(0),p=e.ref(a.modelValue);let O=1,D,u,h;const y=4;e.onMounted(()=>{});function j(){const c=i.value;h=[];for(let k=1;k<=c;k++)h.push({id:k})}function $(){let c;n.value?c=Math.ceil(p.value/O):c=p.value,N.value=(m*p.value+Math.floor(p.value)*y)/O,D=f.value[c-1]}function R(){switch(r.value){case"small":m=14;break;case"middle":m=16;break;case"large":m=18;break;case"extraLarge":m=24;break}j(),i.value&&(O=g.value/i.value),p.value&&$()}R();function L(c){return c.className.indexOf("f-icon")!==-1}function H(){return V.value===N.value&&o.value&&N.value!==0?(N.value=0,p.value=0,u=null,V.value=0,T.value=0,t.emit("selectedValue",p.value),t.emit("update:modelValue",p.value),!0):!1}function X(c,k,s){if(c.movementX||c.movementY){if(b.value)return;M.value&&(D=f.value[k-1]),c.offsetX<m/2&&n.value===!0?(V.value=m*k-m/2+y*(k-1),T.value=O*k-O/2):(V.value=m*k+y*(k-1),T.value=O*k)}if(s===!0){if(H())return;p.value=T.value,N.value=V.value,u=D,t.emit("update:modelValue",p.value),t.emit("selectedValue",p.value)}}function B(c,k){var s;if(L(c.target)&&c.target){const w=parseInt((s=c.target)==null?void 0:s.id);X(c,w,k)}}const Y=e.computed(()=>T.value?T.value+"分":p.value+"分"),J=e.computed(()=>({width:(V.value||N.value)+"px"}));function A(){V.value=0}return e.watch(()=>a.modelValue,c=>{p.value=c,$()}),()=>e.createVNode("div",{class:"farris-star-rating",onMouseover:e.withModifiers(c=>B(c,!1),["prevent"]),onMousemove:e.withModifiers(c=>B(c,!1),["prevent"]),onMouseleave:e.withModifiers(c=>A(),["prevent"]),onClick:e.withModifiers(c=>B(c,!0),["prevent"])},[e.createVNode("div",{class:"star-light-area",style:J.value},[h.map(c=>e.createVNode("span",{class:["f-icon default-light-color ",l.value,{"f-star-sm":r.value==="small"},{"f-star-md":r.value==="middle"},{"f-star-lg":r.value==="large"},{"f-star-exlarge":r.value==="extraLarge"},{disabled:d.value}],id:c.id,style:{color:v.value}},null))]),e.createVNode("div",{class:["star-dark-area",{small:r.value==="small"},{middle:r.value==="middle"},{large:r.value==="large"}]},[h.map(c=>e.createVNode("span",{class:["f-icon default-dark-color",l.value,{"f-star-sm":r.value==="small"},{"f-star-md":r.value==="middle"},{"f-star-lg":r.value==="large"},{"f-star-exlarge":r.value==="extraLarge"}],id:c.id,style:{color:C.value}},null))]),e.createVNode("div",{class:["f-utils-fill",{"font-small":r.value==="small"},{"font-middle":r.value==="middle"},{"font-large":r.value==="large"},{"font-exlarge":r.value==="extraLarge"}]},[S.value&&e.createVNode("span",null,[e.createTextVNode(" "),Y.value,e.createTextVNode(" ")]),M.value&&(u||D)&&e.createVNode("span",null,[e.createTextVNode(" "),D||u])])])}});function ie(a,t,r){var D;function n(){}const o="",b="",g=e.ref();function v(){return(t==null?void 0:t.schema.componentType)!=="frame"}function C(){return!1}function l(){return(t==null?void 0:t.schema.componentType)!=="frame"}function i(){return(t==null?void 0:t.schema.componentType)==="frame"}function d(u){if(!u||!u.value)return null;if(u.value.schema&&u.value.schema.type==="component")return u.value;const h=e.ref(u==null?void 0:u.value.parent),y=d(h);return y||null}function f(u=t){const{componentInstance:h,designerItemElementRef:y}=u;return!h||!h.value?null:h.value.canMove?y:f(u.parent)}function S(u){return!!r}function M(){return(t==null?void 0:t.schema.label)||(t==null?void 0:t.schema.title)||(t==null?void 0:t.schema.name)}function m(){}function V(u,h){}function N(u,h){const{componentType:y}=u;let j=_(y,u,h);const $=y.toLowerCase().replace("-","_");return j&&!j.id&&j.type===y&&(j.id=`${$}_${Math.random().toString().slice(2,6)}`),j}function T(u,h){const y=String(u.getAttribute("data-controltype")),j=u.getAttribute("data-feature"),$=j?JSON.parse(j):{};$.parentComponentInstance=g.value;let R=_(y,$);const L=y.toLowerCase().replace("-","_");return R&&!R.id&&R.type===y&&(R.id=`${L}_${Math.random().toString().slice(2,6)}`),R}function p(u){}function O(...u){}return g.value={canMove:v(),canSelectParent:C(),canDelete:l(),canNested:!i(),contents:t==null?void 0:t.schema.contents,elementRef:a,parent:(D=t==null?void 0:t.parent)==null?void 0:D.componentInstance,schema:t==null?void 0:t.schema,styles:o,designerClass:b,canAccepts:S,getBelongedComponentInstance:d,getDraggableDesignItemElement:f,getDraggingDisplayText:M,getPropConfig:O,getDragScopeElement:m,onAcceptMovedChildElement:V,onAcceptNewChildElement:T,onChildElementMovedOut:p,addNewChildComponentSchema:N,updateDragAndDropRules:n,triggerBelongedComponentToMoveWhenMoved:e.ref(!1),triggerBelongedComponentToDeleteWhenDeleted:e.ref(!1)},g}const ce=e.defineComponent({name:"FRateDesign",props:F,emits:["selectedValue"],setup(a,t){const r=e.ref(a.size),n=e.ref(a.enableHalf),o=e.ref(a.enableClear),b=e.ref(a.disabled),g=e.ref(a.pointSystem),v=e.ref(a.lightColor),C=e.ref(a.darkColor),l=e.ref(a.iconClass),i=e.ref(a.numOfStar),d=e.ref(a.toolTipDisabled),f=e.ref(a.toolTipContents),S=e.ref(a.enableScore),M=e.ref(a.enableSatisfaction);let m;const V=e.ref(1);let N=0;const T=e.ref(0),p=e.ref(0);let O=1,D,u,h;const y=4,j=e.ref(),$=e.inject("design-item-context"),R=ie(j,$);e.onMounted(()=>{j.value.componentInstance=R}),t.expose(R.value),e.onMounted(()=>{});function L(){const s=i.value;h=[];for(let w=1;w<=s;w++)h.push({id:w})}function H(){let s;n.value?s=Math.ceil(p.value/O):s=p.value,N=(m*p.value+Math.floor(p.value)*y)/O,D=f.value[s-1]}function X(){switch(r.value){case"small":m=14;break;case"middle":m=16;break;case"large":m=18;break;case"extraLarge":m=24;break}L(),i.value&&(O=g.value/i.value),p.value&&H()}X();function B(s){return s.className.indexOf("f-icon")!==-1}function Y(){return V.value===N&&o&&N!==0?(N=0,p.value=0,u=null,V.value=0,T.value=0,t.emit("selectedValue",p.value),!0):!1}function J(s,w,G){if(s.movementX||s.movementY){if(b.value)return;M.value&&(D=f.value[w-1]),s.offsetX<m/2&&n.value===!0?(V.value=m*w-m/2+y*(w-1),T.value=O*w-O/2):(V.value=m*w+y*(w-1),T.value=O*w)}if(G===!0){if(Y())return;p.value=T.value,N=V.value,u=D,t.emit("selectedValue",p.value)}}function A(s,w){if(B(s.target)&&s.target){const G=parseInt(s.target.id);J(s,G,w)}}const c=e.computed(()=>T.value?T.value+"分":p.value+"分"),k=e.computed(()=>({width:(V.value||N)+"px"}));return()=>e.createVNode("div",{class:"farris-star-rating",ref:j,onMouseover:e.withModifiers(s=>A(s,!1),["prevent"]),onMousemove:e.withModifiers(s=>A(s,!1),["prevent"]),onMouseout:e.withModifiers(s=>A(s,!1),["prevent"]),onClick:e.withModifiers(s=>A(s,!0),["prevent"])},[e.createVNode("div",{class:"star-light-area",style:k.value},[h.map(s=>e.createVNode("span",{class:["f-icon default-light-color ",l.value,{"f-star-sm":r.value==="small"},{"f-star-md":r.value==="middle"},{"f-star-lg":r.value==="large"},{"f-star-exlarge":r.value==="extraLarge"},{disabled:d.value}],id:s.id,style:{color:v.value}},null))]),e.createVNode("div",{class:["star-dark-area",{small:r.value==="small"},{middle:r.value==="middle"},{large:r.value==="large"}]},[h.map(s=>e.createVNode("span",{class:["f-icon default-dark-color",l.value,{"f-star-sm":r.value==="small"},{"f-star-md":r.value==="middle"},{"f-star-lg":r.value==="large"},{"f-star-exlarge":r.value==="extraLarge"}],id:s.id,style:{color:C.value}},null))]),e.createVNode("div",{class:["f-utils-fill",{"font-small":r.value==="small"},{"font-middle":r.value==="middle"},{"font-large":r.value==="large"},{"font-exlarge":r.value==="extraLarge"}]},[S.value&&e.createVNode("span",null,[e.createTextVNode(" "),c.value,e.createTextVNode(" ")]),M.value&&(u||D)&&e.createVNode("span",null,[e.createTextVNode(" "),D||u])])])}}),ue=a=>{const t=a;return t.install=function(r){r.component(t.name,a)},a};E.register=(a,t,r,n)=>{a.rate=E,t.rate=z},E.registerDesigner=(a,t,r)=>{a.rate=ce,t.rate=z};const fe=ue(E);P.FRate=E,P.default=fe,P.propsResolver=z,P.rateProps=F,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as D, createVNode as j, ref as v, inject as _, onMounted as z } from "vue";
|
|
2
|
+
import { isPlainObject as B, cloneDeep as Y } from "lodash-es";
|
|
3
|
+
const W = {}, J = {};
|
|
4
4
|
function E(t) {
|
|
5
|
-
const { properties: e, title: o } = t, n = Object.keys(e).reduce((
|
|
6
|
-
return n.id = `${o}-${Date.now()}
|
|
5
|
+
const { properties: e, title: o, ignore: n } = t, r = n && Array.isArray(n), l = Object.keys(e).reduce((u, f) => ((!r || !n.find((g) => g == f)) && (u[f] = e[f].type === "object" && e[f].properties ? E(e[f]) : Y(e[f].default)), u), {});
|
|
6
|
+
return (!r || !n.find((u) => u == "id")) && (l.id = `${o}-${Date.now()}`), l;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
return
|
|
8
|
+
function O(t, e = {}, o) {
|
|
9
|
+
const n = W[t];
|
|
10
|
+
if (n) {
|
|
11
|
+
let r = E(n);
|
|
12
|
+
const l = J[t];
|
|
13
|
+
return r = l ? l({ getSchemaByType: O }, r, e, o) : r, r;
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Z(t, e) {
|
|
18
18
|
const o = E(e);
|
|
19
|
-
return Object.keys(t).reduce((n, r) => (n[r] &&
|
|
19
|
+
return Object.keys(t).reduce((n, r) => (n[r] && B(n[r]) && B(t[r]) ? Object.assign(n[r], t[r]) : n[r] = t[r], n), o), o;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function C(t, e) {
|
|
22
22
|
return Object.keys(t).filter((n) => t[n] != null).reduce((n, r) => {
|
|
23
23
|
if (e.has(r)) {
|
|
24
|
-
const
|
|
25
|
-
if (typeof
|
|
26
|
-
n[
|
|
24
|
+
const l = e.get(r);
|
|
25
|
+
if (typeof l == "string")
|
|
26
|
+
n[l] = t[r];
|
|
27
27
|
else {
|
|
28
|
-
const
|
|
29
|
-
Object.assign(n,
|
|
28
|
+
const u = l(r, t[r], t);
|
|
29
|
+
Object.assign(n, u);
|
|
30
30
|
}
|
|
31
31
|
} else
|
|
32
32
|
n[r] = t[r];
|
|
33
33
|
return n;
|
|
34
34
|
}, {});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
38
|
-
return
|
|
36
|
+
function K(t, e, o = /* @__PURE__ */ new Map()) {
|
|
37
|
+
const n = Z(t, e);
|
|
38
|
+
return C(n, o);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
function e(s, a,
|
|
42
|
-
if (typeof
|
|
43
|
-
return
|
|
44
|
-
if (typeof
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
return Number(
|
|
48
|
-
if (
|
|
49
|
-
return Number(
|
|
50
|
-
if (
|
|
51
|
-
return Number(
|
|
40
|
+
function I(t = {}) {
|
|
41
|
+
function e(s, a, i, c) {
|
|
42
|
+
if (typeof i == "number")
|
|
43
|
+
return c[s].length === i;
|
|
44
|
+
if (typeof i == "object") {
|
|
45
|
+
const y = Object.keys(i)[0], m = i[y];
|
|
46
|
+
if (y === "not")
|
|
47
|
+
return Number(c[s].length) !== Number(m);
|
|
48
|
+
if (y === "moreThan")
|
|
49
|
+
return Number(c[s].length) >= Number(m);
|
|
50
|
+
if (y === "lessThan")
|
|
51
|
+
return Number(c[s].length) <= Number(m);
|
|
52
52
|
}
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
|
-
function o(s, a,
|
|
56
|
-
return
|
|
55
|
+
function o(s, a, i, c) {
|
|
56
|
+
return c[s] && c[s].propertyValue && String(c[s].propertyValue.value) === String(i);
|
|
57
57
|
}
|
|
58
58
|
const n = /* @__PURE__ */ new Map([
|
|
59
59
|
["length", e],
|
|
@@ -61,51 +61,51 @@ function K(t = {}) {
|
|
|
61
61
|
]);
|
|
62
62
|
Object.keys(t).reduce((s, a) => (s.set(a, t[a]), s), n);
|
|
63
63
|
function r(s, a) {
|
|
64
|
-
const
|
|
65
|
-
return typeof a == "number" ? [{ target:
|
|
66
|
-
if (
|
|
67
|
-
return { target:
|
|
68
|
-
const
|
|
69
|
-
return { target:
|
|
64
|
+
const i = s;
|
|
65
|
+
return typeof a == "number" ? [{ target: i, operator: "length", param: null, value: Number(a) }] : typeof a == "boolean" ? [{ target: i, operator: "getProperty", param: s, value: !!a }] : typeof a == "object" ? Object.keys(a).map((c) => {
|
|
66
|
+
if (c === "length")
|
|
67
|
+
return { target: i, operator: "length", param: null, value: a[c] };
|
|
68
|
+
const y = c, m = a[c];
|
|
69
|
+
return { target: i, operator: "getProperty", param: y, value: m };
|
|
70
70
|
}) : [];
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return Object.keys(s).reduce((
|
|
74
|
-
const
|
|
75
|
-
return
|
|
72
|
+
function l(s) {
|
|
73
|
+
return Object.keys(s).reduce((i, c) => {
|
|
74
|
+
const y = r(c, s[c]);
|
|
75
|
+
return i.push(...y), i;
|
|
76
76
|
}, []);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function u(s, a) {
|
|
79
79
|
if (n.has(s.operator)) {
|
|
80
|
-
const
|
|
81
|
-
return
|
|
80
|
+
const i = n.get(s.operator);
|
|
81
|
+
return i && i(s.target, s.param, s.value, a) || !1;
|
|
82
82
|
}
|
|
83
83
|
return !1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
85
|
+
function f(s, a) {
|
|
86
|
+
return l(s).reduce((y, m) => y && u(m, a), !0);
|
|
87
87
|
}
|
|
88
88
|
function g(s, a) {
|
|
89
|
-
const
|
|
90
|
-
return
|
|
89
|
+
const i = Object.keys(s), c = i.includes("allOf"), y = i.includes("anyOf"), m = c || y, R = (m ? s[m ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((T) => f(T, a));
|
|
90
|
+
return c ? !R.includes(!1) : R.includes(!0);
|
|
91
91
|
}
|
|
92
92
|
return { parseValueSchema: g };
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
function
|
|
97
|
-
return
|
|
98
|
-
const
|
|
99
|
-
return Object.assign(g,
|
|
94
|
+
const x = {}, ee = {};
|
|
95
|
+
I();
|
|
96
|
+
function G(t, e, o = /* @__PURE__ */ new Map(), n = (u, f, g) => f, r = {}, l = (u) => u) {
|
|
97
|
+
return W[e.title] = e, J[e.title] = n, x[e.title] = r, ee[e.title] = l, (u = {}) => {
|
|
98
|
+
const f = K(u, e, o), g = Object.keys(t).reduce((s, a) => (s[a] = t[a].default, s), {});
|
|
99
|
+
return Object.assign(g, f);
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function te(t, e) {
|
|
103
103
|
return { customClass: e.class, customStyle: e.style };
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
["appearance",
|
|
105
|
+
const H = /* @__PURE__ */ new Map([
|
|
106
|
+
["appearance", te]
|
|
107
107
|
]);
|
|
108
|
-
function
|
|
108
|
+
function re(t, e, o) {
|
|
109
109
|
return o.splitter && (e.contents = String(o.splitter).split(":").map((n) => {
|
|
110
110
|
const r = t.getSchemaByType("response-layout-item");
|
|
111
111
|
return r.appearance = {
|
|
@@ -113,7 +113,7 @@ function te(t, e, o) {
|
|
|
113
113
|
}, r;
|
|
114
114
|
})), e;
|
|
115
115
|
}
|
|
116
|
-
const
|
|
116
|
+
const ne = "https://json-schema.org/draft/2020-12/schema", se = "https://farris-design.gitee.io/response-layout.schema.json", oe = "response-layout", ae = "A Farris Container Component", ie = "object", ce = {
|
|
117
117
|
id: {
|
|
118
118
|
description: "The unique identifier for a Respnse Layout",
|
|
119
119
|
type: "string"
|
|
@@ -159,19 +159,19 @@ const re = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-
|
|
|
159
159
|
type: "boolean",
|
|
160
160
|
default: !0
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, pe = [
|
|
163
163
|
"id",
|
|
164
164
|
"type",
|
|
165
165
|
"contents"
|
|
166
|
-
],
|
|
167
|
-
$schema:
|
|
168
|
-
$id:
|
|
169
|
-
title:
|
|
170
|
-
description:
|
|
171
|
-
type:
|
|
166
|
+
], ue = {
|
|
167
|
+
$schema: ne,
|
|
168
|
+
$id: se,
|
|
169
|
+
title: oe,
|
|
170
|
+
description: ae,
|
|
171
|
+
type: ie,
|
|
172
172
|
properties: ce,
|
|
173
|
-
required:
|
|
174
|
-
},
|
|
173
|
+
required: pe
|
|
174
|
+
}, le = "responseLayout", fe = "A Farris Container Component", ye = "object", me = {
|
|
175
175
|
basic: {
|
|
176
176
|
description: "Basic Infomation",
|
|
177
177
|
title: "基本信息",
|
|
@@ -249,23 +249,23 @@ const re = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
},
|
|
253
|
-
title:
|
|
254
|
-
description:
|
|
255
|
-
type:
|
|
256
|
-
categories:
|
|
257
|
-
},
|
|
252
|
+
}, de = {
|
|
253
|
+
title: le,
|
|
254
|
+
description: fe,
|
|
255
|
+
type: ye,
|
|
256
|
+
categories: me
|
|
257
|
+
}, N = {
|
|
258
258
|
customClass: { type: String, default: "" }
|
|
259
|
-
},
|
|
259
|
+
}, V = G(N, ue, H, re, de), M = /* @__PURE__ */ D({
|
|
260
260
|
name: "FResponseLayout",
|
|
261
|
-
props:
|
|
261
|
+
props: N,
|
|
262
262
|
emits: [],
|
|
263
263
|
setup(t, e) {
|
|
264
|
-
return () =>
|
|
264
|
+
return () => j("div", {
|
|
265
265
|
class: t.customClass
|
|
266
266
|
}, [e.slots.default && e.slots.default()]);
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), he = "https://json-schema.org/draft/2020-12/schema", ge = "https://farris-design.gitee.io/response-layout-item.schema.json", be = "response-layout-item", ve = "A Farris Container Component", Le = "object", Re = {
|
|
269
269
|
id: {
|
|
270
270
|
description: "The unique identifier for a Respnse Layout Item",
|
|
271
271
|
type: "string"
|
|
@@ -311,36 +311,36 @@ const re = "https://json-schema.org/draft/2020-12/schema", ne = "https://farris-
|
|
|
311
311
|
type: "boolean",
|
|
312
312
|
default: !0
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, $e = [
|
|
315
315
|
"id",
|
|
316
316
|
"type",
|
|
317
317
|
"contents"
|
|
318
|
-
],
|
|
319
|
-
$schema:
|
|
320
|
-
$id:
|
|
321
|
-
title:
|
|
322
|
-
description:
|
|
323
|
-
type:
|
|
324
|
-
properties:
|
|
325
|
-
required:
|
|
326
|
-
},
|
|
318
|
+
], Se = {
|
|
319
|
+
$schema: he,
|
|
320
|
+
$id: ge,
|
|
321
|
+
title: be,
|
|
322
|
+
description: ve,
|
|
323
|
+
type: Le,
|
|
324
|
+
properties: Re,
|
|
325
|
+
required: $e
|
|
326
|
+
}, w = {
|
|
327
327
|
customClass: { type: String, default: "" }
|
|
328
|
-
},
|
|
328
|
+
}, q = G(w, Se, H), S = /* @__PURE__ */ D({
|
|
329
329
|
name: "FResponseLayoutItem",
|
|
330
|
-
props:
|
|
330
|
+
props: w,
|
|
331
331
|
emits: [],
|
|
332
332
|
setup(t, e) {
|
|
333
|
-
return () =>
|
|
333
|
+
return () => j("div", {
|
|
334
334
|
class: t.customClass
|
|
335
335
|
}, [e.slots.default && e.slots.default()]);
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
|
-
function
|
|
339
|
-
var
|
|
338
|
+
function Q(t, e, o) {
|
|
339
|
+
var k;
|
|
340
340
|
function n() {
|
|
341
341
|
}
|
|
342
|
-
const r = "",
|
|
343
|
-
function
|
|
342
|
+
const r = "", l = "", u = v();
|
|
343
|
+
function f() {
|
|
344
344
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
345
345
|
}
|
|
346
346
|
function g() {
|
|
@@ -352,113 +352,113 @@ function H(t, e, o) {
|
|
|
352
352
|
function a() {
|
|
353
353
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function i(p) {
|
|
356
356
|
if (!p || !p.value)
|
|
357
357
|
return null;
|
|
358
358
|
if (p.value.schema && p.value.schema.type === "component")
|
|
359
359
|
return p.value;
|
|
360
|
-
const
|
|
361
|
-
return
|
|
360
|
+
const h = v(p == null ? void 0 : p.value.parent), d = i(h);
|
|
361
|
+
return d || null;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
const { componentInstance:
|
|
365
|
-
return !
|
|
363
|
+
function c(p = e) {
|
|
364
|
+
const { componentInstance: h, designerItemElementRef: d } = p;
|
|
365
|
+
return !h || !h.value ? null : h.value.canMove ? d : c(p.parent);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function y(p) {
|
|
368
368
|
return !!o;
|
|
369
369
|
}
|
|
370
370
|
function m() {
|
|
371
371
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function P() {
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function A(p, h) {
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function R(p, h) {
|
|
378
378
|
const { componentType: d } = p;
|
|
379
|
-
let
|
|
380
|
-
const
|
|
381
|
-
return
|
|
379
|
+
let b = O(d, p, h);
|
|
380
|
+
const $ = d.toLowerCase().replace("-", "_");
|
|
381
|
+
return b && !b.id && b.type === d && (b.id = `${$}_${Math.random().toString().slice(2, 6)}`), b;
|
|
382
382
|
}
|
|
383
|
-
function F(p,
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
let
|
|
387
|
-
const
|
|
388
|
-
return
|
|
383
|
+
function F(p, h) {
|
|
384
|
+
const d = String(p.getAttribute("data-controltype")), b = p.getAttribute("data-feature"), $ = b ? JSON.parse(b) : {};
|
|
385
|
+
$.parentComponentInstance = u.value;
|
|
386
|
+
let L = O(d, $);
|
|
387
|
+
const X = d.toLowerCase().replace("-", "_");
|
|
388
|
+
return L && !L.id && L.type === d && (L.id = `${X}_${Math.random().toString().slice(2, 6)}`), L;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function T(p) {
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function U(...p) {
|
|
393
393
|
}
|
|
394
|
-
return
|
|
395
|
-
canMove:
|
|
394
|
+
return u.value = {
|
|
395
|
+
canMove: f(),
|
|
396
396
|
canSelectParent: g(),
|
|
397
397
|
canDelete: s(),
|
|
398
398
|
canNested: !a(),
|
|
399
399
|
contents: e == null ? void 0 : e.schema.contents,
|
|
400
400
|
elementRef: t,
|
|
401
|
-
parent: (
|
|
401
|
+
parent: (k = e == null ? void 0 : e.parent) == null ? void 0 : k.componentInstance,
|
|
402
402
|
schema: e == null ? void 0 : e.schema,
|
|
403
403
|
styles: r,
|
|
404
|
-
designerClass:
|
|
405
|
-
canAccepts:
|
|
406
|
-
getBelongedComponentInstance:
|
|
407
|
-
getDraggableDesignItemElement:
|
|
404
|
+
designerClass: l,
|
|
405
|
+
canAccepts: y,
|
|
406
|
+
getBelongedComponentInstance: i,
|
|
407
|
+
getDraggableDesignItemElement: c,
|
|
408
408
|
getDraggingDisplayText: m,
|
|
409
|
-
getPropConfig:
|
|
410
|
-
getDragScopeElement:
|
|
411
|
-
onAcceptMovedChildElement:
|
|
409
|
+
getPropConfig: U,
|
|
410
|
+
getDragScopeElement: P,
|
|
411
|
+
onAcceptMovedChildElement: A,
|
|
412
412
|
onAcceptNewChildElement: F,
|
|
413
|
-
onChildElementMovedOut:
|
|
414
|
-
addNewChildComponentSchema:
|
|
413
|
+
onChildElementMovedOut: T,
|
|
414
|
+
addNewChildComponentSchema: R,
|
|
415
415
|
updateDragAndDropRules: n,
|
|
416
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
417
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
418
|
-
},
|
|
416
|
+
triggerBelongedComponentToMoveWhenMoved: v(!1),
|
|
417
|
+
triggerBelongedComponentToDeleteWhenDeleted: v(!1)
|
|
418
|
+
}, u;
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const De = /* @__PURE__ */ D({
|
|
421
421
|
name: "FResponseLayoutDesign",
|
|
422
|
-
props:
|
|
422
|
+
props: N,
|
|
423
423
|
emits: [],
|
|
424
424
|
setup(t, e) {
|
|
425
|
-
const o =
|
|
426
|
-
return r.value.canNested = !1,
|
|
425
|
+
const o = v(), n = _("design-item-context"), r = Q(o, n);
|
|
426
|
+
return r.value.canNested = !1, z(() => {
|
|
427
427
|
o.value.componentInstance = r;
|
|
428
|
-
}), e.expose(r.value), () =>
|
|
428
|
+
}), e.expose(r.value), () => j("div", {
|
|
429
429
|
ref: o,
|
|
430
430
|
class: "d-flex response-layout"
|
|
431
431
|
}, [e.slots.default && e.slots.default()]);
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), je = /* @__PURE__ */ D({
|
|
434
434
|
name: "FResponseLayoutItemDesign",
|
|
435
|
-
props:
|
|
435
|
+
props: w,
|
|
436
436
|
emits: [],
|
|
437
437
|
setup(t, e) {
|
|
438
|
-
const o =
|
|
439
|
-
return r.value.canNested = !1, r.value.canMove = !1, r.value.canDelete = !1,
|
|
438
|
+
const o = v(), n = _("design-item-context"), r = Q(o, n);
|
|
439
|
+
return r.value.canNested = !1, r.value.canMove = !1, r.value.canDelete = !1, z(() => {
|
|
440
440
|
o.value.componentInstance = r;
|
|
441
|
-
}), e.expose(r.value), () =>
|
|
441
|
+
}), e.expose(r.value), () => j(S, {
|
|
442
442
|
ref: o
|
|
443
443
|
}, {
|
|
444
444
|
default: () => [e.slots.default && e.slots.default()]
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
|
-
}),
|
|
447
|
+
}), Me = {
|
|
448
448
|
install(t) {
|
|
449
|
-
t.component(
|
|
449
|
+
t.component(M.name, M).component(S.name, S);
|
|
450
450
|
},
|
|
451
451
|
register(t, e, o, n) {
|
|
452
|
-
t["response-layout"] =
|
|
452
|
+
t["response-layout"] = M, t["response-layout-item"] = S, e["response-layout"] = V, e["response-layout-item"] = q;
|
|
453
453
|
},
|
|
454
454
|
registerDesigner(t, e, o) {
|
|
455
|
-
t["response-layout"] =
|
|
455
|
+
t["response-layout"] = De, t["response-layout-item"] = je, e["response-layout"] = V, e["response-layout-item"] = q;
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
458
|
export {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
459
|
+
M as FResponseLayout,
|
|
460
|
+
S as FResponseLayoutItem,
|
|
461
|
+
Me as default,
|
|
462
|
+
N as responseLayoutProps,
|
|
463
|
+
V as responseLayoutPropsResolver
|
|
464
464
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(m,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es"],p):(m=typeof globalThis<"u"?globalThis:m||self,p(m["response-layout"]={},m.Vue,m.LodashES))})(this,function(m,p,M){"use strict";const A={},V={};function v(t){const{properties:e,title:o,ignore:r}=t,n=r&&Array.isArray(r),f=Object.keys(e).reduce((l,y)=>((!n||!r.find($=>$==y))&&(l[y]=e[y].type==="object"&&e[y].properties?v(e[y]):M.cloneDeep(e[y].default)),l),{});return(!n||!r.find(l=>l=="id"))&&(f.id=`${o}-${Date.now()}`),f}function O(t,e={},o){const r=A[t];if(r){let n=v(r);const f=V[t];return n=f?f({getSchemaByType:O},n,e,o):n,n}return null}function G(t,e){const o=v(e);return Object.keys(t).reduce((r,n)=>(r[n]&&M.isPlainObject(r[n])&&M.isPlainObject(t[n])?Object.assign(r[n],t[n]):r[n]=t[n],r),o),o}function H(t,e){return Object.keys(t).filter(r=>t[r]!=null).reduce((r,n)=>{if(e.has(n)){const f=e.get(n);if(typeof f=="string")r[f]=t[n];else{const l=f(n,t[n],t);Object.assign(r,l)}}else r[n]=t[n];return r},{})}function Q(t,e,o=new Map){const r=G(t,e);return H(r,o)}function U(t={}){function e(s,a,i,c){if(typeof i=="number")return c[s].length===i;if(typeof i=="object"){const d=Object.keys(i)[0],h=i[d];if(d==="not")return Number(c[s].length)!==Number(h);if(d==="moreThan")return Number(c[s].length)>=Number(h);if(d==="lessThan")return Number(c[s].length)<=Number(h)}return!1}function o(s,a,i,c){return c[s]&&c[s].propertyValue&&String(c[s].propertyValue.value)===String(i)}const r=new Map([["length",e],["getProperty",o]]);Object.keys(t).reduce((s,a)=>(s.set(a,t[a]),s),r);function n(s,a){const i=s;return typeof a=="number"?[{target:i,operator:"length",param:null,value:Number(a)}]:typeof a=="boolean"?[{target:i,operator:"getProperty",param:s,value:!!a}]:typeof a=="object"?Object.keys(a).map(c=>{if(c==="length")return{target:i,operator:"length",param:null,value:a[c]};const d=c,h=a[c];return{target:i,operator:"getProperty",param:d,value:h}}):[]}function f(s){return Object.keys(s).reduce((i,c)=>{const d=n(c,s[c]);return i.push(...d),i},[])}function l(s,a){if(r.has(s.operator)){const i=r.get(s.operator);return i&&i(s.target,s.param,s.value,a)||!1}return!1}function y(s,a){return f(s).reduce((d,h)=>d&&l(h,a),!0)}function $(s,a){const i=Object.keys(s),c=i.includes("allOf"),d=i.includes("anyOf"),h=c||d,D=(h?s[h?c?"allOf":"anyOf":"allOf"]:[s]).map(w=>y(w,a));return c?!D.includes(!1):D.includes(!0)}return{parseValueSchema:$}}const X={},Y={};U();function q(t,e,o=new Map,r=(l,y,$)=>y,n={},f=l=>l){return A[e.title]=e,V[e.title]=r,X[e.title]=n,Y[e.title]=f,(l={})=>{const y=Q(l,e,o),$=Object.keys(t).reduce((s,a)=>(s[a]=t[a].default,s),{});return Object.assign($,y)}}function Z(t,e){return{customClass:e.class,customStyle:e.style}}const k=new Map([["appearance",Z]]);function C(t,e,o){return o.splitter&&(e.contents=String(o.splitter).split(":").map(r=>{const n=t.getSchemaByType("response-layout-item");return n.appearance={class:`h-100 col-${r} px-0`},n})),e}const K={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/response-layout.schema.json",title:"response-layout",description:"A Farris Container Component",type:"object",properties:{id:{description:"The unique identifier for a Respnse Layout",type:"string"},type:{description:"The type string of Respnse Layout component",type:"string",default:"response-layout"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},contents:{description:"",type:"array",default:[]},size:{description:"",type:"object",properties:{width:{type:"number"},height:{type:"number"}},default:null},visible:{description:"",type:"boolean",default:!0}},required:["id","type","contents"]},I={title:"responseLayout",description:"A Farris Container Component",type:"object",categories:{basic:{description:"Basic Infomation",title:"基本信息",properties:{id:{description:"组件标识",title:"标识",type:"string",readonly:!0},type:{description:"组件类型",title:"控件类型",type:"select",editor:{type:"ResponseLayout",enum:[]}}}},appearance:{description:"",title:"外观",properties:{appearance:{description:"",type:"cascade",title:"外联样式",properties:{class:{description:"组件的CSS样式",title:"class样式",type:"string"}}},appearanceStyle:{description:"样式",type:"cascade",title:"内联样式",properties:{inlineStyle:{description:"",title:"inlineStyle",type:"custom"}}}}},behavior:{description:"",title:"行为",properties:{visible:{description:"运行时组件是否可见",type:"boolean",title:"是否可见"}}},layout:{description:"",title:"布局",properties:{layout:{description:"配置布局容器内区块个数及比例",type:"custom",title:"是否可见",editor:{},editorParams:{layout:[]}}}}}},j={customClass:{type:String,default:""}},N=q(j,K,k,C,I),P=p.defineComponent({name:"FResponseLayout",props:j,emits:[],setup(t,e){return()=>p.createVNode("div",{class:t.customClass},[e.slots.default&&e.slots.default()])}}),x={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/response-layout-item.schema.json",title:"response-layout-item",description:"A Farris Container Component",type:"object",properties:{id:{description:"The unique identifier for a Respnse Layout Item",type:"string"},type:{description:"The type string of Respnse Layout Item component",type:"string",default:"response-layout-item"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},contents:{description:"",type:"array",default:[]},size:{description:"",type:"object",properties:{width:{type:"number"},height:{type:"number"}},default:null},visible:{description:"",type:"boolean",default:!0}},required:["id","type","contents"]},E={customClass:{type:String,default:""}},B=q(E,x,k),R=p.defineComponent({name:"FResponseLayoutItem",props:E,emits:[],setup(t,e){return()=>p.createVNode("div",{class:t.customClass},[e.slots.default&&e.slots.default()])}});function _(t,e,o){var J;function r(){}const n="",f="",l=p.ref();function y(){return(e==null?void 0:e.schema.componentType)!=="frame"}function $(){return!1}function s(){return(e==null?void 0:e.schema.componentType)!=="frame"}function a(){return(e==null?void 0:e.schema.componentType)==="frame"}function i(u){if(!u||!u.value)return null;if(u.value.schema&&u.value.schema.type==="component")return u.value;const b=p.ref(u==null?void 0:u.value.parent),g=i(b);return g||null}function c(u=e){const{componentInstance:b,designerItemElementRef:g}=u;return!b||!b.value?null:b.value.canMove?g:c(u.parent)}function d(u){return!!o}function h(){return(e==null?void 0:e.schema.label)||(e==null?void 0:e.schema.title)||(e==null?void 0:e.schema.name)}function F(){}function z(u,b){}function D(u,b){const{componentType:g}=u;let L=O(g,u,b);const T=g.toLowerCase().replace("-","_");return L&&!L.id&&L.type===g&&(L.id=`${T}_${Math.random().toString().slice(2,6)}`),L}function W(u,b){const g=String(u.getAttribute("data-controltype")),L=u.getAttribute("data-feature"),T=L?JSON.parse(L):{};T.parentComponentInstance=l.value;let S=O(g,T);const se=g.toLowerCase().replace("-","_");return S&&!S.id&&S.type===g&&(S.id=`${se}_${Math.random().toString().slice(2,6)}`),S}function w(u){}function re(...u){}return l.value={canMove:y(),canSelectParent:$(),canDelete:s(),canNested:!a(),contents:e==null?void 0:e.schema.contents,elementRef:t,parent:(J=e==null?void 0:e.parent)==null?void 0:J.componentInstance,schema:e==null?void 0:e.schema,styles:n,designerClass:f,canAccepts:d,getBelongedComponentInstance:i,getDraggableDesignItemElement:c,getDraggingDisplayText:h,getPropConfig:re,getDragScopeElement:F,onAcceptMovedChildElement:z,onAcceptNewChildElement:W,onChildElementMovedOut:w,addNewChildComponentSchema:D,updateDragAndDropRules:r,triggerBelongedComponentToMoveWhenMoved:p.ref(!1),triggerBelongedComponentToDeleteWhenDeleted:p.ref(!1)},l}const ee=p.defineComponent({name:"FResponseLayoutDesign",props:j,emits:[],setup(t,e){const o=p.ref(),r=p.inject("design-item-context"),n=_(o,r);return n.value.canNested=!1,p.onMounted(()=>{o.value.componentInstance=n}),e.expose(n.value),()=>p.createVNode("div",{ref:o,class:"d-flex response-layout"},[e.slots.default&&e.slots.default()])}}),te=p.defineComponent({name:"FResponseLayoutItemDesign",props:E,emits:[],setup(t,e){const o=p.ref(),r=p.inject("design-item-context"),n=_(o,r);return n.value.canNested=!1,n.value.canMove=!1,n.value.canDelete=!1,p.onMounted(()=>{o.value.componentInstance=n}),e.expose(n.value),()=>p.createVNode(R,{ref:o},{default:()=>[e.slots.default&&e.slots.default()]})}}),ne={install(t){t.component(P.name,P).component(R.name,R)},register(t,e,o,r){t["response-layout"]=P,t["response-layout-item"]=R,e["response-layout"]=N,e["response-layout-item"]=B},registerDesigner(t,e,o){t["response-layout"]=ee,t["response-layout-item"]=te,e["response-layout"]=N,e["response-layout-item"]=B}};m.FResponseLayout=P,m.FResponseLayoutItem=R,m.default=ne,m.responseLayoutProps=j,m.responseLayoutPropsResolver=N,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.f-layout-editor{min-height:500px;min-width:900px;height:100%;overflow:hidden}.f-layout-editor-top{width:100%;height:75px;background-color:#fff;z-index:99;border:1px solid #dee1ea}.f-layout-editor-content{display:flex;margin-bottom:0;border-right:1px solid #dee1ea}.f-layout-editor-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0}.f-layout-editor-button{float:right;margin-top:10px;margin-right:30px}.f-layout-editor-left,.f-layout-editor-left-standard,.f-layout-editor-left-customize{height:100%}.f-layout-editor-right{width:50%;flex:1;vertical-align:top;height:100%}.f-layout-editor-right-standard,.f-layout-editor-right-customize{height:100%}.f-layout-editor-cancel-btn{width:75px;height:32px;display:inline-block;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px #0000000a;border-radius:3px;margin-right:8px;text-align:center;padding:7px;cursor:pointer}.f-layout-editor-sure-btn{width:100px;height:32px;display:inline-block;background:#5989e7;border-radius:3px;text-align:center;padding:7px;cursor:pointer}.f-layout-editor-text-cancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.f-layout-editor-text-sure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-layout-editor-column-width-editor-row{display:flex;width:100%;margin:13px 0}.f-layout-editor-column-width-editor-row-middle{font-family:PingFangSC-Regular;font-size:9px;color:#2d2f3375;text-align:center;flex:26%;float:left;display:block}.f-layout-editor-column-width-editor-row-left{border-top:1px dashed #eaedf3;margin-top:9px;display:block;flex:37%}.f-layout-editor-column-width-editor-row-right{margin-top:9px;border-top:1px dashed #eaedf3;float:right;display:block;flex:37%}.f-layout-editor-show-top-border{border-top:1px solid #eaedf3;margin-bottom:18px;margin-top:18px;padding-top:18px}.f-layout-editor-column-width-editor-component{background:#f7f8fb99;border:1px solid rgba(233,236,243,.45);border-radius:3px;margin:3px 8px 6px 0;width:95%;height:40px;padding-bottom:5px;padding-top:5px;position:relative}.f-layout-editor-column-width-editor-label{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;margin:6px 0 9px 16px;width:58px;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left}.f-layout-editor-column-width-editor-click-button{height:22px;margin:3px 8px 0 0;float:right;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.f-layout-editor-column-width-editor-rectangle{height:22px;margin:3px 8px 0 0;float:right;display:flex}.f-layout-editor-rate-show-column{display:inline-block;width:1.875rem;line-height:1.375rem;text-align:right;font-family:PingFangSC-Regular;font-size:10px;color:#2d2f3375;margin-right:30px}.f-layout-editor-drag-handler{cursor:move!important;line-height:1.375rem!important}.f-layout-editor-column-width-editor-choices.active{z-index:1}.f-layout-editor-text-align{margin-left:-5px}.f-layout-editor-field-list-standard{padding-left:41px;height:500px;z-index:98;width:450px;position:relative;display:inline-block}.f-layout-editor-field-list-customize{padding-left:41px;height:500px;z-index:98;width:440px;position:relative;display:inline-block}.f-layout-editor-field-list-header{font-family:PingFangSC-Regular;font-size:14px;color:#6a6f79;margin-top:12px;display:inline-block}.f-layout-editor-choose-group{display:inline-block;margin-top:12px;margin-left:160px;width:130px}.f-layout-editor-field-list-content{overflow-x:hidden;overflow-y:scroll;z-index:1200;margin-top:5px;margin-right:20px}.f-layout-editor-field-list-content-cdk-preview{z-index:1200!important;width:280px;background:#f7f8fb99;border:1px solid rgba(233,236,243,.45);box-shadow:2px 12px 12px #779aec73;border-radius:3px;margin:3px 8px 6px 0;height:40px;padding-bottom:5px;padding-top:5px}.f-layout-editor-column-width-editor-label{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;margin:6px 0 9px 16px;width:70px;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left}.f-layout-editor-preview{margin-left:16px;width:100%;position:relative}.f-layout-editor-preview-header{font-family:PingFangSC-Regular;font-size:14px;color:#6a6f79;margin-top:12px}.f-layout-editor-row{height:26px;margin-bottom:15px;opacity:70%;display:flex}.f-layout-editor-preview-view{padding:15px 42px 5px 15px;position:relative}.f-layout-editor-preview-row-group{display:absolute;z-index:0;margin-top:13px;margin-left:5px}.f-layout-editor-preview-customize-whole-background{z-index:0;position:absolute;top:40px;right:28px;left:14px;bottom:2px}.f-layout-editor-preview-customize-whole-background>div{float:left;padding-left:0;height:100%}.f-layout-editor-preview-customize-single-background{height:100%;background-color:#edf9ff}.f-layout-editor-screen-resolution-selector{width:100%;position:sticky;padding:21px 0 21px 24px;min-width:640px;display:flex}.f-layout-editor-screen-resolution-selector-header{font-family:PingFangSC-Medium;font-size:17px;color:#2d2f33;display:inline-block;height:32px}.f-layout-editor-screen-resolution-selector-form{height:32px}.f-layout-editor-screen-resolution-selector-frame{background:#8cb6ff24;border-radius:17px;margin-left:30px!important;height:32px;display:inline-flex;align-items:center;justify-content:center}.f-layout-editor-namelist{font-family:PingFangSC-Regular;font-size:12px;color:#446a9f;line-height:16px;margin:8px 13px;display:inline-block}.f-layout-editor-namelist-focus{opacity:.6;font-family:PingFangSC-Regular;font-size:12px;line-height:16px;color:#2a87ff;margin:8px 12px;padding:4px 8px;background:#ffffffe6;box-shadow:0 4px 18px #024bc133;border-radius:15px}.f-layout-editor-screen-resolution-selector-switch{float:right;margin:5px 60px 0 0;flex:1}.f-layout-editor-show-switch{float:right!important;margin-left:8px!important}.f-layout-editor-show-switch-label{float:right;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;text-align:right;line-height:18px;margin-top:2px}.f-layout-editor-column-width-view{background:#eff2f7;border:1px solid #d5dae7;border-radius:4px;margin-bottom:15px;height:26px;padding-left:9.4px}.f-layout-editor-column-width-view-label{margin-top:2px;margin-left:2px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.f-layout-editor .f-icon.f-icon-add{margin:4px 10px;flex:10%}.f-column-width-setting-button{border:1px solid #cbd1e7;margin:5px;display:flex;position:relative}.f-column-width-setting-button .f-icon{margin:4px 10px}.f-column-width-setting-button-center{text-align:center;position:absolute;left:50%;transform:translate(-50%);width:100%}.f-column-width-setting-button-name{font-family:PingFangSC-Regular;font-size:14px;color:#a2a9b9;flex:90%;margin:2px 0}span.switch.checked.disabled{background:#2a87ff80}span.switch.disabled{background:#d9dee780}.f-radio-button .btn{border-radius:0!important}.f-radio-button .btn:not(:last-child){border-right-color:transparent}.f-radio-button .btn:not(:last-child):hover{border-right-color:inherit}.f-radio-button .btn:first-child{border-radius:6px 0 0 6px!important}.f-radio-button .btn:last-child{border-radius:0 6px 6px 0!important}.f-radio-button-text{margin-left:-5px}.fade{transition:opacity .
|
|
1
|
+
.f-layout-editor{min-height:500px;min-width:900px;height:100%;overflow:hidden}.f-layout-editor-top{width:100%;height:75px;background-color:#fff;z-index:99;border:1px solid #dee1ea}.f-layout-editor-content{display:flex;margin-bottom:0;border-right:1px solid #dee1ea}.f-layout-editor-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0}.f-layout-editor-button{float:right;margin-top:10px;margin-right:30px}.f-layout-editor-left,.f-layout-editor-left-standard,.f-layout-editor-left-customize{height:100%}.f-layout-editor-right{width:50%;flex:1;vertical-align:top;height:100%}.f-layout-editor-right-standard,.f-layout-editor-right-customize{height:100%}.f-layout-editor-cancel-btn{width:75px;height:32px;display:inline-block;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px #0000000a;border-radius:3px;margin-right:8px;text-align:center;padding:7px;cursor:pointer}.f-layout-editor-sure-btn{width:100px;height:32px;display:inline-block;background:#5989e7;border-radius:3px;text-align:center;padding:7px;cursor:pointer}.f-layout-editor-text-cancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.f-layout-editor-text-sure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-layout-editor-column-width-editor-row{display:flex;width:100%;margin:13px 0}.f-layout-editor-column-width-editor-row-middle{font-family:PingFangSC-Regular;font-size:9px;color:#2d2f3375;text-align:center;flex:26%;float:left;display:block}.f-layout-editor-column-width-editor-row-left{border-top:1px dashed #eaedf3;margin-top:9px;display:block;flex:37%}.f-layout-editor-column-width-editor-row-right{margin-top:9px;border-top:1px dashed #eaedf3;float:right;display:block;flex:37%}.f-layout-editor-show-top-border{border-top:1px solid #eaedf3;margin-bottom:18px;margin-top:18px;padding-top:18px}.f-layout-editor-column-width-editor-component{background:#f7f8fb99;border:1px solid rgba(233,236,243,.45);border-radius:3px;margin:3px 8px 6px 0;width:95%;height:40px;padding-bottom:5px;padding-top:5px;position:relative}.f-layout-editor-column-width-editor-label{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;margin:6px 0 9px 16px;width:58px;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left}.f-layout-editor-column-width-editor-click-button{height:22px;margin:3px 8px 0 0;float:right;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.f-layout-editor-column-width-editor-rectangle{height:22px;margin:3px 8px 0 0;float:right;display:flex}.f-layout-editor-rate-show-column{display:inline-block;width:1.875rem;line-height:1.375rem;text-align:right;font-family:PingFangSC-Regular;font-size:10px;color:#2d2f3375;margin-right:30px}.f-layout-editor-drag-handler{cursor:move!important;line-height:1.375rem!important}.f-layout-editor-column-width-editor-choices.active{z-index:1}.f-layout-editor-text-align{margin-left:-5px}.f-layout-editor-field-list-standard{padding-left:41px;height:500px;z-index:98;width:450px;position:relative;display:inline-block}.f-layout-editor-field-list-customize{padding-left:41px;height:500px;z-index:98;width:440px;position:relative;display:inline-block}.f-layout-editor-field-list-header{font-family:PingFangSC-Regular;font-size:14px;color:#6a6f79;margin-top:12px;display:inline-block}.f-layout-editor-choose-group{display:inline-block;margin-top:12px;margin-left:160px;width:130px}.f-layout-editor-field-list-content{overflow-x:hidden;overflow-y:scroll;z-index:1200;margin-top:5px;margin-right:20px}.f-layout-editor-field-list-content-cdk-preview{z-index:1200!important;width:280px;background:#f7f8fb99;border:1px solid rgba(233,236,243,.45);box-shadow:2px 12px 12px #779aec73;border-radius:3px;margin:3px 8px 6px 0;height:40px;padding-bottom:5px;padding-top:5px}.f-layout-editor-column-width-editor-label{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;margin:6px 0 9px 16px;width:70px;height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;float:left}.f-layout-editor-preview{margin-left:16px;width:100%;position:relative}.f-layout-editor-preview-header{font-family:PingFangSC-Regular;font-size:14px;color:#6a6f79;margin-top:12px}.f-layout-editor-row{height:26px;margin-bottom:15px;opacity:70%;display:flex}.f-layout-editor-preview-view{padding:15px 42px 5px 15px;position:relative}.f-layout-editor-preview-row-group{display:absolute;z-index:0;margin-top:13px;margin-left:5px}.f-layout-editor-preview-customize-whole-background{z-index:0;position:absolute;top:40px;right:28px;left:14px;bottom:2px}.f-layout-editor-preview-customize-whole-background>div{float:left;padding-left:0;height:100%}.f-layout-editor-preview-customize-single-background{height:100%;background-color:#edf9ff}.f-layout-editor-screen-resolution-selector{width:100%;position:sticky;padding:21px 0 21px 24px;min-width:640px;display:flex}.f-layout-editor-screen-resolution-selector-header{font-family:PingFangSC-Medium;font-size:17px;color:#2d2f33;display:inline-block;height:32px}.f-layout-editor-screen-resolution-selector-form{height:32px}.f-layout-editor-screen-resolution-selector-frame{background:#8cb6ff24;border-radius:17px;margin-left:30px!important;height:32px;display:inline-flex;align-items:center;justify-content:center}.f-layout-editor-namelist{font-family:PingFangSC-Regular;font-size:12px;color:#446a9f;line-height:16px;margin:8px 13px;display:inline-block}.f-layout-editor-namelist-focus{opacity:.6;font-family:PingFangSC-Regular;font-size:12px;line-height:16px;color:#2a87ff;margin:8px 12px;padding:4px 8px;background:#ffffffe6;box-shadow:0 4px 18px #024bc133;border-radius:15px}.f-layout-editor-screen-resolution-selector-switch{float:right;margin:5px 60px 0 0;flex:1}.f-layout-editor-show-switch{float:right!important;margin-left:8px!important}.f-layout-editor-show-switch-label{float:right;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;text-align:right;line-height:18px;margin-top:2px}.f-layout-editor-column-width-view{background:#eff2f7;border:1px solid #d5dae7;border-radius:4px;margin-bottom:15px;height:26px;padding-left:9.4px}.f-layout-editor-column-width-view-label{margin-top:2px;margin-left:2px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.f-layout-editor .f-icon.f-icon-add{margin:4px 10px;flex:10%}.f-column-width-setting-button{border:1px solid #cbd1e7;margin:5px;display:flex;position:relative}.f-column-width-setting-button .f-icon{margin:4px 10px}.f-column-width-setting-button-center{text-align:center;position:absolute;left:50%;transform:translate(-50%);width:100%}.f-column-width-setting-button-name{font-family:PingFangSC-Regular;font-size:14px;color:#a2a9b9;flex:90%;margin:2px 0}.f-layout-editor-column-width-editor-click-button .f-radio-button{border:none}.f-layout-editor-column-width-editor-click-button .farris-input-wrap>.btn{border-radius:0;width:40px;font-family:PingFangSC-Regular;font-size:10px;text-align:center;color:#2d2f3375}.f-layout-editor-column-width-editor-click-button .farris-input-wrap:first-child>.btn{border-top-left-radius:3px;border-bottom-left-radius:3px}.f-layout-editor-column-width-editor-click-button .farris-input-wrap:nth-last-child(2)>.btn{border-top-right-radius:3px;border-bottom-right-radius:3px}.f-layout-editor-column-width-editor-click-button .farris-input-wrap .btn-secondary:not(:disabled):not(.disabled).active{color:#fff;background-color:#5d89fe;font-family:PingFangSC-Regular;font-size:10px;width:40px}span.switch.checked.disabled{background:#2a87ff80}span.switch.disabled{background:#d9dee780}.f-radio-button .btn{border-radius:0!important}.f-radio-button .btn:not(:last-child){border-right-color:transparent}.f-radio-button .btn:not(:last-child):hover{border-right-color:inherit}.f-radio-button .btn:first-child{border-radius:6px 0 0 6px!important}.f-radio-button .btn:last-child{border-radius:0 6px 6px 0!important}.f-radio-button-text{margin-left:-5px}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fv-resizable-handle{position:absolute;font-size:.1px;display:block;touch-action:none}.fv-resizable-handle:hover{background:#2a87ff12}.fv-resizable-handle.fv-resizable-n{cursor:n-resize;height:.4375rem;width:100%;top:-.3125rem;left:0}.fv-resizable-handle.fv-resizable-e{cursor:e-resize;width:.4375rem;right:-.3125rem;height:100%;top:0}.fv-resizable-handle.fv-resizable-s{cursor:s-resize;height:.4375rem;width:100%;bottom:-.3125rem;left:0}.fv-resizable-handle.fv-resizable-w{cursor:w-resize;height:100%;width:.4375rem;left:-.3125rem;top:0}.fv-resizable-handle.fv-resizable-ne{cursor:ne-resize;width:.75rem;height:.75rem;right:1px;top:1px}.fv-resizable-handle.fv-resizable-se{cursor:se-resize;width:.75rem;height:.75rem;right:1px;bottom:1px}.fv-resizable-handle.fv-resizable-nw{cursor:nw-resize;width:.75rem;height:.75rem;left:1px;top:1px}.fv-resizable-handle.fv-resizable-sw{cursor:sw-resize;width:.75rem;height:.75rem;left:1px;bottom:1px}
|