cnhis-design-vue 3.1.48-release.4 → 3.1.48-release.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-reader-sdk/src/constants/index.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +4 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
- package/es/components/iho-table/src/utils/index.d.ts +2 -2
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/index.d.ts +1 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -0
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-address.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-state.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +18 -4
- package/es/components/scale-view/src/utils/judge-types.d.ts +1 -1
- package/es/components/scale-view/src/utils/judge-types.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/index.d.ts +14 -0
- package/es/components/select-label/src/SelectLabel.vue.d.ts +14 -0
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isFunction as a}from"lodash-es";import{TRANS_CMD as e}from"./constants/index.js";import t from"./insuranceSDK.js";import{ReadHealthCard as r}from"./utils/readHealthCard.js";let s=null;const n=class{constructor(a){if(this.options=a,this.loading=!1,this.readHealthCardDialog=new r,s)return s;s=this,this.insurance=new t}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}destroy(){this.insurance.destroy()}createParams(a,e,t){var r,s;const{operatorname:n,operatorcode:i,...o}=this.basicParamsRes||{};return{transcmd:a,operatorname:null!=(r=e.operatorname)?r:n,operatorcode:null!=(s=e.operatorcode)?s:i,...o,...t}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const e=await a;return 3===e.returncode||"3"===e.returncode?Promise.reject(`${e.returnmsg||"操作失败"}`):e.returndata}finally{this.loading=!1}}async readHealthCard(a,e){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...e})}async readIdCard(a={}){await this.checkLoading();const t=this.createParams(e.ID_CARD_READ,a,{transtype:"IDCARD",interfaceid:"0",transdata:{readtype:"2"}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async readMemberCard(a={}){await this.checkLoading();const t=this.createParams(e.MEMBER_CARD_READ,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",transdata:{readtype:"1"}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async writeMemberCard(a={}){await this.checkLoading();const t=this.createParams(e.MEMBER_CARD_WRITE,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0"});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async readInsuranceCard(a={}){var t,r;await this.checkLoading();const s=this.createParams(e.NS_GETPERSONALINFO,a,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{...(null==(t=a.transdata)?void 0:t.iar1)||{acf01:"0",iak22:"0"}},personinfo:{...(null==(r=a.transdata)?void 0:r.personinfo)||{location:0,ownpay:"0"}}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(s))}async generalRequest(a={}){await this.checkLoading();const t=this.createParams(e.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}};let i=n;i.version=1,i.TRANS_CMD=e;export{i as default};
|
|
1
|
+
import{isFunction as a}from"lodash-es";import{TRANS_CMD as e}from"./constants/index.js";import t from"./insuranceSDK.js";import{ReadHealthCard as r}from"./utils/readHealthCard.js";let s=null;const n=class{constructor(a){if(this.options=a,this.loading=!1,this.readHealthCardDialog=new r,s)return s;s=this,this.insurance=new t}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}destroy(){this.insurance.destroy()}createParams(a,e,t){var r,s;const{operatorname:n,operatorcode:i,...o}=this.basicParamsRes||{};return{transcmd:a,operatorname:null!=(r=e.operatorname)?r:n,operatorcode:null!=(s=e.operatorcode)?s:i,...o,...t}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const e=await a;return 3===e.returncode||"3"===e.returncode?Promise.reject(`${e.returnmsg||"操作失败"}`):e.returndata}finally{this.loading=!1}}async readHealthCard(a,e){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...e})}async readIdCard(a={}){await this.checkLoading();const t=this.createParams(e.ID_CARD_READ,a,{transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"2",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async readMemberCard(a={}){await this.checkLoading();const t=this.createParams(e.MEMBER_CARD_READ,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async writeMemberCard(a={}){await this.checkLoading();const t=this.createParams(e.MEMBER_CARD_WRITE,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async readInsuranceCard(a={}){var t,r;await this.checkLoading();const s=this.createParams(e.NS_GETPERSONALINFO,a,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{...(null==(t=a.transdata)?void 0:t.iar1)||{acf01:"0",iak22:"0"}},personinfo:{...(null==(r=a.transdata)?void 0:r.personinfo)||{location:0,ownpay:"0"}}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(s))}async generalRequest(a={}){await this.checkLoading();const t=this.createParams(e.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}};let i=n;i.version=1,i.TRANS_CMD=e;export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _=(_=>(_[_.NS_OUT_CHECKOUT_MODE=100003]="NS_OUT_CHECKOUT_MODE",_[_.NS_TEST_TIME=100005]="NS_TEST_TIME",_[_.NS_DOWNLOAD_CATELOG=100203]="NS_DOWNLOAD_CATELOG",_[_.NS_UPLOAD_MATCH_INFO=100204]="NS_UPLOAD_MATCH_INFO",_[_.NS_UPLOAD_MATCH_INFO_UNDO=100205]="NS_UPLOAD_MATCH_INFO_UNDO",_[_.NS_DOWNLOAD_MATCH_INFO=100206]="NS_DOWNLOAD_MATCH_INFO",_[_.NS_DOWNLOAD_DIS=100207]="NS_DOWNLOAD_DIS",_[_.NS_DOWNLOAD_DICT=100208]="NS_DOWNLOAD_DICT",_[_.NS_VERIFICATION_OF_ACCOUNT=100209]="NS_VERIFICATION_OF_ACCOUNT",_[_.NS_UPLOAD_HOSITEM=100201]="NS_UPLOAD_HOSITEM",_[_.NS_UPLOAD_HOSITEM_UNDO=100202]="NS_UPLOAD_HOSITEM_UNDO",_[_.NS_GETPERSONALINFO=100210]="NS_GETPERSONALINFO",_[_.NS_CUSTOMSEARCH_CENTERINFO=100211]="NS_CUSTOMSEARCH_CENTERINFO",_[_.NS_YBINFOQIERUMGR=100212]="NS_YBINFOQIERUMGR",_[_.NS_OUTPT_REGISTER=100401]="NS_OUTPT_REGISTER",_[_.NS_OUTPT_REGISTER_UNDO=100403]="NS_OUTPT_REGISTER_UNDO",_[_.NS_OUTPT_REGISTER_SUCCESS=100411]="NS_OUTPT_REGISTER_SUCCESS",_[_.NS_OUTPT_REGISTER_ERROR=100412]="NS_OUTPT_REGISTER_ERROR",_[_.NS_OUTPT_CHECKOUT_BEFORE=100406]="NS_OUTPT_CHECKOUT_BEFORE",_[_.NS_OUTPT_CHECKOUT=100407]="NS_OUTPT_CHECKOUT",_[_.NS_OUTPT_REFUND=100408]="NS_OUTPT_REFUND",_[_.NS_OUTPT_CHECKOUT_SUCCESS=100409]="NS_OUTPT_CHECKOUT_SUCCESS",_[_.NS_OUTPT_CHECKOUT_ERROR=100410]="NS_OUTPT_CHECKOUT_ERROR",_[_.NS_OUTPT_REFUND_SUCCESS=100413]="NS_OUTPT_REFUND_SUCCESS",_[_.NS_OUTPT_REFUND_ERROR=100414]="NS_OUTPT_REFUND_ERROR",_[_.NS_OUTPT_CHECKOUT_PAY_CONFIRM=100415]="NS_OUTPT_CHECKOUT_PAY_CONFIRM",_[_.NS_OUT_UNPOST_CHECKOUT_REC_HANDLE=100416]="NS_OUT_UNPOST_CHECKOUT_REC_HANDLE",_[_.NS_INPT_REGISTER=100601]="NS_INPT_REGISTER",_[_.NS_INPT_REGISTER_UNDO=100603]="NS_INPT_REGISTER_UNDO",_[_.NS_INPT_UPLOAD_FEEITEM=100604]="NS_INPT_UPLOAD_FEEITEM",_[_.NS_INPT_TO_OWNPAY=100605]="NS_INPT_TO_OWNPAY",_[_.NS_INPT_PRECHECKOUT=100606]="NS_INPT_PRECHECKOUT",_[_.NS_INPT_REUPLOAD_FEEITEM=100607]="NS_INPT_REUPLOAD_FEEITEM",_[_.NS_INPT_DOWNLOAD_FEEITEM=100608]="NS_INPT_DOWNLOAD_FEEITEM",_[_.NS_INPT_DELETE_FEEITEM=100609]="NS_INPT_DELETE_FEEITEM",_[_.NS_INPT_CLEAR_FEEITEM=100610]="NS_INPT_CLEAR_FEEITEM",_[_.NS_INPT_CHECKOUT=100613]="NS_INPT_CHECKOUT",_[_.NS_INPT_CHECKOUT_CANCEL=100614]="NS_INPT_CHECKOUT_CANCEL",_[_.NS_INPT_UPLOAD_ORDERS=100611]="NS_INPT_UPLOAD_ORDERS",_[_.NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD=100612]="NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD",_[_.NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST=100616]="NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST",_[_.NS_INPT_MANAGE_EXTEND_METHOD=100617]="NS_INPT_MANAGE_EXTEND_METHOD",_[_.NS_INPT_UPLOAD_MEDICALRECORD_UNDO=100618]="NS_INPT_UPLOAD_MEDICALRECORD_UNDO",_[_.NS_INPT_PREPAYMEN=100619]="NS_INPT_PREPAYMEN",_[_.NS_INPT_PREPAYMEN_SUCCESS=100620]="NS_INPT_PREPAYMEN_SUCCESS",_[_.NS_INPT_PREPAYMEN_ERROR=100621]="NS_INPT_PREPAYMEN_ERROR",_[_.NS_INPT_PREPAYMEN_REFUND=100622]="NS_INPT_PREPAYMEN_REFUND",_[_.NS_INPT_PREPAYMEN_REFUND_SUCCESS=100623]="NS_INPT_PREPAYMEN_REFUND_SUCCESS",_[_.NS_INPT_PREPAYMEN_REFUND_ERROR=100624]="NS_INPT_PREPAYMEN_REFUND_ERROR",_[_.MEMBER_CARD_READ=110021]="MEMBER_CARD_READ",_[_.MEMBER_CARD_WRITE=110022]="MEMBER_CARD_WRITE",_[_.MEMBER_CARD_READER_RESET=110023]="MEMBER_CARD_READER_RESET",_[_.ID_CARD_READ=110041]="ID_CARD_READ",_[_.ID_CARD_READER_RESET=110042]="ID_CARD_READER_RESET",_[_.FAST_REPORT_OR_POS=1e5]="FAST_REPORT_OR_POS",_))(_||{});const E=Object.freeze({interfaceid:"0",transcmd:100210,transtype:"YB0000",transchannel:"101",transsystem:"10"
|
|
1
|
+
var _=(_=>(_[_.NS_OUT_CHECKOUT_MODE=100003]="NS_OUT_CHECKOUT_MODE",_[_.NS_TEST_TIME=100005]="NS_TEST_TIME",_[_.NS_DOWNLOAD_CATELOG=100203]="NS_DOWNLOAD_CATELOG",_[_.NS_UPLOAD_MATCH_INFO=100204]="NS_UPLOAD_MATCH_INFO",_[_.NS_UPLOAD_MATCH_INFO_UNDO=100205]="NS_UPLOAD_MATCH_INFO_UNDO",_[_.NS_DOWNLOAD_MATCH_INFO=100206]="NS_DOWNLOAD_MATCH_INFO",_[_.NS_DOWNLOAD_DIS=100207]="NS_DOWNLOAD_DIS",_[_.NS_DOWNLOAD_DICT=100208]="NS_DOWNLOAD_DICT",_[_.NS_VERIFICATION_OF_ACCOUNT=100209]="NS_VERIFICATION_OF_ACCOUNT",_[_.NS_UPLOAD_HOSITEM=100201]="NS_UPLOAD_HOSITEM",_[_.NS_UPLOAD_HOSITEM_UNDO=100202]="NS_UPLOAD_HOSITEM_UNDO",_[_.NS_GETPERSONALINFO=100210]="NS_GETPERSONALINFO",_[_.NS_CUSTOMSEARCH_CENTERINFO=100211]="NS_CUSTOMSEARCH_CENTERINFO",_[_.NS_YBINFOQIERUMGR=100212]="NS_YBINFOQIERUMGR",_[_.NS_OUTPT_REGISTER=100401]="NS_OUTPT_REGISTER",_[_.NS_OUTPT_REGISTER_UNDO=100403]="NS_OUTPT_REGISTER_UNDO",_[_.NS_OUTPT_REGISTER_SUCCESS=100411]="NS_OUTPT_REGISTER_SUCCESS",_[_.NS_OUTPT_REGISTER_ERROR=100412]="NS_OUTPT_REGISTER_ERROR",_[_.NS_OUTPT_CHECKOUT_BEFORE=100406]="NS_OUTPT_CHECKOUT_BEFORE",_[_.NS_OUTPT_CHECKOUT=100407]="NS_OUTPT_CHECKOUT",_[_.NS_OUTPT_REFUND=100408]="NS_OUTPT_REFUND",_[_.NS_OUTPT_CHECKOUT_SUCCESS=100409]="NS_OUTPT_CHECKOUT_SUCCESS",_[_.NS_OUTPT_CHECKOUT_ERROR=100410]="NS_OUTPT_CHECKOUT_ERROR",_[_.NS_OUTPT_REFUND_SUCCESS=100413]="NS_OUTPT_REFUND_SUCCESS",_[_.NS_OUTPT_REFUND_ERROR=100414]="NS_OUTPT_REFUND_ERROR",_[_.NS_OUTPT_CHECKOUT_PAY_CONFIRM=100415]="NS_OUTPT_CHECKOUT_PAY_CONFIRM",_[_.NS_OUT_UNPOST_CHECKOUT_REC_HANDLE=100416]="NS_OUT_UNPOST_CHECKOUT_REC_HANDLE",_[_.NS_INPT_REGISTER=100601]="NS_INPT_REGISTER",_[_.NS_INPT_REGISTER_UNDO=100603]="NS_INPT_REGISTER_UNDO",_[_.NS_INPT_UPLOAD_FEEITEM=100604]="NS_INPT_UPLOAD_FEEITEM",_[_.NS_INPT_TO_OWNPAY=100605]="NS_INPT_TO_OWNPAY",_[_.NS_INPT_PRECHECKOUT=100606]="NS_INPT_PRECHECKOUT",_[_.NS_INPT_REUPLOAD_FEEITEM=100607]="NS_INPT_REUPLOAD_FEEITEM",_[_.NS_INPT_DOWNLOAD_FEEITEM=100608]="NS_INPT_DOWNLOAD_FEEITEM",_[_.NS_INPT_DELETE_FEEITEM=100609]="NS_INPT_DELETE_FEEITEM",_[_.NS_INPT_CLEAR_FEEITEM=100610]="NS_INPT_CLEAR_FEEITEM",_[_.NS_INPT_CHECKOUT=100613]="NS_INPT_CHECKOUT",_[_.NS_INPT_CHECKOUT_CANCEL=100614]="NS_INPT_CHECKOUT_CANCEL",_[_.NS_INPT_UPLOAD_ORDERS=100611]="NS_INPT_UPLOAD_ORDERS",_[_.NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD=100612]="NS_INPT_UPLOAD_FRONTSHEET_OF_MEDICALRECORD",_[_.NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST=100616]="NS_GET_INPT_MANAGE_EXTEND_METHOD_LIST",_[_.NS_INPT_MANAGE_EXTEND_METHOD=100617]="NS_INPT_MANAGE_EXTEND_METHOD",_[_.NS_INPT_UPLOAD_MEDICALRECORD_UNDO=100618]="NS_INPT_UPLOAD_MEDICALRECORD_UNDO",_[_.NS_INPT_PREPAYMEN=100619]="NS_INPT_PREPAYMEN",_[_.NS_INPT_PREPAYMEN_SUCCESS=100620]="NS_INPT_PREPAYMEN_SUCCESS",_[_.NS_INPT_PREPAYMEN_ERROR=100621]="NS_INPT_PREPAYMEN_ERROR",_[_.NS_INPT_PREPAYMEN_REFUND=100622]="NS_INPT_PREPAYMEN_REFUND",_[_.NS_INPT_PREPAYMEN_REFUND_SUCCESS=100623]="NS_INPT_PREPAYMEN_REFUND_SUCCESS",_[_.NS_INPT_PREPAYMEN_REFUND_ERROR=100624]="NS_INPT_PREPAYMEN_REFUND_ERROR",_[_.MEMBER_CARD_READ=110021]="MEMBER_CARD_READ",_[_.MEMBER_CARD_WRITE=110022]="MEMBER_CARD_WRITE",_[_.MEMBER_CARD_READER_RESET=110023]="MEMBER_CARD_READER_RESET",_[_.ID_CARD_READ=110041]="ID_CARD_READ",_[_.ID_CARD_READER_RESET=110042]="ID_CARD_READER_RESET",_[_.FAST_REPORT_OR_POS=1e5]="FAST_REPORT_OR_POS",_))(_||{});const E=Object.freeze({interfaceid:"0",transcmd:100210,transtype:"YB0000",transchannel:"101",transsystem:"10"}),N="http://127.0.0.1:8031/HOInterfaceSvr";export{E as CONFIG_MAP,N as INSURANCE_URL,_ as TRANS_CMD};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsonParse as e}from"../../../shared/utils/index.js";import s from"axios";import{isString as t}from"lodash-es";import{INSURANCE_URL as
|
|
1
|
+
import{jsonParse as e}from"../../../shared/utils/index.js";import s from"axios";import{isString as t,omit as r}from"lodash-es";import{INSURANCE_URL as i,CONFIG_MAP as n,TRANS_CMD as a}from"./constants/index.js";import{insuranceLog as o,getDataMessageByData as l,getErrorMessageByType as d,getTranstime as u,getSerialNumber as c}from"./utils/index.js";var m;class h{constructor(e){var s,t;this.webview=null==(m=window.chrome)?void 0:m.webview,this.requestParams=null,this.currentMessageHandler=null,this.messageHandlerQueue=[],(null==e?void 0:e.selfWindow)&&(this.webview=null==(t=null==(s=null==e?void 0:e.selfWindow)?void 0:s.chrome)?void 0:t.webview),this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler))}messageHandler(s){const r=this.messageHandlerQueue.shift();if(!r)return Promise.reject(o("当前回执",s,"没有可用的handler"));const{resolve:i,reject:n,transcmd:a}=r,l=t(s.data)?e(s.data)||{}:s.data;if(!l||!["hisyb","login"].includes(l.exec))return n(o("当前回执不是hisyb消息"));const{transcmd:d}=l.res||{};if(a&&d&&`${a}`!=`${d}`)return n(o("交易命令不相等,当前transcmd",a,"返回transcmd",d));i(l)}async postMessage(s){return this.webview&&s?new Promise(((t,r)=>{var i;this.messageHandlerQueue.push({resolve:t,reject:r,transcmd:null==(i=e(s.data))?void 0:i.transcmd}),this.webview.postMessage(s)})).then((e=>e&&e.result&&e.exec===s.exec?e:Promise.reject())):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=null)}login(){var e,s;return this.postMessage({exec:"login",data:null!=(s=null==(e=this.requestParams)?void 0:e.loginCode)?s:"7777"})}async HOInterfaceSvr(e){const{transcmd:t,needLogin:n}=this.requestParams||{};try{if(this.webview){n&&await this.login();return(await this.postMessage({exec:"hisyb",data:JSON.stringify(r(e,["needLogin"]))})).res}const t=await s.post(i,JSON.stringify(r(e,["needLogin"])));return l(t.data)}catch(e){return Promise.reject(d(t))}}initConfig(e){this.requestParams=Object.assign({},n,e)}initParams(){var e,s;return{...this.requestParams,transcmd:null!=(s=null==(e=this.requestParams)?void 0:e.transcmd)?s:a.NS_GETPERSONALINFO,transtime:u(),serialnumber:c()}}getInsuranceInfoPromise(e){return this.initConfig(e),this.HOInterfaceSvr(this.initParams())}}export{h as default};
|
|
@@ -26,6 +26,10 @@ export declare const REMOTE_SEARCH: import("vue").DefineComponent<{
|
|
|
26
26
|
type: PropType<UrlConfig>;
|
|
27
27
|
};
|
|
28
28
|
onChange: {};
|
|
29
|
+
useLoading: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
29
33
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
34
|
value: {
|
|
31
35
|
type: PropType<String | null>;
|
|
@@ -51,6 +55,10 @@ export declare const REMOTE_SEARCH: import("vue").DefineComponent<{
|
|
|
51
55
|
type: PropType<UrlConfig>;
|
|
52
56
|
};
|
|
53
57
|
onChange: {};
|
|
58
|
+
useLoading: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
54
62
|
}>> & {
|
|
55
63
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
56
64
|
}, {
|
|
@@ -59,4 +67,5 @@ export declare const REMOTE_SEARCH: import("vue").DefineComponent<{
|
|
|
59
67
|
valueField: string;
|
|
60
68
|
requestCache: boolean;
|
|
61
69
|
allowCreate: boolean;
|
|
70
|
+
useLoading: boolean;
|
|
62
71
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,computed as a,inject as u,watch as o,createVNode as
|
|
1
|
+
import{defineComponent as e,ref as l,computed as a,inject as u,watch as o,createVNode as n}from"vue";import{connect as t,mapProps as r}from"@formily/vue";import{useVModel as i,useDebounceFn as v}from"@vueuse/core";import{isString as s,isArray as p,cloneDeep as m,isEqual as d}from"lodash-es";import{NSelect as f,NSpin as c,NEmpty as y}from"naive-ui";import"../../../index.js";import{InjectionAsyncQueue as g,InjectionChangeContextCollector as C,InjectionFormItemDepsCollector as h}from"../../constants/index.js";import{createUrlConfigParams as j,formRenderLog as F}from"../../utils/index.js";import{useCommonInjection as x,useSelectOptionProps as b}from"../../hooks/useCommonInjection.js";import{assignUpdateValue as w,assignClearBindVisited as K,createVisitedSetter as S}from"../../utils/schema.js";import{useFormField as k}from"../../hooks/useFormField.js";const B=t(e({name:"FormRemoteSearch",props:{value:{type:String},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},allowCreate:Boolean,labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},urlConfig:{type:Object},onChange:{},useLoading:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{slots:t,emit:r}){const w=i(e,"value",r),{field:K,fieldKey:B}=k(),V=l(null),q=a((()=>{var l,a,u;return null!=(u=null!=(a=null==(l=e.urlConfig)?void 0:l.nameKey)?a:e.labelField)?u:"text"})),A=a((()=>{var l,a,u;return null!=(u=null!=(a=null==(l=e.urlConfig)?void 0:l.valueKey)?a:e.valueField)?u:"value"})),L=u(g),O=l(""),P=l(!1),U=v((async(l="",a="label")=>{if(O.value=l,!e.urlConfig)return V.value=null;try{P.value=!0,V.value=[],V.value=await L.addAsync(await j({config:{...e.urlConfig,params:{...e.urlConfig.params,["value"===a?A.value:"keyword"]:l}},cache:e.requestCache,field:K.value}))}catch(e){s(e)&&F(e)}finally{P.value=!1}})),D=a((()=>p(V.value)?V.value:p(e.options)?e.options:[])),{injectValueValidate:I,injectValueBindKey:R}=x();I(w);const z=R(w);o(w,(e=>{if(e&&!D.value.find((l=>l[A.value]===e)))return U(e,"value")}));u(C).setContext(B.value,(e=>{return{currentOption:m((l=e,D.value.find((e=>e[A.value]===l))))};var l}));const E=u(h);o((()=>e.urlConfig),((e,l)=>{d(e,l)||(V.value=null,e&&(E.setDeps(B.value,e.dependKey||[],(async()=>{V.value=null,w.value=null})),w.value&&U(w.value,"value")))}),{immediate:!0});const{menuProps:G,nodeProps:H}=b(),J=a((()=>D.value.length||!e.allowCreate?D.value:O.value?[{[q.value]:O.value,[A.value]:O.value},...D.value]:D.value));async function M(e){P.value=e,e&&U()}return()=>n(f,{remote:!0,filterable:!0,key:z.value,value:w.value,"onUpdate:value":e=>w.value=e,labelField:q.value,valueField:A.value,"menu-props":G,"node-props":H,onSearch:U,"onUpdate:show":M,options:J.value,onFocus:S(K)},{empty:()=>e.useLoading&&P.value?n(c,null,null):n(y,{description:"无数据"},null),...t})}}),r(w,K));export{B as REMOTE_SEARCH};
|
|
@@ -86,6 +86,10 @@ export declare const SELECT: import("vue").DefineComponent<{
|
|
|
86
86
|
type: BooleanConstructor;
|
|
87
87
|
default: boolean;
|
|
88
88
|
};
|
|
89
|
+
useLoading: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
89
93
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "postRecommend")[], "update:value" | "postRecommend", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
90
94
|
value: {
|
|
91
95
|
type: PropType<ArrayAble<string | number> | null>;
|
|
@@ -169,6 +173,10 @@ export declare const SELECT: import("vue").DefineComponent<{
|
|
|
169
173
|
type: BooleanConstructor;
|
|
170
174
|
default: boolean;
|
|
171
175
|
};
|
|
176
|
+
useLoading: {
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
default: boolean;
|
|
179
|
+
};
|
|
172
180
|
}>> & {
|
|
173
181
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
174
182
|
onPostRecommend?: ((...args: any[]) => any) | undefined;
|
|
@@ -183,5 +191,6 @@ export declare const SELECT: import("vue").DefineComponent<{
|
|
|
183
191
|
commonNum: number;
|
|
184
192
|
recentNum: number;
|
|
185
193
|
allowCreate: boolean;
|
|
194
|
+
useLoading: boolean;
|
|
186
195
|
shouldSave: boolean;
|
|
187
196
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as o,inject as t,useAttrs as l,
|
|
1
|
+
import{defineComponent as e,computed as o,inject as t,useAttrs as l,ref as a,createVNode as r,mergeProps as n,toRaw as s}from"vue";import{arrayed as u}from"../../../../../shared/utils/index.js";import{cloneDeep as i,isArray as p,isString as m,isObject as d,omit as c}from"lodash-es";import{useCommonInjection as v,useSelectOptionProps as f}from"../../hooks/useCommonInjection.js";import{useComplexOptions as y,useComplexOptionsSpan as h}from"../../hooks/useComplexOptions.js";import{InjectionChangeContextCollector as j,InjectionFormUUID as b}from"../../constants/index.js";import"../../../index.js";import"@formily/core";import"@formily/path";import"@vue/shared";import"@vueuse/core";import"date-fns";import{assignUpdateValue as S,assignClearBindVisited as k,createVisitedSetter as C}from"../../utils/schema.js";import{useFormField as g}from"../../hooks/useFormField.js";import{NSelect as F}from"naive-ui";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../hooks/useFormValidator.js";import{connect as x,mapProps as B}from"@formily/vue";import"./index.js";import{useUrlConfigOptions as O,useAutographOptions as A,useRecommendOptions as H,searchContentMatcher as w}from"../../hooks/useFormRenderOptions.js";const L=x(e({name:"FormSelect",props:{value:{type:[String,Array,Number]},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},onChange:{},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},allowCreate:Boolean,shouldSave:Boolean,urlConfig:{type:Object},autograph:{type:String},wordbook:{type:Object},recommend:{type:Boolean,default:!1},commonList:{type:Array},recentList:{type:Array},getRecommendInfo:{type:Function},commonNum:{type:Number,default:10},recentNum:{type:Number,default:10},recommendCache:{type:Boolean,default:!1},useLoading:{type:Boolean,default:!0}},emits:["update:value","postRecommend"],setup(e,{slots:S,emit:k}){const x=o({get:()=>e.value,async set(e){k("update:value",e),E(e)}}),{labelKey:B,valueKey:L,fetchData:K,searchContent:P,fullOptions:R,filterOptions:V,remoteOptions:_,loading:N}=e.urlConfig?O(e,x):A(e,x),{renderComplexOption:I,hasComplexOption:W}=y(e,x),{getRecommend:q,postRecommend:E,sortedOptions:U}=H(e,V,k,B,L),{field:z,fieldKey:D}=g();t(j).setContext(D.value,(e=>({currentOption:i(function(e){const o=$(R.value);return p(e)?function(e){const t=o.reduce(((e,o)=>(e[o[L.value]]=o,e)),{});return e.map((e=>t[e]))}(e):(t=e,o.find((e=>e[L.value]===t)));var t}(e))})));const G=async(e="")=>(P.value=e,Promise.allSettled([K(e),q(e)])),{injectValueValidate:J,injectValueWatchFromEmpty:M,injectValueBindKey:Q}=v();M(x,G),J(x);const T=Q(x),{menuProps:X,nodeProps:Y}=f();function Z(e){const o=e[B.value];if(!o||!m(o))return"";const t=P.value?w(P.value,o):null;return t?r("section",null,[t.map(((e,o)=>0!==o&&e?r("span",{style:{color:o%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):o}function $(o){return e.allowCreate&&P.value&&!o.some((e=>e[B.value]===P.value))?[...o,{[B.value]:P.value,[L.value]:P.value,created:!0,shouldSave:e.shouldSave}]:o}const ee=o((()=>$(U.value))),oe=l(),te=o((()=>{if(e.allowCreate)return x.value;const o=oe.multiple&&p(x.value);return R.value.find((e=>o?x.value.includes(e[L.value]):e[L.value]===x.value))?x.value:null})),le=a(!1);async function ae(e){e&&await G(),le.value=e}function re(e,o){x.value=e,_.value&&o&&u(o).forEach((e=>{if(!d(e))return;const o=e;o.created&&o.shouldSave&&_.value.push(c(s(o),["created","shouldSave"]))}))}const ne=t(b),{getSpan:se}=h();function ue(e){return r(F,n({key:T.value,remote:!0,filterable:!0,loading:N.value,value:te.value,onUpdateValue:re,"menu-props":X,"node-props":Y,labelField:B.value,valueField:L.value,options:ee.value,onSearch:G,show:le.value,"onUpdate:show":ae,onFocus:C(z),renderLabel:Z},e,oe),S)}return()=>{var e,o;if(!W.value)return ue();const t=null!=(o=null==(e=z.value.decoratorProps)?void 0:e.span)?o:6,l=se(ne,z.value.address);return r("section",{class:"form-render__selectChildField",style:{"--column":l+t}},[ue({class:"form-render__selectChildFieldItem",style:{"--form-item-column":t}}),R.value.map((e=>I({option:e,value:x.value,valueKey:L.value,labelKey:B.value,childFieldStrategy:"checked",renderLabel:!1,attrs:{class:"form-render__selectChildFieldItem",style:{"--form-item-column":l}}})))])}}}),B({dataSource:"options"},S,k));export{L as SELECT};
|
|
@@ -25,6 +25,7 @@ export declare function useUrlConfigOptions(props: {
|
|
|
25
25
|
lazyRequest: boolean;
|
|
26
26
|
}, valueRef: Ref): {
|
|
27
27
|
labelKey: import("vue").ComputedRef<string>;
|
|
28
|
+
loading: Ref<boolean>;
|
|
28
29
|
valueKey: import("vue").ComputedRef<string>;
|
|
29
30
|
remoteOptions: Ref<AnyObject[] | null>;
|
|
30
31
|
filterOptions: import("vue").ComputedRef<AnyObject[]>;
|
|
@@ -42,6 +43,7 @@ export declare function useAutographOptions(props: Partial<{
|
|
|
42
43
|
options: AnyObject[];
|
|
43
44
|
}>, valueRef: Ref): {
|
|
44
45
|
labelKey: import("vue").ComputedRef<string>;
|
|
46
|
+
loading: Ref<boolean>;
|
|
45
47
|
remoteOptions: Ref<AnyObject[] | null>;
|
|
46
48
|
valueKey: import("vue").ComputedRef<string>;
|
|
47
49
|
filterOptions: import("vue").ComputedRef<AnyObject[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{checkInSetupEnv as e,jsonParse as n,keywordMatcher as t}from"../../../../shared/utils/index.js";import{useForm as l}from"@formily/vue";import{useMemoize as
|
|
1
|
+
import{checkInSetupEnv as e,jsonParse as n,keywordMatcher as t}from"../../../../shared/utils/index.js";import{useForm as l}from"@formily/vue";import{useMemoize as u}from"@vueuse/core";import{identity as o,uniqBy as r,isEqual as a,isString as i,isArray as c,omit as s,isFunction as v}from"lodash-es";import{computed as m,inject as f,ref as d,watch as y,toRaw as p}from"vue";import"../../index.js";import{InjectionAsyncQueue as h,InjectionFormLifeCycleCaller as g,InjectionFormItemDepsCollector as w}from"../constants/index.js";import{useFormField as k}from"./useFormField.js";import{createUrlConfigParams as b,formRenderLog as C}from"../utils/index.js";import{useFormRequest as R}from"./useFormRequest.js";function O(e,n){const t=d();return m({get:()=>t.value?t.value:e[n],set(e){t.value=e}})}const F=(()=>{const e=u((e=>new RegExp(`(.*)${e.split("").map((e=>`(${function(e){return e.match(/[()\[\]{}$^\/]/)?"\\"+e:e}(e)})`)).join("(.*)")}(.*)`)),{getKey:o});return(n,t)=>t.match(e(n))})();function K(){const e=d();return{searchContent:e,optionSearchFilter:function(n,l,u){if(!e.value)return n;const o=c(u)?u.filter((e=>e&&i(e))):[];return n.filter((n=>function(n,l,u){if(!e.value)return!0;const o=n?n[l]:"";return!!i(o)&&(!!F(e.value,o)||!!t(e.value,n.keyword)||!!u.length&&u.some((t=>i(n[t])&&n[t].includes(e.value))))}(n,l,o)))}}}function q(e,t,l,u,o){const a=O(e,"commonList"),i=O(e,"recentList"),{searchContent:c,optionSearchFilter:d}=K();function y(e){return n(e.itemObj)}const p=m((()=>{var e,n;return null!=(n=null==(e=a.value)?void 0:e.map(y))?n:[]})),g=m((()=>{var e,n;return null!=(n=null==(e=i.value)?void 0:e.map(y))?n:[]})),w=m((()=>{if(!e.recommend||!p.value.length&&!g.value.length)return t.value;const n=r(p.value.concat(g.value),(e=>e[o.value])),l=t.value.filter((e=>n.every((function(n){return n[o.value]!==e[o.value]}))));return[...d(n,u.value),...l]})),{getRecommendRequestInfo:b,getHttpInstance:C}=R();function F(n){const{url:t,getRecommendIds:l}=b(),u=v(l)?l():{},o=v(e.getRecommendInfo)?e.getRecommendInfo():{};return{url:t[n],info:Object.assign({},u,o)}}const{fieldKey:q}=k(),j=f(h);return{postRecommend:async function(n){if(!e.recommend)return;const t=C();if(!t)return;const{url:u,info:r}=F("post"),a=w.value.find((e=>e[o.value]===n));a&&l("postRecommend",await t.post(u,{...r,keyword:"",itemId:o.value,itemObj:JSON.stringify(a)}))},getRecommend:async function(n){if(!e.recommend)return;if(c.value=n,a.value&&i.value&&e.recommendCache)return;const t=await j.addAsync(function(n,t){const{url:l,info:u}=F("get");return{url:l,method:"get",key:n,cache:t,params:{...u,recNum:Math.max(e.commonNum,e.recentNum),keyword:""}}}(q.value,e.recommendCache)),{commonly:l,recently:u}=t.reduce(((e,n)=>("commonly"===n.type?e.commonly.push(s(n,["type"])):"recently"===n.type&&e.recently.push(s(n,["type"])),e)),{commonly:[],recently:[]});a.value=l.slice(0,e.commonNum),i.value=u.slice(0,e.recentNum)},sortedOptions:w}}function j(n,t){e();const l=f(h),u=f(g),o=m((()=>{var e,t,l;return null!=(l=null!=(t=null==(e=n.urlConfig)?void 0:e.nameKey)?t:n.labelField)?l:"text"})),r=m((()=>{var e,t,l;return null!=(l=null!=(t=null==(e=n.urlConfig)?void 0:e.valueKey)?t:n.valueField)?l:"value"})),{searchContent:c,optionSearchFilter:s}=K(),v=d(null),{field:R,fieldKey:O}=k(),F=d(!1),q=async function(e){if(c.value=e||"",!n.urlConfig)return v.value=null;try{F.value=!0;const e=await l.addAsync(await b({config:n.urlConfig,cache:n.requestCache,field:R.value}));p(v.value)!==e&&(v.value=e,u("afterOptionInit",[O.value,v.value]))}catch(e){i(e)&&C(e)}finally{F.value=!1}},j=m((()=>v.value?s(v.value,o.value):Array.isArray(n.options)?s(n.options,o.value):[])),I=m((()=>v.value||n.options||[])),x=f(w);return y((()=>n.urlConfig),((e,l)=>{if(!a(e,l)){if(v.value=null,!e)return v.value=null;x.setDeps(O.value,e.dependKey||[],(async()=>{v.value=null,t.value=null,!n.lazyRequest&&await q()})),(t.value||!n.lazyRequest)&&q()}}),{immediate:!0}),{labelKey:o,loading:F,valueKey:r,remoteOptions:v,filterOptions:j,fullOptions:I,fetchData:q,searchContent:c}}function I(n,t){e();const u=f(h),o=f(g),r=l(),s=m((()=>{var e,t,l,u;const o=null==(t=null==(e=n.wordbook)?void 0:e.render_key)?void 0:t[0];if(i(o))return o;let r=null==(l=n.wordbook)?void 0:l.show_key;return c(r)&&(r=r[0]),i(r)?r:null!=(u=n.labelField)?u:"text"})),v=m((()=>{var e,t,l;return null!=(l=null!=(t=null==(e=n.wordbook)?void 0:e.value_key)?t:n.valueField)?l:"value"})),b=m((()=>{var e;return(null==(e=n.wordbook)?void 0:e.search_key)||[]})),{searchContent:O,optionSearchFilter:F}=K(),q=d(null),{fieldKey:j}=k(),{getSearchRequestInfo:I}=R(),x=d(!1),A=async function(e){if(O.value=e||"",!n.autograph||!n.wordbook)return q.value=null;try{x.value=!0;const e=await u.addAsync(function(e,t,l){var u,o,a;const i={autograph:t,wordbookId:e.id,wordbookType:e.type,fieldKeys:e.search_key,keyword:"",page:1};if(null==(u=e.queryParams)?void 0:u.length){const n=null!=(a=null==(o=r.value)?void 0:o.getFormState().values)?a:{};e.queryParams.forEach((e=>{i[e]=n[e]}))}return{...I(),params:i,key:l,cache:n.requestCache}}(n.wordbook,n.autograph,j.value));p(q.value)!==e&&(q.value=e,o("afterOptionInit",[j.value,q.value]))}catch(e){i(e)&&C(e)}finally{x.value=!1}},S=m((()=>q.value?F(q.value,s.value,b.value):Array.isArray(n.options)?F(n.options,s.value):[])),N=m((()=>q.value||n.options||[])),_=f(w);return y((()=>n.wordbook),((e,l)=>{if(!a(e,l)){if(q.value=null,!e)return q.value=null;_.setDeps(j.value,e.queryParams||[],(async()=>{q.value=null,A()})),(t.value||!n.lazyRequest)&&A()}}),{immediate:!0}),{labelKey:s,loading:x,remoteOptions:q,valueKey:v,filterOptions:S,fullOptions:N,fetchData:A,searchContent:O}}export{F as searchContentMatcher,I as useAutographOptions,q as useRecommendOptions,j as useUrlConfigOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as e}from"../../../../shared/utils/index.js";import{once as r,isString as a}from"lodash-es";import"vue";import{registerValidateLocale as s}from"@formily/core";import"@formily/path";import"@vue/shared";import{isFunction as i}from"@vueuse/core";import"../../index.js";import{isIdCard as l}from"../utils/business.js";function t(){const r=new Map([["mobile",({validate:e})=>({format:"phone",message:null==e?void 0:e.message})],["integer",({validate:e})=>({format:"integer",message:null==e?void 0:e.message})],["number",({validate:e})=>({format:"number",message:null==e?void 0:e.message})],["id_card",({validate:e})=>({validator(r){var s;if(null!=r&&""!==r)return a(r)&&l(r)?void 0:null!=(s=null==e?void 0:e.message)?s:"该字段不是合法的身份证格式"}})],["regular",({validate:e,regular_expression:r,regular_error_tip:a})=>({pattern:r||(null==e?void 0:e.regular_expression)||"",message:a||(null==e?void 0:e.regular_error_tip)||(null==e?void 0:e.message)||"格式错误"})]]),s={triggerType:"onBlur"};return{createValidatorSchema:function(a){const l=[],{validate:{vali_obj:t,max_length:o,min_length:m,message:n,max_value:u,min_value:g,decimal_length:d}={},validator:v}=a;if(v&&e(v).forEach((e=>{i(e)&&l.push({validator:r=>e(r,a)})})),o&&l.push({max:o,message:n}),m&&l.push({min:m,message:n}),u&&l.push({maximum:u,message:n}),g&&l.push({minimum:g,message:n}),null!=d&&l.push(((e,r)=>{const a=null!=r?r:`小数位数最多${e}位`;return{validator(r){var s;return(null==(s=String(r).split(".")[1])?void 0:s.length)>e?a:""}}})(+d,n)),t){const e=r.get(t)||(({validate:e})=>({format:t,message:null==e?void 0:e.message}));l.push(Object.assign({},s,e(a)))}return l}}}const o=r((()=>{s({"zh-CN":{required:"${alias}为必填"}})}));export{t as useFormValidator,o as validateMessageLocale};
|
|
1
|
+
import{arrayed as e}from"../../../../shared/utils/index.js";import{once as r,isString as a}from"lodash-es";import"vue";import{registerValidateLocale as s}from"@formily/core";import"@formily/path";import"@vue/shared";import{isFunction as i}from"@vueuse/core";import"../../index.js";import{isIdCard as l}from"../utils/business.js";function t(){const r=new Map([["mobile",({validate:e})=>({format:"phone",message:null==e?void 0:e.message})],["integer",({validate:e})=>({format:"integer",message:null==e?void 0:e.message})],["number",({validate:e})=>({format:"number",message:null==e?void 0:e.message})],["id_card",({validate:e})=>({validator(r){var s;if(null!=r&&""!==r)return a(r)&&l(r)?void 0:null!=(s=null==e?void 0:e.message)?s:"该字段不是合法的身份证格式"}})],["regular",({validate:e,regular_expression:r,regular_error_tip:a})=>({pattern:r||(null==e?void 0:e.regular_expression)||"",message:a||(null==e?void 0:e.regular_error_tip)||(null==e?void 0:e.message)||"格式错误"})]]),s={triggerType:"onBlur"};return{createValidatorSchema:function(a){const l=[],{validate:{vali_obj:t,max_length:o,min_length:m,message:n,max_value:u,min_value:g,decimal_length:d}={},validator:v}=a;if(v&&e(v).forEach((e=>{i(e)&&l.push({validator:r=>e(r,a)})})),o&&l.push({max:o,message:n}),m&&l.push({min:m,message:n}),u&&l.push({maximum:u,message:n}),g&&l.push({minimum:g,message:n}),null!=d&&l.push(((e,r)=>{const a=null!=r?r:`小数位数最多${e}位`;return{validator(r){var s;return(null==(s=String(r).split(".")[1])?void 0:s.length)>e?a:""}}})(+d,n)),t){const e=r.get(t)||(({validate:e})=>({format:t,message:null==e?void 0:e.message}));l.push(Object.assign({},s,e(a)))}return l}}}const o=r((()=>{s({"zh-CN":{required:"${alias||name}为必填"}})}));export{t as useFormValidator,o as validateMessageLocale};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{inject as e,provide as t,computed as r,createVNode as n,Fragment as o}from"vue";import{arrayed as c}from"../../../../shared/utils/index.js";import{isGeneralField as u,isField as i}from"@formily/core";import{Path as s}from"@formily/path";import{isObject as f}from"@vue/shared";import{useMemoize as a}from"@vueuse/core";import{isString as l,isFunction as p,omit as h}from"lodash-es";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as m}from"../constants/index.js";import"date-fns";import{traverseDependKey as d}from"./schema.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./schema.js";function y(e){console.warn(`[FormRender]: ${e}`)}function x(e,t,r=["children","properties","suffixConfig"],n="val_key",o="default_val"){return function e(t,n){n.forEach((n=>{f(n)&&(null!=i(n)&&null==t[u(n)]&&s.setIn(t,u(n),i(n)),r.forEach((r=>{n[r]&&(t[u(n)]||(t[u(n)]={}),e(t[u(n)],c(n[r])))})))}))}(e,t),e;function u(e){return e[n]}function i(e){return e[o]}}function
|
|
1
|
+
import{inject as e,provide as t,computed as r,createVNode as n,Fragment as o}from"vue";import{arrayed as c}from"../../../../shared/utils/index.js";import{isGeneralField as u,isField as i}from"@formily/core";import{Path as s}from"@formily/path";import{isObject as f}from"@vue/shared";import{useMemoize as a}from"@vueuse/core";import{isString as l,isFunction as p,omit as h}from"lodash-es";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as m}from"../constants/index.js";import"date-fns";import{traverseDependKey as d}from"./schema.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./schema.js";function y(e){console.warn(`[FormRender]: ${e}`)}function x(e,t,r=["children","properties","suffixConfig"],n="val_key",o="default_val"){return function e(t,n){n.forEach((n=>{f(n)&&(null!=i(n)&&null==t[u(n)]&&s.setIn(t,u(n),i(n)),r.forEach((r=>{n[r]&&(t[u(n)]||(t[u(n)]={}),e(t[u(n)],c(n[r])))})))}))}(e,t),e;function u(e){return e[n]}function i(e){return e[o]}}function g(r,n){let o=e(r,null);return o||(o=n(),t(r,o)),o}function j(e){return l(e)?+e:e}function v(e,t,r){if(f(e)&&!p(e)){const r={};return Object.entries(e).forEach((([e,n])=>{p(n)&&(r[e]=()=>n(t))})),r}return{default:()=>p(e)?e(t):r?r(e):[e]}}function S(e,t){return r((()=>{const r={};return e.prefix&&(r.prefix=()=>n(o,null,[v(e.prefix,e,t).default()])),e.suffix&&(r.suffix=()=>n(o,null,[v(e.suffix,e,t).default()])),r}))}function E(e){if(!f(e))throw e;return t=e,Reflect.has(t,"map")&&Reflect.has(t,"result")?function(e){const{result:t,map:r}=e;if("SUCCESS"!==t)throw e;return r.rows}(e):function(e){return Reflect.has(e,"result")&&Reflect.has(e,"obj")}(e)?function(e){const{obj:t,result:r}=e;if("SUCCESS"!==r||!f(t))throw e;return Object.entries(t).reduce(((e,[t,r])=>(r.forEach((r=>e.push({...r,type:t}))),e)),[])}(e):function(e){return Reflect.has(e,"data")&&Reflect.has(e,"success")}(e)?function(e){const{data:t,success:r}=e;if(!r)throw e;return t}(e):[];var t}function b(e,t){return l(e)&&e?e.replace(/\$\{([^}]*)}/g,(function(e,r){const n=r.split("||");for(const e of n){const r=t[e.trim()];if(r)return r}return""})):""}function K(e){return e.reduce(((e,t)=>(l(t.extendKey)&&t.extendKey&&e.push(t),k(t)&&e.push(...K(t.children||[])),e)),[])}function w(e,t){const r=K(e);if(!r.length)return t;const n={},o=new Map;return Object.entries(t).forEach((([e,c])=>{const u=r.find((t=>t.val_key===e));if(!u)return n[e]=c;const{val_key:i,extendKey:s}=u,f=o.get(s)||{};o.set(s,f),f[i]=t[i]})),[...o.entries()].forEach((([e,t])=>{n[e]=JSON.stringify(t)})),n}function R(e,t){const r=K(e);if(!r.length)return t;const n=a((e=>{try{return f(t[e])?t[e]:JSON.parse(t[e])||{}}catch(e){return{}}})),o=h(t,r.map((e=>e.extendKey)));return r.forEach((({val_key:e,extendKey:t})=>{Reflect.has(o,e)||(o[e]=n(t)[e])})),o}function O(e){return e&&m.includes(e)}function k(e){return O(u(e)?e.componentType:e.html_type)}async function C({config:e,field:t,cache:r}){const n={},o=t.props.name.toString();try{d(e.dependKey||[],((e,r,o)=>{const c=t.query(e).take();if(!i(c)||o&&null==c.value)throw`缺少必须的参数=>${e}`;n[r]=c.value}))}catch(e){return Promise.reject(e)}return{...e,params:Object.assign({},e.params,n),key:o,cache:r}}export{w as combineExtendKey,S as createInputSlot,v as createSlot,C as createUrlConfigParams,y as formRenderLog,g as injectOrProvide,k as isNestedFieldType,O as isNestedType,x as mergeDeepProperties,j as parseNumberFromMaybeString,E as presetRequestHandler,R as splitExtendKey,b as validateMessageParser};
|
|
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
close: () => void;
|
|
21
21
|
OPTION_ITEM_HEIGHT: number;
|
|
22
22
|
viewCapacity: import("vue").ComputedRef<number>;
|
|
23
|
+
filteredList: import("vue").ComputedRef<import("vxe-table").VxeTableDefines.FilterOption[]>;
|
|
23
24
|
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<import("vxe-table").VxeTableDefines.FilterOption>[]>;
|
|
24
25
|
containerProps: {
|
|
25
26
|
ref: import("vue").Ref<any>;
|
|
@@ -33,8 +34,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
marginTop: string;
|
|
34
35
|
};
|
|
35
36
|
}>;
|
|
36
|
-
|
|
37
|
+
partCheckAll: import("vue").WritableComputedRef<boolean>;
|
|
38
|
+
partIndeterminate: import("vue").ComputedRef<boolean>;
|
|
37
39
|
checkAll: import("vue").WritableComputedRef<boolean>;
|
|
40
|
+
indeterminate: import("vue").ComputedRef<boolean>;
|
|
38
41
|
containerStyleWithHeight: import("vue").ComputedRef<CSSProperties>;
|
|
39
42
|
confirmFilter: () => void;
|
|
40
43
|
reset: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as l,computed as a,ref as t,onDeactivated as u,openBlock as
|
|
1
|
+
import{defineComponent as e,inject as l,computed as a,ref as t,onDeactivated as u,openBlock as r,createElementBlock as o,unref as i,createBlock as n,createCommentVNode as v,createElementVNode as c,createVNode as s,isRef as d,withCtx as p,normalizeStyle as f,Fragment as m,renderList as h,toDisplayString as y,createTextVNode as _}from"vue";import{keywordMatcher as b,widthAppend as k}from"../../../../../shared/utils/index.js";import{useVirtualList as g}from"@vueuse/core";import{isNumber as L,isString as C}from"lodash-es";import{NInput as S,NCheckbox as w,NCheckboxGroup as x,NButtonGroup as D,NButton as I}from"naive-ui";const U={class:"iho-table__filterWrapper"},Y={class:"iho-table__filterCheckAllWrapper"},$={class:"iho-table__filterListItem"},W={class:"iho-table__filterListItem"},j=["title"],E={class:"iho-table__filterFooter"};var F=e({__name:"filter",props:{payload:{type:Object,required:!0}},setup(e){const F=e,O=l("$xetable"),P=a((()=>{var e,l,a;return null!=(a=null==(l=null==(e=F.payload)?void 0:e.column)?void 0:l.filters)?a:[]})),q=a({get:()=>P.value.reduce(((e,l)=>(l.checked&&e.push(l.value),e)),[]),set(e){if(!F.payload)return;if(P.value.forEach((l=>{F.payload.$panel.changeOption(null,e.includes(l.value),l)})),!O)return t();const{startIndex:l,endIndex:a}=O.internalData.scrollYStore;function t(){F.payload.$panel.confirmFilter(new CustomEvent("click"))}0===l&&1===a||O.reactData.scrollYLoad?t():(O.reactData.scrollYLoad=!0,t(),O.reactData.scrollYLoad=!1)}}),z=t([...q.value]),A=t("");function H(){O&&(O.reactData.filterStore.visible=!1)}u(H);const R=a((()=>{var e,l;if(!F.payload||!F.payload.column)return 10;const{filterCapacity:a}=null!=(l=null==(e=F.payload.column.editRender)?void 0:e.props)?l:{};return L(a)&&a>0?a:10})),B=a((()=>A.value?P.value.filter((e=>!!`${e.label}`.includes(A.value)||(C(e.data)?b(A.value,e.data):void 0))):P.value)),{list:G,containerProps:J,wrapperProps:K}=g(B,{itemHeight:32,overscan:3}),M=a({get:()=>B.value.every((e=>z.value.includes(e.value))),set(e){z.value=e?[...new Set([...z.value,...B.value.map((e=>e.value))])]:z.value.filter((e=>!B.value.some((l=>l.value!==e))))}}),N=a((()=>B.value.some((e=>z.value.includes(e.value)))&&!M.value)),Q=a({get:()=>z.value.length===P.value.length&&0!==P.value.length,set:e=>{z.value=e?P.value.map((e=>e.value)):[]}}),T=a((()=>!!z.value.length&&!Q.value)),V=a((()=>({...J.style,height:k(32*R.value)})));function X(){q.value=z.value,H()}function Z(){z.value=[]}return(e,l)=>(r(),o("section",U,[i(P).length>5?(r(),n(i(S),{key:0,value:A.value,"onUpdate:value":l[0]||(l[0]=e=>A.value=e)},null,8,["value"])):v("v-if",!0),c("div",Y,[c("div",$,[s(i(w),{label:"全选当前",checked:i(M),"onUpdate:checked":l[1]||(l[1]=e=>d(M)?M.value=e:null),indeterminate:i(N)},null,8,["checked","indeterminate"])]),c("div",W,[s(i(w),{label:"全选所有",checked:i(Q),"onUpdate:checked":l[2]||(l[2]=e=>d(Q)?Q.value=e:null),indeterminate:i(T)},null,8,["checked","indeterminate"])])]),s(i(x),{value:z.value,"onUpdate:value":l[4]||(l[4]=e=>z.value=e)},{default:p((()=>[c("section",{ref:i(J).ref,style:f(i(V)),onScroll:l[3]||(l[3]=(...e)=>i(J).onScroll&&i(J).onScroll(...e)),class:"iho-table__filterListWrapper"},[c("section",{style:f(i(K).style)},[(r(!0),o(m,null,h(i(G),(e=>(r(),o("div",{class:"iho-table__filterListItem",key:e.data.value},[s(i(w),{value:e.data.value},{default:p((()=>[c("div",{style:{"white-space":"nowrap"},title:e.data.label},y(e.data.label),9,j)])),_:2},1032,["value"])])))),128))],4)],36)])),_:1},8,["value"]),c("footer",E,[c("section",null,[_(" 已选择 "),c("span",{style:f({color:"var(--c-primary-color)"})},y(z.value.length),5),_(" 项 ")]),s(i(D),{size:"small"},{default:p((()=>[s(i(I),{onClick:Z},{default:p((()=>[_("清空")])),_:1}),s(i(I),{onClick:H},{default:p((()=>[_("取消")])),_:1}),s(i(I),{type:"primary",onClick:X},{default:p((()=>[_("确定")])),_:1})])),_:1})])]))}});export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as a,cloneDeep as d,isString as r}from"lodash-es";import u from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as c,IHO_TABLE_FIXED_STATUS as f,LOWEST_PRIORITY as m,WIDGET_TYPE as p,InjectionIhoTableAnnotation as h,InjectionIhoTableConfig as v}from"../../constants/index.js";import{defineTablePlugin as b}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as g,IhoTableUtils as x,IhoTableRenderHelper as R}from"../../utils/index.js";import{getDefaultValue as j}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function w(){const w="lowCodeFieldAdaptorPlugin";return b({name:w,apply(b){b.fieldHooks.field.tap({name:w,stage:c},((c,m,b)=>{const w=c,P={className:w.bold?"iho-table__boldCell":"",field:w.columnName,showOverflow:"ellipsis",visible:g.notNegative(w.isShow),minWidth:w.colWidth,sortable:g.isPositive(w.isSort),fixed:f[w.isFixed],...w,title:w.alias||w.title};return function(e,d){const c={default:d.slotFn,header:d.headerSlotFn,edit:d.editSlotFn,footer:d.footerSlotFn,...d.slots};if(a(d.checkEditStatus)){const{default:e}=c;a(e)&&(c.default=l=>d.checkEditStatus(l)?e(l):[t("span",null,j(l.row,l.column.editRender.props))])}const f=c.header;c.header=e=>function(e,t,d){var c;const f=l(h),m=l(v),p=l("$xetable"),b=e.column||{},g=n(null==f?void 0:f.value)&&!1!==t.annotation,x=R.isEditableColumn(m.value,b),j=R.hasFilter(t)||R.hasDateFiler(t),w=null==(c=t.titlePrefix)?void 0:c.content,P=r(d)?d:a(d)?d(e):null;let F=!1;if(m.value){const e=m.value.editRules&&m.value.editRules[b.field];e&&(F=o(e).some((e=>e.required)))}const S=m.value.border?Math.max(2,Math.ceil(p.reactData.scrollbarWidth/p.reactData.tableColumn.length)):1
|
|
1
|
+
import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as a,cloneDeep as d,isString as r}from"lodash-es";import u from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as c,IHO_TABLE_FIXED_STATUS as f,LOWEST_PRIORITY as m,WIDGET_TYPE as p,InjectionIhoTableAnnotation as h,InjectionIhoTableConfig as v}from"../../constants/index.js";import{defineTablePlugin as b}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as g,IhoTableUtils as x,IhoTableRenderHelper as R}from"../../utils/index.js";import{getDefaultValue as j}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function w(){const w="lowCodeFieldAdaptorPlugin";return b({name:w,apply(b){b.fieldHooks.field.tap({name:w,stage:c},((c,m,b)=>{const w=c,P={className:w.bold?"iho-table__boldCell":"",field:w.columnName,showOverflow:"ellipsis",visible:g.notNegative(w.isShow),minWidth:w.colWidth,sortable:g.isPositive(w.isSort),fixed:f[w.isFixed],...w,title:w.alias||w.title};return function(e,d){const c={default:d.slotFn,header:d.headerSlotFn,edit:d.editSlotFn,footer:d.footerSlotFn,...d.slots};if(a(d.checkEditStatus)){const{default:e}=c;a(e)&&(c.default=l=>d.checkEditStatus(l)?e(l):[t("span",null,j(l.row,l.column.editRender.props))])}const f=c.header;c.header=e=>function(e,t,d){var c;const f=l(h),m=l(v),p=l("$xetable"),b=e.column||{},g=n(null==f?void 0:f.value)&&!1!==t.annotation,x=R.isEditableColumn(m.value,b),j=R.hasFilter(t)||R.hasDateFiler(t),w=null==(c=t.titlePrefix)?void 0:c.content,P=r(d)?d:a(d)?d(e):null;let F=!1;if(m.value){const e=m.value.editRules&&m.value.editRules[b.field];e&&(F=o(e).some((e=>e.required)))}const S=m.value.border?Math.max(2,Math.ceil(p.reactData.scrollbarWidth/p.reactData.tableColumn.length)):1,W=s(Math.max(0,b.renderWidth-20-S-(F?14:0)-(g?18:0)-(j?23:0)-(x?22:0)-(w?20:0)-(b.sortable?23:0)));return i("section",{class:"iho-table__headerWrapper"},[i("section",{style:{width:W}},[null!=P?P:i("div",{style:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[b.title])]),g?i(u,{modelValue:f.value[b.field],"onUpdate:modelValue":e=>f.value[b.field]=e},null):null])}(e,d,f),e.slots=c}(P,w),function(t,l,i){var o,s;const r=d(e(l));r.componentProps={size:"mini"===i.size?"small":i.size,...r.componentProps},t.editRender={autofocus:"input",name:x.getCellType(l),props:r},t.editRender.enabled=!Reflect.get(p,t.editRender.name),a(null==(o=t.slots)?void 0:o.default)&&(t.editRender.enabled=t.editRender.enabled&&a(null==(s=t.slots)?void 0:s.edit));if(!n(l.settingObj))return;Reflect.has(l.settingObj,"isHide")&&(t.visible=t.visible&&g.notPositive(l.settingObj.isHide))}(P,w,b),P})),b.fieldHooks.field.tap({name:w+"After",stage:m},(e=>(n(e.slots)&&Object.entries(e.slots).forEach((([t,l])=>{null==l&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{w as lowCodeFieldAdaptorPlugin};
|
|
@@ -63,6 +63,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
onContentClick: (event: MouseEvent) => void;
|
|
64
64
|
updateShow: (show: boolean) => void;
|
|
65
65
|
onShow: () => Promise<void>;
|
|
66
|
+
emitFormChangeWithParams: (params?: AnyObject) => void;
|
|
66
67
|
onClose: () => Promise<void>;
|
|
67
68
|
style: import("vue").ComputedRef<CSSProperties>;
|
|
68
69
|
NPopover: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as a,ref as t,watch as o,computed as l,onBeforeUnmount as u,onDeactivated as r,openBlock as n,createBlock as i,unref as s,withCtx as p,createElementVNode as d,withModifiers as v,normalizeStyle as c,toDisplayString as m,renderSlot as f,createVNode as h}from"vue";import{cloneDeep as b,isObject as w,isArray as y}from"lodash-es";import{NPopover as g,NInput as x}from"naive-ui";import{InjectionIhoTableHandler as k}from"../../../../constants/index.js";import{useIhoTableFormEvent as _}from"../../../../utils/index.js";const C=["onClick"];var j=e({__name:"editSeparate",props:{value:{},height:{type:Number,default:48},column:{type:Object,required:!0},row:{type:Object,required:!0},displayContent:{type:String,default:""},rowIndex:{type:Number,required:!0}},emits:["update:value","click"],setup(e,{emit:j}){const U=e,q=a(k),P=a("$xetable"),S=t(),T=t();function $(e){T.value=e}const I=t(!1);function N(e){I.value=e}function O(e){I.value=!I.value,j("click",e)}
|
|
1
|
+
import{defineComponent as e,inject as a,ref as t,watch as o,computed as l,onBeforeUnmount as u,onDeactivated as r,openBlock as n,createBlock as i,unref as s,withCtx as p,createElementVNode as d,withModifiers as v,normalizeStyle as c,toDisplayString as m,renderSlot as f,createVNode as h}from"vue";import{cloneDeep as b,isObject as w,isArray as y}from"lodash-es";import{NPopover as g,NInput as x}from"naive-ui";import{InjectionIhoTableHandler as k}from"../../../../constants/index.js";import{useIhoTableFormEvent as _}from"../../../../utils/index.js";const C=["onClick"];var j=e({__name:"editSeparate",props:{value:{},height:{type:Number,default:48},column:{type:Object,required:!0},row:{type:Object,required:!0},displayContent:{type:String,default:""},rowIndex:{type:Number,required:!0}},emits:["update:value","click"],setup(e,{emit:j}){const U=e,q=a(k),P=a("$xetable"),S=t(),T=t();function $(e){T.value=e}const I=t(!1);function N(e){I.value=e}function O(e){I.value=!I.value,j("click",e)}o(I,(function(e){e?async function(){var e;T.value=b(U.value),await new Promise((e=>setTimeout(e))),null==(e=S.value)||e.syncPosition()}():z()}));const{emitFormChangeWithParams:R}=_(l((()=>({...U,$table:P}))));async function z(){if(!w(T.value)&&!y(T.value)&&U.value===T.value)return;const e=U.value;j("update:value",T.value),R({oldValue:e}),q.updateTableDataRef()}const B=l((()=>({border:"1px solid #f5f5f5",height:U.height-16+"px",display:"flex",alignItems:"center",padding:"0",background:"white",wordBreak:"keep-all",boxSizing:"border-box","border-radius":"4px"})));return u(z),r(z),(a,t)=>(n(),i(s(g),{ref_key:"popoverRef",ref:S,trigger:"manual",show:I.value,"onUpdate:show":t[1]||(t[1]=e=>I.value=e),"show-arrow":!1},{trigger:p((()=>[d("div",{onClick:v(O,["stop"]),style:c(s(B)),class:"iho-table__separateText"},m(e.displayContent||" "),13,C)])),default:p((()=>[f(a.$slots,"menu",{value:T.value,"onUpdate:value":$,"onUpdate:show":N,col:e.column,row:e.row},(()=>[h(s(x),{value:T.value,"onUpdate:value":t[0]||(t[0]=e=>T.value=e),type:"textarea"},null,8,["value"])]))])),_:3},8,["show"]))}});export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getStringWidth as e}from"../../../../../../../shared/utils/index.js";import{isArray as n,cloneDeep as r,isString as t,isNumber as
|
|
1
|
+
import{getStringWidth as e}from"../../../../../../../shared/utils/index.js";import{isArray as n,cloneDeep as r,isString as t,isNumber as l}from"lodash-es";import{EDITABLE_WIDGET_TYPE as d}from"../../../../constants/index.js";function i(e){return Math.max(...e.map((e=>e.data.length)),1)}function o(e,n){return e.reduce(((e,r)=>(e[r.field]=r.data[n],e)),{})}function u(d,i,o){return n(d)?d.map((e=>{var n,t,l,d;return null!=(d=null==(l=null==(t=null==(n=i.editRender)?void 0:n.props)?void 0:t.separateFormatter)?void 0:l.call(t,r(e)))?d:i.field?e[i.field]:null})):t(d)&&l(o)?(o-=24,[...d].reduce(((n,r)=>{const t=n[n.length-1];return e(t+r)>o?n.push(r):n[n.length-1]=t+r,n}),[""])):[d]}function a(e){var n;return e.field&&(null==(n=e.editRender)?void 0:n.name)===d.SEPARATE}export{u as contentSeparate,o as generateSeparateRowData,i as getColumnInfoMaxLength,a as isSeparateColumn};
|
|
@@ -18,9 +18,9 @@ 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(
|
|
21
|
+
export declare function useIhoTableFormEvent(payloadRef: MaybeRef<Pick<VxeGlobalRendererHandles.RenderEditParams, 'row' | 'rowIndex' | 'column' | '$table'> & {
|
|
22
22
|
$rowIndex?: number;
|
|
23
|
-
}): {
|
|
23
|
+
}>): {
|
|
24
24
|
emitFormChange: () => void;
|
|
25
25
|
emitFormClick: () => void;
|
|
26
26
|
emitFormChangeWithParams: (params?: AnyObject) => 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 d,isString as a,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 w(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function S(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 d(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
|
|
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 d,isString as a,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 w(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function S(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 d(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 i=n(v);function o(){var n;const r=t(e);return{$table:r.$table,value:r.row[r.column.field],row:r.row,column:{...r.column,...null==(n=r.column.editRender)?void 0:n.props},index:r.rowIndex>-1?r.rowIndex:r.$rowIndex}}function u(e={}){i("formChange",{...o(),...m(r(e))})}function l(e={}){i("formClick",{...o(),...m(r(e))})}return{emitFormChange:function(){u()},emitFormClick:function(){l()},emitFormChangeWithParams:u,emitFormClickWithParams:l}}function P(e){var n;return null==(n=e.editRender)?void 0:n.props}const A=Object.freeze({createDefaultRenderCell:function(){return function(e,{row:n,column:t}){return[i("span",{title:_(t,n[t.field])},[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(D(e))return!0;let n=e.fieldSetting;return a(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}}),$=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}),N=(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 b(e){return[I.TRANSFORM_WITH_SPAN_METHOD,I.TRANSFORM_TREE_TYPE].includes(`${e.isTree}`)}function V(e){return a(e)&&!!e.match(/^###\{[^{}]+}$/)}function x(e){try{return JSON.parse(e.replace(/^###/,""))}catch(e){return{}}}function U(e,n){if(e.$__SEPARATE||!n.editRender||!n.editRender.props)return e[n.field];const{fieldSetting:t}=n.editRender.props;if(!a(t))return e[n.field];const{mergedFeildExpression:r}=o(t);return r&&a(r)?r.replace(/#{(.+?)}/g,(function(n,t){let r=t?e[t.trim()]:null;V(r)&&(r=x(r).change_text);return r||(null==r?"--":r)})):e[n.field]}const y=["SEARCH","SELECT","RADIO","CHECKBOX"];function D(e){return e.notParticipatingSearch===E.NEGATIVE&&y.includes(T.getCellType(e))&&f(e.options)&&e.options.length}function _(e,n=""){return"tooltip"===e.showOverflow?"":n}export{A as IhoTableRenderHelper,$ as IhoTableStatusHelper,T as IhoTableUtils,h as IhoTableWarn,N as createIhoTableClearActivedInterceptor,R as eventListener2EventName,w as eventName2EventListener,O as getColumnRenderWidth,P as getLowCodeFieldFromField,C as getRowHeight,_ as getTitle,D as isCompatibleColumn,V as isRichContent,b as isTransformTreeType,U as parseMergeField,x as parseRichContent,F as useIhoTableFormEvent,S as useUUIDMap};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.iho-table{height:100%}.iho-table .vxe-body--column.col--drag{cursor:move}.iho-table .vxe-table.size--mini{font-size:14px}.iho-table .vxe-table.size--mini .vxe-body--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-footer--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-header--column:not(.col--ellipsis){padding:4px 0}.iho-table .vxe-table.size--mini .vxe-sort--asc-btn{top:-2px}.iho-table .vxe-table.size--mini .vxe-sort--desc-btn{bottom:0}.iho-table__headerWrapper{display:inline-flex;flex-wrap:nowrap}.iho-table__boldCell{font-weight:700}.iho-table .vxe-table .vxe-table--header-wrapper,.iho-table .vxe-table.vxe-table--render-default{color:#212121}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#b2b2b2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-table--header .checkbox-cell--disable{border:2px solid #c0c4cc;border-radius:50%;box-sizing:border-box;cursor:not-allowed;display:inline-block;height:18px;left:-2px;position:relative;top:3px;width:18px}.iho-table .vxe-table--header .checkbox-cell--disable:before{background-color:#c0c4cc;content:"";height:16px;left:50%;position:absolute;top:-2px;transform:translate(-60%) rotate(-45deg);width:2px}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-table--render-default .vxe-body--column.col--selected{box-shadow:inset 0 0 0 2px var(--c-primary-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--hover,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--stripe{background-color:var(--c-hover-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--radio,.iho-table .vxe-table--render-default .vxe-body--row.row--radio{background-color:var(--c-primary-color-opacity2);text-shadow:0 0 1px}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:var(--c-border-color)!important}.iho-table .vxe-table--footer-wrapper{border-top-color:var(--c-border-color)!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color)),linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .vxe-table--header-border-line{border-bottom-color:var(--c-border-color)!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .is--filter-active .vxe-cell--filter .vxe-filter--btn{color:var(--c-primary-color)}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:var(--c-primary-color)}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;margin:8px 12px;width:240px}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:var(--c-primary-color)}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05)}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;height:32px;padding:0 8px}.iho-table__filterListItem:hover{background:rgba(0,0,0,.05)}.iho-table__filterListItem .n-checkbox{width:100%}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table__time-picker{position:unset}.iho-table__time-picker .n-input{display:none}.iho-table__time-picker .v-binder-follower-container{height:auto;position:unset}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content{position:unset;transform:none!important}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content .n-time-picker-panel{box-shadow:none}.iho-table__scrollbar{margin:8px 8px 8px 0;max-height:255px}.iho-table .variable-height .vxe-cell,.iho-table .variable-height .vxe-cell--tree-node,.iho-table .variable-height .vxe-tree-cell{max-height:fit-content!important;white-space:break-spaces!important}.iho-table__selectMenu .n-scrollbar-rail__scrollbar{display:none!important}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar,.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{display:unset!important;height:6px;width:6px}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{background:#bfbfbf;border-radius:4px}.iho-table__selectMenu .v-vl-items{min-width:100%;width:max-content}.iho-table__selectOption .n-base-select-option__content{overflow:visible!important;text-overflow:unset!important;word-break:keep-all!important}.iho-table .is--checked.vxe-checkbox,.iho-table .is--checked.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--checked.vxe-custom--option,.iho-table .is--checked.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--checked.vxe-export--panel-column-option,.iho-table .is--checked.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--checked.vxe-table--filter-option,.iho-table .is--checked.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-checkbox,.iho-table .is--indeterminate.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-custom--option,.iho-table .is--indeterminate.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-export--panel-column-option,.iho-table .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-table--filter-option,.iho-table .is--indeterminate.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .vxe-checkbox:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-export--panel-column-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table .vxe-sort--asc-btn.sort--active,.iho-table .vxe-table .vxe-sort--desc-btn.sort--active,.iho-table .vxe-table--filter-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon{color:var(--c-primary-color)}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}@font-face{font-family:iho-table-iconfont;src:url(iconfont.ttf) format("truetype")}.iho-table .iho-table--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iho-table-iconfont!important;font-size:15px;font-style:normal}.iho-table .iho-table-icon-filter{display:inline-block;font-size:17px;transform:translateY(-1px);vertical-align:middle}.iho-table .iho-table-icon-filter:before{content:"\c2001"}.iho-table .iho-table-icon-date-filter{display:inline-block;transform:translateY(-1px)}.iho-table .iho-table-icon-date-filter:before{content:"\c2002"}.iho-table .row--custom{background-color:var(--row-background-color)}.iho-table__htmlRender *{display:inline!important}.iho-table__ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1
|
+
.iho-table{height:100%}.iho-table .vxe-body--column.col--drag{cursor:move}.iho-table .vxe-table.size--mini{font-size:14px}.iho-table .vxe-table.size--mini .vxe-body--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-footer--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-header--column:not(.col--ellipsis){padding:4px 0}.iho-table .vxe-table.size--mini .vxe-sort--asc-btn{top:-2px}.iho-table .vxe-table.size--mini .vxe-sort--desc-btn{bottom:0}.iho-table__headerWrapper{display:inline-flex;flex-wrap:nowrap}.iho-table__boldCell{font-weight:700}.iho-table .vxe-table .vxe-table--header-wrapper,.iho-table .vxe-table.vxe-table--render-default{color:#212121}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#b2b2b2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-table--header .checkbox-cell--disable{border:2px solid #c0c4cc;border-radius:50%;box-sizing:border-box;cursor:not-allowed;display:inline-block;height:18px;left:-2px;position:relative;top:3px;width:18px}.iho-table .vxe-table--header .checkbox-cell--disable:before{background-color:#c0c4cc;content:"";height:16px;left:50%;position:absolute;top:-2px;transform:translate(-60%) rotate(-45deg);width:2px}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-table--render-default .vxe-body--column.col--selected{box-shadow:inset 0 0 0 2px var(--c-primary-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--hover,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--stripe{background-color:var(--c-hover-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--radio,.iho-table .vxe-table--render-default .vxe-body--row.row--radio{background-color:var(--c-primary-color-opacity2);text-shadow:0 0 1px}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:var(--c-border-color)!important}.iho-table .vxe-table--footer-wrapper{border-top-color:var(--c-border-color)!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color)),linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .vxe-table--header-border-line{border-bottom-color:var(--c-border-color)!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .is--filter-active .vxe-cell--filter .vxe-filter--btn{color:var(--c-primary-color)}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:var(--c-primary-color)}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;margin:8px 12px;width:240px}.iho-table__filterCheckAllWrapper{display:flex;justify-content:space-between}.iho-table__filterCheckAllWrapper>div{flex:1}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:var(--c-primary-color)}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05)}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;height:32px;padding:0 8px}.iho-table__filterListItem:hover{background:var(--c-primary-color-opacity2)}.iho-table__filterListItem .n-checkbox{width:100%}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table__time-picker{position:unset}.iho-table__time-picker .n-input{display:none}.iho-table__time-picker .v-binder-follower-container{height:auto;position:unset}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content{position:unset;transform:none!important}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content .n-time-picker-panel{box-shadow:none}.iho-table__scrollbar{margin:8px 8px 8px 0;max-height:255px}.iho-table .variable-height .vxe-cell,.iho-table .variable-height .vxe-cell--tree-node,.iho-table .variable-height .vxe-tree-cell{max-height:fit-content!important;white-space:break-spaces!important}.iho-table__selectMenu .n-scrollbar-rail__scrollbar{display:none!important}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar,.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{display:unset!important;height:6px;width:6px}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{background:#bfbfbf;border-radius:4px}.iho-table__selectMenu .v-vl-items{min-width:100%;width:max-content}.iho-table__selectOption .n-base-select-option__content{overflow:visible!important;text-overflow:unset!important;word-break:keep-all!important}.iho-table .is--checked.vxe-checkbox,.iho-table .is--checked.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--checked.vxe-custom--option,.iho-table .is--checked.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--checked.vxe-export--panel-column-option,.iho-table .is--checked.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--checked.vxe-table--filter-option,.iho-table .is--checked.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-checkbox,.iho-table .is--indeterminate.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-custom--option,.iho-table .is--indeterminate.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-export--panel-column-option,.iho-table .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-table--filter-option,.iho-table .is--indeterminate.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .vxe-checkbox:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-export--panel-column-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table .vxe-sort--asc-btn.sort--active,.iho-table .vxe-table .vxe-sort--desc-btn.sort--active,.iho-table .vxe-table--filter-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon{color:var(--c-primary-color)}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}@font-face{font-family:iho-table-iconfont;src:url(iconfont.ttf) format("truetype")}.iho-table .iho-table--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iho-table-iconfont!important;font-size:15px;font-style:normal}.iho-table .iho-table-icon-filter{display:inline-block;font-size:17px;transform:translateY(-1px);vertical-align:middle}.iho-table .iho-table-icon-filter:before{content:"\c2001"}.iho-table .iho-table-icon-date-filter{display:inline-block;transform:translateY(-1px)}.iho-table .iho-table-icon-date-filter:before{content:"\c2002"}.iho-table .row--custom{background-color:var(--row-background-color)}.iho-table__htmlRender *{display:inline!important}.iho-table__ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|