cnhis-design-vue 3.1.51-beta.2 → 3.1.51-beta.20
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/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/callback/index.d.ts +69 -0
- package/es/components/callback/index.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
- package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
- package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
- package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
- package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
- package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
- package/es/components/callback/src/components/popup/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
- package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
- package/es/components/callback/src/components/render/enums.d.ts +5 -0
- package/es/components/callback/src/components/render/enums.js +1 -0
- package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
- package/es/components/callback/src/components/render/index.vue.js +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +5702 -0
- package/es/components/callback/src/components/render/popupMaps.js +1 -0
- package/es/components/callback/src/index.vue.d.ts +68 -0
- package/es/components/callback/src/index.vue.js +1 -0
- package/es/components/callback/src/index.vue2.js +1 -0
- package/es/components/callback/src/types/index.d.ts +11 -0
- package/es/components/callback/style/callback-iconfont.ttf +0 -0
- package/es/components/callback/style/index.css +1 -0
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/expand-field/index.d.ts +0 -13
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue.d.ts +0 -13
- package/es/components/expand-field/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/index.d.ts +5 -6
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -6
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +0 -6
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +6 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +6 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -1
- package/es/components/form-render/index.d.ts +3 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +3 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +3 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +27 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +4 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +8 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +5 -3
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +6 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +6 -2
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
- package/es/components/select-label/index.d.ts +617 -256
- package/es/components/select-label/index.js +1 -1
- package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
- package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
- package/es/components/{iho-select-label/src/components/label-classify.vue.d.ts → select-label/src/ihoLabel/iho-label-classify.vue.d.ts} +1 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
- package/es/components/select-label/src/index.vue.d.ts +899 -0
- package/es/components/select-label/src/index.vue.js +1 -0
- package/es/components/select-label/src/index.vue2.js +1 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +4 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -1
- package/es/components/slider-tree/index.d.ts +153 -0
- package/es/components/slider-tree/index.js +1 -0
- package/es/components/slider-tree/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/slider-tree/src/hooks/useAsyncData.js +1 -0
- package/es/components/slider-tree/src/index.vue.d.ts +152 -0
- package/es/components/slider-tree/src/index.vue.js +1 -0
- package/es/components/slider-tree/src/index.vue2.js +1 -0
- package/es/components/slider-tree/src/utils/index.d.ts +1 -0
- package/es/components/slider-tree/src/utils/index.js +1 -0
- package/es/components/slider-tree/style/index.css +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/shared/directive/flexibleResize.d.ts +4 -0
- package/es/{components/classification/src → shared}/directive/flexibleResize.js +1 -1
- package/es/shared/directive/index.d.ts +1 -0
- package/es/shared/directive/index.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +7 -0
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/classification/src/directive/flexibleResize.d.ts +0 -28
- package/es/components/iho-select-label/index.d.ts +0 -363
- package/es/components/iho-select-label/index.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
- package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
- package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
- package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
- package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
- package/es/components/iho-select-label/style/index.css +0 -1
- package/es/components/table-filter/src/types/tool.d.ts +0 -7
- /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
- /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
- /package/es/components/{table-filter/src/types/tool.js → select-label/src/types/index.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,openBlock as t,createBlock as l,createCommentVNode as s}from"vue";import i from"./SelectLabel.vue.js";import a from"./ihoLabel/IhoSelectLabel.vue.js";var o=e({__name:"index",props:{type:{type:String,default:"1"},categoryList:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},selectedListObj:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isDetail:{type:Boolean,default:!1},isLock:{type:Boolean,default:!1},sourceType:{type:String,default:""},explicit:{type:Boolean,default:!1},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},queryCommonlabels:{type:Function,default:()=>Promise.resolve({data:{}})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})}},emits:["onChange"],setup(e,{emit:o}){function c(e){o("onChange",e)}return(o,r)=>"1"==e.type?(t(),l(i,{key:0,selectedList:e.selectedList,selectedListObj:e.selectedListObj,item:e.item,isDetail:e.isDetail,isLock:e.isLock,sourceType:e.sourceType,explicit:e.explicit,getLabelList:e.getLabelList,queryCommonlabels:e.queryCommonlabels,deleteLabel:e.deleteLabel,saveLabelItem:e.saveLabelItem,onOnChange:c},null,8,["selectedList","selectedListObj","item","isDetail","isLock","sourceType","explicit","getLabelList","queryCommonlabels","deleteLabel","saveLabelItem"])):"2"==e.type?(t(),l(a,{key:1,categoryList:e.categoryList,selectedList:e.selectedList,explicit:e.explicit,onOnChange:c},null,8,["categoryList","selectedList","explicit"])):s("v-if",!0)}});export{o as default};
|
|
@@ -25,6 +25,7 @@ export declare function useShortcuts(scope?: MaybeRef<string | Symbol | undefine
|
|
|
25
25
|
register: (shortcut: ShortcutOption) => {
|
|
26
26
|
stop: () => void;
|
|
27
27
|
signature: () => string;
|
|
28
|
+
start: () => void;
|
|
28
29
|
};
|
|
29
30
|
traverse: () => Omit<ShortcutItem, "callback">[];
|
|
30
31
|
clear: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findAncestor as t}from"../../../../shared/utils/index.js";import{useEventListener as e,useDebounceFn as r}from"@vueuse/core";import{once as s,pick as a,omit as n,isFunction as u,isString as c}from"lodash-es";import{reactive as o,ref as i,unref as l,computed as h,getCurrentInstance as d,inject as p,onBeforeUnmount as g,onDeactivated as b,onActivated as v}from"vue";import{ShortcutStatus as f,InjectionShortcutManager as k}from"../constants/index.js";import{normalizeSignatureInfo as y,getKeySignature as C,getDisplaySignature as m,isInvalidSignature as S,isKeyboardEvent as w,isInvalidKeyboardEvent as E,isShortcutProvider as M}from"../utils/index.js";const K=Symbol("Glob"),j=new Map;class ${constructor(t,e=K){this.shortcutCallbackMap=o(new Map),this.shortcutCache=i({}),this.disabled=!1,this.environmentEle=t||window,j.set(e,this)}static log(t,e=!1){const r=`[ShortcutManager] ${t}`;return!e&&console.warn(r),r}get traverse(){return[...Object.values(this.shortcutCache.value)].sort(((t,e)=>(t.order||0)-(e.order||0)))}query(t){return this.shortcutCache.value[t]}async update(t,e){var r,s;const a=null==(r=this.query(t))?void 0:r.currentKeySignature;e&&u(this.shortcutCache,e);const n=this.query(t);function u(t,e){if(a!==C(e)){if(Object.values(t.value).some((t=>t.currentKeySignature===C(e))))throw`重复的快捷键=> ${m(e)}`;if(S(e))throw`非法的快捷键=>${e.key}`}}n&&(await(null==(s=n.onUpdate)?void 0:s.call(n,t,e?y(e):void 0)),u(this.shortcutCache,e),n.currentKeySignature=C(e),n.shortcutSignature=y(e),this.shortcutCallbackMap.set(n.currentKeySignature,this.shortcutCallbackMap.get(a)),this.shortcutCallbackMap.delete(a))}register(t){const e=this.query(t.key);return e?(e.status=f.ACTIVE,this.shortcutCallbackMap.set(e.currentKeySignature,t.callback),Object.assign(e,a(t,["debounce","debounceOption","label","order","key"])),r(e)):(this.shortcutCache.value[t.key]=n(t,["callback"]),this.shortcutCallbackMap.set(t.currentKeySignature,t.callback),r(this.shortcutCache.value[t.key]));function r(t){return{stop:()=>{t.status=f.INACTIVE},start:()=>{t.status=f.ACTIVE},signature:()=>t.currentKeySignature}}}start(){return this.handle?($.log(`请勿重复启动=>${this}`),this):(this.handle=async e=>{if(!w(e)||this.disabled)return;const r=t(e.target,M);if(r&&r!==l(this.environmentEle)||E(e))return;const s=C(e),a=this.shortcutCallbackMap.get(s);if(!a)return;e.preventDefault();const n=Object.values(this.shortcutCache.value).find((t=>t.currentKeySignature===s));n&&n.status===f.ACTIVE&&!n.disabled&&a(e)},e(this.environmentEle,"keyup",this.handle,{capture:!0}),this)}destroy(){var t;this.handle&&(null==(t=l(this.environmentEle))||t.removeEventListener("keyup",this.handle,{capture:!0})),this.handle=void 0,this.clear()}clear(){this.shortcutCallbackMap.clear(),this.shortcutCache.value={}}}const I=(new $).start(),O=s((()=>$.log("非setup语境下的shortcut将影响全局"))),A=s((()=>$.log("在非setup语境下使用register函数,组件销毁时可能需要手动调用stop函数使快捷键失活")));function T(t){const e=h((()=>{if(l(t)){const e=j.get(l(t));return e||$.log(`不存在的scope=>${t}, 将使用全局快捷键`),e||I}return d()?p(k,I):(O(),I)}));return{register:function(t){const{stop:s,signature:a,start:n}=l(e).register(function(t){return{...t,shortcutSignature:y(t.shortcutSignature),currentKeySignature:C(t.shortcutSignature),key:function(t){const e=t.key||t.label;if(!c(e))throw new Error($.log(`非法的key类型=>${e}`,!0));return e}(t),status:f.ACTIVE,callback:function(t){var e,s;if(!u(t.callback))throw new Error($.log(`非法的callback类型=>${t.callback}`,!0));return t.debounce?r(t.callback,null!=(s=null==(e=t.debounceOption)?void 0:e.duration)?s:300):t.callback}(t)}}(t));return d()?(g(s),b(s),v(n)):A(),{stop:s,signature:a}},traverse:function(){return l(e).traverse},clear:function(){l(e).clear()},update:function(t,r){return l(e).update(t,r)},updateManagerDisabled:function(t){l(e).disabled=!!t}}}export{K as GlobalShortcutProvider,$ as ShortcutManager,T as useShortcuts};
|
|
1
|
+
import{findAncestor as t}from"../../../../shared/utils/index.js";import{useEventListener as e,useDebounceFn as r}from"@vueuse/core";import{once as s,pick as a,omit as n,isFunction as u,isString as c}from"lodash-es";import{reactive as o,ref as i,unref as l,computed as h,getCurrentInstance as d,inject as p,onBeforeUnmount as g,onDeactivated as b,onActivated as v}from"vue";import{ShortcutStatus as f,InjectionShortcutManager as k}from"../constants/index.js";import{normalizeSignatureInfo as y,getKeySignature as C,getDisplaySignature as m,isInvalidSignature as S,isKeyboardEvent as w,isInvalidKeyboardEvent as E,isShortcutProvider as M}from"../utils/index.js";const K=Symbol("Glob"),j=new Map;class ${constructor(t,e=K){this.shortcutCallbackMap=o(new Map),this.shortcutCache=i({}),this.disabled=!1,this.environmentEle=t||window,j.set(e,this)}static log(t,e=!1){const r=`[ShortcutManager] ${t}`;return!e&&console.warn(r),r}get traverse(){return[...Object.values(this.shortcutCache.value)].sort(((t,e)=>(t.order||0)-(e.order||0)))}query(t){return this.shortcutCache.value[t]}async update(t,e){var r,s;const a=null==(r=this.query(t))?void 0:r.currentKeySignature;e&&u(this.shortcutCache,e);const n=this.query(t);function u(t,e){if(a!==C(e)){if(Object.values(t.value).some((t=>t.currentKeySignature===C(e))))throw`重复的快捷键=> ${m(e)}`;if(S(e))throw`非法的快捷键=>${e.key}`}}n&&(await(null==(s=n.onUpdate)?void 0:s.call(n,t,e?y(e):void 0)),u(this.shortcutCache,e),n.currentKeySignature=C(e),n.shortcutSignature=y(e),this.shortcutCallbackMap.set(n.currentKeySignature,this.shortcutCallbackMap.get(a)),this.shortcutCallbackMap.delete(a))}register(t){const e=this.query(t.key);return e?(e.status=f.ACTIVE,this.shortcutCallbackMap.set(e.currentKeySignature,t.callback),Object.assign(e,a(t,["debounce","debounceOption","label","order","key"])),r(e)):(this.shortcutCache.value[t.key]=n(t,["callback"]),this.shortcutCallbackMap.set(t.currentKeySignature,t.callback),r(this.shortcutCache.value[t.key]));function r(t){return{stop:()=>{t.status=f.INACTIVE},start:()=>{t.status=f.ACTIVE},signature:()=>t.currentKeySignature}}}start(){return this.handle?($.log(`请勿重复启动=>${this}`),this):(this.handle=async e=>{if(!w(e)||this.disabled)return;const r=t(e.target,M);if(r&&r!==l(this.environmentEle)||E(e))return;const s=C(e),a=this.shortcutCallbackMap.get(s);if(!a)return;e.preventDefault();const n=Object.values(this.shortcutCache.value).find((t=>t.currentKeySignature===s));n&&n.status===f.ACTIVE&&!n.disabled&&a(e)},e(this.environmentEle,"keyup",this.handle,{capture:!0}),this)}destroy(){var t;this.handle&&(null==(t=l(this.environmentEle))||t.removeEventListener("keyup",this.handle,{capture:!0})),this.handle=void 0,this.clear()}clear(){this.shortcutCallbackMap.clear(),this.shortcutCache.value={}}}const I=(new $).start(),O=s((()=>$.log("非setup语境下的shortcut将影响全局"))),A=s((()=>$.log("在非setup语境下使用register函数,组件销毁时可能需要手动调用stop函数使快捷键失活")));function T(t){const e=h((()=>{if(l(t)){const e=j.get(l(t));return e||$.log(`不存在的scope=>${t}, 将使用全局快捷键`),e||I}return d()?p(k,I):(O(),I)}));return{register:function(t){const{stop:s,signature:a,start:n}=l(e).register(function(t){return{...t,shortcutSignature:y(t.shortcutSignature),currentKeySignature:C(t.shortcutSignature),key:function(t){const e=t.key||t.label;if(!c(e))throw new Error($.log(`非法的key类型=>${e}`,!0));return e}(t),status:f.ACTIVE,callback:function(t){var e,s;if(!u(t.callback))throw new Error($.log(`非法的callback类型=>${t.callback}`,!0));return t.debounce?r(t.callback,null!=(s=null==(e=t.debounceOption)?void 0:e.duration)?s:300):t.callback}(t)}}(t));return d()?(g(s),b(s),v(n)):A(),{stop:s,signature:a,start:n}},traverse:function(){return l(e).traverse},clear:function(){l(e).clear()},update:function(t,r){return l(e).update(t,r)},updateManagerDisabled:function(t){l(e).disabled=!!t}}}export{K as GlobalShortcutProvider,$ as ShortcutManager,T as useShortcuts};
|
|
@@ -29,6 +29,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
29
29
|
register: (shortcut: import("..").ShortcutOption) => {
|
|
30
30
|
stop: () => void;
|
|
31
31
|
signature: () => string;
|
|
32
|
+
start: () => void;
|
|
32
33
|
};
|
|
33
34
|
traverse: () => Omit<import("..").ShortcutItem, "callback">[];
|
|
34
35
|
clear: () => void;
|
|
@@ -2315,7 +2316,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2315
2316
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2316
2317
|
clearSpan: (uuid: string) => void;
|
|
2317
2318
|
exposeEvent: {
|
|
2318
|
-
validate(path?: string
|
|
2319
|
+
validate(path?: string, { force }?: {
|
|
2320
|
+
force?: boolean | undefined;
|
|
2321
|
+
}): Promise<void>;
|
|
2319
2322
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
2320
2323
|
setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
|
|
2321
2324
|
setFieldState(path: string, setter: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
|
|
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
register: (shortcut: import("../../../../es/components/shortcut-provider").ShortcutOption) => {
|
|
32
32
|
stop: () => void;
|
|
33
33
|
signature: () => string;
|
|
34
|
+
start: () => void;
|
|
34
35
|
};
|
|
35
36
|
traverse: () => Omit<import("../../../../es/components/shortcut-provider").ShortcutItem, "callback">[];
|
|
36
37
|
clear: () => void;
|
|
@@ -2317,7 +2318,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2317
2318
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2318
2319
|
clearSpan: (uuid: string) => void;
|
|
2319
2320
|
exposeEvent: {
|
|
2320
|
-
validate(path?: string
|
|
2321
|
+
validate(path?: string, { force }?: {
|
|
2322
|
+
force?: boolean | undefined;
|
|
2323
|
+
}): Promise<void>;
|
|
2321
2324
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
2322
2325
|
setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
|
|
2323
2326
|
setFieldState(path: string, setter: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
+
declare const CSliderTree: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
sliderInitialWidth: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
treeSearchApiConfig: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
treeRenderConfig: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: () => {
|
|
14
|
+
replaceFields: {
|
|
15
|
+
children: string;
|
|
16
|
+
title: string;
|
|
17
|
+
key: string;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
key: string;
|
|
21
|
+
parentId: string;
|
|
22
|
+
uniqId: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
isDraggable: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
treePrefix: {
|
|
30
|
+
type: FunctionConstructor;
|
|
31
|
+
};
|
|
32
|
+
treeSuffix: {
|
|
33
|
+
type: FunctionConstructor;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
$message: import("naive-ui").MessageApi;
|
|
37
|
+
getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
|
|
38
|
+
searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
39
|
+
updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
|
|
40
|
+
getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
|
|
41
|
+
isMatchFn: (node: any, keyword: string) => boolean;
|
|
42
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
sliderInitialWidth: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
treeSearchApiConfig: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
51
|
+
treeRenderConfig: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => {
|
|
54
|
+
replaceFields: {
|
|
55
|
+
children: string;
|
|
56
|
+
title: string;
|
|
57
|
+
key: string;
|
|
58
|
+
};
|
|
59
|
+
title: string;
|
|
60
|
+
key: string;
|
|
61
|
+
parentId: string;
|
|
62
|
+
uniqId: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
isDraggable: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
treePrefix: {
|
|
70
|
+
type: FunctionConstructor;
|
|
71
|
+
};
|
|
72
|
+
treeSuffix: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
};
|
|
75
|
+
}>> & {
|
|
76
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
}>>;
|
|
79
|
+
emit: (event: "select" | "saveWidth", ...args: any[]) => void;
|
|
80
|
+
flexWidth: import("vue").Ref<number>;
|
|
81
|
+
searchValue: import("vue").Ref<string>;
|
|
82
|
+
treeData: import("vue").Ref<any[]>;
|
|
83
|
+
expandedKeys: import("vue").Ref<string[]>;
|
|
84
|
+
selectedKeys: import("vue").Ref<string[]>;
|
|
85
|
+
selectNode: import("vue").Ref<{}>;
|
|
86
|
+
loadedKeys: import("vue").Ref<never[]>;
|
|
87
|
+
dragData: import("vue").Ref<{}>;
|
|
88
|
+
handleRenderLabel: ({ option }: any) => any;
|
|
89
|
+
handleRenderPrefix: ({ option }: any) => any;
|
|
90
|
+
handleRenderSuffix: ({ option }: any) => any;
|
|
91
|
+
init: () => Promise<void>;
|
|
92
|
+
onExpand: (expandedKeyVals: string[]) => void;
|
|
93
|
+
onNodeSelect: (selectedKeyVals: never[] | undefined, [node]: any[]) => void;
|
|
94
|
+
onSearch: () => Promise<void>;
|
|
95
|
+
reset: (flag: boolean, selectOrgId?: string | undefined) => Promise<void>;
|
|
96
|
+
onDrop: (info: any) => Promise<void>;
|
|
97
|
+
getDeptData: (orgId: string) => Promise<any>;
|
|
98
|
+
handleDeptData: (data: any) => any;
|
|
99
|
+
getChildrenByOrgPartenIdFn: () => Promise<void>;
|
|
100
|
+
onLoadData: (treeNode: any) => any;
|
|
101
|
+
getExpandKeys: (data: any) => never[];
|
|
102
|
+
changeWidth: ({ distance }: any) => void;
|
|
103
|
+
saveWidth: () => void;
|
|
104
|
+
NInput: any;
|
|
105
|
+
NTree: any;
|
|
106
|
+
NEmpty: any;
|
|
107
|
+
vFlexibleResize: {
|
|
108
|
+
mounted(el: any, { value }: any): void;
|
|
109
|
+
beforeUnmount(el: any): void;
|
|
110
|
+
};
|
|
111
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "saveWidth")[], "select" | "saveWidth", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
112
|
+
sliderInitialWidth: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
treeSearchApiConfig: {
|
|
117
|
+
type: ObjectConstructor;
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
treeRenderConfig: {
|
|
121
|
+
type: ObjectConstructor;
|
|
122
|
+
default: () => {
|
|
123
|
+
replaceFields: {
|
|
124
|
+
children: string;
|
|
125
|
+
title: string;
|
|
126
|
+
key: string;
|
|
127
|
+
};
|
|
128
|
+
title: string;
|
|
129
|
+
key: string;
|
|
130
|
+
parentId: string;
|
|
131
|
+
uniqId: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
isDraggable: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
treePrefix: {
|
|
139
|
+
type: FunctionConstructor;
|
|
140
|
+
};
|
|
141
|
+
treeSuffix: {
|
|
142
|
+
type: FunctionConstructor;
|
|
143
|
+
};
|
|
144
|
+
}>> & {
|
|
145
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
sliderInitialWidth: number;
|
|
149
|
+
treeSearchApiConfig: Record<string, any>;
|
|
150
|
+
treeRenderConfig: Record<string, any>;
|
|
151
|
+
isDraggable: boolean;
|
|
152
|
+
}>>;
|
|
153
|
+
export default CSliderTree;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as e}from"../../shared/utils/index.js";import i from"./src/index.vue.js";const o=i;o.install=function(i){e(i,o,r+"SliderTree")};export{o as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default function useAsyncData(): {
|
|
2
|
+
getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
|
|
3
|
+
searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
4
|
+
updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
|
|
5
|
+
getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(){async function t(t,e,r){try{const n=r[e]||null;if("function"==typeof n){const e=await n(t);return Promise.resolve(e)}return Promise.reject(new Error(`${e} Is not a function`))}catch(t){return Promise.reject(t)}}return{getChildrenByOrgPartenId:async function(e,r){return await t(e,"getChildrenByOrgPartenId",r)},searchEmpTreeData:async function(e,r){return await t(e,"searchEmpTreeData",r)},updateDeptSort:async function(e,r){return await t(e,"updateDeptSort",r)},getDeptList:async function(e,r){return await t(e,"getDeptList",r)}}}export{t as default};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
sliderInitialWidth: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
treeSearchApiConfig: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
treeRenderConfig: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
replaceFields: {
|
|
14
|
+
children: string;
|
|
15
|
+
title: string;
|
|
16
|
+
key: string;
|
|
17
|
+
};
|
|
18
|
+
title: string;
|
|
19
|
+
key: string;
|
|
20
|
+
parentId: string;
|
|
21
|
+
uniqId: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
isDraggable: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
treePrefix: {
|
|
29
|
+
type: FunctionConstructor;
|
|
30
|
+
};
|
|
31
|
+
treeSuffix: {
|
|
32
|
+
type: FunctionConstructor;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
$message: import("naive-ui").MessageApi;
|
|
36
|
+
getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
|
|
37
|
+
searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
|
|
38
|
+
updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
|
|
39
|
+
getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
|
|
40
|
+
isMatchFn: (node: any, keyword: string) => boolean;
|
|
41
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
sliderInitialWidth: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
treeSearchApiConfig: {
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
default: () => {};
|
|
49
|
+
};
|
|
50
|
+
treeRenderConfig: {
|
|
51
|
+
type: ObjectConstructor;
|
|
52
|
+
default: () => {
|
|
53
|
+
replaceFields: {
|
|
54
|
+
children: string;
|
|
55
|
+
title: string;
|
|
56
|
+
key: string;
|
|
57
|
+
};
|
|
58
|
+
title: string;
|
|
59
|
+
key: string;
|
|
60
|
+
parentId: string;
|
|
61
|
+
uniqId: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
isDraggable: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
treePrefix: {
|
|
69
|
+
type: FunctionConstructor;
|
|
70
|
+
};
|
|
71
|
+
treeSuffix: {
|
|
72
|
+
type: FunctionConstructor;
|
|
73
|
+
};
|
|
74
|
+
}>> & {
|
|
75
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
}>>;
|
|
78
|
+
emit: (event: "select" | "saveWidth", ...args: any[]) => void;
|
|
79
|
+
flexWidth: import("vue").Ref<number>;
|
|
80
|
+
searchValue: import("vue").Ref<string>;
|
|
81
|
+
treeData: import("vue").Ref<any[]>;
|
|
82
|
+
expandedKeys: import("vue").Ref<string[]>;
|
|
83
|
+
selectedKeys: import("vue").Ref<string[]>;
|
|
84
|
+
selectNode: import("vue").Ref<{}>;
|
|
85
|
+
loadedKeys: import("vue").Ref<never[]>;
|
|
86
|
+
dragData: import("vue").Ref<{}>;
|
|
87
|
+
handleRenderLabel: ({ option }: any) => any;
|
|
88
|
+
handleRenderPrefix: ({ option }: any) => any;
|
|
89
|
+
handleRenderSuffix: ({ option }: any) => any;
|
|
90
|
+
init: () => Promise<void>;
|
|
91
|
+
onExpand: (expandedKeyVals: string[]) => void;
|
|
92
|
+
onNodeSelect: (selectedKeyVals: never[] | undefined, [node]: any[]) => void;
|
|
93
|
+
onSearch: () => Promise<void>;
|
|
94
|
+
reset: (flag: boolean, selectOrgId?: string) => Promise<void>;
|
|
95
|
+
onDrop: (info: any) => Promise<void>;
|
|
96
|
+
getDeptData: (orgId: string) => Promise<any>;
|
|
97
|
+
handleDeptData: (data: any) => any;
|
|
98
|
+
getChildrenByOrgPartenIdFn: () => Promise<void>;
|
|
99
|
+
onLoadData: (treeNode: any) => any;
|
|
100
|
+
getExpandKeys: (data: any) => never[];
|
|
101
|
+
changeWidth: ({ distance }: any) => void;
|
|
102
|
+
saveWidth: () => void;
|
|
103
|
+
NInput: any;
|
|
104
|
+
NTree: any;
|
|
105
|
+
NEmpty: any;
|
|
106
|
+
vFlexibleResize: {
|
|
107
|
+
mounted(el: any, { value }: any): void;
|
|
108
|
+
beforeUnmount(el: any): void;
|
|
109
|
+
};
|
|
110
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "saveWidth")[], "select" | "saveWidth", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
|
+
sliderInitialWidth: {
|
|
112
|
+
type: NumberConstructor;
|
|
113
|
+
default: number;
|
|
114
|
+
};
|
|
115
|
+
treeSearchApiConfig: {
|
|
116
|
+
type: ObjectConstructor;
|
|
117
|
+
default: () => {};
|
|
118
|
+
};
|
|
119
|
+
treeRenderConfig: {
|
|
120
|
+
type: ObjectConstructor;
|
|
121
|
+
default: () => {
|
|
122
|
+
replaceFields: {
|
|
123
|
+
children: string;
|
|
124
|
+
title: string;
|
|
125
|
+
key: string;
|
|
126
|
+
};
|
|
127
|
+
title: string;
|
|
128
|
+
key: string;
|
|
129
|
+
parentId: string;
|
|
130
|
+
uniqId: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
isDraggable: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
treePrefix: {
|
|
138
|
+
type: FunctionConstructor;
|
|
139
|
+
};
|
|
140
|
+
treeSuffix: {
|
|
141
|
+
type: FunctionConstructor;
|
|
142
|
+
};
|
|
143
|
+
}>> & {
|
|
144
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onSaveWidth?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
sliderInitialWidth: number;
|
|
148
|
+
treeSearchApiConfig: Record<string, any>;
|
|
149
|
+
treeRenderConfig: Record<string, any>;
|
|
150
|
+
isDraggable: boolean;
|
|
151
|
+
}>;
|
|
152
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as t,onMounted as r,withDirectives as n,openBlock as i,createElementBlock as a,normalizeStyle as l,createElementVNode as o,createVNode as s,unref as d,createCommentVNode as c,renderSlot as u,createBlock as f,h as v}from"vue";import{useMessage as p,NInput as g,NTree as h,NEmpty as y}from"naive-ui";import{vFlexibleResize as m}from"../../../shared/directive/flexibleResize.js";import b from"./hooks/useAsyncData.js";import{traversalData as x}from"./utils/index.js";const C={class:"search-groups"},w={class:"tree-wrap"},I={key:1,class:"empty-container"},k={class:"table-footer-wrap"};var O=e({__name:"index",props:{sliderInitialWidth:{type:Number,default:300},treeSearchApiConfig:{type:Object,default:()=>({})},treeRenderConfig:{type:Object,default:()=>({replaceFields:{children:"childrenList",title:"name",key:"code"},title:"bck03",key:"bck02",parentId:"bck01a",uniqId:"bck01"})},isDraggable:{type:Boolean,default:!0},treePrefix:{type:Function},treeSuffix:{type:Function}},emits:["select","saveWidth"],setup(e,{emit:O}){const R=e,F=p(),{getChildrenByOrgPartenId:L,searchEmpTreeData:S,updateDeptSort:D,getDeptList:A}=b(),K=(e,t)=>{var r,n,i,a;t=null==t?void 0:t.toLowerCase();let{name:l="",abbrp:o="",abbrw:s="",code:d}=e;const c=(null==(r=null==l?void 0:l.toLowerCase())?void 0:r.indexOf(t))>-1,u=(null==(n=null==d?void 0:d.toLowerCase())?void 0:n.indexOf(t))>-1,f=(null==(i=null==o?void 0:o.toLowerCase())?void 0:i.indexOf(t))>-1,v=(null==(a=null==s?void 0:s.toLowerCase())?void 0:a.indexOf(t))>-1;return!!(c||f||v||u)},j=t(R.sliderInitialWidth),P=t(""),q=t([]),E=t([]),M=t([]),N=t({}),T=t([]),U=t({});function W({option:e}){const t=e[R.treeRenderConfig.replaceFields.title];if(t.includes(P.value.trim())){const e=t.substr(0,t.indexOf(P.value.trim())),r=t.substr(t.indexOf(P.value.trim())+P.value.trim().length);return v("div",[v("span",{style:{marginRight:e?"2px":"0px"}},e),v("span",{style:{color:"#2563F4"}},P.value.trim()),v("span",{style:{marginLeft:r?"2px":"0px"}},r)])}return t}function B({option:e}){return R.treePrefix?R.treePrefix(e):""}function $({option:e}){return R.treeSuffix?R.treeSuffix(e):""}function J(e){E.value=e}function _(e=[],[t]){M.value=e,O("select",t),N.value=t}async function z(){const e=P.value.trim();if(e){const{data:t,success:r}=await S({search:e},R.treeSearchApiConfig);if(r){const e=R.treeRenderConfig.replaceFields.children;t.forEach((t=>{t[e]=Q(t.bck1TreeManageRespDTO||[]),t.isLeaf=!t[e].length,t.isOrg=!0})),q.value=t,E.value=function(e){const t=[],r=R.treeRenderConfig.replaceFields.children;for(const n of x(e,r)){let e=!1;for(const t of x(n[r],r))K(t,P.value)&&(e=!0);e&&t.push(n.code)}return t}(t)}}else V(!1)}async function V(e,t){await X();let r=q.value[0].orgId;e&&(r=t);const n=await H(r);if(n){const e=q.value.map((e=>e.orgId===r?n:e));q.value=e}}async function G(e){const{dragNode:t,node:r}=e,{parentId:n,uniqId:i}=R.treeRenderConfig;if(t.isOrg)return void F.error("机构不能拖动排序");if(t.orgId!==r.orgId)return void F.error("不能跨机构移动科室");if(t[n]!==r[n])return void F.error("仅允许同层级科室排序");U.value=t;const a={uniqId:t[i],moveToUniqId:r[i],orgId:t.orgId},{success:l}=await D(a,R.treeSearchApiConfig);l&&(F.success("排序成功"),V(!0,t.orgId))}async function H(e){const{data:t,success:r}=await A({orgId:e},R.treeSearchApiConfig);if(r){const r=R.treeRenderConfig.replaceFields.children,n=q.value.find((t=>t.orgId===e));return n[r]=Q(t),n}}function Q(e){const t=R.treeRenderConfig.replaceFields.children;for(const r of x(e,t))r.name=r[R.treeRenderConfig.title],r.code=r[R.treeRenderConfig.key],r.isLeaf=!r[t]||!r[t].length;return e}async function X(){const{success:e,data:t}=await L(null,R.treeSearchApiConfig);e&&(t.forEach((e=>{e.isOrg=!0,e.isLeaf=!e.existBck1})),q.value=t)}function Y(e){return new Promise((async t=>{if(e.isOrg&&!e.children){const r=await H(e.orgId);return r&&(e.children=r),void t(!0)}t(!0)}))}function Z({distance:e}){const t=j.value+e;j.value=Math.min(Math.max(t,50),1e3)}function ee(){O("saveWidth",j.value)}return r((()=>{!async function(){await X(),q.value.length>0&&(E.value=[q.value[0].code],M.value=[q.value[0].code],N.value=q.value[0],O("select",JSON.parse(JSON.stringify(q.value[0]))))}()})),(t,r)=>n((i(),a("div",{class:"left-tree-wrap",ref:"left",style:l({width:j.value+"px"})},[o("div",C,[s(d(g),{clearable:"",placeholder:"搜索关键字",value:P.value,"onUpdate:value":[r[0]||(r[0]=e=>P.value=e),z]},null,8,["value"]),c(" 按钮插槽 "),u(t.$slots,"buttons")]),c(" 标签tab插槽 "),u(t.$slots,"tabs"),o("div",w,[q.value.length>0?(i(),f(d(h),{key:0,"virtual-scroll":"","children-field":e.treeRenderConfig.replaceFields.children,"key-field":e.treeRenderConfig.replaceFields.key,"label-field":e.treeRenderConfig.replaceFields.title,selectable:!0,data:q.value,"expanded-keys":E.value,selectedKeys:M.value,draggable:e.isDraggable,loadedKeys:T.value,"render-label":W,"render-prefix":B,"render-suffix":$,"onUpdate:expandedKeys":J,"onUpdate:selectedKeys":_,onLoad:Y,onDrop:G},null,8,["children-field","key-field","label-field","data","expanded-keys","selectedKeys","draggable","loadedKeys"])):(i(),a("div",I,[s(d(y),{description:"暂无数据"})]))]),o("div",k,[c(" 导出数据插槽 "),u(t.$slots,"output")])],4)),[[d(m),{mode:"VR",onMove:Z,onEnd:ee}]])}});export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function traversalData(data: any[], children?: string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function*r(e,i="children"){if(e&&Array.isArray(e))for(let l=0;l<e.length;l++)yield e[l],e[l][i]&&(yield*r(e[l][i],i))}export{r as traversalData};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.left-tree-wrap{background:#fff;border-right:1px solid rgba(0,0,0,.1);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:8px;position:relative}.left-tree-wrap .search-groups{align-items:center;display:flex}.left-tree-wrap .search-groups .ant-input-search{flex:1}.left-tree-wrap .tree-wrap{flex:1;margin-top:12px;overflow-y:auto}.left-tree-wrap .tree-wrap .n-tree .n-tree-node-content{width:100%}.left-tree-wrap .tree-wrap .empty-container{align-items:center;display:flex;height:100%;justify-content:center}.left-tree-wrap .table-footer-wrap{margin-top:8px}.left-tree-wrap .resizable{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-7px;text-align:center;width:14px;z-index:1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as n,createElementBlock as l,normalizeStyle as o,createBlock as s,unref as c,Fragment as u,renderList as d,toDisplayString as p,createCommentVNode as r,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as L,NButtonGroup as k,NButton as b,NIcon as E}from"naive-ui";import P
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as n,createElementBlock as l,normalizeStyle as o,createBlock as s,unref as c,Fragment as u,renderList as d,toDisplayString as p,createCommentVNode as r,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as L,NButtonGroup as k,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as P}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as O}from"../../../../types/enums.js";import{ArrowBack as W,ArrowForward as _}from"@vicons/ionicons5";const x={key:0,class:"dynamic-header"},M={class:"dynamic-content"},S=["onClick"],C={key:0,class:"content"},j={class:"content"},w={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const B=e,H=t(200),A=i((()=>{var e,t;return null!=(t=null==(e=B.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=i((()=>A.value&&A.value.length>0?A.value.map((e=>{let t="";return B.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[]));function N(e){const t=B.curPage+e;z("updatePage",t)}function R({distance:e}){const t=H.value+e;H.value=Math.min(Math.max(t,200),1e3)}function T(){}return(t,i)=>a((n(),l("div",{class:"select-dynamic-options",style:o({minWidth:H.value+"px",position:"relative"})},[0===e.optionList.length?(n(),s(c(g),{key:0,description:"无数据"})):(n(),l(u,{key:1},[c(I)&&c(I).length>1?(n(),l("div",x,[(n(!0),l(u,null,d(c(I),(e=>(n(),l("span",{key:e,class:"name"},p(e),1)))),128))])):r("v-if",!0),v("ul",M,[(n(!0),l(u,null,d(e.optionList,(t=>(n(),l("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!B.isMultiple||e.value===O.WHOLE)return null==(t=B.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=B.optionList)||i.forEach((e=>{e.value===O.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=B.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",n)}(t)},[e.isShowWhole&&t.value===c(O).WHOLE?(n(),l("span",C,p(t.label),1)):(n(!0),l(u,{key:1},d(c(A),(e=>(n(),s(c(L),{key:e,trigger:"hover",duration:0},{trigger:f((()=>[v("span",j,p(t[e]),1)])),default:f((()=>[y(" "+p(t[e]),1)])),_:2},1024)))),128))],10,S)))),128))]),v("div",w,[h(c(k),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>N(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(W),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>N(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(_),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],4)),[[c(P),{mode:"VR",onMove:R,onEnd:T}]])}});export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let g,y
|
|
1
|
+
import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let g,v,y=s;p?(g=s===t.SELECT&&c===e.MULTIPLE?null==E?void 0:E.valueList:null==(l=null==E?void 0:E.valueList)?void 0:l[0],v=null==E?void 0:E.unit,s===t.LABEL&&(y="SELECTLABEL",g=null==E?void 0:E.valueList),s===t.DATE&&(y="DATE_OUT"),s===t.DATE_TIME&&(y="DATETIME_OUT")):s===t.SELECT&&(null==u?void 0:u.list)&&(null==u?void 0:u.list.length)<10&&(y="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(y="INPUTNUMBER_RANGE"),s===t.DATE&&(y=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(y=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==u?void 0:u.manualMapping)&&(y=t.SELECTDYNAMIC);const A={isRender:!0,widgetType:y,originType:s,valueList:null==(a=null==u?void 0:u.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:g,defValueUnit:v,optionSetting:c,multiple:c===e.MULTIPLE||y===t.SELECTLABEL,manualMapping:null==u?void 0:u.manualMapping,showWholeOption:null==u?void 0:u.showWholeOption,dynamicOptionInfo:null==u?void 0:u.dynamicOptionInfo,classifyStr:null==E?void 0:E.classifyStr,linkageFieldKeys:null!=(o=null==E?void 0:E.linkageFieldKeys)?o:[]};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:A,rangeFilter:T,unit:null!=v?v:"",isAccurateSearchVal:!1,_extendData:null!=n?n:{}}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(n)&&l.multiple?i:i[0]},transformClassifyChild:function(e,i){const n={};return e&&e.length>0&&e.forEach((e=>{const r=e.field_key;n[r]="";const u=i.find((e=>e.name===r));if(u){const i=Array.isArray(e.value)&&u.type===t.SELECT?e.value:e.value.toString();if(n[r]=i,e.unit&&e.unit!==o.CUSTOM){let i="";u.type===t.DATE&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD",u.optionType):a(e.unit,"YYYY-MM-DD")),u.type===t.DATE_TIME&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):a(e.unit,"YYYY-MM-DD HH:mm:ss")),n[r]=i}}})),n},transformParams:function(e){const l={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP];return e&&e.length>0&&e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>n(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(l[e.accurateSearchKey]=e.isAccurateSearch?1:0),l[o]=t)})),l}}}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
class t{constructor(t){this.maskMove=t=>{const e=this._isV?t.screenX:t.screenY,s=e-this._mv;this._mv=e;const{onMove:o}=this.options;o&&o({evt:t,distance:s})},this.maskUp=t=>{const{onEnd:e}=this.options,s=this._isV?t.screenX:t.screenY;e&&e({evt:t,distance:s-this._ms}),this.maskRemove()},this.toolDown=t=>{this.maskInsert(),this._isV=/^V/.test(this.options.mode),this._ms=this._mv=this._isV?t.screenX:t.screenY;const{onStart:e}=this.options;e&&e({evt:t,distance:0})},this.options=t||{},this.tool=null,this.mask=null,this._elPosition=null,this._isV=!1,this._ms=0,this._mv=0,this.init(t)}init(t){const{el:e}=t;if(!e)return;const s=this.toolCreate();this.initElPosition(),e.appendChild(s)}destroyed(){const{el:t}=this.options;this.maskRemove(),this.toolRemove(),this._elPosition?t.style.setProperty("position",this._elPosition):t.style.removeProperty("position")}initElPosition(){const t=this.options.el;if(!t)return;this._elPosition=t.style.position;const e=window.getComputedStyle(t,null).position;e&&"static"!==e||t.style.setProperty("position","relative")}maskCreate(t){if(this.mask)return this.mask;const e=document.createElement("div");return e.style="position:fixed;top:0;bottom:0;left:0;right:0;z-index:99999;cursor:"+(/^V/.test(t)?"col":"row")+"-resize",e.addEventListener("mousemove",this.maskMove),e.addEventListener("mouseup",this.maskUp),this.mask=e,e}maskRemove(){const t=this.mask;t&&(t.parentNode&&t.parentNode.removeChild(t),t.removeEventListener("mousemove",this.maskMove),t.removeEventListener("mouseup",this.maskUp),this.mask=null)}maskInsert(){const t=this.mask||this.maskCreate(this.options.mode);return document.body.appendChild(t),t}toolCreate(){if(this.tool)return this.tool;const t=document.createElement("div");return t.addEventListener("mousedown",this.toolDown),this.tool=t,this.toolInitStyle(),t}toolRemove(){const t=this.tool;t&&(t.parentNode&&t.parentNode.removeChild(t),this.tool=null)}toolInitStyle(){let t="user-select:none;cursor:col-resize;position:absolute;";const e=this.options.mode;/^V/.test(e)?t+="width: 8px;cursor:col-resize;":t+="height: 8px;cursor:row-resize;";const s={VR:"left",VL:"right",HT:"bottom",HB:"top"},o=s[e];t+=Object.keys(s).reduce(((t,e)=>{const i=s[e];return i!==o&&(t+=`${i}:0;`),t}),""),this.tool&&(this.tool.style=t)}}
|
|
1
|
+
class t{constructor(t){this.maskMove=t=>{const e=this._isV?t.screenX:t.screenY,s=e-this._mv;this._mv=e;const{onMove:o}=this.options;o&&o({evt:t,distance:s})},this.maskUp=t=>{const{onEnd:e}=this.options,s=this._isV?t.screenX:t.screenY;e&&e({evt:t,distance:s-this._ms}),this.maskRemove()},this.toolDown=t=>{this.maskInsert(),this._isV=/^V/.test(this.options.mode),this._ms=this._mv=this._isV?t.screenX:t.screenY;const{onStart:e}=this.options;e&&e({evt:t,distance:0})},this.options=t||{},this.tool=null,this.mask=null,this._elPosition=null,this._isV=!1,this._ms=0,this._mv=0,this.init(t)}init(t){const{el:e}=t;if(!e)return;const s=this.toolCreate();this.initElPosition(),e.appendChild(s)}destroyed(){const{el:t}=this.options;this.maskRemove(),this.toolRemove(),this._elPosition?t.style.setProperty("position",this._elPosition):t.style.removeProperty("position")}initElPosition(){const t=this.options.el;if(!t)return;this._elPosition=t.style.position;const e=window.getComputedStyle(t,null).position;e&&"static"!==e||t.style.setProperty("position","relative")}maskCreate(t){if(this.mask)return this.mask;const e=document.createElement("div");return e.style="position:fixed;top:0;bottom:0;left:0;right:0;z-index:99999;cursor:"+(/^V/.test(t)?"col":"row")+"-resize",e.addEventListener("mousemove",this.maskMove),e.addEventListener("mouseup",this.maskUp),this.mask=e,e}maskRemove(){const t=this.mask;t&&(t.parentNode&&t.parentNode.removeChild(t),t.removeEventListener("mousemove",this.maskMove),t.removeEventListener("mouseup",this.maskUp),this.mask=null)}maskInsert(){const t=this.mask||this.maskCreate(this.options.mode);return document.body.appendChild(t),t}toolCreate(){if(this.tool)return this.tool;const t=document.createElement("div");return t.addEventListener("mousedown",this.toolDown),this.tool=t,this.toolInitStyle(),t}toolRemove(){const t=this.tool;t&&(t.parentNode&&t.parentNode.removeChild(t),this.tool=null)}toolInitStyle(){let t="user-select:none;cursor:col-resize;position:absolute;";const e=this.options.mode;/^V/.test(e)?t+="width: 8px;cursor:col-resize;":t+="height: 8px;cursor:row-resize;";const s={VR:"left",VL:"right",HT:"bottom",HB:"top"},o=s[e];t+=Object.keys(s).reduce(((t,e)=>{const i=s[e];return i!==o&&(t+=`${i}:0;`),t}),""),this.tool&&(this.tool.style=t)}}const e={mounted(e,{value:s}){e._flexibleResize||(e._flexibleResize=new t({el:e,mode:s.mode||"VR",onMove:s.onMove,onEnd:s.onEnd}))},beforeUnmount(t){t._flexibleResize&&(t._flexibleResize.destroyed(),t._flexibleResize=void 0)}};export{e as vFlexibleResize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './flexibleResize';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{vFlexibleResize}from"./flexibleResize.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.51-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.51-beta.20",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.51-beta.20",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
|
@@ -20,6 +20,13 @@ export declare type FormOperationalConfig = {
|
|
|
20
20
|
operationalPrecision: string;
|
|
21
21
|
operationalResult: string;
|
|
22
22
|
};
|
|
23
|
+
export declare type IFlexibleType = {
|
|
24
|
+
el: HTMLBaseElement;
|
|
25
|
+
mode: string;
|
|
26
|
+
onMove: (result: any) => void;
|
|
27
|
+
onEnd: (result: any) => void;
|
|
28
|
+
onStart?: (result: any) => void;
|
|
29
|
+
};
|
|
23
30
|
export declare namespace FormLowCodeReactions {
|
|
24
31
|
type ConObj = {
|
|
25
32
|
con: LOW_CODE_VALUE_RELATION;
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&s(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+
|
|
1
|
+
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&s(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8.05:/[A-Z]/.test(e)?t+9.13:/\d/.test(e)?t+8.9:/[.,]/.test(e)?t+4.03:/[)(]/.test(e)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(e)?t+13.95:/[-+]/.test(e)?t+7.51:/[/\\]/.test(e)?t+4.11:/%/.test(e)?t+12.68:/‰/.test(e)?t+17.75:t+6),0):0})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return s(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(s(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function b(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function j(t,e="px"){if(u(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const O=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!s(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,s]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const c=s&&parseInt(s,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const s=[];for(;i;)Object.entries(i).forEach((([t,e])=>{s.includes(t)||(s.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,b as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,O as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,j as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.51-beta.
|
|
3
|
+
"version": "3.1.51-beta.20",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"iOS 7",
|
|
64
64
|
"last 3 iOS versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "baa8f4999aff0a5eaafebb0bfa6d5a6fd594b55d"
|
|
67
67
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IFlexibleType } from '../../../../../es/components/table-filter/src/types/tool';
|
|
2
|
-
export declare class FlexibleResize {
|
|
3
|
-
options: IFlexibleType;
|
|
4
|
-
tool: any;
|
|
5
|
-
mask: any;
|
|
6
|
-
_elPosition: any;
|
|
7
|
-
_isV: boolean;
|
|
8
|
-
_ms: number;
|
|
9
|
-
_mv: number;
|
|
10
|
-
constructor(options: IFlexibleType);
|
|
11
|
-
init(options: IFlexibleType): void;
|
|
12
|
-
destroyed(): void;
|
|
13
|
-
initElPosition(): void;
|
|
14
|
-
maskCreate(mode: string): any;
|
|
15
|
-
maskRemove(): void;
|
|
16
|
-
maskMove: (e: any) => void;
|
|
17
|
-
maskUp: (e: any) => void;
|
|
18
|
-
maskInsert(): any;
|
|
19
|
-
toolCreate(): any;
|
|
20
|
-
toolRemove(): void;
|
|
21
|
-
toolInitStyle(): void;
|
|
22
|
-
toolDown: (e: any) => void;
|
|
23
|
-
}
|
|
24
|
-
declare const _default: {
|
|
25
|
-
mounted(el: any, { value }: any): void;
|
|
26
|
-
beforeUnmount(el: any): void;
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|