cnhis-design-vue 3.1.46-beta.33 → 3.1.46-beta.34
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/form-config/index.d.ts +2 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +3 -2
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/info-header/index.d.ts +2 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
- package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
|
@@ -7448,7 +7448,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7448
7448
|
"x-read-pretty"?: boolean | undefined;
|
|
7449
7449
|
"x-compile-omitted"?: string[] | undefined;
|
|
7450
7450
|
}>>;
|
|
7451
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
7451
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
7452
7452
|
clearSpan: (uuid: string) => void;
|
|
7453
7453
|
exposeEvent: {
|
|
7454
7454
|
validate(path?: string): Promise<void>;
|
|
@@ -13475,7 +13475,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13475
13475
|
"x-read-pretty"?: boolean | undefined;
|
|
13476
13476
|
"x-compile-omitted"?: string[] | undefined;
|
|
13477
13477
|
}>>;
|
|
13478
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
13478
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
13479
13479
|
clearSpan: (uuid: string) => void;
|
|
13480
13480
|
exposeEvent: {
|
|
13481
13481
|
validate(path?: string): Promise<void>;
|
|
@@ -7450,7 +7450,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7450
7450
|
"x-read-pretty"?: boolean | undefined;
|
|
7451
7451
|
"x-compile-omitted"?: string[] | undefined;
|
|
7452
7452
|
}>>;
|
|
7453
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
7453
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
7454
7454
|
clearSpan: (uuid: string) => void;
|
|
7455
7455
|
exposeEvent: {
|
|
7456
7456
|
validate(path?: string): Promise<void>;
|
|
@@ -13477,7 +13477,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13477
13477
|
"x-read-pretty"?: boolean | undefined;
|
|
13478
13478
|
"x-compile-omitted"?: string[] | undefined;
|
|
13479
13479
|
}>>;
|
|
13480
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
13480
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
13481
13481
|
clearSpan: (uuid: string) => void;
|
|
13482
13482
|
exposeEvent: {
|
|
13483
13483
|
validate(path?: string): Promise<void>;
|
|
@@ -463,7 +463,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
463
463
|
"x-read-pretty"?: boolean | undefined;
|
|
464
464
|
"x-compile-omitted"?: string[] | undefined;
|
|
465
465
|
}>>;
|
|
466
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
466
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
467
467
|
clearSpan: (uuid: string) => void;
|
|
468
468
|
exposeEvent: {
|
|
469
469
|
validate(path?: string): Promise<void>;
|
|
@@ -5594,7 +5594,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5594
5594
|
"x-read-pretty"?: boolean | undefined;
|
|
5595
5595
|
"x-compile-omitted"?: string[] | undefined;
|
|
5596
5596
|
}>>;
|
|
5597
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
5597
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
5598
5598
|
clearSpan: (uuid: string) => void;
|
|
5599
5599
|
exposeEvent: {
|
|
5600
5600
|
validate(path?: string): Promise<void>;
|
|
@@ -450,7 +450,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
450
450
|
"x-read-pretty"?: boolean | undefined;
|
|
451
451
|
"x-compile-omitted"?: string[] | undefined;
|
|
452
452
|
}>>;
|
|
453
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
453
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
454
454
|
clearSpan: (uuid: string) => void;
|
|
455
455
|
exposeEvent: {
|
|
456
456
|
validate(path?: string): Promise<void>;
|
|
@@ -444,7 +444,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
444
444
|
"x-read-pretty"?: boolean | undefined;
|
|
445
445
|
"x-compile-omitted"?: string[] | undefined;
|
|
446
446
|
}>>;
|
|
447
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
447
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
448
448
|
clearSpan: (uuid: string) => void;
|
|
449
449
|
exposeEvent: {
|
|
450
450
|
validate(path?: string): Promise<void>;
|
|
@@ -448,7 +448,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
448
448
|
"x-read-pretty"?: boolean | undefined;
|
|
449
449
|
"x-compile-omitted"?: string[] | undefined;
|
|
450
450
|
}>>;
|
|
451
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
451
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
452
452
|
clearSpan: (uuid: string) => void;
|
|
453
453
|
exposeEvent: {
|
|
454
454
|
validate(path?: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as r,computed as t,inject as
|
|
1
|
+
import{defineComponent as e,ref as r,computed as t,inject as a,watch as o,createVNode as n}from"vue";import{useVModel as u}from"@vueuse/core";import{isEqual as l,isArray as i,isString as s,isNumber as c,isEmpty as d,isFunction as v,omit as p,cloneDeep as f}from"lodash-es";import"../../../index.js";import{InjectionAsyncQueue as m}from"../../constants/index.js";import{useCommonInjection as y}from"../../hooks/useCommonInjection.js";import{formRenderLog as h}from"../../utils/index.js";import{connect as k,mapProps as j}from"@formily/vue";import g from"../../../../search-cascader/index.js";import w from"../../../../../shared/components/no-data/NoData.vue.js";import{assignUpdateValue as _}from"../../utils/schema.js";import{useFormField as b}from"../../hooks/useFormField.js";import{useFormRequest as F}from"../../hooks/useFormRequest.js";const K=k(e({name:"FormSearchCascade",props:{options:{type:Array,default:()=>[]},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},autograph:{type:String,required:!0},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},wordbook:{type:Object,required:!0},onChange:{},value:{type:[String,Array]}},emits:["update:value"],setup(e,{emit:k}){const j=u(e,"value",k),_=r(!1),K=r([]),{field:O,fieldKey:q}=b(),S=t((()=>{var r,t,a;return null!=(a=null==(t=null==(r=e.wordbook)?void 0:r.show_key)?void 0:t[0])?a:e.labelField})),C=t((()=>{var r,t;return null!=(t=null==(r=e.wordbook)?void 0:r.value_key)?t:e.valueField})),x=t((()=>{var r,t;return null==(t=null==(r=e.wordbook)?void 0:r.render_key)?void 0:t[0]})),L=t((()=>{var r;return(null==(r=e.wordbook)?void 0:r.level_num)||1/0})),V=a(m),{getSearchRequestInfo:A}=F(),I=r(150),P=r();async function R(r,t){var a,o,n;if(I.value=t&&(null==(a=P.value)?void 0:a.getWidth())||150,i(e.value)&&e.value.length&&!r&&!t){const[r,t]=function(e){if(!e.length)return[];const r=[(e=f(e))[0]];let t=e[0];for(let r=1;r<e.length;r++){const a=e[r];a&&(t.children=[a],a.parent=t,t=a)}return[e,r]}(e.value);K.value=t;const a=r[Math.max(0,r.length-2)];return await R(a),a}try{if(r&&!r.__keyword&&r.isLeaf)return u(r);if(null==r?void 0:r.__keyword){if(!s(r.id_link))return Promise.reject();const t=r.id_link.split("_").filter((e=>e));c(L.value)&&L.value!==1/0&&t.splice(L.value);const a=await async function(r){if(!A().primaryKeyUrl)return[];try{return await V.addAsync(t(e.wordbook,e.autograph,r,q.value))}catch(e){s(e)&&h(e)}function t(r,t,a,o){const n=A();return{key:o,params:{autograph:t,tableId:r.id,primaryKeyValue:a.join(","),page:1},...n,url:n.primaryKeyUrl,cache:e.requestCache}}}(t);if(!a)return Promise.reject();const{lastOption:o,options:u}=function(e,r){let t=e[0];return{options:r.reduce(((r,o,n)=>{const u=a(e,o);return 0===n?(t=u,[u]):(Object.assign(u,{parent:t,isLeaf:n+1>=L.value}),t.children=[u],t=u,r)}),[]),lastOption:t};function a(e,r){return e.find((e=>e[C.value]===r))}}(a,t);return u.length<L.value&&(await R(o),d(o.children))?(j.value=function(e,r){return r.map((r=>e.find((e=>e[C.value]===r))))}(a,t),_.value=!1,Promise.reject()):(K.value=u,null==(n=P.value)||n.setCursor(o),o)}{const a=await V.addAsync(function(r,a,o,n,u){const l={autograph:()=>a,wordbookId:"id",wordbookType:"type",fieldKeys:()=>r.search_key?JSON.stringify(r.search_key):void 0,conObj:()=>JSON.stringify(function(e,r,t){return r?e.conObj||[]:t?[{con:"EQ",is_compare_field:!1,field_key:e.level_key,value:t[C.value]}]:e.conObjFirstLevel||[]}(r,t,n)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>t,page:()=>1},i=Object.entries(l).reduce(((e,[t,a])=>(e[t]=s(a)?r[a]:v(a)?a():void 0,e)),{});return{...A(),params:i,key:u,cache:e.requestCache}}(e.wordbook,e.autograph,O.value,r,q.value));if(r){if(!a.length)return u(r);r.children=a.map((e=>function(e,r,t){return{...e,parent:r,isLeaf:l(r)+1>=t}}(e,r,L.value)))}else K.value=a.map((e=>function(e,r){e.__keyword=!!r,e.isLeaf=!!r,r&&(e[S.value]=e[x.value||S.value]||e[S.value]);return e}(e,t))),t&&(null==(o=P.value)||o.setCursor(K.value[0]))}}catch(e){s(e)&&h(e)}function u(e){return j.value=function(e){const r=[];let t=e;for(;t;)r.unshift(p(t,["parent","isLeaf","__keyword","children"])),t=t.parent;return r}(e),_.value=!1,Promise.reject()}function l(e){let r=1,t=e.parent;for(;t;)r++,t=t.parent;return r}}function U(){I.value=150}o((()=>e.wordbook),((r,t)=>{l(r,t)||(K.value=[],r&&(j.value||!e.lazyRequest)&&R())}),{immediate:!0});const{injectValueValidate:B,injectValueWatchFromEmpty:N,injectValueBindKey:W}=y();N(j,R),B(j);const z=W(j);return()=>n(g,{ref:P,value:j.value,"onUpdate:value":e=>j.value=e,show:_.value,"onUpdate:show":e=>_.value=e,options:K.value,key:z.value,labelKey:S.value,valueKey:C.value,search:R,onFocus:U,menuWidth:I.value},{empty:()=>n(w,null,null)})}}),j({dataSource:"options"},_));export{K as LEVEL_SEARCH_CASCADER};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as e,findAncestor as t}from"../../../../shared/utils/index.js";import{isField as r}from"@formily/core";import{Path as o}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as n}from"@vueuse/shared";import{isArray as s,isFunction as a}from"lodash-es";import{nextTick as m}from"vue";import"../../index.js";import{FormItemLineBarDepKeyPrepend as u,NESTED_FORM_ITEM_TYPE as f}from"../constants/index.js";import{queryDecoratorByAddress as l,queryInput as d,queryDecoratorByFieldKey as c,findNextWidget as p}from"../utils/dom.js";import{validateMessageParser as g,combineExtendKey as v,splitExtendKey as y}from"../utils/index.js";import{getParentLinebar as h}from"../utils/schema.js";function I({formModel:t,formRenderRef:n,formUUID:a,getFieldList:f,formItemDepsCollector:p}){return{validate(r="*"){return t.validate(r).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(o,[]):e)));function o(t,r){if(!i(r))return t;let o=!1;return s(r.messages)&&r.messages.forEach((r=>{i(r)&&(t.push(...e(r).map(m)),o=!0)})),!o&&t.push(m(r)),t}function m(e){if(e.decoratorElement)return e;const r=t.query(e.path),o=r.get("title"),s=e.messages.map((e=>function(e,t){var r;return t&&i(t.fieldItem)?g(null!=(r=t.fieldItem.defined_error_msg)?r:e,t.fieldItem):e}(e,r.get("decoratorProps")))),m=l(e.address,n.value,a);return{...e,messages:s,title:o,decoratorElement:m,...d(m)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=v(f(),r)),r},setFormValues(e,i=!0,n=!0){i&&(e=y(f(),e)),t.setFieldState("*",(t=>{r(t)&&(n||o.existIn(e,t.path))&&(t.value=o.getIn(e,t.path))}))},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:async e=>n.value?await async function(e,t,r){if(!n.value)return s();const o=c(e,t,a);if(o)return s(o);const i=h(e,r);return i?(p.trigger(u+i,!0),await m(),s(c(e,t,a))):s();function s(e){return{decoratorElement:e,...d(e)}}}(e,n.value,f()):null}}function x({props:e,formRenderRef:r,formModel:o}){return{onKeydown:function i(s){var m;if(
|
|
1
|
+
import{arrayed as e,findAncestor as t}from"../../../../shared/utils/index.js";import{isField as r}from"@formily/core";import{Path as o}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as n}from"@vueuse/shared";import{isArray as s,isFunction as a}from"lodash-es";import{nextTick as m}from"vue";import"../../index.js";import{FormItemLineBarDepKeyPrepend as u,NESTED_FORM_ITEM_TYPE as f}from"../constants/index.js";import{queryDecoratorByAddress as l,queryInput as d,queryDecoratorByFieldKey as c,findNextWidget as p}from"../utils/dom.js";import{validateMessageParser as g,combineExtendKey as v,splitExtendKey as y}from"../utils/index.js";import{getParentLinebar as h}from"../utils/schema.js";function I({formModel:t,formRenderRef:n,formUUID:a,getFieldList:f,formItemDepsCollector:p}){return{validate(r="*"){return t.validate(r).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(o,[]):e)));function o(t,r){if(!i(r))return t;let o=!1;return s(r.messages)&&r.messages.forEach((r=>{i(r)&&(t.push(...e(r).map(m)),o=!0)})),!o&&t.push(m(r)),t}function m(e){if(e.decoratorElement)return e;const r=t.query(e.path),o=r.get("title"),s=e.messages.map((e=>function(e,t){var r;return t&&i(t.fieldItem)?g(null!=(r=t.fieldItem.defined_error_msg)?r:e,t.fieldItem):e}(e,r.get("decoratorProps")))),m=l(e.address,n.value,a);return{...e,messages:s,title:o,decoratorElement:m,...d(m)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=v(f(),r)),r},setFormValues(e,i=!0,n=!0){i&&(e=y(f(),e)),t.setFieldState("*",(t=>{r(t)&&(n||o.existIn(e,t.path))&&(t.value=o.getIn(e,t.path))}))},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:async e=>n.value?await async function(e,t,r){if(!n.value)return s();const o=c(e,t,a);if(o)return s(o);const i=h(e,r);return i?(p.trigger(u+i,!0),await m(),s(c(e,t,a))):s();function s(e){return{decoratorElement:e,...d(e)}}}(e,n.value,f()):null}}function x({props:e,formRenderRef:r,formModel:o}){return{onKeydown:async function i(s){var m;if(await n(0),Reflect.get(s,"stopCapture")||!e.enterToNextWidget||!r.value)return;const u=t(s.target,(e=>e.classList.contains("form-render__formItem")));if(!u)return;const l=`.form-render__formItem${f.map((e=>`:not([widget-type=${e}])`)).join("")}`,d=Array.from(r.value.querySelectorAll(l)),c=d.findIndex((e=>e.id===u.id));if(!~c)return;const{widget:g,field:v}=p(d,c,s.target);if(g)if(a(e.enterToNextWidget)){const t=v&&o.query(v).take();!t||e.enterToNextWidget(null==(m=t.decoratorProps)?void 0:m.fieldItem)?y():i({target:g})}else y();async function y(){await n(0),g.focus()}}}}export{x as useFormDomEvent,I as useFormExposeEvent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{unref as e}from"vue";import{promiseTimeout as n}from"@vueuse/shared";import"../../../index.js";import{useSessionStorage as t}from"@vueuse/core";import{isString as o,trim as i,isEmpty as
|
|
1
|
+
import{unref as e}from"vue";import{promiseTimeout as n}from"@vueuse/shared";import"../../../index.js";import{useSessionStorage as t}from"@vueuse/core";import{isString as o,trim as i,isEmpty as l,isEqual as r,isFunction as u}from"lodash-es";import{selectOptionsMap as d}from"../rendererPlugins/editableWidgets/hooks/useSelectOption.js";import{IhoTableUtils as a}from"../../utils/index.js";import{EDITABLE_WIDGET_TYPE as s}from"../../constants/index.js";import{parse as c,isValid as p,compareDesc as f}from"date-fns";import{defineTablePlugin as m}from"../../hooks/useTablePlugin.js";function v(){const v="keyboardEventPlugin",g=t("ihoTableClipData","");return m({name:v,apply(t){function m(n,t,m,v,w){var b,y;if(!(null==(b=null==m?void 0:m.keyboardConfig)?void 0:b.isClip))return;const{row:C,column:R}=t.getSelectedCell()||t.getEditRecord()||{};if(!C||!R||!E(R,s.SELECT)&&e(g)===C[R.field])return;const x=m.uuid&&E(R,s.SELECT)&&d.get(m.uuid)[R.field],T=C[R.field];if("copy"===n){const e=(null==(y=(x||[]).filter((e=>T.includes(e.value))))?void 0:y.map((e=>e.label)).join(","))||T;g.value=e}else{if(o(e(g))&&(g.value=i(e(g)||"")),!e(g)||!function(e){var n;const t=null==(n=e.editRender)?void 0:n.props;return t&&Object.keys(s).includes(a.getCellType(t))}(R)||C.$__SEPARATE||!function(e,n,t,o){var i,l;const{beforeEditMethod:r}=n.editConfig||{},d={rowIndex:null!=(i=e.getRowIndex(t))?i:0,columnIndex:null!=(l=e.getColumnIndex(o))?l:0};return!r||u(r)&&r({row:t,column:o,...d,$table:e,$grid:void 0})}(t,m,C,R))return;if(E(R,s.DATE)&&function(n,t){var i;const l=null==(i=n.editRender)?void 0:i.props,r=e(g)||"";return!p(new Date(r))||o(l.connectField)&&t[l.connectField]&&(l.isStartDate&&f(new Date(r),new Date(t[l.connectField]))<0||l.isEndDate&&f(new Date(r),new Date(t[l.connectField]))>0)}(R,C))return;if(E(R,s.NUMBER)&&!/^-?\d*\.?\d+$/.test((e(g)||"").toString()))return;if(E(R,s.TIME)&&function(n){var t,o;const i=e(g)||"",l=null==(t=n.editRender)?void 0:t.props,r=c(i,(null==(o=null==l?void 0:l.componentProps)?void 0:o.valueFormat)||"HH:mm",new Date);return!p(r)}(R))return;let n=e(g)||"";if(x&&!l(x)){const e=x.filter((e=>n.split(",").includes(e.label))).map((e=>e.value));if(l(e))return;if(function(e){var n,t;const o=null==(n=e.editRender)?void 0:n.props;return E(e,s.SELECT)&&(null==(t=o.componentProps)?void 0:t.multiple)}(R)){if(r(T,e))return;n=e}else{if(e.includes(T))return;n=e[0]}}C[R.field]=n,v("formChange",{column:R,row:C,oldValue:T,value:n,index:t.getRowIndex(C)}),E(R,s.SEPARATE)&&(null==w||w())}}function E(e,n){var t;const o=null==(t=e.editRender)?void 0:t.props;return o&&a.getCellType(o)===n}t.eventHooks.onCopy.tap(v,(({$table:e},n,{emits:t})=>m("copy",e,n,t))),t.eventHooks.onPaste.tap(v,(({$table:e},n,{emits:t,updateTableDataRef:o})=>m("paste",e,n,t,o))),t.eventHooks.onKeydown.tap(v,(async({$event:e,$table:t},o,{emits:i})=>{await n(0);const{row:l,column:r}=t.getSelectedCell()||t.getEditRecord()||{};if(!l||!r)return;i("keyboard",{$table:t,key:e.key,index:t.getRowIndex(l),value:l[r.field],row:l,column:r})}))}})}export{v as keyboardEventPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../../../shared/utils/index.js";import"../../../index.js";import{isFunction as o}from"lodash-es";import{defineTablePlugin as n}from"../../hooks/useTablePlugin.js";import{getOperationalFormHandler as r}from"../../../../../shared/utils/business.js";function
|
|
1
|
+
import"../../../../../shared/utils/index.js";import"../../../index.js";import{isFunction as o}from"lodash-es";import{defineTablePlugin as n}from"../../hooks/useTablePlugin.js";import{getOperationalFormHandler as r}from"../../../../../shared/utils/business.js";function e(){const e="operationalFormPlugin";return n({name:e,apply(n){n.configHooks.config.tap(e,(n=>{const e=n.onFormChange;return n.onFormChange=function(t){const{column:i,row:s,$table:m}=t;!function(o,e){return r(n.operationForm,(n=>o[n]),((n,r)=>{e.getColumns().some((o=>o.field===n))&&(o[n]=r)})).operationalFormHandler}(s,m)(i.field),o(e)&&e(t)},n}))}})}export{e as operationalFormPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
1
|
+
import{defineComponent as e,inject as o,ref as t,reactive as n,watch as r,createVNode as l,mergeProps as a}from"vue";import{NSelect as u}from"naive-ui";import{useIhoTableFormEvent as i}from"../../../../utils/index.js";import{useDebounceFn as s}from"@vueuse/core";import{isFunction as c,isArray as p,trim as d}from"lodash-es";var m=e({name:"EditSelect",props:{value:{type:[Array,String,Number]},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},options:{type:Array,default:()=>[]},queryOptions:{type:Function},placeholder:{type:String,default:"请选择"}},emits:["update:value"],setup(e,{emit:m}){const f=o("$xetable"),y=t(null);function v(e){y.value=e}const h=t(!1),{emitFormChangeWithParams:b}=i({...e,$table:f}),w=n({options:e.options,loading:!1,remote:!1,onSearch:null}),g=s((async function(o=""){w.loading=!0;try{if(!c(e.queryOptions))return;w.options=await e.queryOptions({keyword:o,row:e.row,column:e.column,rowIndex:e.rowIndex})}catch(o){console.log(`获取${e.column.field}options错误`)}finally{w.loading=!1}}),400);function S(o){const t=e.value;m("update:value",o),b({oldValue:t})}function q(e){var o,t;"Tab"===e.key&&y.value&&(null==(t=(o=y.value).handleKeydown)||t.call(o,{...e,key:"Enter",preventDefault:e.preventDefault.bind(e)}))}function x(e,o){if(!e||!o)return!1;const t=d(e);if(!t)return!0;const{label:n="",keyword:r=""}=o;return n.includes(t)||r.split(",").some((e=>e.includes(t)))}r((()=>e.options),(e=>{if(p(e)&&e.length)return w.options=e,w.remote=!1,void(w.onSearch=null);w.remote=!0,w.onSearch=g,w.onSearch()}),{immediate:!0});const O=()=>({class:"iho-table__selectOption"}),k={class:"iho-table__selectMenu"};return()=>l(u,a({ref:v,show:h.value,"onUpdate:show":e=>h.value=e,placeholder:e.placeholder},w,{value:e.value,clearable:!0,filterable:!0,filter:x,nodeProps:O,menuProps:k,onUpdateValue:S,onKeydown:q}),null)}});export{m as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyObject, ArrayAble, BindEventSettingItem, FormOperationalConfig, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
|
|
2
|
-
import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes } from 'vxe-table';
|
|
3
|
-
import { VxeTableListeners } from 'vxe-table/types/table';
|
|
2
|
+
import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes, VxeTableConstructor } from 'vxe-table';
|
|
3
|
+
import { VxeTableListeners, VxeTablePrivateMethods } from 'vxe-table/types/table';
|
|
4
4
|
import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../../es/components/iho-table/src/constants';
|
|
5
5
|
import Sortable from 'sortablejs';
|
|
6
6
|
export * from './pluginType';
|
|
@@ -134,6 +134,7 @@ export declare type IhoTableFormChangePayload = {
|
|
|
134
134
|
index: number;
|
|
135
135
|
type?: string;
|
|
136
136
|
oldValue?: unknown;
|
|
137
|
+
$table: VxeTableConstructor & VxeTablePrivateMethods;
|
|
137
138
|
};
|
|
138
139
|
export declare type IhoTableEmits = <T extends typeof IhoTableEventNameTuple[number]>(event: T, ...args: IhoTableEmitPayload<T>) => void;
|
|
139
140
|
export declare type EventListenerToEventName<T extends string> = T extends `on${infer R}` ? R extends `${infer F}${infer L}` ? `${Lowercase<F>}${L}` : never : never;
|
|
@@ -18,7 +18,7 @@ export declare function useUUIDMap<T>(creator: () => T, isReactive?: boolean): {
|
|
|
18
18
|
removeItemFromUUID: (uuid: string) => void;
|
|
19
19
|
};
|
|
20
20
|
export declare function getColumnRenderWidth(column: AnyObject, $table: MaybeRef<Nullable<VxeTableInstance>>): Promise<number>;
|
|
21
|
-
export declare function useIhoTableFormEvent(payload: Pick<VxeGlobalRendererHandles.RenderEditParams, 'row' | 'rowIndex' | 'column'> & {
|
|
21
|
+
export declare function useIhoTableFormEvent(payload: Pick<VxeGlobalRendererHandles.RenderEditParams, 'row' | 'rowIndex' | 'column' | '$table'> & {
|
|
22
22
|
$rowIndex?: number;
|
|
23
23
|
}): {
|
|
24
24
|
emitFormChange: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as e,inject as n,unref as t,toRaw as r,createVNode as i}from"vue";import{jsonParse as o,arrayed as u,findAncestor as l}from"../../../../shared/utils/index.js";import{promiseTimeout as c}from"@vueuse/shared";import{isNumber as a,isString as d,isObject as s,isArray as f,cloneDeep as m}from"lodash-es";import{InjectionIhoTableConfig as p,InjectionIhoTableEmits as v,IHO_TABLE_STRING_STATUS as g,IHO_TABLE_NUMBER_STATUS as E,IHO_TABLE_TREE_TYPE as I}from"../constants/index.js";function h(e){return console.warn(`[IhoTable]: ${e}`)}const T=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function C(){var e,t,r;const i=n(p);return i||h("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(t=null==(e=null==i?void 0:i.value)?void 0:e.rowConfig)?void 0:t.height)?r:32}function R(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function S(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function w(n,t=!0){const r=t?e(new Map):new Map;return{getItemFromUUID:function(e){return r.set(e,r.get(e)||n()).get(e)},setItemFromUUID:function(e,n){r.set(e,n)},removeItemFromUUID:function(e){r.delete(e)}}}async function O(e,n){return r()||await c(0),r()||function(){const n=+e.colWidth;return a(n)?n:64}();function r(){var r,i;return null==(i=null==(r=t(n))?void 0:r.getColumnByField(e.field))?void 0:i.renderWidth}}function F(e){const t=n(v);function i(){var n;return{value:e.row[e.column.field],row:e.row,column:{...e.column,...null==(n=e.column.editRender)?void 0:n.props},index:e.rowIndex>-1?e.rowIndex:e.$rowIndex}}function o(e={}){t("formChange",{...i(),...m(r(e))})}function u(e={}){t("formClick",{...i(),...m(r(e))})}return{emitFormChange:function(){o()},emitFormClick:function(){u()},emitFormChangeWithParams:o,emitFormClickWithParams:u}}const P=Object.freeze({createDefaultRenderCell:function(){return function(e,{row:n,column:t}){return[i("span",null,[n[t.field]])]}},createRenderEdit:function(e){return function({props:n},t){return e({...t,fieldItem:n||{},...F(t)})}},isEditableColumn(e,n){var t;return!1!==(null==(t=e.editConfig)?void 0:t.showIcon)&&n.editRender&&!1!==n.editRender.enabled},hasFilter(e){if(y(e))return!0;let n=e.fieldSetting;return d(n)&&(n=o(n||"")),s(n)&&((t=n).notParticipatingSearch!==g.POSITIVE&&"manual"===(null==(r=t.mapping)?void 0:r.type));var t,r},hasDateFiler(e){var n;return null==(n=null==e?void 0:e.filterSetting)?void 0:n.daterange}}),A=Object.freeze({isPositive:e=>e===E.POSITIVE||e===g.POSITIVE,isNegative:e=>e===E.NEGATIVE||e===g.NEGATIVE,notPositive:e=>e!==E.POSITIVE&&e!==g.POSITIVE,notNegative:e=>e!==E.NEGATIVE&&e!==g.NEGATIVE})
|
|
1
|
+
import{reactive as e,inject as n,unref as t,toRaw as r,createVNode as i}from"vue";import{jsonParse as o,arrayed as u,findAncestor as l}from"../../../../shared/utils/index.js";import{promiseTimeout as c}from"@vueuse/shared";import{isNumber as a,isString as d,isObject as s,isArray as f,cloneDeep as m}from"lodash-es";import{InjectionIhoTableConfig as p,InjectionIhoTableEmits as v,IHO_TABLE_STRING_STATUS as g,IHO_TABLE_NUMBER_STATUS as E,IHO_TABLE_TREE_TYPE as I}from"../constants/index.js";function h(e){return console.warn(`[IhoTable]: ${e}`)}const T=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function C(){var e,t,r;const i=n(p);return i||h("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(t=null==(e=null==i?void 0:i.value)?void 0:e.rowConfig)?void 0:t.height)?r:32}function R(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function S(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function w(n,t=!0){const r=t?e(new Map):new Map;return{getItemFromUUID:function(e){return r.set(e,r.get(e)||n()).get(e)},setItemFromUUID:function(e,n){r.set(e,n)},removeItemFromUUID:function(e){r.delete(e)}}}async function O(e,n){return r()||await c(0),r()||function(){const n=+e.colWidth;return a(n)?n:64}();function r(){var r,i;return null==(i=null==(r=t(n))?void 0:r.getColumnByField(e.field))?void 0:i.renderWidth}}function F(e){const t=n(v);function i(){var n;return{$table:e.$table,value:e.row[e.column.field],row:e.row,column:{...e.column,...null==(n=e.column.editRender)?void 0:n.props},index:e.rowIndex>-1?e.rowIndex:e.$rowIndex}}function o(e={}){t("formChange",{...i(),...m(r(e))})}function u(e={}){t("formClick",{...i(),...m(r(e))})}return{emitFormChange:function(){o()},emitFormClick:function(){u()},emitFormChangeWithParams:o,emitFormClickWithParams:u}}const P=Object.freeze({createDefaultRenderCell:function(){return function(e,{row:n,column:t}){return[i("span",null,[n[t.field]])]}},createRenderEdit:function(e){return function({props:n},t){return e({...t,fieldItem:n||{},...F(t)})}},isEditableColumn(e,n){var t;return!1!==(null==(t=e.editConfig)?void 0:t.showIcon)&&n.editRender&&!1!==n.editRender.enabled},hasFilter(e){if(y(e))return!0;let n=e.fieldSetting;return d(n)&&(n=o(n||"")),s(n)&&((t=n).notParticipatingSearch!==g.POSITIVE&&"manual"===(null==(r=t.mapping)?void 0:r.type));var t,r},hasDateFiler(e){var n;return null==(n=null==e?void 0:e.filterSetting)?void 0:n.daterange}}),A=Object.freeze({isPositive:e=>e===E.POSITIVE||e===g.POSITIVE,isNegative:e=>e===E.NEGATIVE||e===g.NEGATIVE,notPositive:e=>e!==E.POSITIVE&&e!==g.POSITIVE,notNegative:e=>e!==E.NEGATIVE&&e!==g.NEGATIVE}),$=(e,n)=>({$event:t,column:r})=>{var i;if(!u(e).includes(null==(i=r.editRender)?void 0:i.name))return!0;const o=null==t?void 0:t.target;return!s(o)||!l(o,n)};function N(e){return[I.TRANSFORM_WITH_SPAN_METHOD,I.TRANSFORM_TREE_TYPE].includes(`${e.isTree}`)}function b(e){return d(e)&&!!e.match(/^###\{[^{}]+}$/)}function V(e){try{return JSON.parse(e.replace(/^###/,""))}catch(e){return{}}}function x(e,n){if(e.$__SEPARATE||!n.editRender||!n.editRender.props)return e[n.field];const{fieldSetting:t}=n.editRender.props;if(!d(t))return e[n.field];const{mergedFeildExpression:r}=o(t);return r&&d(r)?r.replace(/#{(.+?)}/g,(function(n,t){let r=t?e[t.trim()]:null;b(r)&&(r=V(r).change_text);return r||(null==r?"--":r)})):e[n.field]}const U=["SEARCH","SELECT","RADIO","CHECKBOX"];function y(e){return e.notParticipatingSearch===E.NEGATIVE&&U.includes(T.getCellType(e))&&f(e.options)&&e.options.length}export{P as IhoTableRenderHelper,A as IhoTableStatusHelper,T as IhoTableUtils,h as IhoTableWarn,$ as createIhoTableClearActivedInterceptor,R as eventListener2EventName,S as eventName2EventListener,O as getColumnRenderWidth,C as getRowHeight,y as isCompatibleColumn,b as isRichContent,N as isTransformTreeType,x as parseMergeField,V as parseRichContent,F as useIhoTableFormEvent,w as useUUIDMap};
|
|
@@ -2917,7 +2917,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2917
2917
|
"x-read-pretty"?: boolean | undefined;
|
|
2918
2918
|
"x-compile-omitted"?: string[] | undefined;
|
|
2919
2919
|
}>>;
|
|
2920
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2920
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2921
2921
|
clearSpan: (uuid: string) => void;
|
|
2922
2922
|
exposeEvent: {
|
|
2923
2923
|
validate(path?: string): Promise<void>;
|
|
@@ -3804,7 +3804,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3804
3804
|
"x-read-pretty"?: boolean | undefined;
|
|
3805
3805
|
"x-compile-omitted"?: string[] | undefined;
|
|
3806
3806
|
}>>;
|
|
3807
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
3807
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
3808
3808
|
clearSpan: (uuid: string) => void;
|
|
3809
3809
|
exposeEvent: {
|
|
3810
3810
|
validate(path?: string): Promise<void>;
|
|
@@ -2911,7 +2911,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2911
2911
|
"x-read-pretty"?: boolean | undefined;
|
|
2912
2912
|
"x-compile-omitted"?: string[] | undefined;
|
|
2913
2913
|
}>>;
|
|
2914
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2914
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2915
2915
|
clearSpan: (uuid: string) => void;
|
|
2916
2916
|
exposeEvent: {
|
|
2917
2917
|
validate(path?: string): Promise<void>;
|
|
@@ -3798,7 +3798,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3798
3798
|
"x-read-pretty"?: boolean | undefined;
|
|
3799
3799
|
"x-compile-omitted"?: string[] | undefined;
|
|
3800
3800
|
}>>;
|
|
3801
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
3801
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
3802
3802
|
clearSpan: (uuid: string) => void;
|
|
3803
3803
|
exposeEvent: {
|
|
3804
3804
|
validate(path?: string): Promise<void>;
|
|
@@ -2484,7 +2484,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2484
2484
|
"x-read-pretty"?: boolean | undefined;
|
|
2485
2485
|
"x-compile-omitted"?: string[] | undefined;
|
|
2486
2486
|
}>>;
|
|
2487
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2487
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2488
2488
|
clearSpan: (uuid: string) => void;
|
|
2489
2489
|
exposeEvent: {
|
|
2490
2490
|
validate(path?: string): Promise<void>;
|
|
@@ -496,7 +496,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
496
496
|
"x-read-pretty"?: boolean | undefined;
|
|
497
497
|
"x-compile-omitted"?: string[] | undefined;
|
|
498
498
|
}>>;
|
|
499
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
499
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
500
500
|
clearSpan: (uuid: string) => void;
|
|
501
501
|
exposeEvent: {
|
|
502
502
|
validate(path?: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as
|
|
1
|
+
import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as r,watch as o,openBlock as u,createBlock as n,unref as s,isRef as i,normalizeStyle as c,withCtx as v,createVNode as d,createElementVNode as p,renderSlot as f}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import{useEventBus as y,useVModel as m,onClickOutside as g,useDebounceFn as b}from"@vueuse/core";import"date-fns";import{isString as w,isArray as k,isObject as S,isFunction as K}from"lodash-es";import{uuidGenerator as C}from"../../../shared/utils/index.js";import{NOOP as N}from"@vue/shared";import{NPopover as _,NInput as P}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as j,InjectionKeyboardEventBus as x,InjectionSearchCascaderLoadingNode as A,InjectionSearchCascaderValue as U}from"./constants/index.js";import{SearchMenu as W}from"./components/SearchMenu.js";const F=["id"];var L=e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function},menuWidth:{type:[Number,String],default:150}},emits:["update:value","focus","update:show"],setup(e,{expose:L,emit:T}){const V=e,B=h();function E(){var e;e=[],Promise.resolve(K(V.beforeSetValue)?V.beforeSetValue(e):e).then((e=>T("update:value",e)),N)}function I(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&O()}const R=e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||z.value?M.emit(e.key,e):O()},$=a((()=>({"--menu-width":V.menuWidth}))),M=y("cascaderKeydown"),q=C(),z=m(V,"show",T);l(j,a((()=>V.checkAbleLevel))),l(x,M);const D=t(""),G=a((()=>w(V.value)&&V.value?V.value:k(V.value)&&V.value.length?V.value.map((e=>S(e)?e[V.labelKey]:e)).join(" / "):V.editPlaceholder)),H=a({get:()=>z.value?D.value:w(V.value)?V.value:k(V.value)?V.value.reduce(((e,a,l)=>0===l?a[V.labelKey]:e+" / "+a[V.labelKey]),""):"",set(e){D.value=e,le(void 0,e)}});function J(e){T("focus",e)}function O(){z.value||(z.value=!0,D.value="",le())}async function Q(){var e;z.value=!1,null==(e=X.value)||e.blur()}const X=t();g(X,(e=>{var a;if(!z.value)return;const l=e;if(!l.target)return Q();!function(e){let a=!1,l=e;for(;l;){if(l.id===q){a=!0;break}l=l.parentElement}return a}(l.target)?Q():null==(a=X.value)||a.focus()}));const Y=t(),Z=t(),ee=t(),ae=t(null);l(A,ae),l(U,a((()=>V.value)));const le=b((async(e,a)=>{var l;const{type:t,node:o}=e||{};try{if("update"===t)return void(K(V.search)&&V.search({...o,isLeaf:!0}));ae.value=o;const e=await(K(V.search)&&V.search(o,a));Z.value=S(e)||k(e)?e:o}finally{ae.value=null,await r(),null==(l=Y.value)||l.syncPosition()}}),400),te=e=>{ee.value=e};return o((()=>V.show),(e=>{e&&(ee.value={})})),L({getWidth(){var e;if(!X.value)return 0;const a=null==(e=X.value)?void 0:e.$el;return a?a.clientWidth:void 0},setCursor(e){ee.value=e}}),(a,l)=>(u(),n(s(_),{class:"search-cascader",trigger:"manual",show:s(z),"onUpdate:show":l[1]||(l[1]=e=>i(z)?z.value=e:null),"show-arrow":!1,placement:"bottom-start",style:c(s($)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:Y},{trigger:v((()=>[d(s(P),{class:"search-cascader__input",placeholder:s(z)?s(G):e.placeholder,clearable:e.clearable,onClear:E,value:s(H),"onUpdate:value":l[0]||(l[0]=e=>i(H)?H.value=e:null),ref_key:"inputRef",ref:X,onFocus:J,onClick:I,onKeydown:R},null,8,["placeholder","clearable","value"])])),default:v((()=>[p("section",{id:s(q)},[d(s(W),{style:c(s(B)),"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:s(le),onChangeCursor:te,"current-node":Z.value,"cursor-node":ee.value},{empty:v((()=>[f(a.$slots,"empty")])),_:3},8,["style","label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,F)])),_:3},8,["show","style","width"]))}});export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as r,createVNode as t,createTextVNode as o,computed as n,inject as a,withModifiers as
|
|
1
|
+
import{defineComponent as e,ref as r,createVNode as t,createTextVNode as o,computed as n,inject as a,onBeforeUnmount as l,withModifiers as c}from"vue";import{traverse as s}from"../../../../shared/utils/index.js";import{Reload as u,ChevronForward as i}from"@vicons/ionicons5";import{NOOP as d}from"@vue/shared";import{useVirtualList as p}from"@vueuse/core";import{isArray as f,isFunction as v,isNumber as y,isEqual as h,isString as m}from"lodash-es";import{NCheckbox as N}from"naive-ui";import{InjectionSearchCascaderLoadingNode as g,InjectionSearchCascaderValue as C,InjectionSearchCascaderCheckAbleLevel as b,InjectionKeyboardEventBus as k}from"../constants/index.js";const K=e({props:{options:{type:Array,default:()=>[]},activeNodes:{type:Array,default:()=>[]},level:{type:Number,required:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},cursorNode:{type:Object,default:()=>({})}},emits:["nodeClick","changeCursor"],setup(e,{emit:r}){const o=n((()=>e.options)),{list:s,containerProps:v,wrapperProps:K}=p(o,{itemHeight:32,overscan:5}),_=a(g),x=a(C),A=a(b),S=a(k),j=n((()=>y(A.value)&&A.value<=e.level));function w(e){return Object.keys(e).length<=0}function I(r){return e.cursorNode==r}function O(r){const t=function(e){const r=[e];let t=e;for(;t.parent;)t=t.parent,r.unshift(t);return r}(r);if(f(x.value))return h(o(t,e.valueKey),o(x.value,e.valueKey));if(m(x.value)){const r=x.value.split("/").map((e=>e.trim()));return h(r,o(t,e.labelKey))}return!1;function o(e,r){return e.map((e=>e[r]))}}function R(e){const r=v.ref.value;if(r){const t=32*e-(null==r?void 0:r.clientHeight);r.scrollTo(0,t>0?t:0)}}function T(t,n){if("ArrowUp"===t){if(w(e.cursorNode))return;const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=0===t?o.value.length-1:t-1,n=o.value[e];r("changeCursor",n),R(e+3)}}if("ArrowRight"===t){if(w(e.cursorNode))return;r("nodeClick",{type:"search",node:e.cursorNode}),r("changeCursor",{})}if("ArrowDown"===t){if(w(e.cursorNode))return r("changeCursor",o.value[0]);const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=t>=o.value.length-1?0:t+1,n=o.value[e];r("changeCursor",n),R(e+1)}}if("ArrowLeft"===t&&e.activeNodes.length){const t=e.activeNodes.slice(-1);r("changeCursor",t[0])}"Enter"===t&&function(){if(!w(e.cursorNode))Reflect.set(n,"stopCapture",!0),j.value?r("nodeClick",{type:"update",node:e.cursorNode}):r("nodeClick",{type:"search",node:e.cursorNode})}()}return l((()=>{S.off(T)})),S.on(T),()=>t("div",{class:"search-cascader__optionWrapper",ref:v.ref,style:v.style,onScroll:v.onScroll},[t("div",{style:K.value.style},[s.value.map((o=>{return t("div",{class:["search-cascader__option",{"search-cascader__option--active":(n=o.data,(null==(a=e.activeNodes)?void 0:a.includes(n))||I(o.data))}],onClick:()=>r("nodeClick",{type:"search",node:o.data}),title:o.data[e.labelKey]},[t("div",{class:"search-cascader__optionText"},[j.value?t(N,{style:{marginRight:"8px"},checked:O(o.data),onClick:c(d,["stop"]),onUpdateChecked:e=>e&&function(e){r("nodeClick",{type:"update",node:e})}(o.data)},null):null,t("span",{class:{"search-cascader__optionText--active":O(o.data)}},[o.data[e.labelKey]])]),_.value===o.data?t(u,{class:"rotate"},null):o.data.isLeaf?null:t(i,null,null)]);var n,a}))])])}}),_=e({props:{childKey:{type:String,default:"children"},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},currentNode:{type:Object},cursorNode:{type:Object}},emits:["nodeClick","changeCursor"],setup(e,{slots:n,emit:a}){const l=r([]);function c(r,o){return t(K,{level:o+1,labelKey:e.labelKey,valueKey:e.valueKey,activeNodes:l.value,onNodeClick:e=>a("nodeClick",e),onChangeCursor:e=>a("changeCursor",e),options:r,cursorNode:e.cursorNode},null)}function u(r){let t=!1;return s(r,((r,o)=>{e.currentNode===r&&(t=!0,o())}),["children"]),t}function i(){var r,t;if(!f(e.options)||!e.currentNode)return[];const o=[e.options];let n=e.options;for(l.value.length=0;f(n);){const r=n.find(u);if(!r)break;l.value.push(r),n=r[e.childKey],o.push(n)}if(e.cursorNode){const n=o.findIndex((r=>(r&&r.findIndex((r=>r===e.cursorNode)))>=0));if(n>=0&&!(null==(t=null==(r=e.cursorNode)?void 0:r.children)?void 0:t.length)){const e=o.slice(0,n+1);return l.value.splice(n,o.length),e}}return o}return()=>t("section",{class:"search-cascader__menuWrapper"},[f(e.options)&&e.options.length?e.currentNode?i().map(c):c(e.options,0):t("section",{class:"search-cascader__emptyWrapper"},[v(n.empty)?n.empty():t("section",null,[o("empty")])])])}});export{_ as SearchMenu};
|
|
@@ -185,13 +185,13 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
185
185
|
allCheckedKeys: (string | number)[];
|
|
186
186
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
187
187
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
188
|
+
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
188
189
|
mergeSearchFilter: import("vue").ComputedRef<{
|
|
189
190
|
isOpen: boolean;
|
|
190
191
|
multiple: boolean;
|
|
191
192
|
customTitles: string[];
|
|
192
193
|
itemHeight: number;
|
|
193
194
|
}>;
|
|
194
|
-
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
195
195
|
caculateTagData: import("vue").ComputedRef<any[]>;
|
|
196
196
|
init: () => void;
|
|
197
197
|
getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
|
|
@@ -173,13 +173,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
173
173
|
allCheckedKeys: IKey[];
|
|
174
174
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
175
175
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
176
|
+
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
176
177
|
mergeSearchFilter: import("vue").ComputedRef<{
|
|
177
178
|
isOpen: boolean;
|
|
178
179
|
multiple: boolean;
|
|
179
180
|
customTitles: string[];
|
|
180
181
|
itemHeight: number;
|
|
181
182
|
}>;
|
|
182
|
-
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
183
183
|
caculateTagData: import("vue").ComputedRef<any[]>;
|
|
184
184
|
init: () => void;
|
|
185
185
|
getallCheckedKeysWithChild: (item: TreeOption) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as t,watch as n,openBlock as a,createBlock as u,unref as i,withCtx as r,createVNode as c,createCommentVNode as o,withKeys as s,createTextVNode as d,toDisplayString as h,withDirectives as v,vShow as p,createElementBlock as f,Fragment as y,mergeProps as k,createElementVNode as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as C,NInputGroup as w,NInput as L,NIcon as S,NButton as x,NCheckbox as j,NTree as T,NTooltip as N}from"naive-ui";import{CloseCircleSharp as I}from"@vicons/ionicons5";import{searchFilterTree as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as t,watch as n,openBlock as a,createBlock as u,unref as i,withCtx as r,createVNode as c,createCommentVNode as o,withKeys as s,createTextVNode as d,toDisplayString as h,withDirectives as v,vShow as p,createElementBlock as f,Fragment as y,mergeProps as k,createElementVNode as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as C,NInputGroup as w,NInput as L,NIcon as S,NButton as x,NCheckbox as j,NTree as T,NTooltip as N}from"naive-ui";import{CloseCircleSharp as I}from"@vicons/ionicons5";import{searchFilterTree as F,getExpandedKeys as O}from"./utils/index.js";import{cloneDeep as D}from"lodash-es";import{SearchTypeConfig as $}from"./types/enums.js";import E from"./SearchMultiple.vue.js";import K from"./SearchOrgAndStaff.vue.js";const q={key:0},A={class:"c-select-person__scroll",style:{height:"342px"}};var B=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},searchInner:{type:Boolean,default:!1},searchFilter:{type:Object,default:()=>({})},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check","checkWithLevel"],setup(e,{expose:B,emit:P}){const R=e,U={isOpen:!1,multiple:!1,customTitles:["联系人","部门"],itemHeight:250},H=l(""),W=l(!1),G=l([]),z=l([]),M=l([]),J=l([]),Q=l([]),V=l(!1),X=D(function e(l){return l.forEach((l=>{var t;if(null==(t=l.children)?void 0:t.length){const t=se(l.children,[]);l.innerItemsNum=t.length,l.innerLeafs=t,e(l.children)}})),de(l,"")}(R.data));let Y=[];const Z=t((()=>!!R.queryLoadChildData)),ee=t((()=>{var e,l;return null!=(l=null==(e=null==R?void 0:R.treeSetting)?void 0:e.checkStrategy)?l:"child"})),le=t((()=>(null==R?void 0:R.searchFilter)&&Object.keys(null==R?void 0:R.searchFilter).length>0)),te=t((()=>le.value?{...D(U),...R.searchFilter}:D(U))),ne=t((()=>{let e=[];return G.value.forEach((l=>{for(let t=0;t<J.value.length;t++){const n=J.value[t];if(n.key==l){e.push(n);break}}})),e}));function ae(e){e.disabled||e.children||!e.key||Y.push(e.key)}function ue(e){e.disabled||e.tempTitle||!e.key||Y.push(e.key)}async function ie(e){if(R.queryLoadChildData){const l=await R.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function re(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function ce({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||Z.value&&!(null==e?void 0:e.isLeaf)){const l=R.wordbook.user_count_obj&&e[R.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return c("span",null,[`${e.title}${t}`])}return c(N,{trigger:"hover"},{default:()=>c("span",null,[e.title]),trigger:()=>c("span",null,[e.title])})}function oe(e){return e[R.wordbookChild.user_name_obj]||e[R.wordbook.parent_name_obj]||e.orgName||e.title||""}function se(e,l){return e.forEach((e=>{var t;(null==(t=e.children)?void 0:t.length)?se(e.children,l):!e.disabled&&l.push(e)})),l}function de(e,l){return e&&0!==e.length?e.map((e=>{var t;const n=oe(e),a=l?`${n}/${l}`:n;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?de(null==e?void 0:e.children,a):[]}})):[]}async function he(){if(V.value=!!H.value.trim(),Z.value)M.value=await R.queryTreeSearch(H.value);else{const e=function(){const e={[$.SEARCH_ORG_STAFF]:le.value,[$.SEARCH_ORG]:R.searchInner},l=Object.keys(e).find((l=>e[l]));return null!=l?l:""}();M.value=F(e,X,H.value)}z.value=M.value.length&&H.value?O(M.value):[]}function ve(e,l){var t,n;switch(null!=(n=null==(t=null==R?void 0:R.treeSetting)?void 0:t.checkStrategy)?n:"child"){case"child":!function(e,l){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&(!n.children||n.isLeaf)&&(l&&!G.value.includes(n.key)&&G.value.push(n.key),!l)){const e=G.value.findIndex((e=>e===n.key));G.value.splice(e,1)}n.children&&ve(n.children,l)}}(e,l);break;case"parent":!function(e,l){G.value=[];for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n.disabled&&!n.tempTitle&&(l&&!G.value.includes(n.key)&&G.value.push(n.key),!l)){const e=G.value.findIndex((e=>e===n.key));G.value.splice(e,1)}}}(e,l)}}function pe(e){ve(M.value,e)}function fe(e){var l;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=Q.value.map((e=>e.key));G.value.includes(n.key)&&!a.includes(n.key)&&J.value.push({key:n.key,name:n.title,parentName:n.tempTitle,innerItemsNum:n.innerItemsNum,innerLeafs:n.innerLeafs}),(null==(l=n.children)?void 0:l.length)&&fe(n.children)}}function ye(e){G.value=e}function ke(){G.value=[]}function me(e){G.value=e}function ge(){H.value="",setTimeout((()=>{he()}))}return function e(l,t){var n,a,u,i;for(let r=0,c=l.length;r<c;r++){const c=l[r];switch(c.title=oe(c),c.label=oe(c),c.parentNode=t,c.key||(c.key=c[R.wordbookChild.user_id_obj]||c[R.wordbook.parent_id_obj]||Date.now()),(null==(n=c.children)?void 0:n.length)?(e(c.children,c),re(c)):0===(null==(a=c.children)?void 0:a.length)&&Reflect.deleteProperty(c,"children"),null!=(i=null==(u=null==R?void 0:R.treeSetting)?void 0:u.checkStrategy)?i:"child"){case"child":ae(c);break;case"parent":ue(c)}}}(X,null),M.value=X,R.defaultList.length>0&&(Z.value?(R.defaultList.forEach((e=>G.value.push(e.key))),J.value=D(R.defaultList),Q.value=D(R.defaultList)):(R.defaultList.forEach((e=>G.value.push(e))),fe(X))),n((()=>G),(e=>{J.value=Q.value.filter((l=>e.value.includes(l.key))),e.value.length&&fe(Z.value?M.value:X),W.value=Y.every((e=>J.value.findIndex((l=>l.key===e))>-1));const l=J.value.filter((l=>e.value.includes(l.key)));P("check",e.value),P("checkWithLevel",l)}),{deep:!0}),n((()=>H.value),(e=>{e||ge()})),B({getCheckWithLevel:function(){const e=G.value,l=J.value.filter((l=>e.includes(l.key)));return null!=l?l:[]}}),(l,t)=>(a(),u(i(b),{cols:2,class:"c-select-person"},{default:r((()=>[c(i(_),null,{default:r((()=>[c(i(C),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:r((()=>[c(i(w),{style:{"margin-bottom":"12px"}},{default:r((()=>[o(" clearable "),c(i(L),{class:"search-input",value:H.value,"onUpdate:value":t[0]||(t[0]=e=>H.value=e),placeholder:e.searchPlaceholder,onKeyup:s(he,["enter"])},{suffix:r((()=>[H.value?(a(),u(i(S),{key:0,class:"search-clear",component:i(I),size:"16",onClick:ge},null,8,["component"])):o("v-if",!0)])),_:1},8,["value","placeholder","onKeyup"]),c(i(x),{type:"primary",onClick:he},{default:r((()=>[d(h(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple&&!V.value?v((a(),u(i(j),{key:0,checked:W.value,"onUpdate:checked":[t[1]||(t[1]=e=>W.value=e),pe]},{default:r((()=>[d(" 全选 ")])),_:1},8,["checked"])),[[p,i(Y).length<1e3]]):o("v-if",!0),o(" 支持选人 "),e.searchInner&&e.multiple&&V.value&&"parent"===i(ee)?(a(),u(E,{key:1,treeData:M.value,checkedKeys:G.value,onNotifyCheck:me},null,8,["treeData","checkedKeys"])):i(le)&&e.multiple&&V.value&&"parent"===i(ee)?(a(),f(y,{key:2},[o(" 同时兼容选人和选部门 "),c(K,{treeData:M.value,checkedKeys:G.value,searchFilter:i(te),onNotifyCheck:me,onNotifyClear:ge},null,8,["treeData","checkedKeys","searchFilter"])],2112)):(a(),u(i(T),k({key:3,"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":G.value,"expanded-keys":z.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>z.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":G.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>G.value=e),data:M.value,"check-strategy":"child","render-label":ce},e.treeSetting,{"onUpdate:checkedKeys":ye,onLoad:ie}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"]))])),_:1})])),_:1}),c(i(_),null,{default:r((()=>[c(i(C),{vertical:"",style:{"padding-left":"12px"}},{default:r((()=>[c(i(C),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:r((()=>[e.showCount?(a(),f("span",q,"已选择:"+h(i(ne).length),1)):o("v-if",!0),e.showClear?(a(),f("span",{key:1,class:"c-select-person__clear-btn",onClick:ke},"清空")):o("v-if",!0)])),_:1}),m("div",A,[(a(!0),f(y,null,g(i(ne),(e=>(a(),f("span",{class:"c-select-person__tag-item",key:e.key},[d(h(e.name)+" "+h(e.parentName?`(${e.parentName})`:"")+" "+h(e.innerItemsNum?`(${e.innerItemsNum}人)`:"")+" ",1),c(i(S),{class:"tag-close",component:i(I),onClick:l=>function(e){G.value=G.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{B as default};
|
|
@@ -2184,7 +2184,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2184
2184
|
"x-read-pretty"?: boolean | undefined;
|
|
2185
2185
|
"x-compile-omitted"?: string[] | undefined;
|
|
2186
2186
|
}>>;
|
|
2187
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2187
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2188
2188
|
clearSpan: (uuid: string) => void;
|
|
2189
2189
|
exposeEvent: {
|
|
2190
2190
|
validate(path?: string): Promise<void>;
|
|
@@ -2186,7 +2186,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2186
2186
|
"x-read-pretty"?: boolean | undefined;
|
|
2187
2187
|
"x-compile-omitted"?: string[] | undefined;
|
|
2188
2188
|
}>>;
|
|
2189
|
-
onKeydown: (event: KeyboardEvent) => void
|
|
2189
|
+
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
2190
2190
|
clearSpan: (uuid: string) => void;
|
|
2191
2191
|
exposeEvent: {
|
|
2192
2192
|
validate(path?: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.46-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.46-beta.34",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.46-beta.34",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};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare type PluginName = string | {
|
|
2
|
+
name: string;
|
|
3
|
+
stage: number;
|
|
4
|
+
};
|
|
5
|
+
declare type WithStage<T extends (...p: any[]) => any> = {
|
|
6
|
+
stage: number;
|
|
7
|
+
callback: T;
|
|
8
|
+
};
|
|
9
|
+
declare type ReplaceWithString<T extends any[]> = T extends [infer A, ...infer R] ? [string, ...ReplaceWithString<R>] : T;
|
|
10
|
+
export declare class SyncHook<T extends any[]> {
|
|
11
|
+
private args;
|
|
12
|
+
constructor(args: ReplaceWithString<T>);
|
|
13
|
+
callbackList: WithStage<(...payload: T) => any>[];
|
|
14
|
+
tap(pluginName: PluginName, callback: (...payload: T) => any): void;
|
|
15
|
+
tapPromise(pluginName: PluginName, callback: (...payload: T) => any): void;
|
|
16
|
+
call(...payload: T): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class SyncWaterfallHook<T extends any[]> extends SyncHook<T> {
|
|
19
|
+
callbackList: WithStage<(...payload: T) => T[0]>[];
|
|
20
|
+
call(...payload: T): T[0];
|
|
21
|
+
}
|
|
22
|
+
export declare class AsyncParallelHook<T extends any[]> extends SyncHook<T> {
|
|
23
|
+
promise(...payload: T): void;
|
|
24
|
+
}
|
|
25
|
+
export declare class AsyncSeriesHook<T extends any[]> extends SyncHook<T> {
|
|
26
|
+
promise(...payload: T): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isObject as a}from"@vueuse/core";import{isString as s,sortBy as c}from"lodash-es";class l{constructor(a){this.args=a,this.callbackList=[]}tap(l,t){var i;if(s(l))this.callbackList.push({stage:0,callback:t});else{if(!a(l))return;this.callbackList.push({stage:null!=(i=l.stage)?i:0,callback:t})}this.callbackList=c(this.callbackList,(a=>a.stage))}tapPromise(l,t){var i;if(s(l))this.callbackList.push({stage:0,callback:t});else{if(!a(l))return;this.callbackList.push({stage:null!=(i=l.stage)?i:0,callback:t})}this.callbackList=c(this.callbackList,(a=>a.stage))}call(...a){this.callbackList.forEach((({callback:s})=>s(...a)))}}class t extends l{constructor(){super(...arguments),this.callbackList=[]}call(...a){return this.callbackList.reduce(((s,{callback:c})=>c(s,...a.slice(1))),a[0])}}class i extends l{promise(...a){this.callbackList.forEach((({callback:s})=>s(...a)))}}class e extends l{promise(...a){return this.callbackList.reduce((async(s,{callback:c})=>(await s,c(...a))),Promise.resolve())}}export{i as AsyncParallelHook,e as AsyncSeriesHook,l as SyncHook,t as SyncWaterfallHook};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.46-beta.
|
|
3
|
+
"version": "3.1.46-beta.34",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "e24d24399cb450d804c50d41e041e93ba460ee30"
|
|
65
65
|
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const LEVEL_SEARCH_CASCADER: vue_2.DefineComponent<{
|
|
3
|
-
options: {
|
|
4
|
-
type: ArrayConstructor;
|
|
5
|
-
default: () => never[];
|
|
6
|
-
};
|
|
7
|
-
labelField: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
valueField: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
autograph: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
lazyRequest: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
requestCache: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
wordbook: {
|
|
28
|
-
type: ObjectConstructor;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
onChange: {};
|
|
32
|
-
value: {
|
|
33
|
-
type: (ArrayConstructor | StringConstructor)[];
|
|
34
|
-
};
|
|
35
|
-
}, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
|
|
36
|
-
options: {
|
|
37
|
-
type: ArrayConstructor;
|
|
38
|
-
default: () => never[];
|
|
39
|
-
};
|
|
40
|
-
labelField: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
valueField: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
autograph: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
lazyRequest: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
requestCache: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
wordbook: {
|
|
61
|
-
type: ObjectConstructor;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
onChange: {};
|
|
65
|
-
value: {
|
|
66
|
-
type: (ArrayConstructor | StringConstructor)[];
|
|
67
|
-
};
|
|
68
|
-
}>> & {
|
|
69
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
options: unknown[];
|
|
72
|
-
labelField: string;
|
|
73
|
-
valueField: string;
|
|
74
|
-
lazyRequest: boolean;
|
|
75
|
-
requestCache: boolean;
|
|
76
|
-
}>;
|
|
77
|
-
import vue_2 = require("vue");
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const SEARCH_CASCADER: vue_2.DefineComponent<{
|
|
3
|
-
options: {
|
|
4
|
-
type: ArrayConstructor;
|
|
5
|
-
default: () => never[];
|
|
6
|
-
};
|
|
7
|
-
depth: {
|
|
8
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
9
|
-
};
|
|
10
|
-
urlConfig: {
|
|
11
|
-
type: ObjectConstructor;
|
|
12
|
-
};
|
|
13
|
-
lazyRequest: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
requestCache: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
onFocus: {
|
|
22
|
-
type: FunctionConstructor;
|
|
23
|
-
};
|
|
24
|
-
filterable: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
checkStrategy: {
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
labelField: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
valueField: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
onChange: {};
|
|
41
|
-
value: {};
|
|
42
|
-
}, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
|
|
43
|
-
options: {
|
|
44
|
-
type: ArrayConstructor;
|
|
45
|
-
default: () => never[];
|
|
46
|
-
};
|
|
47
|
-
depth: {
|
|
48
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
49
|
-
};
|
|
50
|
-
urlConfig: {
|
|
51
|
-
type: ObjectConstructor;
|
|
52
|
-
};
|
|
53
|
-
lazyRequest: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
requestCache: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
onFocus: {
|
|
62
|
-
type: FunctionConstructor;
|
|
63
|
-
};
|
|
64
|
-
filterable: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
checkStrategy: {
|
|
69
|
-
type: StringConstructor;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
labelField: {
|
|
73
|
-
type: StringConstructor;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
valueField: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
onChange: {};
|
|
81
|
-
value: {};
|
|
82
|
-
}>> & {
|
|
83
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
options: unknown[];
|
|
86
|
-
checkStrategy: string;
|
|
87
|
-
labelField: string;
|
|
88
|
-
valueField: string;
|
|
89
|
-
lazyRequest: boolean;
|
|
90
|
-
requestCache: boolean;
|
|
91
|
-
filterable: boolean;
|
|
92
|
-
}>;
|
|
93
|
-
import vue_2 = require("vue");
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const IhoTableUtils: Readonly<{
|
|
3
|
-
getCellType: (lowCodeField: any) => any;
|
|
4
|
-
}>;
|
|
5
|
-
export const IhoTableRenderHelper: Readonly<{
|
|
6
|
-
createDefaultRenderCell: typeof createDefaultRenderCell;
|
|
7
|
-
createRenderEdit: typeof createRenderEdit;
|
|
8
|
-
isEditableColumn: (config: any, column: any) => any;
|
|
9
|
-
hasFilter: (lowCodeField: any) => boolean;
|
|
10
|
-
hasDateFiler: (lowCodeField: any) => any;
|
|
11
|
-
}>;
|
|
12
|
-
export const IhoTableStatusHelper: Readonly<{
|
|
13
|
-
isPositive: (value: any) => boolean;
|
|
14
|
-
isNegative: (value: any) => boolean;
|
|
15
|
-
notPositive: (value: any) => boolean;
|
|
16
|
-
notNegative: (value: any) => boolean;
|
|
17
|
-
}>;
|
|
18
|
-
export function createIhoTableClearActivedInterceptor(type: any, solution: any): (_a: any) => boolean;
|
|
19
|
-
export function IhoTableLog(message: any): void;
|
|
20
|
-
export function IhoTableWarn(message: any): void;
|
|
21
|
-
export function getRowHeight(): number;
|
|
22
|
-
export function eventListener2EventName(eventListenerName: any): string;
|
|
23
|
-
export function eventName2EventListener(eventName: any): string;
|
|
24
|
-
export function useUUIDMap(creator: any, isReactive: any): {
|
|
25
|
-
getItemFromUUID: (uuid: any) => any;
|
|
26
|
-
setItemFromUUID: (uuid: any, value: any) => void;
|
|
27
|
-
removeItemFromUUID: (uuid: any) => void;
|
|
28
|
-
};
|
|
29
|
-
export function getColumnRenderWidth(column: any, $table: any): any;
|
|
30
|
-
export function useIhoTableFormEvent(payload: any): {
|
|
31
|
-
emitFormChange: () => void;
|
|
32
|
-
emitFormClick: () => void;
|
|
33
|
-
emitFormChangeWithParams: (params: any) => void;
|
|
34
|
-
emitFormClickWithParams: (params: any) => void;
|
|
35
|
-
};
|
|
36
|
-
export function getLowCodeFieldFromField(field: any): any;
|
|
37
|
-
declare function createDefaultRenderCell(): (_: any, _a: any) => any[];
|
|
38
|
-
declare function createRenderEdit(renderer: any): (_a: any, params: any) => any;
|
|
39
|
-
export function isTransformTreeType(config: any): boolean;
|
|
40
|
-
export function isRichContent(content: any): boolean;
|
|
41
|
-
export function parseRichContent(richContent: any): any;
|
|
42
|
-
export function parseMergeField(row: any, column: any): any;
|
|
43
|
-
export function isCompatibleColumn(field: any): any;
|
|
44
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
declare const _default: vue_1.DefineComponent<{
|
|
3
|
-
form: {
|
|
4
|
-
type: ObjectConstructor;
|
|
5
|
-
default: () => void;
|
|
6
|
-
};
|
|
7
|
-
item: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
default: () => void;
|
|
10
|
-
};
|
|
11
|
-
isLock: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
-
form: {
|
|
17
|
-
type: ObjectConstructor;
|
|
18
|
-
default: () => void;
|
|
19
|
-
};
|
|
20
|
-
item: {
|
|
21
|
-
type: ObjectConstructor;
|
|
22
|
-
default: () => void;
|
|
23
|
-
};
|
|
24
|
-
isLock: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
}>> & {
|
|
29
|
-
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
item: Record<string, any>;
|
|
32
|
-
isLock: boolean;
|
|
33
|
-
form: Record<string, any>;
|
|
34
|
-
}>;
|
|
35
|
-
export default _default;
|
|
36
|
-
import vue_1 = require("vue");
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
declare const _default: vue_1.DefineComponent<{
|
|
3
|
-
form: {
|
|
4
|
-
type: ObjectConstructor;
|
|
5
|
-
default: () => {};
|
|
6
|
-
};
|
|
7
|
-
item: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
default: () => {};
|
|
10
|
-
};
|
|
11
|
-
isLock: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
-
form: {
|
|
17
|
-
type: ObjectConstructor;
|
|
18
|
-
default: () => {};
|
|
19
|
-
};
|
|
20
|
-
item: {
|
|
21
|
-
type: ObjectConstructor;
|
|
22
|
-
default: () => {};
|
|
23
|
-
};
|
|
24
|
-
isLock: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
}>> & {
|
|
29
|
-
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
item: Record<string, any>;
|
|
32
|
-
isLock: boolean;
|
|
33
|
-
form: Record<string, any>;
|
|
34
|
-
}>;
|
|
35
|
-
export default _default;
|
|
36
|
-
import vue_1 = require("vue");
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
declare const _default: vue_1.DefineComponent<{
|
|
3
|
-
title: {
|
|
4
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
changeSize: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
default: boolean;
|
|
10
|
-
};
|
|
11
|
-
closable: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
modalWidth: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
modalHeight: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
handleOk: {
|
|
24
|
-
type: FunctionConstructor;
|
|
25
|
-
default: () => {};
|
|
26
|
-
};
|
|
27
|
-
cancel: {
|
|
28
|
-
type: FunctionConstructor;
|
|
29
|
-
default: () => {};
|
|
30
|
-
};
|
|
31
|
-
visible: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("update:visible" | "onClose")[], "onClose" | "update:visible", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
36
|
-
title: {
|
|
37
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
changeSize: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
closable: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
modalWidth: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
modalHeight: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
handleOk: {
|
|
57
|
-
type: FunctionConstructor;
|
|
58
|
-
default: () => {};
|
|
59
|
-
};
|
|
60
|
-
cancel: {
|
|
61
|
-
type: FunctionConstructor;
|
|
62
|
-
default: () => {};
|
|
63
|
-
};
|
|
64
|
-
visible: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
}>> & {
|
|
69
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
70
|
-
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
closable: boolean;
|
|
73
|
-
title: string | Function;
|
|
74
|
-
visible: boolean;
|
|
75
|
-
modalWidth: string;
|
|
76
|
-
modalHeight: string;
|
|
77
|
-
handleOk: Function;
|
|
78
|
-
cancel: Function;
|
|
79
|
-
changeSize: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
export default _default;
|
|
82
|
-
import vue_1 = require("vue");
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const SearchMenu: vue_1.DefineComponent<{
|
|
3
|
-
childKey: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
options: {
|
|
8
|
-
type: ArrayConstructor;
|
|
9
|
-
default: () => never[];
|
|
10
|
-
};
|
|
11
|
-
labelKey: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
valueKey: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
currentNode: {
|
|
20
|
-
type: ObjectConstructor;
|
|
21
|
-
};
|
|
22
|
-
cursorNode: {
|
|
23
|
-
type: ObjectConstructor;
|
|
24
|
-
};
|
|
25
|
-
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
26
|
-
childKey: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
options: {
|
|
31
|
-
type: ArrayConstructor;
|
|
32
|
-
default: () => never[];
|
|
33
|
-
};
|
|
34
|
-
labelKey: {
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
valueKey: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
currentNode: {
|
|
43
|
-
type: ObjectConstructor;
|
|
44
|
-
};
|
|
45
|
-
cursorNode: {
|
|
46
|
-
type: ObjectConstructor;
|
|
47
|
-
};
|
|
48
|
-
}>> & {
|
|
49
|
-
onNodeClick?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
onChangeCursor?: ((...args: any[]) => any) | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
options: unknown[];
|
|
53
|
-
valueKey: string;
|
|
54
|
-
childKey: string;
|
|
55
|
-
labelKey: string;
|
|
56
|
-
}>;
|
|
57
|
-
import vue_1 = require("vue");
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export const __esModule: true;
|
|
2
|
-
export const SearchMenu: vue_1.DefineComponent<{
|
|
3
|
-
childKey: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
options: {
|
|
8
|
-
type: ArrayConstructor;
|
|
9
|
-
default: () => never[];
|
|
10
|
-
};
|
|
11
|
-
labelKey: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
valueKey: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
currentNode: {
|
|
20
|
-
type: ObjectConstructor;
|
|
21
|
-
};
|
|
22
|
-
cursorNode: {
|
|
23
|
-
type: ObjectConstructor;
|
|
24
|
-
};
|
|
25
|
-
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
26
|
-
childKey: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
options: {
|
|
31
|
-
type: ArrayConstructor;
|
|
32
|
-
default: () => never[];
|
|
33
|
-
};
|
|
34
|
-
labelKey: {
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
valueKey: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
currentNode: {
|
|
43
|
-
type: ObjectConstructor;
|
|
44
|
-
};
|
|
45
|
-
cursorNode: {
|
|
46
|
-
type: ObjectConstructor;
|
|
47
|
-
};
|
|
48
|
-
}>> & {
|
|
49
|
-
onNodeClick?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
onChangeCursor?: ((...args: any[]) => any) | undefined;
|
|
51
|
-
}, {
|
|
52
|
-
options: unknown[];
|
|
53
|
-
valueKey: string;
|
|
54
|
-
childKey: string;
|
|
55
|
-
labelKey: string;
|
|
56
|
-
}>;
|
|
57
|
-
import vue_1 = require("vue");
|