cnhis-design-vue 3.2.10-beta.11 → 3.2.10-beta.18

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 (107) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +1 -0
  3. package/es/components/base-search/src/index.vue.d.ts +1 -0
  4. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  5. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  6. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  7. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  8. package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
  9. package/es/components/card-reader-sdk/src/utils/index.js +1 -1
  10. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  11. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  14. package/es/components/field-set/index.d.ts +13 -0
  15. package/es/components/field-set/src/FieldColor.vue.d.ts +71 -25
  16. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  17. package/es/components/field-set/src/FieldFilter.vue.d.ts +18 -3
  18. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  19. package/es/components/field-set/src/FieldSet.vue.d.ts +4 -1
  20. package/es/components/field-set/src/Index.vue.d.ts +13 -0
  21. package/es/components/field-set/src/Index.vue2.js +1 -1
  22. package/es/components/field-set/src/components/condition.vue.d.ts +18 -4
  23. package/es/components/field-set/src/components/condition.vue2.js +1 -1
  24. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +63 -22
  25. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
  26. package/es/components/field-set/src/components/edit-filter.vue.d.ts +44 -44
  27. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
  28. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -1
  29. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  30. package/es/components/field-set/style/index.css +1 -1
  31. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
  32. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
  33. package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
  34. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  35. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  36. package/es/components/iho-chat/index.d.ts +7 -7
  37. package/es/components/iho-chat/src/Index.vue.d.ts +7 -7
  38. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -1
  39. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +1 -1
  40. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -1
  41. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +3 -3
  42. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +1 -1
  43. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  44. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -1
  45. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -1
  46. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  47. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
  48. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -0
  49. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  50. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  51. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +30 -0
  52. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +1 -0
  53. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -0
  54. package/es/components/iho-table/src/plugins/filterTextPlugin/index.d.ts +1 -0
  55. package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +1 -0
  56. package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
  57. package/es/components/iho-table/src/plugins/index.js +1 -1
  58. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
  59. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
  60. package/es/components/iho-table/src/types/index.d.ts +1 -0
  61. package/es/components/iho-table/src/utils/index.d.ts +3 -1
  62. package/es/components/iho-table/src/utils/index.js +1 -1
  63. package/es/components/index.css +1 -1
  64. package/es/components/quick-search/index.d.ts +15 -0
  65. package/es/components/quick-search/src/index.vue.d.ts +15 -0
  66. package/es/components/quick-search/src/index.vue2.js +1 -1
  67. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  68. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  69. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  70. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  71. package/es/components/table-filter/src/types/index.d.ts +1 -0
  72. package/es/env.d.ts +25 -25
  73. package/es/shared/assets/img/ai__avatar.png.js +1 -1
  74. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  75. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  76. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  77. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  78. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  79. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  80. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  81. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  82. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  83. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  84. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  85. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  86. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  87. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  88. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  89. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  90. package/es/shared/assets/img/failure.png.js +1 -1
  91. package/es/shared/assets/img/logo.png.js +1 -1
  92. package/es/shared/assets/img/no-permission.png.js +1 -1
  93. package/es/shared/assets/img/nodata.png.js +1 -1
  94. package/es/shared/assets/img/notfound.png.js +1 -1
  95. package/es/shared/assets/img/qr.png.js +1 -1
  96. package/es/shared/assets/img/success.png.js +1 -1
  97. package/es/shared/assets/img/table_style_2.png.js +1 -1
  98. package/es/shared/assets/img/video.png.js +1 -1
  99. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  100. package/es/shared/assets/img/xb_big.png.js +1 -1
  101. package/es/shared/assets/img/xb_small.png.js +1 -1
  102. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  103. package/es/shared/package.json.js +1 -1
  104. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  105. package/es/shared/utils/index.js +1 -1
  106. package/es/shared/utils/tapable/index.d.ts +139 -0
  107. package/package.json +2 -2
@@ -14,6 +14,14 @@ declare const _default: import("vue").DefineComponent<{
14
14
  type: PropType<AnyObject | null>;
15
15
  default: null;
16
16
  };
17
+ readonly: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ isAdd: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
17
25
  }, {
18
26
  cssVars: import("vue").ComputedRef<AnyObject>;
19
27
  message: import("naive-ui").MessageApi;
@@ -36,6 +44,14 @@ declare const _default: import("vue").DefineComponent<{
36
44
  type: PropType<AnyObject | null>;
37
45
  default: null;
38
46
  };
47
+ readonly: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ isAdd: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
39
55
  }>> & {
40
56
  onConfirm?: ((...args: any[]) => any) | undefined;
41
57
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
@@ -44,7 +60,7 @@ declare const _default: import("vue").DefineComponent<{
44
60
  formRef: import("vue").Ref<any>;
45
61
  conditionRef: import("vue").Ref<any>;
46
62
  filterVisible: import("vue").Ref<boolean>;
47
- title: import("vue").ComputedRef<"新增" | "修改" | "过滤条件">;
63
+ title: import("vue").ComputedRef<"复制" | "新增" | "修改" | "过滤条件">;
48
64
  model: {
49
65
  name: string;
50
66
  color: string;
@@ -71,18 +87,26 @@ declare const _default: import("vue").DefineComponent<{
71
87
  NRadio: any;
72
88
  NSpace: any;
73
89
  Condition: import("vue").DefineComponent<{
74
- data: {
90
+ model: {
75
91
  type: PropType<AnyObject>;
76
92
  default: null;
77
93
  };
94
+ readonly: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
78
98
  }, {
79
99
  customValue: string;
80
100
  cssVars: import("vue").ComputedRef<AnyObject>;
81
101
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
82
- data: {
102
+ model: {
83
103
  type: PropType<AnyObject>;
84
104
  default: null;
85
105
  };
106
+ readonly: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
86
110
  }>> & {}>>;
87
111
  fieldList: AnyObject[];
88
112
  queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
@@ -216,6 +240,7 @@ declare const _default: import("vue").DefineComponent<{
216
240
  NInputNumber: any;
217
241
  NSelect: any;
218
242
  NIcon: any;
243
+ NButton: any;
219
244
  AddCircleSharp: 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<{}>>, {}>;
220
245
  RemoveCircle: 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<{}>>, {}>;
221
246
  UNIT_OPTIONS: {
@@ -346,32 +371,29 @@ declare const _default: import("vue").DefineComponent<{
346
371
  holidays: Date[];
347
372
  }>>;
348
373
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
349
- data: {
374
+ model: {
350
375
  type: PropType<AnyObject>;
351
376
  default: null;
352
377
  };
378
+ readonly: {
379
+ type: BooleanConstructor;
380
+ default: boolean;
381
+ };
353
382
  }>>, {
354
- data: AnyObject;
383
+ model: AnyObject;
384
+ readonly: boolean;
355
385
  }>;
356
386
  EditFilter: import("vue").DefineComponent<{
357
387
  visible: {
358
388
  type: BooleanConstructor;
359
389
  default: boolean;
360
390
  };
361
- model: {
362
- type: PropType<AnyObject>;
363
- default: null;
364
- };
365
391
  }, {
366
392
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
367
393
  visible: {
368
394
  type: BooleanConstructor;
369
395
  default: boolean;
370
396
  };
371
- model: {
372
- type: PropType<AnyObject>;
373
- default: null;
374
- };
375
397
  }>> & {
376
398
  onConfirm?: ((...args: any[]) => any) | undefined;
377
399
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
@@ -382,18 +404,26 @@ declare const _default: import("vue").DefineComponent<{
382
404
  onClose: () => void;
383
405
  NModal: any;
384
406
  Condition: import("vue").DefineComponent<{
385
- data: {
407
+ model: {
386
408
  type: PropType<AnyObject>;
387
409
  default: null;
388
410
  };
411
+ readonly: {
412
+ type: BooleanConstructor;
413
+ default: boolean;
414
+ };
389
415
  }, {
390
416
  customValue: string;
391
417
  cssVars: import("vue").ComputedRef<AnyObject>;
392
418
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
393
- data: {
419
+ model: {
394
420
  type: PropType<AnyObject>;
395
421
  default: null;
396
422
  };
423
+ readonly: {
424
+ type: BooleanConstructor;
425
+ default: boolean;
426
+ };
397
427
  }>> & {}>>;
398
428
  fieldList: AnyObject[];
399
429
  queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
@@ -527,6 +557,7 @@ declare const _default: import("vue").DefineComponent<{
527
557
  NInputNumber: any;
528
558
  NSelect: any;
529
559
  NIcon: any;
560
+ NButton: any;
530
561
  AddCircleSharp: 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<{}>>, {}>;
531
562
  RemoveCircle: 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<{}>>, {}>;
532
563
  UNIT_OPTIONS: {
@@ -657,28 +688,28 @@ declare const _default: import("vue").DefineComponent<{
657
688
  holidays: Date[];
658
689
  }>>;
659
690
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
660
- data: {
691
+ model: {
661
692
  type: PropType<AnyObject>;
662
693
  default: null;
663
694
  };
695
+ readonly: {
696
+ type: BooleanConstructor;
697
+ default: boolean;
698
+ };
664
699
  }>>, {
665
- data: AnyObject;
700
+ model: AnyObject;
701
+ readonly: boolean;
666
702
  }>;
667
703
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
668
704
  visible: {
669
705
  type: BooleanConstructor;
670
706
  default: boolean;
671
707
  };
672
- model: {
673
- type: PropType<AnyObject>;
674
- default: null;
675
- };
676
708
  }>> & {
677
709
  onConfirm?: ((...args: any[]) => any) | undefined;
678
710
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
679
711
  }, {
680
712
  visible: boolean;
681
- model: AnyObject;
682
713
  }>;
683
714
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
684
715
  visible: {
@@ -693,12 +724,22 @@ declare const _default: import("vue").DefineComponent<{
693
724
  type: PropType<AnyObject | null>;
694
725
  default: null;
695
726
  };
727
+ readonly: {
728
+ type: BooleanConstructor;
729
+ default: boolean;
730
+ };
731
+ isAdd: {
732
+ type: BooleanConstructor;
733
+ default: boolean;
734
+ };
696
735
  }>> & {
697
736
  onConfirm?: ((...args: any[]) => any) | undefined;
698
737
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
699
738
  }, {
700
739
  row: AnyObject | null;
701
740
  visible: boolean;
741
+ isAdd: boolean;
742
+ readonly: boolean;
702
743
  isFieldColor: boolean;
703
744
  }>;
704
745
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,inject as l,ref as o,computed as a,reactive as t,openBlock as i,createBlock as r,unref as s,withCtx as n,createVNode as u,normalizeStyle as c,createElementVNode as d,createCommentVNode as m}from"vue";import{useMessage as p,NModal as f,NForm as v,NFormItem as b,NInput as h,NColorPicker as g,NSelect as k,NCheckbox as _,NRadioGroup as w,NSpace as y,NRadio as C}from"naive-ui";import{useTheme as j}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../../shared/hooks/useScrollLoading.js";import x from"./condition.vue.js";import F from"./edit-filter.vue.js";import{COLOR_MAP as N,InjectionFieldList as U}from"../constants/index.js";var O=e({__name:"edit-dialog",props:{visible:{type:Boolean,default:!1},isFieldColor:{type:Boolean,default:!0},row:{type:Object,default:null}},emits:["update:visible","confirm"],setup(e,{emit:O}){const S=e,q=j(),B=p(),E=Object.entries(N).map((([e,l])=>({label:l,value:e}))),R=Object.entries(N).map((([e])=>e)),D=l(U),H=o(),L=o(),P=o(!1),T=a((()=>S.row?S.isFieldColor?"修改":"过滤条件":"新增")),W=t({name:"",color:"",status:!0,columnName:"",colorScope:S.isFieldColor?"font":"background",condition:[],sqlExpression:""}),z=t({name:[{required:!0,message:"请输入名称",trigger:["blur"]}],color:[{required:!0,message:"请选择颜色",trigger:["blur"]}],columnName:[{required:!0,validator:(e,l)=>!(!l&&S.isFieldColor)||new Error("请选择字段"),trigger:["blur"]}]});function A(e){return u("span",{style:{"--color":e.value},class:"c-field-set__color-block"},[e.label])}function G(){var e;null==(e=H.value)||e.validate((async e=>{var l,o;if(e){const l=await e;B.warning(l[0][0].message)}else{if(S.isFieldColor||Object.assign(W,L.value.getData()),!(null==(l=W.condition)?void 0:l.length))return void B.warning("请配置过滤条件");const e=S.isFieldColor?{title:null==(o=D.find((e=>e.columnName===W.columnName)))?void 0:o.title}:{};O("confirm",{...W,...e}),I()}}))}function I(){O("update:visible",!1)}function J(e){Object.assign(W,e)}return function(){if(!S.row)return;Object.assign(W,S.row)}(),(l,o)=>(i(),r(s(f),{preset:"dialog",style:{width:"860px"},title:s(T),"close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:G,onNegativeClick:I,onClose:I},{default:n((()=>[u(s(v),{ref_key:"formRef",ref:H,model:W,rules:z,"label-placement":"left","label-width":"auto","show-feedback":!1,"show-require-mark":!1,style:c({maxWidth:"500px",...s(q)})},{default:n((()=>[u(s(b),{label:"名称:",path:"name",style:{"margin-bottom":"10px"}},{default:n((()=>[u(s(h),{value:W.name,"onUpdate:value":o[0]||(o[0]=e=>W.name=e),placeholder:"请填写名称",clearable:""},null,8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:0,label:"颜色:",path:"color"},{default:n((()=>[u(s(g),{clearable:"",placeholder:"请选择颜色",value:W.color,"onUpdate:value":o[1]||(o[1]=e=>W.color=e),swatches:s(R),modes:["hex"],class:"c-field-set__color-picker"},null,8,["value","swatches"])])),_:1})):(i(),r(s(b),{key:1,label:"颜色:",path:"color"},{default:n((()=>[u(s(k),{value:W.color,"onUpdate:value":o[2]||(o[2]=e=>W.color=e),placeholder:"请选择颜色","render-label":A,options:s(E)},null,8,["value","options"])])),_:1})),u(s(b),{label:"显示:",path:"status"},{default:n((()=>[u(s(_),{checked:W.status,"onUpdate:checked":o[3]||(o[3]=e=>W.status=e)},null,8,["checked"])])),_:1}),u(s(b),{label:"颜色应用于:",path:"colorScope"},{default:n((()=>[u(s(w),{value:W.colorScope,"onUpdate:value":o[4]||(o[4]=e=>W.colorScope=e)},{default:n((()=>[u(s(y),null,{default:n((()=>[u(s(C),{label:"字体",value:"font"}),u(s(C),{label:"背景",value:"background"})])),_:1})])),_:1},8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:2,label:"字段:",path:"columnName",style:{"margin-bottom":"10px"}},{default:n((()=>[u(s(y),{class:"c-field-set__space",align:"center"},{default:n((()=>[u(s(k),{value:W.columnName,"onUpdate:value":o[5]||(o[5]=e=>W.columnName=e),placeholder:"请选择字段名","label-field":"title","value-field":"columnName",options:s(D)},null,8,["value","options"]),d("span",{class:"filter-btn",onClick:o[6]||(o[6]=()=>P.value=!0)},"筛选")])),_:1})])),_:1})):m("v-if",!0)])),_:1},8,["model","rules","style"]),e.isFieldColor?(i(),r(F,{key:1,visible:P.value,"onUpdate:visible":o[7]||(o[7]=e=>P.value=e),model:W,onConfirm:J},null,8,["visible","model"])):(i(),r(x,{key:0,ref_key:"conditionRef",ref:L,data:W},null,8,["data"]))])),_:1},8,["title","show"]))}});export{O as default};
1
+ import{defineComponent as e,inject as l,ref as o,computed as a,reactive as t,openBlock as i,createBlock as r,unref as s,withCtx as n,createVNode as d,normalizeStyle as u,createElementVNode as c,createCommentVNode as m}from"vue";import{useMessage as p,NModal as f,NForm as v,NFormItem as b,NInput as h,NColorPicker as y,NSelect as g,NCheckbox as k,NRadioGroup as _,NSpace as w,NRadio as C}from"naive-ui";import{useTheme as j}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../../shared/hooks/useScrollLoading.js";import x from"./condition.vue.js";import F from"./edit-filter.vue.js";import{COLOR_MAP as N,InjectionFieldList as U}from"../constants/index.js";var O=e({__name:"edit-dialog",props:{visible:{type:Boolean,default:!1},isFieldColor:{type:Boolean,default:!0},row:{type:Object,default:null},readonly:{type:Boolean,default:!1},isAdd:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:O}){const S=e,q=j(),B=p(),A=Object.entries(N).map((([e,l])=>({label:l,value:e}))),E=Object.entries(N).map((([e])=>e)),R=l(U),D=o(),H=o(),L=o(!1),P=a((()=>S.isAdd?S.row?"复制":"新增":S.isFieldColor?"修改":"过滤条件")),T=t({name:"",color:"",status:!0,columnName:"",colorScope:S.isFieldColor?"font":"background",condition:[],sqlExpression:""}),W=t({name:[{required:!0,message:"请输入名称",trigger:["blur"]}],color:[{required:!0,message:"请选择颜色",trigger:["blur"]}],columnName:[{required:!0,validator:(e,l)=>!(!l&&S.isFieldColor)||new Error("请选择字段"),trigger:["blur"]}]});function z(e){return d("span",{style:{"--color":e.value},class:"c-field-set__color-block"},[e.label])}function G(){var e;null==(e=D.value)||e.validate((async e=>{var l,o;if(e){const l=await e;B.warning(l[0][0].message)}else{if(S.isFieldColor||Object.assign(T,H.value.getData()),!(null==(l=T.condition)?void 0:l.length))return void B.warning("请配置过滤条件");const e=S.isFieldColor?{title:null==(o=R.find((e=>e.columnName===T.columnName)))?void 0:o.title}:{};O("confirm",{...T,...e}),I()}}))}function I(){O("update:visible",!1)}function J(e){Object.assign(T,e)}return function(){if(!S.row)return;Object.assign(T,S.row)}(),(l,o)=>(i(),r(s(f),{preset:"dialog",style:{width:"860px"},title:s(P),"close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:G,onNegativeClick:I,onClose:I},{default:n((()=>[d(s(v),{ref_key:"formRef",ref:D,disabled:e.readonly,model:T,rules:W,"label-placement":"left","label-width":"auto","show-feedback":!1,"show-require-mark":!1,style:u({maxWidth:"500px",...s(q)})},{default:n((()=>[d(s(b),{label:"名称:",path:"name",style:{"margin-bottom":"10px"}},{default:n((()=>[d(s(h),{value:T.name,"onUpdate:value":o[0]||(o[0]=e=>T.name=e),placeholder:"请填写名称",clearable:""},null,8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:0,label:"颜色:",path:"color"},{default:n((()=>[d(s(y),{clearable:"",placeholder:"请选择颜色",value:T.color,"onUpdate:value":o[1]||(o[1]=e=>T.color=e),swatches:s(E),modes:["hex"],class:"c-field-set__color-picker"},null,8,["value","swatches"])])),_:1})):(i(),r(s(b),{key:1,label:"颜色:",path:"color"},{default:n((()=>[d(s(g),{value:T.color,"onUpdate:value":o[2]||(o[2]=e=>T.color=e),placeholder:"请选择颜色","render-label":z,options:s(A)},null,8,["value","options"])])),_:1})),d(s(b),{label:"显示:",path:"status"},{default:n((()=>[d(s(k),{checked:T.status,"onUpdate:checked":o[3]||(o[3]=e=>T.status=e)},null,8,["checked"])])),_:1}),d(s(b),{label:"颜色应用于:",path:"colorScope"},{default:n((()=>[d(s(_),{value:T.colorScope,"onUpdate:value":o[4]||(o[4]=e=>T.colorScope=e)},{default:n((()=>[d(s(w),null,{default:n((()=>[d(s(C),{label:"字体",value:"font"}),d(s(C),{label:"背景",value:"background"})])),_:1})])),_:1},8,["value"])])),_:1}),e.isFieldColor?(i(),r(s(b),{key:2,label:"字段:",path:"columnName",style:{"margin-bottom":"10px"}},{default:n((()=>[d(s(w),{class:"c-field-set__space",align:"center"},{default:n((()=>[d(s(g),{value:T.columnName,"onUpdate:value":o[5]||(o[5]=e=>T.columnName=e),placeholder:"请选择字段名","label-field":"title","value-field":"columnName",options:s(R)},null,8,["value","options"]),c("span",{class:"filter-btn",onClick:o[6]||(o[6]=()=>L.value=!0)},"筛选")])),_:1})])),_:1})):m("v-if",!0)])),_:1},8,["disabled","model","rules","style"]),e.isFieldColor?(i(),r(F,{key:1,visible:L.value,"onUpdate:visible":o[7]||(o[7]=e=>L.value=e),model:T,readonly:e.readonly,onConfirm:J},null,8,["visible","model","readonly"])):(i(),r(x,{key:0,ref_key:"conditionRef",ref:H,model:T,readonly:e.readonly},null,8,["model","readonly"]))])),_:1},8,["title","show"]))}});export{O as default};
@@ -1,24 +1,15 @@
1
- import { AnyObject } from '../../../../shared/types';
2
1
  import { PropType } from 'vue';
3
2
  declare const _default: import("vue").DefineComponent<{
4
3
  visible: {
5
4
  type: BooleanConstructor;
6
5
  default: boolean;
7
6
  };
8
- model: {
9
- type: PropType<AnyObject>;
10
- default: null;
11
- };
12
7
  }, {
13
8
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
9
  visible: {
15
10
  type: BooleanConstructor;
16
11
  default: boolean;
17
12
  };
18
- model: {
19
- type: PropType<AnyObject>;
20
- default: null;
21
- };
22
13
  }>> & {
23
14
  onConfirm?: ((...args: any[]) => any) | undefined;
24
15
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
@@ -29,20 +20,28 @@ declare const _default: import("vue").DefineComponent<{
29
20
  onClose: () => void;
30
21
  NModal: any;
31
22
  Condition: import("vue").DefineComponent<{
32
- data: {
33
- type: PropType<AnyObject>;
23
+ model: {
24
+ type: PropType<import("../../../../shared/types").AnyObject>;
34
25
  default: null;
35
26
  };
27
+ readonly: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
36
31
  }, {
37
32
  customValue: string;
38
- cssVars: import("vue").ComputedRef<AnyObject>;
33
+ cssVars: import("vue").ComputedRef<import("../../../../shared/types").AnyObject>;
39
34
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
40
- data: {
41
- type: PropType<AnyObject>;
35
+ model: {
36
+ type: PropType<import("../../../../shared/types").AnyObject>;
42
37
  default: null;
43
38
  };
39
+ readonly: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
44
43
  }>> & {}>>;
45
- fieldList: AnyObject[];
44
+ fieldList: import("../../../../shared/types").AnyObject[];
46
45
  queryWordbookData: ((params: import("../types").ColorSetWordbook) => Promise<{
47
46
  [key: string]: any;
48
47
  label: string;
@@ -59,8 +58,8 @@ declare const _default: import("vue").DefineComponent<{
59
58
  numberValue: number | null;
60
59
  dateValue: string | [string, string] | null;
61
60
  fieldType: string;
62
- conOptions: AnyObject[];
63
- compareFieldOptions: AnyObject[];
61
+ conOptions: import("../../../../shared/types").AnyObject[];
62
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
64
63
  unit: string | null;
65
64
  multiple: boolean;
66
65
  }[]>;
@@ -69,9 +68,9 @@ declare const _default: import("vue").DefineComponent<{
69
68
  numberValue: number | null;
70
69
  dateValue: string | [string, string] | null;
71
70
  fieldType: string;
72
- conOptions: AnyObject[];
71
+ conOptions: import("../../../../shared/types").AnyObject[];
73
72
  compare_field: any;
74
- compareFieldOptions: AnyObject[];
73
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
75
74
  unit: string | null;
76
75
  multiple: boolean;
77
76
  }, isInit?: boolean) => void;
@@ -79,9 +78,9 @@ declare const _default: import("vue").DefineComponent<{
79
78
  numberValue: number | null;
80
79
  dateValue: string | [string, string] | null;
81
80
  fieldType: string;
82
- conOptions: AnyObject[];
81
+ conOptions: import("../../../../shared/types").AnyObject[];
83
82
  compare_field: any;
84
- compareFieldOptions: AnyObject[];
83
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
85
84
  unit: string | null;
86
85
  multiple: boolean;
87
86
  }, isInit?: boolean) => Promise<void>;
@@ -89,9 +88,9 @@ declare const _default: import("vue").DefineComponent<{
89
88
  numberValue: number | null;
90
89
  dateValue: string | [string, string] | null;
91
90
  fieldType: string;
92
- conOptions: AnyObject[];
91
+ conOptions: import("../../../../shared/types").AnyObject[];
93
92
  compare_field: any;
94
- compareFieldOptions: AnyObject[];
93
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
95
94
  unit: string | null;
96
95
  multiple: boolean;
97
96
  }) => void;
@@ -99,9 +98,9 @@ declare const _default: import("vue").DefineComponent<{
99
98
  numberValue: number | null;
100
99
  dateValue: string | [string, string] | null;
101
100
  fieldType: string;
102
- conOptions: AnyObject[];
101
+ conOptions: import("../../../../shared/types").AnyObject[];
103
102
  compare_field: any;
104
- compareFieldOptions: AnyObject[];
103
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
105
104
  unit: string | null;
106
105
  multiple: boolean;
107
106
  }) => boolean | "";
@@ -109,9 +108,9 @@ declare const _default: import("vue").DefineComponent<{
109
108
  numberValue: number | null;
110
109
  dateValue: string | [string, string] | null;
111
110
  fieldType: string;
112
- conOptions: AnyObject[];
111
+ conOptions: import("../../../../shared/types").AnyObject[];
113
112
  compare_field: any;
114
- compareFieldOptions: AnyObject[];
113
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
115
114
  unit: string | null;
116
115
  multiple: boolean;
117
116
  }) => boolean;
@@ -119,9 +118,9 @@ declare const _default: import("vue").DefineComponent<{
119
118
  numberValue: number | null;
120
119
  dateValue: string | [string, string] | null;
121
120
  fieldType: string;
122
- conOptions: AnyObject[];
121
+ conOptions: import("../../../../shared/types").AnyObject[];
123
122
  compare_field: any;
124
- compareFieldOptions: AnyObject[];
123
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
125
124
  unit: string | null;
126
125
  multiple: boolean;
127
126
  }) => boolean;
@@ -129,9 +128,9 @@ declare const _default: import("vue").DefineComponent<{
129
128
  numberValue: number | null;
130
129
  dateValue: string | [string, string] | null;
131
130
  fieldType: string;
132
- conOptions: AnyObject[];
131
+ conOptions: import("../../../../shared/types").AnyObject[];
133
132
  compare_field: any;
134
- compareFieldOptions: AnyObject[];
133
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
135
134
  unit: string | null;
136
135
  multiple: boolean;
137
136
  }) => boolean;
@@ -139,9 +138,9 @@ declare const _default: import("vue").DefineComponent<{
139
138
  numberValue: number | null;
140
139
  dateValue: string | [string, string] | null;
141
140
  fieldType: string;
142
- conOptions: AnyObject[];
141
+ conOptions: import("../../../../shared/types").AnyObject[];
143
142
  compare_field: any;
144
- compareFieldOptions: AnyObject[];
143
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
145
144
  unit: string | null;
146
145
  multiple: boolean;
147
146
  }) => boolean;
@@ -149,9 +148,9 @@ declare const _default: import("vue").DefineComponent<{
149
148
  numberValue: number | null;
150
149
  dateValue: string | [string, string] | null;
151
150
  fieldType: string;
152
- conOptions: AnyObject[];
151
+ conOptions: import("../../../../shared/types").AnyObject[];
153
152
  compare_field: any;
154
- compareFieldOptions: AnyObject[];
153
+ compareFieldOptions: import("../../../../shared/types").AnyObject[];
155
154
  unit: string | null;
156
155
  multiple: boolean;
157
156
  }) => "datetime" | "datetimerange";
@@ -174,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
174
173
  NInputNumber: any;
175
174
  NSelect: any;
176
175
  NIcon: any;
176
+ NButton: any;
177
177
  AddCircleSharp: 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<{}>>, {}>;
178
178
  RemoveCircle: 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<{}>>, {}>;
179
179
  UNIT_OPTIONS: {
@@ -248,7 +248,7 @@ declare const _default: import("vue").DefineComponent<{
248
248
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
249
249
  }>>;
250
250
  emit: (event: "update:formatted-value", ...args: any[]) => void;
251
- datePickerRef: import("vue").Ref<AnyObject | null>;
251
+ datePickerRef: import("vue").Ref<import("../../../../shared/types").AnyObject | null>;
252
252
  panelInstRef: import("vue").Ref<null>;
253
253
  placeholderRef: import("vue").Ref<any>;
254
254
  oldValue: string;
@@ -304,27 +304,27 @@ declare const _default: import("vue").DefineComponent<{
304
304
  holidays: Date[];
305
305
  }>>;
306
306
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
307
- data: {
308
- type: PropType<AnyObject>;
307
+ model: {
308
+ type: PropType<import("../../../../shared/types").AnyObject>;
309
309
  default: null;
310
310
  };
311
+ readonly: {
312
+ type: BooleanConstructor;
313
+ default: boolean;
314
+ };
311
315
  }>>, {
312
- data: AnyObject;
316
+ model: import("../../../../shared/types").AnyObject;
317
+ readonly: boolean;
313
318
  }>;
314
319
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("confirm" | "update:visible")[], "confirm" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
315
320
  visible: {
316
321
  type: BooleanConstructor;
317
322
  default: boolean;
318
323
  };
319
- model: {
320
- type: PropType<AnyObject>;
321
- default: null;
322
- };
323
324
  }>> & {
324
325
  onConfirm?: ((...args: any[]) => any) | undefined;
325
326
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
326
327
  }, {
327
328
  visible: boolean;
328
- model: AnyObject;
329
329
  }>;
330
330
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,openBlock as i,createBlock as o,unref as l,withCtx as a,createVNode as n}from"vue";import{NModal as s}from"naive-ui";import r from"./condition.vue.js";var u=e({__name:"edit-filter",props:{visible:{type:Boolean,default:!1},model:{type:Object,default:null}},emits:["update:visible","confirm"],setup(e,{emit:u}){const d=t();function f(){var e;u("confirm",null==(e=d.value)?void 0:e.getData()),c()}function c(){u("update:visible",!1)}return(t,u)=>(i(),o(l(s),{preset:"dialog",style:{width:"860px"},title:"设置分类","close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:f,onNegativeClick:c,onClose:c},{default:a((()=>[n(r,{ref_key:"conditionRef",ref:d,data:e.model},null,8,["data"])])),_:1},8,["show"]))}});export{u as default};
1
+ import{defineComponent as e,ref as t,openBlock as i,createBlock as o,unref as s,withCtx as l,createVNode as n,mergeProps as a}from"vue";import{NModal as r}from"naive-ui";import u from"./condition.vue.js";var f=e({__name:"edit-filter",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","confirm"],setup(e,{emit:f}){const v=t();function c(){var e;f("confirm",null==(e=v.value)?void 0:e.getData()),p()}function p(){f("update:visible",!1)}return(t,f)=>(i(),o(s(r),{preset:"dialog",style:{width:"860px"},title:"设置分类","close-on-esc":!1,"show-icon":!1,"mask-closable":!1,"positive-text":"确定","negative-text":"取消","trap-focus":!1,show:e.visible,onPositiveClick:c,onNegativeClick:p,onClose:p},{default:l((()=>[n(u,a({ref_key:"conditionRef",ref:v},t.$attrs),null,16)])),_:1},8,["show"]))}});export{f as default};
@@ -204,7 +204,7 @@ declare const _default: import("vue").DefineComponent<{
204
204
  }>>;
205
205
  emit: (event: "edit" | "updateChecked", ...args: any[]) => void;
206
206
  onRemove: () => void;
207
- onEdit: () => void;
207
+ onEdit: (param?: AnyObject) => void;
208
208
  isRenderTooltip: (field: string) => any;
209
209
  getTooltipContent: () => any;
210
210
  getTextValue: (field: string) => any;
@@ -236,6 +236,7 @@ declare const _default: import("vue").DefineComponent<{
236
236
  NPopconfirm: any;
237
237
  NPopover: any;
238
238
  NSpace: any;
239
+ NButton: any;
239
240
  setStyle: typeof setStyle;
240
241
  setColorInfo: typeof setColorInfo;
241
242
  ReorderTwoOutline: 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<{}>>, {}>;
@@ -243,6 +244,8 @@ declare const _default: import("vue").DefineComponent<{
243
244
  CreateOutline: 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<{}>>, {}>;
244
245
  HelpCircleOutline: 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<{}>>, {}>;
245
246
  CaretDownOutline: 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<{}>>, {}>;
247
+ EyeOutline: 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<{}>>, {}>;
248
+ CopyOutline: 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<{}>>, {}>;
246
249
  isFunction: (value: any) => value is (...args: any[]) => any;
247
250
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit" | "updateChecked")[], "edit" | "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
248
251
  element: {
@@ -1 +1 @@
1
- import{defineComponent as e,openBlock as t,createElementBlock as l,Fragment as i,renderList as n,normalizeStyle as o,unref as r,createBlock as a,withCtx as d,createVNode as u,createCommentVNode as s,createElementVNode as c,toDisplayString as f,resolveDynamicComponent as p,normalizeClass as m,withDirectives as v,vShow as y,mergeProps as h,createTextVNode as g}from"vue";import{NTooltip as b,NIcon as k,NCheckbox as x,NPopover as E,NSpace as S,NSelect as T,NColorPicker as D,NInput as w,NInputNumber as O,NPopconfirm as C}from"naive-ui";import{setStyle as R,setColorInfo as M,isShowExplicitRequired as N,isDisable as U}from"../utils/index.js";import{ReorderTwoOutline as F,HelpCircleOutline as P,CaretDownOutline as _,CreateOutline as j,TrashOutline as A}from"@vicons/ionicons5";import{isFunction as L,isArray as H,range as I}from"lodash-es";import{COLOR_MAP as V}from"../constants/index.js";import{WIDGET_MAP as B,SELECT_TYPE as W,WIDGET_TYPE as q,SELECT_MAP as K,SELECT_DEFAULT_MAP as $,DATE_MAP as z,DATETIME_MAP as G}from"../constants/filter.js";const J={class:"row"},Q=["title"],X=c("span",null,"拖拽调整顺序",-1),Y={key:0};var Z=e({__name:"table-row",props:{element:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},idx:{type:Number,default:1},data:{type:Array,default:()=>[]},isHighlight:{type:Boolean},index:{type:Number,default:0},isHighlightRow:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},isFieldSet:{type:Boolean,default:!1},fieldDescribeMode:{type:String,default:"tooltip"},developMode:{type:Boolean},columnWidthProps:{type:Object},hideExpressionOption:{type:Array,default:()=>[]},primaryKey:{type:String,default:"id"},titleRender:{type:Function}},emits:["updateChecked","edit"],setup(e,{emit:Z}){const ee=e,te=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],le=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],ie=[{label:"字体",value:"font"},{label:"背景",value:"background"}],ne=Object.entries(V).map((([e])=>e));function oe(){ee.data.splice(ee.index,1)}function re(){Z("edit",ee.element)}function ae(){var e;return ee.element.feildDescribe||(null==(e=ee.element.settingObj)?void 0:e.fieldDescDev)}function de(e){return"seq"===e?ee.idx:"type"===e?B[ee.element[e]]:ee.element[e]}function ue(e){if("defaultValue"===e){const{optionType:e}=ee.element;return e===W.SELECT_MULTIPLE}return!1}function se(e){if("0001"==ee.element.id&&"fixedWay"!=e)return!1;const{isConfiguredHeaderFilter:t}=ee.element;return"isShowHeaderFilter"===e?!!t:!(["explicitRequired","defaultValue"].includes(e)&&![q.DATE,q.DATETIME,q.SELECT].includes(ee.element.type)||["editable"].includes(e)&&ee.element[`${e}Hide`])}function ce(e){return["explicitRequired","defaultValue"].includes(e)?N(ee.element):!["isSum","isAvg"].includes(e)||"NUMBER"===ee.element.fieldType}function fe(e){const{relation:t}=ee.element;return"isSearch"===e&&H(null==t?void 0:t.fieldList)&&t.fieldList.length>0}function pe(e){var t,l;return"optionType"===e?(null==(l=null==(t=ee.element)?void 0:t.optionTypeConfig)?void 0:l.option)?"":ee.element[e]&&ee.element.type===q.SELECT?K[ee.element[e]]:" ":"hideExpression"===e?"PASSWORD"===ee.element.attrType?"密码无需设置":ee.element.name===ee.primaryKey||ee.element.columnName===ee.primaryKey?"主键不可设置":ee.element.disableDesensitization||ee.element[`${e}Disabled`]?"不支持脱敏设置":void 0:void 0}function me(e){const t={valueField:"value",labelField:"label"};return"hideExpression"===e&&(t.valueField="ruleId",t.labelField="name"),t}function ve(e){var t,l;switch(e.field){case"fixedWay":return te;case"sortDirection":return le;case"sortPriority":return function(){const e=I(1,ee.data.length+1).map((e=>({label:e.toString(),value:e}))),t=ee.data.filter((e=>!!e.sortPriority&&e.uuid!==ee.element.uuid)).map((e=>e.sortPriority));return e.filter((e=>!t.includes(e.value)))}();case"colorScope":return ie;case"hideExpression":return null==(t=ee.hideExpressionOption)?void 0:t.map((e=>({...e,ruleId:`ruleId#${e.code}`})));case"optionType":return(null==(l=ee.element.optionTypeConfig)?void 0:l.option)||[];case"defaultValue":{const{relatedFields:e=[]}=ee.element.optionTypeConfig||{},t=e.find((e=>"defaultValue"===e.field));if(L(null==t?void 0:t.getOption))return t.getOption(ee.element);const{type:l,optionInfo:i}=ee.element;return l===q.SELECT?H(null==i?void 0:i.list)&&i.list.length>0?i.list.map((e=>({...e,label:e.name}))):Object.entries($).map((([e,t])=>({value:e,label:t}))):l===q.DATE?Object.entries(z).map((([e,t])=>({value:e,label:t}))):l===q.DATETIME?Object.entries(G).map((([e,t])=>({value:e,label:t}))):[]}default:return[]}}function ye(e){var t;if(1==ee.element.defaultMark||"color"===e.type&&ee.isHighlightRow)return!0;if("checkbox"===e.type){if("show"===e.field&&e.fieldShowMaxValue)return!ee.element[e.field]&&(null==(t=ee.data.filter((t=>t[e.field])))?void 0:t.length)===e.fieldShowMaxValue;if(["isSearch","isSum","isAvg"].includes(e.field)){if(Reflect.has(ee.element,"isMerge"))return 1==ee.element.isMerge;if("isSearch"===e.field&&Reflect.has(ee.element,"notParticipatingSearch"))return 1==ee.element.notParticipatingSearch}return U(ee.element,e.field)}if("sortPriority"===e.field){const{sortDirection:e}=ee.element;return!e||"NONE"===e}return U(ee.element,e.field)}function he(e){return["title","result"].includes(e.field)&&ee.element.style||{}}return(N,U)=>(t(),l("div",J,[(t(!0),l(i,null,n(e.columns,((N,H)=>{return t(),l(i,{key:H},[N.isShow?(t(),l("span",{key:0,class:"table-cell",title:e.element[N.field],style:o(r(R)(N,H,e.columnWidthProps))},["text"===N.type?(t(),l(i,{key:0},[0===H?(t(),l(i,{key:0},[!e.isFieldSet||e.draggable&&e.isFieldSet?(t(),a(r(b),{key:0,trigger:"hover"},{trigger:d((()=>[u(r(k),{style:{"margin-right":"5px",top:"2px"},component:r(F)},null,8,["component"])])),default:d((()=>[X])),_:1})):s("v-if",!0),(I=N.field,"title"===I&&("tooltip"===ee.fieldDescribeMode&&ee.element.feildDescribe||ee.developMode&&(null==(V=ee.element.settingObj)?void 0:V.fieldDescDev))?(t(),a(r(b),{key:1,trigger:"hover"},{trigger:d((()=>[u(r(k),{style:{"margin-right":"5px",top:"2px"},component:r(P)},null,8,["component"])])),default:d((()=>[c("span",null,f(ae()),1)])),_:1})):s("v-if",!0)),r(L)(e.titleRender)?(t(),a(p((()=>e.titleRender(e.element))),{key:2})):s("v-if",!0)],64)):s("v-if",!0),0===H&&r(L)(e.titleRender)?s("v-if",!0):(t(),l("span",{key:1,class:m([e.isHighlight&&"title"===N.field?"highlight":""]),style:o(he(N))},f(de(N.field)),7))],64)):s("v-if",!0),"checkbox"===N.type&&se(N.field)?(t(),l(i,{key:1},[v(u(r(x),{disabled:ye(N),checked:e.element[N.field],"onUpdate:checked":[t=>e.element[N.field]=t,e=>function(e,t){Z("updateChecked",{checked:e,column:t})}(e,N)]},null,8,["disabled","checked","onUpdate:checked"]),[[y,ce(N.field)]]),fe(N.field)?(t(),a(r(E),{key:0,placement:"right-start","show-arrow":!1},{trigger:d((()=>[u(r(k),{style:{"margin-left":"5px",top:"2px"},component:r(_)},null,8,["component"])])),default:d((()=>[c("div",null,[c("span",null,f(e.element.relation.tableName),1),u(r(S),{"wrap-item":!1,vertical:""},{default:d((()=>[(t(!0),l(i,null,n(e.element.relation.fieldList,(e=>v((t(),a(r(x),{key:e.id,checked:e.checked,"onUpdate:checked":t=>e.checked=t,label:e.title},null,8,["checked","onUpdate:checked","label"])),[[y,"0001"!==e.sid]]))),128))])),_:1})])])),_:1})):s("v-if",!0)],64)):s("v-if",!0),"select"===N.type&&se(N.field)?(t(),l(i,{key:2},[pe(N.field)?(t(),l("span",Y,f(pe(N.field)),1)):v((t(),a(r(T),h({key:1},me(N.field),{clearable:"",multiple:ue(N.field),disabled:ye(N),value:e.element[N.field],"onUpdate:value":[t=>e.element[N.field]=t,e=>function(e,t){if("sortDirection"!==t.field||"NONE"!==e&&e||(ee.element.sortPriority=null),"colorScope"===t.field&&M(ee.element),"optionType"===t.field){const{relatedFields:e=[]}=ee.element.optionTypeConfig||{};e.forEach((e=>{ee.element[e.field]=null}))}}(e,N)],options:ve(N)}),null,16,["multiple","disabled","value","onUpdate:value","options"])),[[y,ce(N.field)]])],64)):s("v-if",!0),"color"===N.type?(t(),a(r(D),{key:3,class:"c-field-set__color-picker",clearable:"",disabled:ye(N),value:e.element[N.field],"onUpdate:value":[t=>e.element[N.field]=t,U[0]||(U[0]=t=>r(M)(e.element))],"show-preview":"",modes:["hex"],swatches:r(ne)},null,8,["disabled","value","onUpdate:value","swatches"])):s("v-if",!0),"input"===N.type?v((t(),a(r(w),{key:4,value:e.element[N.field],"onUpdate:value":t=>e.element[N.field]=t,clearable:""},null,8,["value","onUpdate:value"])),[[y,"0001"!=e.element.id]]):s("v-if",!0),"inputNumber"===N.type?(t(),a(r(O),{key:5,value:e.element[N.field],"onUpdate:value":t=>e.element[N.field]=t},null,8,["value","onUpdate:value"])):s("v-if",!0),"custom"===N.type&&r(L)(N.contentRender)?(t(),a(p((()=>N.contentRender(N,e.element))),{key:6})):s("v-if",!0),"custom"===N.type&&"opt"===N.field&&1!=e.element.defaultMark?(t(),l(i,{key:7},[u(r(b),{trigger:"hover"},{trigger:d((()=>[u(r(k),{component:r(j),onClick:re},null,8,["component"])])),default:d((()=>[g(" 编辑 ")])),_:1}),u(r(C),{onPositiveClick:oe},{trigger:d((()=>[u(r(b),{trigger:"hover"},{trigger:d((()=>[u(r(k),{component:r(A)},null,8,["component"])])),default:d((()=>[g(" 删除 ")])),_:1})])),default:d((()=>[g(" 是否确认删除? ")])),_:1})],64)):s("v-if",!0)],12,Q)):s("v-if",!0)],64);var I,V})),128))]))}});export{Z as default};
1
+ import{defineComponent as e,openBlock as l,createElementBlock as t,Fragment as i,renderList as n,normalizeStyle as o,unref as a,createBlock as r,withCtx as d,createVNode as u,createCommentVNode as s,createElementVNode as c,toDisplayString as f,resolveDynamicComponent as p,normalizeClass as m,withDirectives as y,vShow as v,mergeProps as g,createTextVNode as h}from"vue";import{NTooltip as b,NIcon as k,NCheckbox as x,NPopover as E,NSpace as S,NSelect as T,NColorPicker as w,NInput as D,NInputNumber as _,NButton as C,NPopconfirm as O}from"naive-ui";import{setStyle as R,setColorInfo as F,isShowExplicitRequired as M,isDisable as N}from"../utils/index.js";import{ReorderTwoOutline as U,HelpCircleOutline as P,CaretDownOutline as j,EyeOutline as A,CopyOutline as L,CreateOutline as H,TrashOutline as I}from"@vicons/ionicons5";import{isFunction as V,isArray as B,range as W}from"lodash-es";import{COLOR_MAP as q}from"../constants/index.js";import{WIDGET_MAP as K,SELECT_TYPE as $,WIDGET_TYPE as z,SELECT_MAP as G,SELECT_DEFAULT_MAP as J,DATE_MAP as Q,DATETIME_MAP as X}from"../constants/filter.js";const Y={class:"row"},Z=["title"],ee=c("span",null,"拖拽调整顺序",-1),le={key:0};var te=e({__name:"table-row",props:{element:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},idx:{type:Number,default:1},data:{type:Array,default:()=>[]},isHighlight:{type:Boolean},index:{type:Number,default:0},isHighlightRow:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},isFieldSet:{type:Boolean,default:!1},fieldDescribeMode:{type:String,default:"tooltip"},developMode:{type:Boolean},columnWidthProps:{type:Object},hideExpressionOption:{type:Array,default:()=>[]},primaryKey:{type:String,default:"id"},titleRender:{type:Function}},emits:["updateChecked","edit"],setup(e,{emit:te}){const ie=e,ne=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],oe=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],ae=[{label:"字体",value:"font"},{label:"背景",value:"background"}],re=Object.entries(q).map((([e])=>e));function de(){ie.data.splice(ie.index,1)}function ue(e={}){te("edit",{row:ie.element,...e})}function se(){var e;return ie.element.feildDescribe||(null==(e=ie.element.settingObj)?void 0:e.fieldDescDev)}function ce(e){return"seq"===e?ie.idx:"type"===e?K[ie.element[e]]:ie.element[e]}function fe(e){if("defaultValue"===e){const{optionType:e}=ie.element;return e===$.SELECT_MULTIPLE}return!1}function pe(e){if("0001"==ie.element.id&&"fixedWay"!=e)return!1;const{isConfiguredHeaderFilter:l}=ie.element;return"isShowHeaderFilter"===e?!!l:!(["explicitRequired","defaultValue"].includes(e)&&![z.DATE,z.DATETIME,z.SELECT].includes(ie.element.type)||["editable"].includes(e)&&ie.element[`${e}Hide`])}function me(e){return["explicitRequired","defaultValue"].includes(e)?M(ie.element):!["isSum","isAvg"].includes(e)||"NUMBER"===ie.element.fieldType}function ye(e){const{relation:l}=ie.element;return"isSearch"===e&&B(null==l?void 0:l.fieldList)&&l.fieldList.length>0}function ve(e){var l,t;return"optionType"===e?(null==(t=null==(l=ie.element)?void 0:l.optionTypeConfig)?void 0:t.option)?"":ie.element[e]&&ie.element.type===z.SELECT?G[ie.element[e]]:" ":"hideExpression"===e?"PASSWORD"===ie.element.attrType?"密码无需设置":ie.element.name===ie.primaryKey||ie.element.columnName===ie.primaryKey?"主键不可设置":ie.element.disableDesensitization||ie.element[`${e}Disabled`]?"不支持脱敏设置":void 0:void 0}function ge(e){const l={valueField:"value",labelField:"label"};return"hideExpression"===e&&(l.valueField="ruleId",l.labelField="name"),l}function he(e){var l,t;switch(e.field){case"fixedWay":return ne;case"sortDirection":return oe;case"sortPriority":return function(){const e=W(1,ie.data.length+1).map((e=>({label:e.toString(),value:e}))),l=ie.data.filter((e=>!!e.sortPriority&&e.uuid!==ie.element.uuid)).map((e=>e.sortPriority));return e.filter((e=>!l.includes(e.value)))}();case"colorScope":return ae;case"hideExpression":return null==(l=ie.hideExpressionOption)?void 0:l.map((e=>({...e,ruleId:`ruleId#${e.code}`})));case"optionType":return(null==(t=ie.element.optionTypeConfig)?void 0:t.option)||[];case"defaultValue":{const{relatedFields:e=[]}=ie.element.optionTypeConfig||{},l=e.find((e=>"defaultValue"===e.field));if(V(null==l?void 0:l.getOption))return l.getOption(ie.element);const{type:t,optionInfo:i}=ie.element;return t===z.SELECT?B(null==i?void 0:i.list)&&i.list.length>0?i.list.map((e=>({...e,label:e.name}))):Object.entries(J).map((([e,l])=>({value:e,label:l}))):t===z.DATE?Object.entries(Q).map((([e,l])=>({value:e,label:l}))):t===z.DATETIME?Object.entries(X).map((([e,l])=>({value:e,label:l}))):[]}default:return[]}}function be(e){var l;if(1==ie.element.defaultMark||"color"===e.type&&ie.isHighlightRow)return!0;if("checkbox"===e.type){if("show"===e.field&&e.fieldShowMaxValue)return!ie.element[e.field]&&(null==(l=ie.data.filter((l=>l[e.field])))?void 0:l.length)===e.fieldShowMaxValue;if(["isSearch","isSum","isAvg"].includes(e.field)){if(Reflect.has(ie.element,"isMerge"))return 1==ie.element.isMerge;if("isSearch"===e.field&&Reflect.has(ie.element,"notParticipatingSearch"))return 1==ie.element.notParticipatingSearch}return N(ie.element,e.field)}if("sortPriority"===e.field){const{sortDirection:e}=ie.element;return!e||"NONE"===e}return N(ie.element,e.field)}function ke(e){return["title","result"].includes(e.field)&&ie.element.style||{}}return(M,N)=>(l(),t("div",Y,[(l(!0),t(i,null,n(e.columns,((M,B)=>{return l(),t(i,{key:B},[M.isShow?(l(),t("span",{key:0,class:"table-cell",title:e.element[M.field],style:o(a(R)(M,B,e.columnWidthProps))},["text"===M.type?(l(),t(i,{key:0},[0===B?(l(),t(i,{key:0},[!e.isFieldSet||e.draggable&&e.isFieldSet?(l(),r(a(b),{key:0,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(U)},null,8,["component"])])),default:d((()=>[ee])),_:1})):s("v-if",!0),(W=M.field,"title"===W&&("tooltip"===ie.fieldDescribeMode&&ie.element.feildDescribe||ie.developMode&&(null==(q=ie.element.settingObj)?void 0:q.fieldDescDev))?(l(),r(a(b),{key:1,trigger:"hover"},{trigger:d((()=>[u(a(k),{style:{"margin-right":"5px",top:"2px"},component:a(P)},null,8,["component"])])),default:d((()=>[c("span",null,f(se()),1)])),_:1})):s("v-if",!0)),a(V)(e.titleRender)?(l(),r(p((()=>e.titleRender(e.element))),{key:2})):s("v-if",!0)],64)):s("v-if",!0),0===B&&a(V)(e.titleRender)?s("v-if",!0):(l(),t("span",{key:1,class:m([e.isHighlight&&"title"===M.field?"highlight":""]),style:o(ke(M))},f(ce(M.field)),7))],64)):s("v-if",!0),"checkbox"===M.type&&pe(M.field)?(l(),t(i,{key:1},[y(u(a(x),{disabled:be(M),checked:e.element[M.field],"onUpdate:checked":[l=>e.element[M.field]=l,e=>function(e,l){te("updateChecked",{checked:e,column:l})}(e,M)]},null,8,["disabled","checked","onUpdate:checked"]),[[v,me(M.field)]]),ye(M.field)?(l(),r(a(E),{key:0,placement:"right-start","show-arrow":!1},{trigger:d((()=>[u(a(k),{style:{"margin-left":"5px",top:"2px"},component:a(j)},null,8,["component"])])),default:d((()=>[c("div",null,[c("span",null,f(e.element.relation.tableName),1),u(a(S),{"wrap-item":!1,vertical:""},{default:d((()=>[(l(!0),t(i,null,n(e.element.relation.fieldList,(e=>y((l(),r(a(x),{key:e.id,checked:e.checked,"onUpdate:checked":l=>e.checked=l,label:e.title},null,8,["checked","onUpdate:checked","label"])),[[v,"0001"!==e.sid]]))),128))])),_:1})])])),_:1})):s("v-if",!0)],64)):s("v-if",!0),"select"===M.type&&pe(M.field)?(l(),t(i,{key:2},[ve(M.field)?(l(),t("span",le,f(ve(M.field)),1)):y((l(),r(a(T),g({key:1},ge(M.field),{clearable:"",multiple:fe(M.field),disabled:be(M),value:e.element[M.field],"onUpdate:value":[l=>e.element[M.field]=l,e=>function(e,l){if("sortDirection"!==l.field||"NONE"!==e&&e||(ie.element.sortPriority=null),"colorScope"===l.field&&F(ie.element),"optionType"===l.field){const{relatedFields:e=[]}=ie.element.optionTypeConfig||{};e.forEach((e=>{ie.element[e.field]=null}))}}(e,M)],options:he(M)}),null,16,["multiple","disabled","value","onUpdate:value","options"])),[[v,me(M.field)]])],64)):s("v-if",!0),"color"===M.type?(l(),r(a(w),{key:3,class:"c-field-set__color-picker",clearable:"",disabled:be(M),value:e.element[M.field],"onUpdate:value":[l=>e.element[M.field]=l,N[0]||(N[0]=l=>a(F)(e.element))],"show-preview":"",modes:["hex"],swatches:a(re)},null,8,["disabled","value","onUpdate:value","swatches"])):s("v-if",!0),"input"===M.type?y((l(),r(a(D),{key:4,value:e.element[M.field],"onUpdate:value":l=>e.element[M.field]=l,clearable:""},null,8,["value","onUpdate:value"])),[[v,"0001"!=e.element.id]]):s("v-if",!0),"inputNumber"===M.type?(l(),r(a(_),{key:5,value:e.element[M.field],"onUpdate:value":l=>e.element[M.field]=l},null,8,["value","onUpdate:value"])):s("v-if",!0),"custom"===M.type&&a(V)(M.contentRender)?(l(),r(p((()=>M.contentRender(M,e.element))),{key:6})):s("v-if",!0),e.isFieldSet||"custom"!==M.type||"opt"!==M.field?s("v-if",!0):(l(),t(i,{key:7},[1==e.element.defaultMark?(l(),t(i,{key:0},[u(a(b),null,{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(A),onClick:N[1]||(N[1]=()=>ue({readonly:!0}))},null,8,["component"])])),_:1})])),default:d((()=>[h(" 查看 ")])),_:1}),e.isHighlightRow?s("v-if",!0):(l(),r(a(b),{key:0},{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(L),onClick:N[2]||(N[2]=()=>ue({add:!0}))},null,8,["component"])])),_:1})])),default:d((()=>[h(" 复制 ")])),_:1}))],64)):(l(),t(i,{key:1},[u(a(b),null,{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(H),onClick:N[3]||(N[3]=()=>ue())},null,8,["component"])])),_:1})])),default:d((()=>[h(" 编辑 ")])),_:1}),u(a(O),{onPositiveClick:de},{trigger:d((()=>[u(a(b),null,{trigger:d((()=>[u(a(C),{text:""},{default:d((()=>[u(a(k),{component:a(I)},null,8,["component"])])),_:1})])),default:d((()=>[h(" 删除 ")])),_:1})])),default:d((()=>[h(" 是否确认删除? ")])),_:1})],64))],64))],12,Z)):s("v-if",!0)],64);var W,q})),128))]))}});export{te as default};
@@ -1 +1 @@
1
- .c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .main-wrapper{box-sizing:border-box;display:flex;flex-flow:column nowrap;height:var(--main-height)!important;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:8px 0}.c-field-set .main-wrapper .table-cell{word-wrap:break-word;box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;min-height:0;overflow:auto;width:100%}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;flex:0 0 52px;position:sticky;top:0;z-index:1}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-header .table-cell{align-items:center;background:#f2f2f4;display:flex;height:100%}.c-field-set .main-wrapper__table-body{flex:1}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .main-wrapper .set-item{padding:10px 0}.c-field-set .main-wrapper .set-item.table-item{border-top:1px solid #e8e8e8;width:50%}.c-field-set .main-wrapper .set-item.table-item h4{font-size:16px;font-weight:400;margin-bottom:12px}.c-field-set .main-wrapper .set-item.table-item .table-style{background:#e5e5e5;border:2px solid #cfcfcf;border-radius:4px;cursor:pointer;margin-bottom:10px;padding:20px 0 0}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg{background:#fff;border-radius:5px;margin:0 20px 20px;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg img{width:100%}.c-field-set .main-wrapper .set-item.table-item .table-style__desc{align-items:center;background:#fff;display:flex;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .n-icon{color:var(--c-primary-color);font-size:20px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .circle{border:1px solid #d5d5d5;border-radius:50%;display:inline-block;height:18px;width:18px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc span{margin-left:5px}.c-field-set .main-wrapper .set-item.table-item .table-style.active{background:#e2ebfa;border:2px solid var(--c-primary-color)}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .opt-btn{cursor:pointer;display:inline-flex}.c-field-set__condition .condition-wrapper__item{align-items:center;display:flex;margin-top:10px}.c-field-set__condition .condition-wrapper__item .item-index{margin-right:10px}.c-field-set__condition .condition-wrapper__item>.n-date-picker,.c-field-set__condition .condition-wrapper__item>.n-input,.c-field-set__condition .condition-wrapper__item>.n-input-number,.c-field-set__condition .condition-wrapper__item>.n-select{margin-right:10px;width:20%}.c-field-set__condition .sql-expression-wrapper{margin-top:10px}
1
+ .c-field-set{height:100%;width:100%}.c-field-set__color-picker .n-color-picker-trigger__value{display:none}.c-field-set .main-wrapper{box-sizing:border-box;display:flex;flex-flow:column nowrap;height:var(--main-height)!important;width:100%}.c-field-set .main-wrapper__search-wrapper.n-input{margin-bottom:12px;width:50%}.c-field-set .main-wrapper .item{background:#fff}.c-field-set .main-wrapper .item:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .main-wrapper .item:focus{background-color:#f2f2f2}.c-field-set .main-wrapper .item.disabled{cursor:not-allowed}.c-field-set .main-wrapper .item .row{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:var(--row-height);padding:8px 0}.c-field-set .main-wrapper .table-cell{word-wrap:break-word;box-sizing:border-box;color:inherit;display:inline-block;padding:0 5px}.c-field-set .main-wrapper .table-cell>.n-button{margin-right:5px}.c-field-set .main-wrapper .table-cell>.n-button:last-child{margin-right:0}.c-field-set .main-wrapper .table-cell .highlight{background-color:var(--primary-color);color:#fff}.c-field-set .main-wrapper .table-cell .c-field-set__color-picker{display:block}.c-field-set .main-wrapper__table{box-sizing:border-box;display:flex;flex:1;flex-flow:column nowrap;min-height:0;overflow:auto;width:100%}.c-field-set .main-wrapper__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;flex:0 0 52px;position:sticky;top:0;z-index:1}.c-field-set .main-wrapper__table-header .n-checkbox.n-checkbox--disabled .n-checkbox__label{color:var(--n-text-color)}.c-field-set .main-wrapper__table-header .table-cell{align-items:center;background:#f2f2f4;display:flex;height:100%}.c-field-set .main-wrapper__table-body{flex:1}.c-field-set .main-wrapper__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .main-wrapper .set-item{padding:10px 0}.c-field-set .main-wrapper .set-item.table-item{border-top:1px solid #e8e8e8;width:50%}.c-field-set .main-wrapper .set-item.table-item h4{font-size:16px;font-weight:400;margin-bottom:12px}.c-field-set .main-wrapper .set-item.table-item .table-style{background:#e5e5e5;border:2px solid #cfcfcf;border-radius:4px;cursor:pointer;margin-bottom:10px;padding:20px 0 0}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg{background:#fff;border-radius:5px;margin:0 20px 20px;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style .table-bg img{width:100%}.c-field-set .main-wrapper .set-item.table-item .table-style__desc{align-items:center;background:#fff;display:flex;padding:10px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .n-icon{color:var(--c-primary-color);font-size:20px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc .circle{border:1px solid #d5d5d5;border-radius:50%;display:inline-block;height:18px;width:18px}.c-field-set .main-wrapper .set-item.table-item .table-style__desc span{margin-left:5px}.c-field-set .main-wrapper .set-item.table-item .table-style.active{background:#e2ebfa;border:2px solid var(--c-primary-color)}.c-field-set__color-block{display:inline-block;margin-left:20px;position:relative}.c-field-set__color-block:before{background-color:var(--color);border-radius:2px;content:"";height:14px;left:-20px;position:absolute;top:3px;width:14px}.c-field-set__space{width:100%}.c-field-set__space>div:first-child{width:80%}.c-field-set__space .filter-btn{color:var(--c-primary-color);cursor:pointer}.c-field-set__condition .condition-wrapper__item{align-items:center;display:flex;margin-top:10px}.c-field-set__condition .condition-wrapper__item .item-index{margin-right:10px}.c-field-set__condition .condition-wrapper__item>.n-date-picker,.c-field-set__condition .condition-wrapper__item>.n-input,.c-field-set__condition .condition-wrapper__item>.n-input-number,.c-field-set__condition .condition-wrapper__item>.n-select{margin-right:10px;width:20%}.c-field-set__condition .sql-expression-wrapper{margin-top:10px}
@@ -63,10 +63,10 @@ export declare const COMBINATION: import("vue").DefineComponent<{
63
63
  }>> & {
64
64
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
65
65
  }, {
66
+ title: string;
66
67
  disabled: boolean;
67
68
  minGroupNum: number;
68
69
  combinationItemDeletable: boolean | CombinationItemDeletableFn;
69
70
  properties: FieldItem[];
70
- title: string;
71
71
  showLabel: boolean;
72
72
  }>;
@@ -49,8 +49,8 @@ export declare const JSON_COMBINATION: import("vue").DefineComponent<{
49
49
  }>> & {
50
50
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
51
51
  }, {
52
+ title: string;
52
53
  minGroupNum: number;
53
54
  properties: FieldItem[];
54
- title: string;
55
55
  showLabel: boolean;
56
56
  }>;