cnhis-design-vue 3.1.41-beta.34 → 3.1.41-beta.36

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.
Files changed (100) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +286 -0
  3. package/es/components/base-search/index.js +1 -0
  4. package/es/components/{table-filter/src/base-search-com/BaseSearch.vue.d.ts → base-search/src/index.vue.d.ts} +1 -4
  5. package/es/components/base-search/src/index.vue.js +1 -0
  6. package/es/components/base-search/style/index.css +1 -0
  7. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  8. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  9. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  10. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  11. package/es/components/classification/index.d.ts +1013 -0
  12. package/es/components/classification/index.js +1 -0
  13. package/es/components/{table-filter → classification}/src/components/search-filter/index.vue.d.ts +9 -9
  14. package/es/components/classification/src/components/search-filter/index.vue.js +1 -0
  15. package/es/components/classification/src/components/set-classification/index.vue.js +1 -0
  16. package/es/components/classification/src/const/index.d.ts +2 -0
  17. package/es/components/classification/src/const/index.js +1 -0
  18. package/es/components/{table-filter/src/classification/Classification-com.vue.d.ts → classification/src/index.vue.d.ts} +6 -9
  19. package/es/components/classification/src/index.vue.js +1 -0
  20. package/es/components/classification/style/iconfont.ttf +0 -0
  21. package/es/components/classification/style/index.css +1 -0
  22. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  23. package/es/components/config-provider/src/interface.d.ts +2 -2
  24. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  25. package/es/components/form-config/index.d.ts +5 -5
  26. package/es/components/form-config/src/FormConfig.vue.d.ts +5 -5
  27. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  28. package/es/components/index.css +1 -1
  29. package/es/components/index.d.ts +3 -1
  30. package/es/components/index.js +1 -1
  31. package/es/components/info-header/index.d.ts +3480 -117
  32. package/es/components/info-header/src/InfoHeader.vue.d.ts +3480 -117
  33. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  34. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1526 -4
  35. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +1 -1
  36. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1529 -4
  37. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  38. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  39. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
  40. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2262 -5
  41. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  42. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +745 -0
  43. package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
  44. package/es/components/info-header/src/types/index.d.ts +6 -1
  45. package/es/components/info-header/style/index.css +1 -1
  46. package/es/components/quick-search/index.d.ts +712 -0
  47. package/es/components/quick-search/index.js +1 -0
  48. package/es/components/{table-filter/src/quick-search/QuickSearch.vue.d.ts → quick-search/src/index.vue.d.ts} +21 -8
  49. package/es/components/quick-search/src/index.vue.js +1 -0
  50. package/es/components/quick-search/style/index.css +1 -0
  51. package/es/components/recommend-search/index.d.ts +2 -2
  52. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  53. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  54. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  55. package/es/components/search-cascader/index.d.ts +2 -2
  56. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
  57. package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
  58. package/es/components/shortcut-setter/index.d.ts +1 -1
  59. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  60. package/es/components/table-filter/index.d.ts +0 -1997
  61. package/es/components/table-filter/index.js +1 -1
  62. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -1
  63. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  64. package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -54
  65. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  66. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  67. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  68. package/es/components/table-filter/src/tool/transformData.js +1 -1
  69. package/es/env.d.ts +24 -24
  70. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  71. package/es/shared/utils/tapable/index.d.ts +139 -0
  72. package/package.json +2 -2
  73. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
  74. package/es/components/table-filter/src/classification/Classification-com.vue.js +0 -1
  75. package/es/components/table-filter/src/components/search-filter/index.vue.js +0 -1
  76. package/es/components/table-filter/src/components/set-classification/index.vue.js +0 -1
  77. package/es/components/table-filter/src/const/index.d.ts +0 -5
  78. package/es/components/table-filter/src/const/index.js +0 -1
  79. package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +0 -8
  80. package/es/components/table-filter/src/hooks/useTableSearchCon.js +0 -1
  81. package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +0 -12
  82. package/es/components/table-filter/src/hooks/useWordBookutils.js +0 -1
  83. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
  84. package/es/components/table-filter/src/tool/time-domain.d.ts +0 -39
  85. package/es/components/table-filter/src/tool/time-domain.js +0 -1
  86. package/es/components/table-filter/src/tool/utils.d.ts +0 -4
  87. package/es/components/table-filter/src/tool/utils.js +0 -1
  88. package/es/components/table-filter/style/index.css +0 -1
  89. /package/es/components/{table-filter → base-search}/src/directive/resize.d.ts +0 -0
  90. /package/es/components/{table-filter → base-search}/src/directive/resize.js +0 -0
  91. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.d.ts +0 -0
  92. /package/es/components/{table-filter → base-search}/src/tool/resizeSensor.js +0 -0
  93. /package/es/components/{table-filter → base-search}/style/iconfont.ttf +0 -0
  94. /package/es/components/{table-filter → classification}/src/components/set-classification/index.vue.d.ts +0 -0
  95. /package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.d.ts +0 -0
  96. /package/es/components/{table-filter → classification}/src/components/table-modal/index.vue.js +0 -0
  97. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.d.ts +0 -0
  98. /package/es/components/{table-filter → classification}/src/directive/flexibleResize.js +0 -0
  99. /package/es/components/table-filter/src/tool/{options.d.ts → baseOptions.d.ts} +0 -0
  100. /package/es/components/table-filter/src/tool/{options.js → baseOptions.js} +0 -0
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as i}from"../../shared/global/variable.js";import{safeComponentRegister as s}from"../../shared/utils/index.js";import o from"./src/index.vue.js";const r=o;r.install=function(o){s(o,r,i+"Classification")};export{r as default};
@@ -68,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
68
68
  NButton: any;
69
69
  SearchConditionByApi: import("vue").DefineComponent<{
70
70
  actionList_prop: {
71
- type: import("vue").PropType<import("../../types").IClassifyListType>;
71
+ type: import("vue").PropType<import("../../../..").IClassifyListType>;
72
72
  default: () => {};
73
73
  };
74
74
  conditionList: {
@@ -95,7 +95,7 @@ declare const _default: import("vue").DefineComponent<{
95
95
  $message: import("naive-ui").MessageApi;
96
96
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
97
97
  actionList_prop: {
98
- type: import("vue").PropType<import("../../types").IClassifyListType>;
98
+ type: import("vue").PropType<import("../../../..").IClassifyListType>;
99
99
  default: () => {};
100
100
  };
101
101
  conditionList: {
@@ -147,9 +147,9 @@ declare const _default: import("vue").DefineComponent<{
147
147
  showAdd: boolean;
148
148
  };
149
149
  isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
150
- editDisplayCategory: (e: any, item: import("../../types").ICategoryItemType) => void;
151
- handleDisplayCategorySelect: (item: import("../../types").ICategoryItemType) => void;
152
- handleDisplayCategoryRemove: (index: number, item: import("../../types").ICategoryItemType) => void;
150
+ editDisplayCategory: (e: any, item: import("../../../..").ICategoryItemType) => void;
151
+ handleDisplayCategorySelect: (item: import("../../../..").ICategoryItemType) => void;
152
+ handleDisplayCategoryRemove: (index: number, item: import("../../../..").ICategoryItemType) => void;
153
153
  handleDisplayCategoryAdd: (e: any) => void;
154
154
  handlerBlur: () => void;
155
155
  initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<{
160
160
  updateKey: (index: number, val: any) => void;
161
161
  updateCondition: (index: number, val: any) => void;
162
162
  getParamCfg: (key: string) => any;
163
- initFilterConditions: (tableId: string, rawConditions: import("../../types").ISearchConfigType) => Promise<void>;
163
+ initFilterConditions: (tableId: string, rawConditions: import("../../../..").ISearchConfigType) => Promise<void>;
164
164
  getRawFilterConditions: () => {
165
165
  field_key: any;
166
166
  con: any;
@@ -168,7 +168,7 @@ declare const _default: import("vue").DefineComponent<{
168
168
  unit: any;
169
169
  }[];
170
170
  findConditionByDisplayCategory: (displayCategory: string) => unknown;
171
- handleDisplayCategorySelectProxy: (item: import("../../types").ICategoryItemType) => void;
171
+ handleDisplayCategorySelectProxy: (item: import("../../../..").ICategoryItemType) => void;
172
172
  clearFormData: () => void;
173
173
  handleInitConditions: () => Promise<void>;
174
174
  validate: () => Promise<unknown>;
@@ -305,7 +305,7 @@ declare const _default: import("vue").DefineComponent<{
305
305
  }[];
306
306
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
307
307
  actionList_prop: {
308
- type: import("vue").PropType<import("../../types").IClassifyListType>;
308
+ type: import("vue").PropType<import("../../../..").IClassifyListType>;
309
309
  default: () => {};
310
310
  };
311
311
  conditionList: {
@@ -335,7 +335,7 @@ declare const _default: import("vue").DefineComponent<{
335
335
  searchFieldList: unknown[];
336
336
  tableId: string;
337
337
  conditionList: unknown[];
338
- actionList_prop: import("../../types").IClassifyListType;
338
+ actionList_prop: import("../../../..").IClassifyListType;
339
339
  showItemName: boolean;
340
340
  hideAddBtn: boolean;
341
341
  }>;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as i,onBeforeUnmount as t,watch as l,openBlock as a,createBlock as o,unref as n,normalizeClass as u,withCtx as s,createVNode as d,normalizeStyle as c,createElementVNode as r,createTextVNode as v,mergeProps as f}from"vue";import{NModal as h,NCard as p,NButton as m}from"naive-ui";import x from"../../../../table-filter/src/components/classify-filter/index.vue.js";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const b={class:"svg-wrap"},y={class:"flex_right"};var _=g(e({__name:"index",props:{visible:{type:Boolean,default:!1},modalTitle:{type:String,default:"设置分类"},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["cancelSaveAdd"],setup(e,{expose:g,emit:_}){const w=e,k=i(w.visible),z=i(!1),A=i("860px");let C=i({maxHeight:"496px",height:"496px",overflowY:"auto"}),L=i(null),S=null;function H(){F(),S=setTimeout((()=>{L&&L.value.handleInitConditions()}),30)}function F(){S&&clearTimeout(S)}function T(){L&&L.value.saveAdd()}function j(){k.value=!1,_("cancelSaveAdd"),A.value="860px",C.value={height:"496px",maxHeight:"496px",overflowY:"auto"},z.value=!1,L&&L.value.cancelSaveAdd()}function $(){z.value=!z.value;let e=document.body.clientHeight;"860px"===A.value?(A.value="100%",C.value.maxHeight=`${e}px`,C.value.height=`${e}px`):(A.value="860px",C.value.maxHeight="496px",C.value.height="")}return t((()=>{F()})),l((()=>w.visible),(e=>{k.value=e,e&&H()})),g({cancelSaveAdd:j}),(e,i)=>(a(),o(n(h),{class:u(["classification-modal-block standard-modal standard-modal-white",{"modal-screen":z.value}]),show:k.value,"onUpdate:show":i[0]||(i[0]=e=>k.value=e),maskClosable:!1,width:A.value,bodyStyle:n(C),closable:!1,centered:"",onPositiveClick:T,onNegativeClick:j},{default:s((()=>[d(n(p),{style:c({width:A.value,...n(C)}),title:w.modalTitle,bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":s((()=>[r("div",b,[r("i",{onClick:$,class:u(["iconfont-table-filter",z.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),r("i",{onClick:j,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:s((()=>[r("div",y,[d(n(m),{onClick:j},{default:s((()=>[v("取消")])),_:1}),d(n(m),{type:"info",onClick:T},{default:s((()=>[v("保存")])),_:1})])])),default:s((()=>[d(x,f(e.$attrs,{ref_key:"conditionApiRef",ref:L,searchFieldList:w.searchFieldList,conditionList:w.conditionList}),null,16,["searchFieldList","conditionList"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}}),[["__file","index.vue"]]);export{_ as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as o,openBlock as a,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return o((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),o((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),o((()=>T),(e=>{e||(S.value={})})),(i,t)=>(a(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
@@ -0,0 +1,2 @@
1
+ import { Ref, InjectionKey } from 'vue';
2
+ export declare const root_isShowResetButton: InjectionKey<Ref<boolean>>;
@@ -0,0 +1 @@
1
+ const o=Symbol("root_isShowResetButton");export{o as root_isShowResetButton};
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IClassifyListType, ITreeDataType, IConditionMapType } from '../../../../../es/components/table-filter/src/types';
2
+ import { IClassifyListType, ITreeDataType, IConditionMapType } from '../../../../es/components/table-filter/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  tableId: {
5
5
  type: StringConstructor;
@@ -697,9 +697,9 @@ declare const _default: import("vue").DefineComponent<{
697
697
  showAdd: boolean;
698
698
  };
699
699
  isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
700
- editDisplayCategory: (e: any, item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
701
- handleDisplayCategorySelect: (item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
702
- handleDisplayCategoryRemove: (index: number, item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
700
+ editDisplayCategory: (e: any, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
701
+ handleDisplayCategorySelect: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
702
+ handleDisplayCategoryRemove: (index: number, item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
703
703
  handleDisplayCategoryAdd: (e: any) => void;
704
704
  handlerBlur: () => void;
705
705
  initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
@@ -710,7 +710,7 @@ declare const _default: import("vue").DefineComponent<{
710
710
  updateKey: (index: number, val: any) => void;
711
711
  updateCondition: (index: number, val: any) => void;
712
712
  getParamCfg: (key: string) => any;
713
- initFilterConditions: (tableId: string, rawConditions: import("../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
713
+ initFilterConditions: (tableId: string, rawConditions: import("../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
714
714
  getRawFilterConditions: () => {
715
715
  field_key: any;
716
716
  con: any;
@@ -718,7 +718,7 @@ declare const _default: import("vue").DefineComponent<{
718
718
  unit: any;
719
719
  }[];
720
720
  findConditionByDisplayCategory: (displayCategory: string) => unknown;
721
- handleDisplayCategorySelectProxy: (item: import("../../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
721
+ handleDisplayCategorySelectProxy: (item: import("../../../../es/components/table-filter/src/types").ICategoryItemType) => void;
722
722
  clearFormData: () => void;
723
723
  handleInitConditions: () => Promise<void>;
724
724
  validate: () => Promise<unknown>;
@@ -729,9 +729,6 @@ declare const _default: import("vue").DefineComponent<{
729
729
  NIcon: any;
730
730
  NInput: any;
731
731
  NButton: any;
732
- /**
733
- * 改变展示方式
734
- */
735
732
  NTooltip: any;
736
733
  NSelect: any;
737
734
  AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as i,ref as n,provide as l,computed as t,onActivated as a,onBeforeMount as o,onMounted as s,nextTick as d,watch as c,openBlock as r,createElementBlock as h,normalizeClass as u,unref as f,normalizeStyle as p,withDirectives as g,createVNode as m,createTextVNode as v,toDisplayString as C,createCommentVNode as y,createElementVNode as k,Fragment as S,renderList as b,createBlock as x,withCtx as _}from"vue";import{NIcon as O,NTooltip as w}from"naive-ui";import{Repeat as I,SettingsOutline as L,ChevronDown as z,ChevronForward as j,Checkmark as B,Close as N,ChevronUp as P}from"@vicons/ionicons5";import M from"./components/set-classification/index.vue.js";import A from"./directive/flexibleResize.js";import{root_isShowResetButton as E}from"./const/index.js";import J from"../../table-filter/src/hooks/useMixins.js";import T from"../../../_virtual/plugin-vue_export-helper.js";const R={key:0,class:"header"},F={class:"tree"},W=["onClick"],q=["onClick"],G=["onClick"],Q={class:"child-item-name"},$={key:1,class:"tree-type-footer"},D={class:"selected-num"},V=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),H={key:0,class:"tile-type classify-1"},K={key:0,class:"header"},U={class:"right-setting"},X=["onClick"],Y={class:"parent ellips"},Z={class:"children"},ee=["onClick"],ie={key:1,class:"selected-list"},ne={class:"selected-num"},le=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1),te={class:"name"},ae={class:"name"},oe={key:0,class:"main-wrapper"},se=["onClick"],de={class:"tree-footer"},ce=["onClick"],re=["onClick"],he={key:0,class:"select-type-footer"},ue={class:"selected-num"},fe=k("i",{class:"iconfont-table-filter icon-table-filter-menzhenyishengzhananniushanchu2"},null,-1);var pe=T(e({__name:"index",props:{tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},conditionMap:{type:Object,default:()=>{}},conditionSid:{type:Array,default:()=>[]},curClassificationIndex:{type:Number,default:0},curClassificationWidth:{type:Number},hideConditionChangeBtn:{type:Number,default:0},hideConditionChangeSetting:{type:Number,default:0},hideClearConditionChange:{type:Number,default:1},isShowResetButton:{type:Boolean,default:!0},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeSearch","setClassificationIndex","getQuickSearchListObj"],setup(e,{emit:T}){const pe=e,{handleGetConfigApi:ge}=J(),me=i(),ve=n(null);let Ce=n(150),ye=n(!1),ke=n([]),Se=n([]),be=n([]),xe=n(2),_e=n(""),Oe=n({name:"全部数据",sid:"all_data"}),we=n([]),Ie=n([]),Le=n(""),ze=n(!1),je=n("全部数据");l(E,n(pe.isShowResetButton));let Be=t((()=>0===xe.value?{marginRight:"8px"}:2===xe.value?{display:"inline-block"}:{})),Ne=t((()=>{let e=Se.value.filter((e=>-1!==pe.conditionSid.indexOf(e.sid)));if(-1!==pe.conditionSid.indexOf("all_data"))return"全部数据";{let i=[];return e.map((e=>{i.push(e.name)})),i.join(",")}})),Pe=t((()=>function(e){let i=0===e.digital?"(0)":e.digital?`(${e.digital})`:"";const{name:n,isPublic:l}=e;return Ue(n,l)+i}));function Me(e){e.open?e.open=!1:e.open=!0}function Ae(e,i,n){je.value=e.name;let l=function(e){let i=[];return ke.value.forEach((n=>{n.children?n.children.forEach((n=>{-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})):-1!==e.indexOf(n.sid)?(n.selected=!0,i.push(n)):n.selected=!1})),i}(function(e,i,n){let l=JSON.parse(JSON.stringify(i));l="all_data"===e||-1!==l.indexOf(e)?["all_data"]:[e];return l}(e.sid,pe.conditionSid));Fe(!1),T("changeSearch",Boolean("all_data"===e.sid),e,n,l)}function Ee(){let e="";if(2===xe.value)e=0;else{let i=xe.value;e=++i}Ce.value=150,Je(e)}async function Je(e,i){let n={tableId:pe.tableId,setting:JSON.stringify({classificationIndex:e,classificationWidth:i})};try{await ge(n,"requestSaveListPersonaSetting",{},pe.filterApiConfig)&&T("setClassificationIndex",e)}catch(e){console.log(e)}}function Te(){ze.value=!0,Fe(!1)}function Re(e){ze.value=e}function Fe(e){ye.value=void 0===e?!ye.value:e}function We(e){var i;if((void 0!==e&&"delete"===e.type&&-1!==pe.conditionSid.indexOf(e.item.sid)&&T("changeSearch",!0,{name:"全部数据",sid:"all_data",selected:!0}),pe.tableId)&&Object.keys(pe.conditionMap).length>0){ke.value=[];let{displayCategoryList:e=[],conditionList:n=[]}=pe.conditionMap;be.value=JSON.parse(JSON.stringify(n)),Ie.value=e||[],Se.value=JSON.parse(JSON.stringify(n));const l={name:"全部数据",sid:"all_data"};Se.value.unshift(l);let t=[];0===e.length&&(e=["未分类"]),e.forEach((e=>{let i={name:e,children:[]};n.forEach((n=>{(n.displayCategory===e||!n.displayCategory&&"未分类"===e&&"all_data"!==n.sid)&&(-1!==pe.conditionSid.indexOf(n.sid)&&(n.selected=!0,i.open=!0),n.isShow&&i.children.push(n))})),i.children.length>0&&t.push(i)})),t.unshift({name:"全部数据",sid:"all_data"}),ke.value=t,0===xe.value&&(i=!0,ke.value.forEach((e=>{e.children&&e.children.length&&(e.open=i)})))}}async function qe(e){try{await We(e)}catch(e){console.log(e)}}function Ge({distance:e}){const i=Ce.value+e;Ce.value=Math.min(Math.max(i,50),650)}function Qe(){Je(xe.value,Ce.value)}async function $e(){await Ke(pe.tableId),Ve()}async function De(e){await Ke(pe.tableId),He()}function Ve(e){He(e).then((e=>{}))}function He(e,i={}){if(!pe.tableId)return new Promise((e=>e(!1)));let n=Object.keys(i).length>0?i:pe.conditionMap;return new Promise(((i,l)=>{var t,a,o,s,d,c;if(Object.keys(n).length>0){we.value=n.conditionList||[],Ie.value=n.displayCategoryList||[];let l={conditionList:we.value,displayCategoryList:Ie.value};T("getQuickSearchListObj",l),Le.value=n.settingId;const r=we.value.find((e=>e.isDefault))||{name:"全部数据",sid:"all_data"};(null==(a=null==(t=me.tableOptions)?void 0:t.filterCondition)?void 0:a.displayCategory)&&e&&i({name:null==(s=null==(o=me.tableOptions)?void 0:o.filterCondition)?void 0:s.name,sid:null==(c=null==(d=me.tableOptions)?void 0:d.filterCondition)?void 0:c.displayCategory}),i(r)}else i({})}))}async function Ke(e){try{if(!e)return new Promise((e=>e(!1)));let i={tableId:e},n=await ge(i,"requestTableCondiTionList",{},pe.filterApiConfig);return Promise.resolve(n)}catch(e){return Promise.resolve(!1)}}function Ue(e,i){return e&&"1"===i?e.replace(/\(公共\)$/,""):e}return a((()=>{qe({})})),o((()=>{qe({})})),s((()=>{document.addEventListener("click",(e=>{d((()=>{let i=e.composedPath&&e.composedPath();ve&&i.includes(ve.value)||Fe(!1)}))}))})),c((()=>pe.tableId),(e=>{e&&(Ve(!0),_e.value!==e&&(_e.value=e))}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationIndex),(e=>{void 0!==e&&(xe.value=e)}),{immediate:!0,deep:!0}),c((()=>pe.curClassificationWidth),(e=>{e&&(Ce.value=Number(e)||150)}),{immediate:!0}),(i,n)=>(r(),h("div",{class:u(["classification-block","classificationIndex-"+f(xe)]),style:p(f(Be))},[0===f(xe)?g((r(),h("div",{key:0,class:"tree-type classify-0",style:p({width:f(Ce)+"px",paddingBottom:1!=e.hideClearConditionChange?"80px":0,position:"relative"})},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",R,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"header-1",onClick:Ee},[m(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"header-1",onClick:Te},[m(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])):y("v-if",!0),k("ul",F,[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[k("span",{class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[k("span",null,C(i.name),1),m(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,q),i.open?(r(!0),h(S,{key:0},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,trigger:"hover",placement:"right"},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",Q,C(e.name||Ue(e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,G)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h("span",{key:0,class:u(["child-item header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,W))],2)):y("v-if",!0)],64)))),256))]),1!=e.hideClearConditionChange?(r(),h("div",$,[k("div",D,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[0]||(n[0]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[V,v(" 清空筛选 ")])])):y("v-if",!0)],4)),[[f(A),{mode:"VR",onMove:Ge,onEnd:Qe}]]):y("v-if",!0),1===f(xe)?(r(),h(S,{key:1},[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting||1!=e.hideConditionChangeSetting||f(be).filter((e=>e.isShow)).length>0?(r(),h("div",H,[1!=e.hideConditionChangeBtn||1!=e.hideConditionChangeSetting?(r(),h("div",K,[k("span",{class:u(["all-data",{selected:-1!==e.conditionSid.indexOf("all_data")}]),onClick:n[1]||(n[1]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[v(" 全部数据 "),f(Oe).digital||0===f(Oe).digital?(r(),h(S,{key:0},[v(" ("+C(f(Oe).digital||0)+") ",1)],64)):y("v-if",!0)],2),k("div",U,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"setting-1",onClick:Ee,style:{"margin-right":"30px"}},[m(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"setting-1",onClick:Te},[m(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])])):y("v-if",!0),k("ul",{class:"tile",style:p({borderBottom:1!=e.hideClearConditionChange?"1px solid #d5d5d5":0})},[(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&e.children.length>0?(r(),h("li",{class:"tile-item",key:i},[e.children&&0!==e.children.length?(r(),h(S,{key:1},[k("span",Y,C(e.name),1),k("div",Z,[(r(!0),h(S,null,b(e.children,((i,n)=>(r(),h(S,null,[i.isShow?(r(),h("span",{key:n,class:u(["child-item",{selected:i.selected}]),onClick:n=>Ae(i,0,e)},C(i.name||Ue(i.isPublic)),11,ee)):y("v-if",!0)],64)))),256))])],64)):(r(),h("span",{key:0,class:u(["child-item",{selected:e.selected}]),style:{"padding-left":"17px"},onClick:i=>Ae(e)},C(e.name)+" "+C(e.digital),11,X))])):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",ie,[k("div",ne,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),(r(!0),h(S,null,b(f(ke).slice(1),((e,i)=>(r(),h(S,null,[e.children&&0!==e.children.length?(r(!0),h(S,{key:1},b(e.children,((i,n)=>(r(),h(S,null,[i.selected?(r(),h("div",{class:"selected-item",key:i.sid},[v(C(i.name)+" ",1),m(f(O),{component:f(N),onClick:n=>Ae(i,0,e)},null,8,["component","onClick"])])):y("v-if",!0)],64)))),256)):(r(),h("div",{class:"selected-item",key:e.sid},[v(C(e.name)+" ",1),m(f(O),{component:f(N),onClick:i=>Ae(e)},null,8,["component","onClick"])]))],64)))),256)),k("div",{class:"selected-item-del",onClick:n[2]||(n[2]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[le,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],64)):y("v-if",!0),2===f(xe)?(r(),h("div",{key:2,class:"select-type classify-2",ref_key:"selectType",ref:ve},[k("span",{class:"title",onClick:n[3]||(n[3]=()=>Fe())},[m(f(w),{trigger:"hover",placement:"top"},{trigger:_((()=>[k("span",te,C(f(Ne)),1)])),default:_((()=>[k("span",ae,C(f(Ne)),1)])),_:1}),m(f(O),{component:f(ye)?f(P):f(z)},null,8,["component"])]),f(ye)?(r(),h("div",oe,[k("ul",{class:"tree",style:p({padding:1!=e.hideClearConditionChange?"40px 0":"40px 0 0"})},[(r(!0),h(S,null,b(f(ke),((i,n)=>(r(),h(S,null,[0===n||!i.children||0===i.children.length||i.children&&0!==i.children.filter((e=>e.isShow)).length?(r(),h("li",{key:n,class:u(["tree-item",{"tree-header":0===n||!i.children||0===i.children.length}])},[0!==n&&i.children&&0!==i.children.length?(r(),h(S,{key:1},[0!==i.children.filter((e=>e.isShow)).length?(r(),h("span",{key:0,class:u(["parent",{open:i.open}]),onClick:e=>Me(i)},[v(C(i.name)+C(i.digital||0===i.digital?"("+i.digital+")":"")+" ",1),m(f(O),{component:i.open?f(z):f(j)},null,8,["component"])],10,ce)):y("v-if",!0),i.open?(r(!0),h(S,{key:1},b(i.children.filter((e=>e.isShow)),((e,n)=>(r(),h("div",{class:"children",key:n},[e.isShow?(r(),x(f(w),{key:0,placement:"right",trigger:"hover","z-index":1e4},{trigger:_((()=>[k("span",{class:u(["child-item",{selected:e.selected}]),onClick:n=>Ae(e,0,i)},[k("span",null,C(e.name||Ue(null==e?void 0:e.isPublic)),1),e.selected?(r(),x(f(O),{key:0,component:f(B),size:"20"},null,8,["component"])):y("v-if",!0)],10,re)])),default:_((()=>[k("span",null,C(f(Pe)(e)),1)])),_:2},1024)):y("v-if",!0)])))),128)):y("v-if",!0)],64)):(r(),h(S,{key:0},[k("span",{class:u(["child-item child-header header-item",{selected:i.selected||-1!==e.conditionSid.indexOf("all_data")}]),onClick:e=>Ae(i)},C(i.name),11,se),k("div",de,[1!=e.hideConditionChangeBtn?(r(),h("span",{key:0,class:"tree-footer-icon",onClick:Ee},[m(f(O),{component:f(I),size:"16"},null,8,["component"]),v(" "+C("切换"))])):y("v-if",!0),1!=e.hideConditionChangeSetting?(r(),h("span",{key:1,class:"tree-footer-icon",onClick:Te},[m(f(O),{component:f(L),size:"16"},null,8,["component"]),v(" "+C("设置"))])):y("v-if",!0)])],64))],2)):y("v-if",!0)],64)))),256))],4),1!=e.hideClearConditionChange?(r(),h("div",he,[k("div",ue,"已选择"+C(e.conditionSid.filter((e=>"all_data"!==e)).length)+"项",1),k("div",{class:"selected-item-del",onClick:n[4]||(n[4]=e=>Ae({sid:"all_data",name:"全部数据",digital:f(Oe).digital}))},[fe,v(" 清空筛选 ")])])):y("v-if",!0)])):y("v-if",!0)],512)):y("v-if",!0),y(" 弹出弹窗 "),m(M,{ref:"search",searchFieldList:e.searchFieldList,conditionList:f(we),displayCategoryList:f(Ie),settingId:f(Le),tableId:e.tableId,classifyModal:f(ze),filterApiConfig:e.filterApiConfig,onSaveGetTableCondiTionList:De,onCondiTionListInit:$e,onSetClassifyModal:Re},null,8,["searchFieldList","conditionList","displayCategoryList","settingId","tableId","classifyModal","filterApiConfig"])],6))}}),[["__file","index.vue"]]);export{pe as default};
@@ -0,0 +1 @@
1
+ @font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.classification-block .tree-type{border:1px solid #d5d5d5;border-radius:4px;height:100%;line-height:32px;margin-top:8px;padding-bottom:80px;width:150px}.classification-block .tree-type .header{border-bottom:1px solid #e6eaef;display:flex;font-size:14px;justify-content:space-between;padding:0 10px}.classification-block .tree-type .header .header-1{align-items:center;cursor:pointer;display:flex}.classification-block .tree-type .tree{height:calc(100% - 32px);line-height:32px;margin:0;overflow:auto;padding-left:0}.classification-block .tree-type .tree::-webkit-scrollbar{width:5px}.classification-block .tree-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer}.classification-block .tree-type .tree .tree-item.tree-header{box-sizing:border-box;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .tree-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .tree-type .tree .tree-item .header-item{box-sizing:border-box;line-height:1.4}.classification-block .tree-type .tree .tree-item .header-item.selected,.classification-block .tree-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children{align-items:center;display:flex;height:32px;padding-left:23px;padding-right:10px}.classification-block .tree-type .tree .tree-item .children .child-item{align-items:center;border-bottom:1px solid transparent;color:#7c7c7c;display:flex;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .tree-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .tree-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tree-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-content{align-items:center;display:flex}.classification-block .tree-type .tree .tree-item .children .child-item .child-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .tree-type .tree .tree-item .children .child-item .digital-span{flex:1;margin-left:5px;text-align:left}.classification-block .tree-type .tree .tree-item:last-child{border-bottom:none}.classification-block .tree-type .tree-type-footer{border-top:1px solid #d5d5d5;bottom:0;height:80px;line-height:20px;padding-left:16px;position:absolute;width:100%}.classification-block .tree-type .tree-type-footer .selected-num{margin:10px}.classification-block .tree-type .tree-type-footer .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;justify-content:center;margin-left:0}.classification-block .tile-type{border:1px solid #d5d5d5;border-radius:4px;margin-bottom:8px;padding:0 17px}.classification-block .tile-type .header{align-items:center;border-bottom:1px solid #d5d5d5;display:inline-flex;justify-content:space-between;line-height:44px;width:100%}.classification-block .tile-type .header .all-data{border-bottom:1px solid transparent;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500;line-height:1.4;margin-right:auto}.classification-block .tile-type .header .all-data:hover{color:#2d7aff}.classification-block .tile-type .header .all-data:active{border-color:transparent;color:#000}.classification-block .tile-type .header .selected{color:#2d7aff}.classification-block .tile-type .header .right-setting{display:flex}.classification-block .tile-type .header .right-setting .setting-1{align-items:center;cursor:pointer;display:flex}.classification-block .tile-type .header .right-setting .setting-1 .n-icon{margin-right:6px}.classification-block .tile-type .header .right-setting .upack-up-btn{color:#2d7aff}.classification-block .tile-type .tile{border-bottom:1px solid #d5d5d5;margin:0;padding:9px 0}.classification-block .tile-type .tile .tile-item{cursor:pointer;display:flex;line-height:38px}.classification-block .tile-type .tile .tile-item .parent{box-sizing:border-box;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:600;max-width:135px;padding-right:16px;width:135px}.classification-block .tile-type .tile .tile-item .children{flex:1}.classification-block .tile-type .tile .tile-item .children .child-item{border-bottom:1px solid transparent;border-radius:4px;color:#7c7c7c;display:inline-block;font-size:14px;line-height:1.5;margin:0 5px;padding:1px 6px}.classification-block .tile-type .tile .tile-item .children .child-item.selected,.classification-block .tile-type .tile .tile-item .children .child-item:hover{background-color:rgba(45,122,255,.1);color:#2d7aff}.classification-block .tile-type .tile .tile-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .tile-type .tile .tile-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .tile-type .tile .tile-item .child-item.selected{color:#2d7aff}.classification-block .tile-type .selected-list{align-items:center;display:flex;padding:12px 6px}.classification-block .tile-type .selected-list .selected-num{font-size:14px;line-height:20px;margin-right:8px}.classification-block .tile-type .selected-list .selected-item{align-items:center;background-color:rgba(45,122,255,.1);border-radius:4px;color:#2d7aff;cursor:pointer;display:flex;margin-left:8px;padding:1px 8px}.classification-block .tile-type .selected-list .selected-item-del{align-items:center;color:#2474ff;cursor:pointer;display:flex;font-size:14px;line-height:20px;margin-left:22px}.classification-block .select-type{height:32px;line-height:32px;margin-bottom:8px;margin-right:8px;position:relative;width:100px}.classification-block .select-type .title{align-items:center;border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;color:#969696;cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:space-between;padding:0 8px;width:100%}.classification-block .select-type .title>.name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .main-wrapper{background-color:#fff;border:1px solid #d5d5d5;border-radius:4px;min-width:270px;position:absolute;top:39px;width:100%;z-index:3000}.classification-block .select-type .main-wrapper::-webkit-scrollbar{width:5px}.classification-block .select-type .tree{margin:0;max-height:300px;overflow:auto;padding:32px 0}.classification-block .select-type .tree .tree-item{border-bottom:1px solid #d5d5d5;cursor:pointer;line-height:32px}.classification-block .select-type .tree .tree-item.tree-header{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;height:40px;padding:0 10px;position:absolute;top:0;width:100%;z-index:1}.classification-block .select-type .tree .tree-item .tree-footer{align-items:center;color:rgba(0,0,0,.6);display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon{align-items:center;cursor:pointer;display:flex}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon .n-icon{margin-right:6px}.classification-block .select-type .tree .tree-item .tree-footer .tree-footer-icon:first-child{margin-right:16px}.classification-block .select-type .tree .tree-item .parent{align-items:center;display:flex;font-weight:600;justify-content:space-between;padding:0 10px}.classification-block .select-type .tree .tree-item .parent.open{background-color:#f2f2f2;border-bottom:1px solid #d5d5d5}.classification-block .select-type .tree .tree-item .header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6);flex:1}.classification-block .select-type .tree .tree-item .header-item.selected,.classification-block .select-type .tree .tree-item .header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children{align-items:center;display:flex;height:32px;line-height:32px;padding-left:23px;padding-right:10px}.classification-block .select-type .tree .tree-item .children .child-item{border-bottom:1px solid transparent;color:#7c7c7c;display:inline-block;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-block .select-type .tree .tree-item .children .child-item.child-header{padding:0 10px}.classification-block .select-type .tree .tree-item .children .child-item.header-item{border-bottom:1px solid transparent;color:rgba(0,0,0,.6)}.classification-block .select-type .tree .tree-item .children .child-item.header-item.selected,.classification-block .select-type .tree .tree-item .children .child-item.header-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.header-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item:hover{color:#2d7aff}.classification-block .select-type .tree .tree-item .children .child-item.selected{align-items:center;color:#2d7aff;display:flex;justify-content:space-between;width:100%}.classification-block .select-type .tree .tree-item .children .child-item:active{border-color:transparent;color:#000}.classification-block .select-type .tree .tree-item .children .child-item.disabled{color:rgba(0,0,0,.2)}.classification-block .select-type .tree .tree-item:last-child{border-bottom:0}.classification-block .select-type .select-type-footer{align-items:center;background-color:#fff;border-top:1px solid #d5d5d5;bottom:0;display:flex;height:40px;justify-content:space-between;padding:0 12px;position:absolute;width:100%}.classification-block .select-type .select-type-footer .selected-num{color:rgba(0,0,0,.6)}.classification-block .select-type .select-type-footer .selected-item-del{color:#2474ff;cursor:pointer}
@@ -1 +1 @@
1
- import{defineComponent as e,computed as r,provide as t,createVNode as o,resolveComponent as i,mergeProps as n,isVNode as s}from"vue";import{NConfigProvider as m}from"naive-ui";import{cloneDeep as d}from"lodash-es";import{addPrefix as p}from"./utils/index.js";var a=e({name:"ConfigProvider",inheritAttrs:!1,components:{NConfigProvider:m},props:{themeOverrides:{type:Object}},emits:[],setup(e,{attrs:m,slots:a,emit:f}){const v=r((()=>({...d(e.themeOverrides),...p(e.themeOverrides,["BigTable","Keyboard","IhoTable","StepsWheel"])})));return t("themeOverridesInjectRef",v),{renderVN:()=>{return[o(i("n-config-provider"),n(m,e),(r=a,"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?a:{default:()=>[a]}))];var r}}},render(){return this.renderVN()}});export{a as default};
1
+ import{defineComponent as e,computed as r,provide as t,createVNode as o,resolveComponent as i,mergeProps as n,isVNode as s}from"vue";import{NConfigProvider as m}from"naive-ui";import{cloneDeep as d}from"lodash-es";import{addPrefix as p}from"./utils/index.js";var a=e({name:"ConfigProvider",inheritAttrs:!1,components:{NConfigProvider:m},props:{themeOverrides:{type:Object}},emits:[],setup(e,{attrs:m,slots:a,emit:f}){const v=r((()=>({...d(e.themeOverrides),...p(e.themeOverrides,["IhoTable","Keyboard","IhoTable","StepsWheel"])})));return t("themeOverridesInjectRef",v),{renderVN:()=>{return[o(i("n-config-provider"),n(m,e),(r=a,"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?a:{default:()=>[a]}))];var r}}},render(){return this.renderVN()}});export{a as default};
@@ -1,5 +1,5 @@
1
1
  import { GlobalThemeOverrides } from 'naive-ui';
2
- interface BigTableStyle {
2
+ interface IhoTableStyle {
3
3
  borderColor: string;
4
4
  }
5
5
  interface KeyboardStyle {
@@ -11,7 +11,7 @@ interface StepsWheelStyle {
11
11
  colorFinish: string;
12
12
  }
13
13
  export interface CGlobalThemeOverrides extends GlobalThemeOverrides {
14
- BigTable?: BigTableStyle;
14
+ IhoTable?: IhoTableStyle;
15
15
  Keyboard?: KeyboardStyle;
16
16
  StepsWheel?: StepsWheelStyle;
17
17
  }