cnhis-design-vue 3.2.5-release.1 → 3.2.5-release.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/biunique-chat/index.d.ts +13 -5
- package/es/components/biunique-chat/src/Index.vue.d.ts +13 -5
- package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +5 -3
- package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +4 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +4 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatRecord.vue.d.ts +4 -1
- package/es/components/biunique-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/biunique-chat/src/utils/emoji.d.ts +4 -2
- package/es/components/biunique-chat/src/utils/emoji.js +1 -1
- package/es/components/biunique-chat/src/utils/index.js +1 -1
- package/es/components/button-print/index.d.ts +11 -3
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +11 -3
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +82 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +0 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +156 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +156 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +78 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +78 -2
- package/es/components/form-render/index.d.ts +78 -2
- package/es/components/form-render/src/FormRender.vue.d.ts +78 -2
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +78 -2
- package/es/components/form-render/src/hooks/useAnchor.d.ts +1 -0
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +10 -7
- package/es/components/iho-table/index.d.ts +4 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +5 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +156 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +156 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +78 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +78 -2
- package/es/components/scale-view/index.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +4 -4
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +8 -8
- package/es/components/shortcut-setter/index.d.ts +78 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +78 -2
- package/es/components/tooth-bitmap/index.d.ts +1 -3
- package/es/components/tooth-bitmap/src/ToothBitmap.vue.d.ts +1 -3
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/shared/assets/img/emoji/emoji.png.d.ts +4 -0
- package/es/shared/assets/img/emoji/emoji.png.js +1 -0
- package/es/shared/assets/img/tooth/tooth.png.d.ts +37 -0
- package/es/shared/assets/img/tooth/tooth.png.js +1 -0
- package/es/shared/hooks/index.js +1 -1
- package/es/shared/hooks/selectHooks/index.d.ts +1 -0
- package/es/shared/hooks/selectHooks/index.js +1 -1
- package/es/shared/hooks/selectHooks/useMenuWidthAuto.d.ts +12 -0
- package/es/shared/hooks/selectHooks/useMenuWidthAuto.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/shared/assets/img/emoji/666.gif.js +0 -1
- package/es/shared/assets/img/emoji/emotion_001.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_002.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_003.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_004.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_005.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_006.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_007.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_008.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_009.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_010.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_011.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_012.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_013.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_014.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_015.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_016.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_017.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_018.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_019.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_020.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_021.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_022.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_023.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_024.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_025.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_026.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_027.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_028.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_029.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_030.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_031.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_032.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_033.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_034.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_035.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_036.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_037.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_038.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_039.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_040.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_041.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_042.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_043.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_044.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_045.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_046.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_047.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_048.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_049.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_050.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_051.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_052.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_053.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_054.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_055.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_056.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_057.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_058.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_059.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_060.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_061.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_062.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_063.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_064.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_065.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_066.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_067.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_068.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_069.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_070.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_071.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_072.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_073.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_074.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_075.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_076.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_077.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_078.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_079.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_080.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_081.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_082.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_083.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_084.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_085.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_086.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_087.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_088.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_089.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_090.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_091.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_092.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_093.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_094.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_095.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_096.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_097.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_098.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_099.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_100.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_101.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_102.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_103.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_104.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_105.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_106.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_107.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_108.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_109.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_110.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_111.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_112.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_113.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_114.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_115.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_116.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_117.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_118.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_119.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_120.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_121.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_122.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_123.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_124.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_125.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_126.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_127.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_128.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_129.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_130.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_131.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_132.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_133.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_134.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_135.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_136.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_137.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_138.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_139.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_140.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_141.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_142.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_143.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_144.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_145.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_146.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_147.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_148.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_149.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_150.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_151.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_152.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_153.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_154.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_155.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_156.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_157.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_158.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_159.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_160.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_161.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_162.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_163.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_164.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_165.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_166.png.js +0 -1
- package/es/shared/assets/img/emoji/emotion_167.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-1.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-2.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-3.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-4.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-5.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-6.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-7.png.js +0 -1
- package/es/shared/assets/img/tooth/l-b-8.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-1.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-2.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-3.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-4.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-5.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-6.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-7.png.js +0 -1
- package/es/shared/assets/img/tooth/l-t-8.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-1.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-2.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-3.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-4.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-5.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-6.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-7.png.js +0 -1
- package/es/shared/assets/img/tooth/r-b-8.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-1.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-2.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-3.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-4.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-5.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-6.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-7.png.js +0 -1
- package/es/shared/assets/img/tooth/r-t-8.png.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as e,findAncestor as t,targetStringIncludes as r}from"../../../../shared/utils/index.js";import{isField as o}from"@formily/core";import{Path as n}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as a}from"@vueuse/shared";import{isFunction as s,isArray as d,isString as l}from"lodash-es";import{nextTick as u}from"vue";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as c}from"../constants/index.js";import{formValueFormatter as
|
|
1
|
+
import{arrayed as e,findAncestor as t,targetStringIncludes as r}from"../../../../shared/utils/index.js";import{isField as o}from"@formily/core";import{Path as n}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as a}from"@vueuse/shared";import{isFunction as s,isArray as d,isString as l}from"lodash-es";import{nextTick as u}from"vue";import"../../index.js";import{NESTED_FORM_ITEM_TYPE as c}from"../constants/index.js";import{formValueFormatter as m}from"../utils/valueFormatter.js";import{queryDecoratorByAddress as f,queryInput as p,queryDecoratorByFieldKey as g,findNextWidget as v}from"../utils/dom.js";import{validateMessageParser as y,combineExtendKey as h,splitExtendKey as S}from"../utils/index.js";import{getParentLinebar as b}from"../utils/schema.js";import{useSelectedSetting as x}from"./useSelectedSetting.js";function F({formModel:t,formRenderRef:r,formUUID:a,getFieldList:c,formItemDepsCollector:v,businessCollector:F,wordbookSettingHandler:C,operationalFormHandler:E,changeContextCollector:D,emitFormChange:I}){const{applySelectedSetting:j}=x();return{validate(n,{force:u}={}){if(null==n&&(n="*"),s(n)){const e=Object.entries(t.fields).reduce(((e,[t,r])=>(n(r)&&e.push(t),e)),[]);if(!e.length)return Promise.resolve();n=e.length?`*(${e.join(",")})`:"*"}const c=[];u&&t.setFieldState(n,(e=>{"visible"===e.display&&"editable"!==e.pattern&&o(e)&&(c.push({pattern:e.pattern,state:e}),e.pattern="editable")}));const m=t.validate(n).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(g,[]):e)));return u&&c.forEach((({pattern:e,state:t})=>t.pattern=e)),m;function g(t,r){if(!i(r))return t;let o=!1;return d(r.messages)&&r.messages.forEach((r=>{i(r)&&(t.push(...e(r).map(v)),o=!0)})),!o&&t.push(v(r)),t}function v(e){if(e.decoratorElement)return e;const o=t.query(e.path),n=o.get("title"),s=e.messages.map((e=>function(e,t){if(!t||!i(t.fieldItem))return e;const r=t.fieldItem.defined_error_msg;return y(r&&l(r)?r:e,t.fieldItem)}(e,o.get("decoratorProps")))),d=f(e.address,r.value,a);return{...e,messages:s,title:n,decoratorElement:d,...p(d)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=h(c(),r)),r},async setFormValues(e,r){r=Object.assign({avoidDependKeyConnection:!0,needSplitExtendKey:!0,avoidWordbookSettingConnection:!0,avoidOperationalFormConnection:!0,dependKeyKeepValue:!1,avoidBusinessConnection:!1,avoidFormChangeEvent:!1,overwrite:!0},r),F.triggerDisabled=r.avoidBusinessConnection,v.triggerDisabled=r.avoidDependKeyConnection,v.keepValue=r.dependKeyKeepValue,C.triggerDisabled=r.avoidWordbookSettingConnection,E.triggerDisabled=r.avoidOperationalFormConnection,r.needSplitExtendKey&&(e=S(c(),e)),r.avoidFormChangeEvent&&(I.value=!1),t.setFieldState("*",(t=>{o(t)&&(r.overwrite||n.existIn(e,t.path))&&(t.value=n.getIn(e,t.path))})),await u(),I.value=!0,F.triggerDisabled=!1,v.triggerDisabled=!1,C.triggerDisabled=!1,E.triggerDisabled=!1,v.keepValue=!1},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:e=>async function(e,t,o){if(!r.value)return d();const i=g(e,t,a);if(i)return d(i);const s=b(e,o);return s?(v.trigger(n.parse(s),!0),await u(),d(g(e,t,a))):d();function d(e){return{decoratorElement:e,...p(e)}}}(e,r.value,c()),applySelectedSetting(e){const r=t.getFormState().values;j(r,e,((e,r)=>{t.setFieldState(e,(e=>{o(e)&&e.setValue(r)}))}))},getTextFormValues:()=>m(t,D)}}function C({props:e,formRenderRef:o,formModel:n,formUUID:i}){return{onKeydown:async function d(l){var u;if(!l.isComposing)if("Enter"===l.code){if(e.enterToNextWidget&&l.target){if("TEXTAREA"===l.target.tagName&&!l.ctrlKey)return;l.preventDefault()}if(await a(0),Reflect.get(l,"stopCapture")||!e.enterToNextWidget||!o.value)return;const r=t(l.target,(e=>e.classList.contains("form-render__formItem")));if(!r)return;const i=`.form-render__formItem${c.map((e=>`:not([widget-type=${e}])`)).join("")}`,f=Array.from(o.value.querySelectorAll(i)),p=f.findIndex((e=>e.id===r.id));if(!~p)return;const{widget:g,field:y}=v(f,p,l.target);if(!g)return;if(s(e.enterToNextWidget)){const t=y&&n.query(y).take();!t||e.enterToNextWidget(null==(u=t.decoratorProps)?void 0:u.fieldItem)?m(g,e.autoExpand):d({target:g,code:"Enter"})}else m(g,e.autoExpand)}else if("Tab"===l.code){if(!e.autoExpand)return;await a(0);const t=document.querySelector(":focus");if(!t)return;m(t,!0)}async function m(e,o){if(await a(0),e.focus(),!o)return;if(!t(e,(e=>e.getAttribute("uuid")===i)))return;if(!r(["radio","checkbox"],e.className))if(e.click(),"INPUT"!==e.tagName){const t=e.querySelector("input");if(!t)return;t.focus(),n(t)}else n(e);function n(e){if("INPUT"!==e.tagName)return;const t=e.value;t&&t.match(/^\d{4}-\d{2}/)&&e.setSelectionRange(0,4)}}}}}export{C as useFormDomEvent,F as useFormExposeEvent};
|
|
@@ -43,26 +43,29 @@ export declare type FormRenderExpose = {
|
|
|
43
43
|
* avoidDependKeyConnection?: boolean|string;
|
|
44
44
|
* avoidWordbookSettingConnection?: boolean|string;
|
|
45
45
|
* avoidOperationalFormConnection?: boolean|string;
|
|
46
|
+
* avoidFormChangeEvent?: boolean;
|
|
46
47
|
* dependKeyKeepValue: boolean | string;
|
|
47
48
|
* overwrite?: boolean;
|
|
48
49
|
* }} options
|
|
49
50
|
* {
|
|
50
|
-
*
|
|
51
|
-
* avoidBusinessConnection, // 赋值时是否规避业务联动, 默认为false
|
|
52
|
-
* avoidDependKeyConnection, // 赋值时是否规避依赖联动, 默认为true
|
|
53
|
-
* dependKeyKeepValue, // 赋值时如果触发了依赖联动,
|
|
54
|
-
* avoidWordbookSettingConnection, // 赋值时是否规避字典联动, 默认为true
|
|
55
|
-
* avoidOperationalFormConnection, //
|
|
51
|
+
* needSplitExtendKey, //是否将extendKey展开, 默认为true
|
|
52
|
+
* avoidBusinessConnection, // 赋值时是否规避业务联动, 默认为false, 当值为Path字符串时, 表示仅规避该Path下的业务联动
|
|
53
|
+
* avoidDependKeyConnection, // 赋值时是否规避依赖联动, 默认为true, 当值为Path字符串时, 表示仅规避该Path下的依赖联动
|
|
54
|
+
* dependKeyKeepValue, // 赋值时如果触发了依赖联动, 是否保持原值, 当值为Path字符串时, 表示仅保持该Path下的值
|
|
55
|
+
* avoidWordbookSettingConnection, // 赋值时是否规避字典联动, 默认为true, 当值为Path字符串时, 表示仅规避该Path下的字典联动
|
|
56
|
+
* avoidOperationalFormConnection, // 赋值时是否规避低代码联动, 默认为true, 当值为Path字符串时, 表示仅规避该Path下的低代码联动
|
|
57
|
+
* avoidFormChangeEvent, // 赋值时是否规避表单值变更事件, 默认为false
|
|
56
58
|
* overwrite // 是否对表单值进行全量覆盖, 默认为true
|
|
57
59
|
* }
|
|
58
60
|
*/
|
|
59
61
|
setFormValues(values: AnyObject, options?: Partial<{
|
|
60
62
|
needSplitExtendKey: boolean;
|
|
61
63
|
avoidBusinessConnection: boolean | string;
|
|
64
|
+
dependKeyKeepValue: boolean | string;
|
|
62
65
|
avoidDependKeyConnection: boolean | string;
|
|
63
66
|
avoidWordbookSettingConnection: boolean | string;
|
|
64
67
|
avoidOperationalFormConnection: boolean | string;
|
|
65
|
-
|
|
68
|
+
avoidFormChangeEvent: boolean;
|
|
66
69
|
overwrite: boolean;
|
|
67
70
|
}>): any;
|
|
68
71
|
/**
|
|
@@ -128,6 +128,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
128
128
|
__emits: (event: "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd" | "pageChange", ...args: any[]) => void;
|
|
129
129
|
$xeTable: import("vue").Ref<import("../../components/iho-table/src/types").$VxeTable | undefined>;
|
|
130
130
|
loading: import("vue").Ref<boolean>;
|
|
131
|
+
finalLoading: import("vue").ComputedRef<boolean>;
|
|
131
132
|
themCSSVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
132
133
|
CSSVars: import("vue").ComputedRef<{
|
|
133
134
|
[x: `--${string}`]: string | number | undefined;
|
|
@@ -5121,6 +5122,9 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5121
5122
|
updateFieldListRefDebounced: () => void;
|
|
5122
5123
|
updateFieldListRef: () => void;
|
|
5123
5124
|
dataTransfer: (data: import("../../shared/types").AnyObject[]) => Promise<import("../../shared/types").AnyObject[]>;
|
|
5125
|
+
tableDataResolved: null;
|
|
5126
|
+
setTableDataResolved: (resolve: import("../../shared/types").AnyFn<any[], any>) => void;
|
|
5127
|
+
resolveTableData: () => Promise<void>;
|
|
5124
5128
|
tableDataRef: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
|
5125
5129
|
updateTableDataRefDebounced: () => Promise<void>;
|
|
5126
5130
|
updateTableDataRef: () => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormRequestDefine, useVersion } from '../../../shared/hooks';
|
|
2
|
-
import { AnyObject } from '../../../shared/types';
|
|
2
|
+
import { AnyFn, AnyObject } from '../../../shared/types';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
4
|
import { VxeTableInstance } from 'vxe-table';
|
|
5
5
|
import { AnnotationItem } from '../../../components/annotation-edit/src/type';
|
|
@@ -129,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
129
|
__emits: (event: "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd" | "pageChange", ...args: any[]) => void;
|
|
130
130
|
$xeTable: import("vue").Ref<$VxeTable | undefined>;
|
|
131
131
|
loading: import("vue").Ref<boolean>;
|
|
132
|
+
finalLoading: import("vue").ComputedRef<boolean>;
|
|
132
133
|
themCSSVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
133
134
|
CSSVars: import("vue").ComputedRef<{
|
|
134
135
|
[x: `--${string}`]: string | number | undefined;
|
|
@@ -5122,6 +5123,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5122
5123
|
updateFieldListRefDebounced: () => void;
|
|
5123
5124
|
updateFieldListRef: () => void;
|
|
5124
5125
|
dataTransfer: (data: AnyObject[]) => Promise<AnyObject[]>;
|
|
5126
|
+
tableDataResolved: null;
|
|
5127
|
+
setTableDataResolved: (resolve: AnyFn) => void;
|
|
5128
|
+
resolveTableData: () => Promise<void>;
|
|
5125
5129
|
tableDataRef: import("vue").Ref<AnyObject[]>;
|
|
5126
5130
|
updateTableDataRefDebounced: () => Promise<void>;
|
|
5127
5131
|
updateTableDataRef: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,provide as o,computed as a,toRaw as l,watch as n,resolveComponent as r,openBlock as s,createElementBlock as i,mergeProps as u,unref as c,createBlock as d,resolveDynamicComponent as f,createElementVNode as m,normalizeStyle as
|
|
1
|
+
import{defineComponent as e,ref as t,provide as o,computed as a,toRaw as l,watch as n,resolveComponent as r,openBlock as s,createElementBlock as i,mergeProps as u,unref as c,createBlock as d,resolveDynamicComponent as f,createElementVNode as m,normalizeStyle as v,createVNode as p,withCtx as b,createSlots as g,renderList as h,createCommentVNode as x,renderSlot as y,normalizeProps as k,guardReactiveProps as D,nextTick as C}from"vue";import{useTheme as $,createOpacityColor as j}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as w}from"@vueuse/core";import"date-fns";import{isString as T,isEqualWith as I,isFunction as R,pick as q}from"lodash-es";import{useFormAsyncQueue as H,presetRequestHandler as P}from"../../../shared/hooks/useFormRequest/index.js";import{promiseTimeout as _}from"@vueuse/shared";import{hex2rgba as A,widthAppend as L,uuidGenerator as S}from"../../../shared/utils/index.js";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NConfigProvider as F}from"naive-ui";import{useVersion as O}from"../../../shared/hooks/useVersion.js";import{VxeTableEventNameList as B,InjectionIhoTableXeInstance as E,InjectionIhoTableLoading as W,InjectionIhoTableEmits as N,InjectionTableAsyncQueue as V,InjectionIhoTableAnnotation as z,InjectionIhoTableUUID as G,InjectionIhoTableInstance as J,InjectionIhoTableConfig as K,InjectionIhoTableFieldList as M,InjectionIhoTableHandler as Q,InjectionIhoTableGlobProps as U}from"./constants/index.js";import{createTableHooks as X,applyTableConfigHooks as Y,applyTableFieldHooks as Z,createTableEventHandlers as ee,createDomInsertComponent as te,createDataTransfer as oe}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as ae}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as le}from"./utils/index.js";const ne=["id"];var re=e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object},requestInstance:{type:Object},uniqueCacheData:{type:Boolean,default:!1},parallelism:{type:Number,default:3}},emits:["formChange","settingClick","formClick","keyboard","rowDrag",...B],setup(e,{expose:B,emit:re}){var se,ie;const ue=e,ce=t();o(E,ce);const de=t(!1),fe=a((()=>{var e;return(null==(e=ue.tableConfig)?void 0:e.loading)||de.value}));o(W,de);const me=$({"--c-border-color":"#d0d0d0","--c-head-bg-color":"#f2f2f2","--c-hover-color":"#e6e6e6","--c-stripe-color":"#f6f6f6"}),ve=a((()=>{var e,t,o;const a={...me.value};return a["--c-primary-color-opacity3"]=j(...A(a["--c-primary-color"]+""),.3),a["--c-scrollbar-width"]=L(null!=(o=null==(t=null==(e=ce.value)?void 0:e.reactData)?void 0:t.scrollbarWidth)?o:0),a})),pe=a((()=>{var e,t;const o=null!=(t=null==(e=ue.tableConfig)?void 0:e.height)?t:"100%";return{height:"auto"===o?"100%":T(o)&&(o.includes("calc")||o.endsWith("%"))?o:L(o)}})),be=ae(),ge=function(e,...t){re(e,...t);const o=c(De)[le(e)];R(o)&&o(...t),be.trigger(e,...t)};o(N,ge);const he=H(a((()=>ue.requestInstance)),a((()=>!!ue.uniqueCacheData))).create(ue.parallelism,{beforeRequest:(e,t)=>t,afterRequest:(e,t)=>P(t)});o(V,he);const xe=X();o(z,a((()=>ue.annotation)));const ye=S();o(G,ye);const ke=t();o(J,ke);const De=t({uuid:null!=(ie=null==(se=ue.tableConfig)?void 0:se.uuid)?ie:ye});o(K,De);const Ce=w($e,10);function $e(){var e,t;De.value=Y(xe,{...ue.tableConfig,uuid:null!=(t=null==(e=ue.tableConfig)?void 0:e.uuid)?t:ye},{$table:ke,emits:ge,globProps:ue,loading:de,$xeTable:ce})}const je=t([]);o(M,je);const we=w(Te,10);function Te(){const e=Z(xe,ue.fieldList,De.value,{$table:ke,emits:ge,loading:de,globProps:ue,$xeTable:ce});I(e,l(je.value),((e,t)=>{if(R(e)&&R(t))return e.toString()===t.toString()}))||(je.value=e)}const Ie=oe(xe,De,ke);let Re=null;function qe(e){Re=e}async function He(){await C(),null==Re||Re(),Re=null}const Pe=t([]);async function _e(){var e,t;const o=await Ie(ue.tableData),a=null==(e=ke.value)?void 0:e.getTableData().fullData;if(a){let e=0;if(!(a.some((t=>{var a;if(!(null==(a=ke.value)?void 0:a.isInsertByRow(t))){if(t!==o[e])return!0;e++}}))||e!==o.length))return void He()}Pe.value=o,null==(t=ke.value)||t.recalculate(!0),He()}const Ae={updateTableDataRef:w(_e,10),updateConfigRef:Ce,updateFieldListRef:we};o(Q,Ae),o(U,ue);const Le=ee({hooks:xe,config:De,$table:ke,context:Ae,emits:ge,globProps:ue,loading:de,$xeTable:ce}),Se=a((()=>({...De.value,...Le})));let Fe=!1,Oe=!1,Be=!1;const Ee=w((()=>{Fe&&$e(),Oe&&Te(),Be&&_e(),Fe=!1,Oe=!1,Be=!1}),10);n((()=>ue.tableConfig),(()=>{Fe=!0,Oe=!0,Be=!0,Ee()}),{deep:!0}),n((()=>ue.fieldList),(()=>{Oe=!0,Be=!0,Ee()}),{deep:!0}),n([()=>[...ue.tableData],()=>{var e;return null==(e=ue.tableData)?void 0:e.length}],(()=>{Be=!0,Ee()})),n([()=>ue.tableData,()=>{var e;return null==(e=ue.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=De.value.treeConfig)?void 0:e.expandAll)&&(await _(11),null==(t=ke.value)||t.setAllTreeExpand(!0))})),$e(),Te(),_e();const{header:We,footer:Ne}=te(xe);function Ve(e){return q(e,["row","rowIndex","$rowIndex","column","columnIndex","$columnIndex","_columnIndex","checked","disabled","indeterminate"])}return B({$table:ke,async loadData(e){var t;null==(t=ke.value)||t.loadData(await Ie(e))},setSort:(e,t)=>({field:e,value:t}),setFilter:(e,t)=>({field:e,value:t}),tableDataResolved:()=>new Promise(qe),reload(){var e,t;null==(e=ke.value)||e.loadColumn([]),null==(t=ke.value)||t.loadData([]),$e(),Te(),_e()},verticalTable:{update:()=>{}},...xe.exposeHooks.expose.call({},De,{$table:ke,emits:ge,globProps:ue,loading:de,$xeTable:ce,...Ae})}),xe.setupHooks.setup.call(De,je,{$table:ke,emits:ge,globProps:ue,loading:de,$xeTable:ce}),(e,t)=>{const o=r("vxe-grid");return s(),i("section",u({class:"iho-table",id:c(ye),style:c(ve)},c(O)()),[(s(),d(f(c(We)))),m("section",{style:v(c(pe))},[p(c(F),{abstract:"",namespace:"vxe-table--ignore-clear"},{default:b((()=>[p(o,u({ref_key:"$table",ref:ke},c(Se),{columns:je.value,data:Pe.value,loading:c(fe)}),g({_:2},[h(e.$slots,((t,o)=>({name:o,fn:b((t=>[x(" 实际上所有的vxe-grid插槽都支持 "),y(e.$slots,o,k(D(Ve(t))))]))})))]),1040,["columns","data","loading"])])),_:3})],4),(s(),d(f(c(Ne))))],16,ne)}}});export{re as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../index.js";import{EDITABLE_WIDGET_TYPE as e}from"../constants/index.js";import{promiseTimeout as
|
|
1
|
+
import"../../index.js";import{EDITABLE_WIDGET_TYPE as e}from"../constants/index.js";import{promiseTimeout as o}from"@vueuse/shared";import{identity as r}from"lodash-es";import{defineTablePlugin as n}from"../hooks/useTablePlugin.js";function t(){const t="forceArrowKeyPlugin",l=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function d({keyboardConfig:e={}}){return e.isArrow&&e.forceArrowKey}function i(e,o,r,n,t,l,d,c=1){const{afterFullData:u,visibleColumn:a}=e.internalData,s=Object.assign({},o),w=e.getVTRowIndex(s.row),m=e.getVTColumnIndex(s.column);d.preventDefault();let p=!1;n&&w>c-1?(s.rowIndex=w-c,s.row=u[s.rowIndex],p=!0):l&&w<u.length-c?(s.rowIndex=w+c,s.row=u[s.rowIndex],p=!0):r&&m>c-1?(s.columnIndex=m-c,s.column=a[s.columnIndex],p=!0):t&&m<a.length-c&&(s.columnIndex=m+c,s.column=a[s.columnIndex],p=!0),p?e.scrollToRow(s.row,s.column).then((()=>{s.cell=e.getCell(s.row,s.column),e.handleSelected(s,d)})):c>1&&i(e,o,r,n,t,l,d,c-1)}return n({name:t,apply(n){n.eventHooks.onKeydown.tap(t,(async({$event:e,$table:r},n,{$xeTable:t})=>{const c=e;if(!d(n)||!l.includes(c.key))return;const u=r.getEditRecord()||{};if(u.row&&u.column){e.preventDefault();const o="ArrowLeft"===c.key,r="ArrowUp"===c.key,n="ArrowRight"===c.key,l="ArrowDown"===c.key;t.value&&i(t.value,u,o,r,n,l,c,c.ctrlKey||c.metaKey?2:1)}await o(0);const{row:a,column:s}=r.getSelectedCell()||{};a&&s&&await r.setEditCell(a,s)}));const c={[e.NUMBER]:e=>{var o;return e.editRender.props={...e.editRender.props,componentProps:{keyboard:{ArrowUp:!1,ArrowDown:!1},...null==(o=e.editRender.props)?void 0:o.componentProps}},e}};n.fieldHooks.field.tap(t,((e,o,n)=>{var t;if(!d(n))return e;return(c[null==(t=e.editRender)?void 0:t.name]||r)(e)}))}})}export{t as forceArrowKeyPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useThrottleFn as
|
|
1
|
+
import{useThrottleFn as a}from"@vueuse/core";import{promiseTimeout as e}from"@vueuse/shared";import{onBeforeUnmount as t,nextTick as o}from"vue";import"../../../index.js";import{LOWEST_PRIORITY as l}from"../../constants/index.js";import{isPagerScrollEnable as r,scrollStateMap as u,pageCapacityCalc as n}from"./utils.js";import{defineTablePlugin as i}from"../../hooks/useTablePlugin.js";function c(){const c="pagerScrollPlugin";return i({name:c,apply(i){i.configHooks.config.tap(c,(a=>r(a)&&a.uuid?(a.scrollY={...a.scrollY,gt:0},a):a));i.eventHooks.onScroll.tap(c,a((async(a,t,{$table:l,loading:n,$xeTable:i})=>{var c,s,p;if(!r(t)||!t.uuid)return;const d=null==(p=null==(s=null==(c=null==i?void 0:i.value)?void 0:c.getRefMaps().refTableBody)?void 0:s.value)?void 0:p.$el;if(d&&d.scrollHeight-d.scrollTop-d.clientHeight<3){const a=u.getItemFromUUID(t.uuid),{capacityInfo:l,currentPage:r=0}=a;if(!l)return;if(r<l.length-1){a.currentPage=r+1;const u=()=>async function(a,e){const{tableFullData:t,afterFullData:l}=a.internalData,{mergeList:r}=a.reactData;l.push(...e),t.push(...e),r.forEach((a=>{const{row:t,rowspan:o}=a;t+o>l.length&&(a.rowspan=o+e.length)})),a.updateFooter(),a.cacheRowMap(),a.handleTableData(!1),a.updateAfterDataIndex(),a.checkSelectionStatus(),a.reactData.scrollYLoad&&a.updateScrollYSpace(),await o(),a.updateCellAreas(),await a.recalculate()}(i.value,l[r+1].pageData);if(t.pagerScroll.loading)try{n.value=!0,await u(),await e(100)}finally{n.value=!1}else await u()}}}),300)),i.dataHooks.dataList.tap({name:c,stage:l},((a,e)=>{var t,o;if(!r(e)||!e.uuid)return a;const l=u.getItemFromUUID(e.uuid);return l.dataList=a,l.capacityInfo=n(a,e),l.currentPage=0,null!=(o=null==(t=l.capacityInfo[0])?void 0:t.pageData)?o:[]})),i.setupHooks.setup.tap(c,(a=>{t((()=>{a.value.uuid&&u.removeItemFromUUID(a.value.uuid)}))}))}})}export{c as pagerScrollPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as e,mergeProps as o}from"vue";import{format as t}from"date-fns";import{isFunction as n}from"lodash-es";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as r}from"../../../../constants/index.js";import{useAutoFocus as i}from"../hooks/useAutoFocus.js";import{IhoTableRenderHelper as l,
|
|
1
|
+
import{createVNode as e,mergeProps as o}from"vue";import{format as t}from"date-fns";import{isFunction as n}from"lodash-es";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as r}from"../../../../constants/index.js";import{useAutoFocus as i}from"../hooks/useAutoFocus.js";import{IhoTableRenderHelper as l,getLowCodeFieldFromField as d,isInvalidDate as a}from"../../../../utils/index.js";import m from"./editDate.vue.js";import{defineTablePlugin as u}from"../../../../hooks/useTablePlugin.js";function s(){const s="dateRendererPlugin";return u({name:s,vxe(t){t.renderer.add(r.DATE,{renderCell:l.createDefaultRenderCell(),renderEdit:l.createRenderEdit((({fieldItem:t,emitFormClick:n,row:r,column:i,$rowIndex:l})=>[e(m,o({value:r[i.field],"onUpdate:value":e=>r[i.field]=e,isStartDate:t.isStartDate,isEndDate:t.isEndDate,connectField:t.connectField,valueFormat:t.valueFormat},t.componentProps,{column:i,row:r,"row-index":l,onClick:n}),null)]))})},apply(e){i(e).bindAutoFocusConfig(s,r.DATE,".n-input__input-el",{after:e=>(Reflect.set(e.editRender,"autoselect",!0),e)}),e.eventHooks.onCellDblclick.tap(s,(({row:e,column:o,columnIndex:i,rowIndex:l,$rowIndex:m},u,{$table:s,emits:f})=>{var c,p,v,x,w;if((null==(c=o.editRender)?void 0:c.name)!==r.DATE||e[o.field])return;if(n(null==(p=u.editConfig)?void 0:p.beforeEditMethod)){if(!(null==(v=u.editConfig)?void 0:v.beforeEditMethod({row:e,column:o,columnIndex:i,rowIndex:l,$table:s,$grid:s})))return}const D=new Date,C=d(o);if(!C||a(o,e,D))return;const E=e[o.field],F=C.valueFormat||(null==(x=C.componentProps)?void 0:x.valueFormat),b=C.format||(null==(w=C.componentProps)?void 0:w.format);e[o.field]=t(D,F||b||"yyyy-MM-dd HH:mm:ss"),f("formChange",{oldValue:E,index:l>-1?l:m,value:e[o.field],row:e,column:o,$table:s})}))}})}export{s as dateRendererPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as l,ref as o,computed as t,onBeforeUnmount as n,nextTick as a,createVNode as r,toRaw as u}from"vue";import{arrayed as i}from"../../../../../../../shared/utils/index.js";import{NSelect as s}from"naive-ui";import{useVModel as d,useDebounceFn as c}from"@vueuse/core";import"date-fns";import{isFunction as p,isEmpty as v,isArray as f,isObject as
|
|
1
|
+
import{defineComponent as e,inject as l,ref as o,computed as t,onBeforeUnmount as n,nextTick as a,createVNode as r,toRaw as u}from"vue";import{arrayed as i}from"../../../../../../../shared/utils/index.js";import{NSelect as s}from"naive-ui";import{useVModel as d,useDebounceFn as c}from"@vueuse/core";import"date-fns";import{isFunction as p,isEmpty as v,isArray as f,isObject as m,omit as y,cloneDeep as h,xor as w}from"lodash-es";import"@vue/shared";import{useSelectAllowModify as b}from"../../../../../../../shared/hooks/selectHooks/useSelectAllowModify.js";import{useOptionFiltered as g}from"../../../../../../../shared/hooks/selectHooks/useOptionFiltered.js";import"../../../../../../../shared/hooks/selectHooks/useSearchContent.js";import{useSelectRenders as F}from"../../../../../../../shared/hooks/selectHooks/useSelectRenders.js";import{useMenuWidthAuto as S}from"../../../../../../../shared/hooks/selectHooks/useMenuWidthAuto.js";import{InjectionIhoTableUUID as k,InjectionIhoTableConfig as O}from"../../../../constants/index.js";import{useIhoTableFormEvent as A}from"../../../../utils/index.js";import{getSelectOptions as B,selectOptionsMap as j}from"../hooks/useSelectOption.js";var x=e({name:"EditSelect",props:{value:{type:[Array,String,Number]},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0},options:{type:Array,default:()=>[]},queryOptions:{type:Function},placeholder:{type:String,default:"请选择"},allowModify:{type:Boolean},allowCreate:{type:Boolean},shouldSave:{type:Boolean},consistentMenuWidth:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},searchField:{type:Array},aliasField:{type:String},menuProps:{type:Object},multiple:{type:Boolean},deletable:{type:Boolean,default:!0},selectAll:{type:Boolean,default:!0},searchByValue:{type:Boolean}},emits:["update:value"],setup(e,{emit:x}){const C=l("$xetable"),K=d(e,"value",x),$=o(null),{emitFormChangeWithParams:q}=A({...e,$table:C}),R=t((()=>e.labelField)),M=t((()=>e.valueField)),D=t((()=>e.aliasField)),H=t((()=>e.searchField)),{fullOptions:P,filterOptions:_,searchContent:E,remoteOptions:T}=g(e,{labelKey:R,valueKey:M,searchKey:H}),{modifyEvent:V,modifyAbleRef:W,getOptionsWithCreated:L}=b(e,{searchContent:E,labelKey:R,valueKey:M,valueRef:K,fullOptions:P}),I=t((()=>L(W.value?P.value:_.value))),{setMenuWith:U}=S(e,{selectRef:$,options:I}),N=o(!1),z=c((async function(l=""){E.value=l;try{if(N.value=!0,!p(e.queryOptions)||!v(e.options))return;T.value=await e.queryOptions({keyword:l,row:e.row,column:e.column,rowIndex:e.rowIndex})}catch(l){console.log(`获取${e.column.field}options错误`)}finally{N.value=!1}}),400),G=l(k);n((()=>X(!0)));const J=o(!1);function Q(e){J.value=e,X(),z(),e&&U()}async function X(l=!1){var o,t,n;if(!e.multiple)return;await a();const{refTableLeftBody:r,refTableBody:u}=C.getRefMaps(),i=null==(o=null==r?void 0:r.value)?void 0:o.$el;if(!i)return;const s=null==(t=null==u?void 0:u.value)?void 0:t.$el,d=C.getRowid(e.row),c=null==(n=s.querySelector(`.vxe-body--row[rowid="${d}"]`))?void 0:n.clientHeight;i.querySelector(`.vxe-body--row[rowid="${d}"]`).style.height=l?"unset":c+"px"}async function Y(l,o){var t,n;const a=e.value;await V.updateValue(l,o);const r=B(G,e.column.field,e.row,C);G&&f(r)&&i(o).forEach((e=>{if(!m(e))return;const l=e;l.created&&l.shouldSave&&r.push(y(u(l),["created","shouldSave"]))}));const s=null==(t=e.column.editRender)?void 0:t.props;if(G&&(null==s?void 0:s.connectField)){const o=null==(n=s.connectField)?void 0:n.split(","),t=j.get(G);o.forEach((async o=>{var n;const{tableColumn:a}=C.reactData,r=a.find((e=>e.field===o)),u=null==(n=null==r?void 0:r.editRender)?void 0:n.props;if(null==u?void 0:u.queryOptions){const n=l?`${o}__${e.column.field}-${l}`:o;if(t[n])return;t[n]=await u.queryOptions({row:e.row,column:r,isFullData:!0,connectColumn:e.column})}}))}return q({oldValue:a,option:h(o)}),X()}const Z=l(O);function ee(){var e,l;return null==(l=null==(e=Z.value)?void 0:e.keyboardConfig)?void 0:l.forceArrowKey}let le=!1;function oe(e){var l,o,t;if($.value)if("Tab"===e.code||ee()&&(t=e.key,["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t)))J.value?le?le=!1:null==(o=(l=$.value).handleKeydown)||o.call(l,{...e,key:"Enter",preventDefault:e.preventDefault.bind(e)}):C.internalData.isActivated=!0;else if("Backspace"===e.code&&ee()){""===$.value.pattern&&(K.value=null),le=!0}}const{renderTag:te,renderLabel:ne,renderSelectAll:ae}=F(e,{labelKey:R,valueKey:M,valueRef:K,showKey:D,searchContent:E});function re(l){if(!e.multiple)return;const o=l?I.value.map((e=>e[M.value])):[];if(!w(o,K.value).length)return;const t=K.value;K.value=o,q({oldValue:t,option:l?I.value:[]})}const ue=()=>({class:"iho-table__selectOption"}),ie=t((()=>{var l,o;return{...e.menuProps,class:`iho-table__selectMenu ${null!=(o=null==(l=e.menuProps)?void 0:l.class)?o:""}`}}));return()=>{const l={};return e.multiple&&e.selectAll&&(l.action=()=>ae(re)),r(s,{ref:$,placeholder:e.placeholder,labelField:e.labelField,valueField:e.valueField,loading:N.value,options:I.value,multiple:e.multiple,value:e.value,remote:!0,onSearch:z,clearable:!0,filterable:!0,nodeProps:ue,menuProps:ie.value,renderTag:te,renderLabel:ne,show:J.value,onUpdateShow:Q,onUpdateValue:Y,onKeydownCapture:oe,onFocus:V.focus,onBlur:V.blur},l)}}});export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{inject as o,createVNode as n}from"vue";import{SettingsSharp as e}from"@vicons/ionicons5";import{isFunction as i}from"lodash-es";import{NIcon as t}from"naive-ui";import"../../../../index.js";import{InjectionIhoTableEmits as l}from"../../../constants/index.js";import{IhoTableStatusHelper as s}from"../../../utils/index.js";import{defineTablePlugin as r}from"../../../hooks/useTablePlugin.js";function f(){const f="seqRendererPlugin";return r({name:f,apply(r){r.fieldHooks.field.tap({name:f,before:"checkRendererPlugin"},((r,{index:u,insertBefore:
|
|
1
|
+
import{inject as o,createVNode as n}from"vue";import{SettingsSharp as e}from"@vicons/ionicons5";import{isFunction as i}from"lodash-es";import{NIcon as t}from"naive-ui";import"../../../../index.js";import{InjectionIhoTableEmits as l}from"../../../constants/index.js";import{IhoTableStatusHelper as s}from"../../../utils/index.js";import{defineTablePlugin as r}from"../../../hooks/useTablePlugin.js";function f(){const f="seqRendererPlugin";return r({name:f,apply(r){r.fieldHooks.field.tap({name:f,before:"checkRendererPlugin"},((r,{index:u,insertBefore:m},c)=>{var d,a,p,g,v;if(0===u&&c.showSeq){const r={align:"center",fixed:"left",width:50,type:"seq",field:f,annotation:!1,...null==(d=c.columnConfig)?void 0:d.seqConfig,slots:{header(){if(s.isPositive(c.hideSettingBtn))return[];const i=o(l);return[n(t,{style:{cursor:"pointer"},size:"14",color:"#777",component:e,onClick:function(){i&&i("settingClick")}},null)]},...null==(p=null==(a=c.columnConfig)?void 0:a.seqConfig)?void 0:p.slots}};i(null==(g=c.columnConfig)?void 0:g.seqSlotFn)&&(r.slots||(r.slots={}),r.slots.default=c.columnConfig.seqSlotFn),(null==(v=c.sortableConfig)?void 0:v.enable)&&(r.className="col--drag"),m(r)}return r}))}})}export{f as seqRendererPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{promiseTimeout as e}from"@vueuse/shared";import{isFunction as l,cloneDeep as n}from"lodash-es";import{nextTick as o,onBeforeUnmount as
|
|
1
|
+
import{promiseTimeout as e}from"@vueuse/shared";import{isFunction as l,cloneDeep as n}from"lodash-es";import{nextTick as o,onBeforeUnmount as i}from"vue";import"../../index.js";import t from"sortablejs";import d from"xe-utils";import{defineTablePlugin as r}from"../hooks/useTablePlugin.js";function a(){const n="rowDragPlugin",d=new Map;return r({name:n,apply(r){r.fieldHooks.fieldEnd.tapPromise(n,(async(n,{$table:i,emits:r})=>{const{uuid:a}=n,s=n.sortableConfig||{};a&&s.enable&&!d.get(a)&&(await o(),async function n(c=0){if(c>2)return;const v=function(){var e,l,n,o,t,d,r;const a=null==(o=null==(n=null==(l=null==(e=i.value)?void 0:e.$el)?void 0:l.querySelector)?void 0:n.call(l,".vxe-table--body"))?void 0:o.scrollWidth,u=".body--wrapper>.vxe-table--body tbody";return a?null==(r=null==(d=null==(t=i.value)?void 0:t.$el)?void 0:d.querySelector)?void 0:r.call(d,u):null}();if(v){const e=t.create(v,{handle:".col--seq",...s,onEnd:async e=>{var n,t,d,a,c;const{oldIndex:v=0,newIndex:f=0,item:p}=e,x={oldIndex:v,newIndex:f},{virtualY:m}=(null==(n=i.value)?void 0:n.getScroll())||{};if(m){const{item:e,index:l=0}=(null==(t=i.value)?void 0:t.getRowNode(p))||{};x.oldIndex=l;const n=p.previousElementSibling,r=p.nextElementSibling;if(n&&f>v){const{index:e}=(null==(d=i.value)?void 0:d.getRowNode(n))||{};x.newIndex=e}if(r&&f<v){const{index:e}=(null==(a=i.value)?void 0:a.getRowNode(r))||{};x.newIndex=e}(0!==f||0===f&&p.parentElement&&l>(null==(c=p.parentElement.children)?void 0:c.length)-1)&&o((()=>{var e,l;null==(e=p.parentNode)||e.removeChild(p),null==(l=i.value)||l.refreshScroll()}))}const b={...e,...x,...u(e,x,i.value)};r("rowDrag",b),l(s.onEnd)&&s.onEnd(b)}});return d.set(a,e)}await e(100),n(++c)}())})),r.setupHooks.setup.tap(n,(e=>{i((()=>{var l,n;const o=null==(l=e.value)?void 0:l.uuid;o&&d.has(o)&&(null==(n=d.get(o))||n.destroy(),d.delete(o))}))}))}})}function u(e,l,o){var i;const t=null==(i=null==o?void 0:o.getTableData())?void 0:i.fullData,r=o.treeConfig&&o.treeConfig.transform?function(e,l){var o,i,t,r,a;const{oldIndex:u=0,newIndex:s=0}=e,c={children:"childrenList"},{fullData:v,tableData:f}=l.getTableData(),p=null==f?void 0:f[u],x=null==f?void 0:f[s-1],m=n(v),b=d.findTree(m,(e=>e.__id===p.__id),c);if(x){const e=null==(i=null==(o=l.$el)?void 0:o.querySelector)?void 0:i.call(o,".body--wrapper>.vxe-table--body tbody"),n=null==(r=null==(t=l.$el)?void 0:t.querySelector)?void 0:r.call(t,".fixed-left--wrapper>.vxe-table--body tbody"),v=d.findTree(m,(e=>e.__id===x.__id),c);if(d.findTree(p[c.children],(e=>e.__id===x.__id),c)){const l=e.children[u],o=e.children[s];return e.insertBefore(o,l),null==(a=null==n?void 0:n.insertBefore)||a.call(n,n.children[s],n.children[u]),console.log("不允许自己给自己拖动"),m}const f=b.items.splice(b.index,1)[0];l.isTreeExpandByRow(x)?x[c.children].splice(0,0,f):v.items.splice(v.index+(b.index<v.index?0:1),0,f)}else{const e=b.items.splice(b.index,1)[0];m.unshift(e)}return m}(e,o):function(e,l){var o;const{oldIndex:i=0,newIndex:t=0}=e,d=n((null==(o=null==l?void 0:l.getTableData())?void 0:o.fullData)||[]),r=d.splice(i,1)[0];return d.splice(t,0,r),d}(l,o);return{oldData:t,newData:r}}export{a as rowDragPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{onBeforeUnmount as e,createVNode as l,defineComponent as t,inject as i,computed as
|
|
1
|
+
import{onBeforeUnmount as e,createVNode as l,defineComponent as t,inject as i,computed as r,watch as d,onMounted as o}from"vue";import{traverse as u}from"../../../../shared/utils/index.js";import{promiseTimeout as n}from"@vueuse/shared";import{last as a,first as s}from"lodash-es";import"../../index.js";import{LOWEST_PRIORITY as f,InjectionIhoTableConfig as h,InjectionIhoTableXeInstance as c}from"../constants/index.js";import{useUUIDMap as v,mergeVxeStyle as g,mergeVxeClass as m}from"../utils/index.js";import{defineTablePlugin as x}from"../hooks/useTablePlugin.js";function p(){const p="stickyFixedPlugin";return x({name:p,apply(x){const{getItemFromUUID:y,removeItemFromUUID:b}=v((()=>({$xeTable:null,left:[],noFixed:[],right:[]}))),{getItemFromUUID:B,removeItemFromUUID:L}=v((()=>({tableBody:null,tableHeader:null,leftBorderLeftEle:null,leftBorderTopEle:null,leftShadowEle:null,rightBorderLeftEle:null,rightBorderTopEle:null})),!1);function E(e){const l=B(e),{leftShadowEle:t,rightBorderLeftEle:i,tableBody:r}=l;r&&(t&&(r.scrollLeft>0?t.classList.add("scrolling--middle"):null==t||t.classList.remove("scrolling--middle")),i&&(Math.ceil(r.scrollLeft)<r.scrollWidth-r.clientWidth?i.classList.add("scrolling--middle"):null==i||i.classList.remove("scrolling--middle")))}function F(e){const l=B(e),{tableBody:t,leftBorderLeftEle:i,leftShadowEle:r,leftBorderTopEle:d,rightBorderTopEle:o,rightBorderLeftEle:u,tableHeader:n}=l;if(!t||!n)return;const{$xeTable:f,left:h,right:c}=y(e);if(i&&d&&r)if(f){const e=h.map((e=>f.getColumnByField(e.field))).reduce(((e,l)=>e+((null==l?void 0:l.resizeWidth)||(null==l?void 0:l.renderWidth)||40)),0);r.style.left=e-4+"px",d.style.width=e-1+"px"}else{const e=a(null==n?void 0:n.querySelectorAll("th.iho-table--fixed-left"));e&&(r.style.left=e.offsetLeft+e.clientWidth-4+"px",d.style.width=e.offsetLeft+e.clientWidth-1+"px")}if(o&&u){const e=t.scrollHeight>t.clientHeight;if(f){const l=c.map((e=>f.getColumnByField(e.field))).reduce(((e,l)=>e+((null==l?void 0:l.resizeWidth)||(null==l?void 0:l.renderWidth)||40)),0);u.style.right=l-3+(e?10:0)+"px",o.style.width=l+(e?10:0)+"px",e&&o.style.setProperty("--c-header-height",n.clientHeight-2+"px")}else{const l=s(null==n?void 0:n.querySelectorAll("th.iho-table--fixed-right"));l&&(u.style.right=10+t.clientWidth-l.offsetLeft-(e?0:10)+"px",o.style.width=t.clientWidth-l.offsetLeft+(e?10:0)+"px",e&&o.style.setProperty("--c-header-height",n.clientHeight-2+"px"))}}}x.configHooks.config.tap(p,((e,{$table:l})=>{var t;if(!(null==(t=e.stickyFixedConfig)?void 0:t.enable)||!e.uuid)return e;const i=e=>{if(!l.value)return{left:0,right:0};return{left:l.value.getColumns().slice(0,e).reduce(((e,l)=>e+(l.resizeWidth||l.renderWidth)),0),right:l.value.getColumns().slice(e+1).reduce(((e,l)=>e+(l.resizeWidth||l.renderWidth)),0)}},r=y(e.uuid);function d(e){return r.left.some((l=>l.field===e.field))||r.right.some((l=>l.field===e.field))}return e.cellStyle=g((({_columnIndex:e,column:l})=>{if(d(l))return{"--iho-table-fixed-left":i(e).left,"--iho-table-fixed-right":i(e).right}}),e.cellStyle),e.headerCellStyle=g((({_columnIndex:e,column:l})=>{if(d(l))return{"--iho-table-fixed-left":i(e).left,"--iho-table-fixed-right":i(e).right}}),e.headerCellStyle),e})),x.fieldHooks.fieldList.tap({name:p,stage:f},((e,l)=>{var t;if(!(null==(t=l.stickyFixedConfig)?void 0:t.enable)||!l.uuid)return e;const i=y(l.uuid);return i.left=[],i.noFixed=[],i.right=[],u(e,(e=>{e.fixed?(i[e.fixed].push(e),e.className=m(e.className,`iho-table--fixed-${e.fixed}`),e.headerClassName=m(e.headerClassName,`iho-table--fixed-${e.fixed}`)):i.noFixed.push(e),e.fixed=void 0})),[...i.left||[],...i.noFixed||[],...i.right||[]]})),x.setupHooks.setup.tap(p,(l=>{e((()=>{var e;(null==(e=l.value)?void 0:e.uuid)&&(L(l.value.uuid),b(l.value.uuid))}))})),x.dataHooks.dataEnd.tap(p,(async e=>{var l;(null==(l=e.stickyFixedConfig)?void 0:l.enable)&&e.uuid&&(await n(100),F(e.uuid))})),x.eventHooks.onScroll.tap(p,(({isX:e},l)=>{var t;e&&(null==(t=l.stickyFixedConfig)?void 0:t.enable)&&l.uuid&&E(l.uuid)})),x.eventHooks.onResizableChange.tap(p,((e,l)=>{var t;(null==(t=l.stickyFixedConfig)?void 0:t.enable)&&l.uuid&&E(l.uuid)}));const k=t({setup(){const e=i(h),t=i(c),u=r((()=>{const l=y(e.value.uuid);return!(!l.left||!l.left.length)})),a=r((()=>{const l=y(e.value.uuid);return!(!l.right||!l.right.length)})),s=l=>{B(e.value.uuid).leftBorderLeftEle=l},f=l=>{B(e.value.uuid).leftBorderTopEle=l},v=l=>{B(e.value.uuid).leftShadowEle=l},g=l=>{B(e.value.uuid).rightBorderLeftEle=l},m=l=>{B(e.value.uuid).rightBorderTopEle=l};function x(){if(y(e.value.uuid).$xeTable=t.value,!t.value||!e.value.uuid)return;const{refTableBody:l,refTableHeader:i}=t.value.getRefMaps();if(!l.value)return;const r=B(e.value.uuid);r.tableBody=l.value.$el,r.tableHeader=i.value.$el,E(e.value.uuid),F(e.value.uuid)}return d([()=>y(e.value.uuid).left,()=>y(e.value.uuid).right],x),o((async()=>{await n(100),x()})),()=>[u.value?[l("div",{class:"iho-table__fixedLeftBorderLeft",ref:s},null),l("div",{class:"iho-table__fixedLeftBorderTop",ref:f},null),l("div",{class:"iho-table__fixedLeftShadow",ref:v},null)]:null,a.value?[l("div",{class:"iho-table__fixedRightBorderLeft",ref:g},null),l("div",{class:"iho-table__fixedRightBorderTop",ref:m},null)]:null]}}),C=t({setup(){const e=i(h);return()=>{var t,i;return(null==(i=null==(t=e.value)?void 0:t.stickyFixedConfig)?void 0:i.enable)?l(k,null,null):null}}});x.domInsertHooks.header.tap(p,(e=>(e.push(l(C,null,null)),e)))}})}export{p as stickyFixedPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.iho-table{height:100%;position:relative}.iho-table .vxe-header--column{font-weight:400;text-shadow:0 0 1px}.iho-table .vxe-body--column.col--drag{cursor:move}.iho-table .vxe-table.size--mini{font-size:14px}.iho-table .vxe-table.size--mini .vxe-body--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-footer--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-header--column:not(.col--ellipsis){padding:4px 0}.iho-table .vxe-table.size--mini .vxe-sort--asc-btn{top:-2px}.iho-table .vxe-table.size--mini .vxe-sort--desc-btn{bottom:0}.iho-table__headerWrapper{display:inline-flex;flex-wrap:nowrap}.iho-table__boldCell{font-weight:700}.iho-table .vxe-table .vxe-table--header-wrapper,.iho-table .vxe-table.vxe-table--render-default{color:#212121}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#b2b2b2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-table--header .checkbox-cell--disable{border:2px solid #c0c4cc;border-radius:50%;box-sizing:border-box;cursor:not-allowed;display:inline-block;height:18px;left:-2px;position:relative;top:3px;width:18px}.iho-table .vxe-table--header .checkbox-cell--disable:before{background-color:#c0c4cc;content:"";height:16px;left:50%;position:absolute;top:-2px;transform:translate(-60%) rotate(-45deg);width:2px}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-table--render-default .vxe-body--column.col--selected{box-shadow:inset 0 0 0 2px var(--c-primary-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--hover,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--stripe{background-color:var(--c-hover-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--stripe{background-color:var(--c-stripe-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--radio{background-color:var(--c-primary-color-opacity2);text-shadow:0 0 1px}.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--radio{background-color:var(--c-primary-color-opacity3);text-shadow:0 0 1px}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:var(--c-border-color)!important}.iho-table .vxe-table--footer-wrapper{border-top-color:var(--c-border-color)!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color)),linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .vxe-table--header-border-line{border-bottom-color:var(--c-border-color)!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .is--filter-active .vxe-cell--filter .vxe-filter--btn{color:var(--c-primary-color)}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:var(--c-primary-color)}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;margin:8px 12px;width:240px}.iho-table__filterCheckAllWrapper{display:flex;justify-content:space-between}.iho-table__filterCheckAllWrapper>div{flex:1}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:var(--c-primary-color)}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05);overflow-x:hidden}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;padding:0 8px}.iho-table__filterListItem:hover{background:var(--c-primary-color-opacity2)}.iho-table__filterListItem .n-checkbox,.iho-table__filterListItem .n-radio{width:100%}.iho-table__filterListItem>*{padding:5px 0}.iho-table__filterListItemContent{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:190px}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table__time-picker{position:unset}.iho-table__time-picker .n-input{display:none}.iho-table__time-picker .v-binder-follower-container{height:auto;position:unset}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content{position:unset;transform:none!important}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content .n-time-picker-panel{box-shadow:none}.iho-table__scrollbar{margin:8px 8px 8px 0;max-height:255px}.iho-table .variable-height .vxe-cell,.iho-table .variable-height .vxe-cell--tree-node,.iho-table .variable-height .vxe-tree-cell{line-height:1.3;max-height:fit-content!important;white-space:break-spaces!important}.iho-table__selectMenu .n-scrollbar-rail__scrollbar{display:none!important}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar,.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{display:unset!important;height:6px;width:6px}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{background:#bfbfbf;border-radius:4px}.iho-table__selectMenu .v-vl-items{min-width:100%;width:max-content}.iho-table__selectOption .n-base-select-option__content{overflow:visible!important;text-overflow:unset!important;word-break:keep-all!important}.iho-table__selectOptionWrapper{align-items:center;display:flex}.iho-table .is--checked.vxe-checkbox,.iho-table .is--checked.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--checked.vxe-custom--option,.iho-table .is--checked.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--checked.vxe-export--panel-column-option,.iho-table .is--checked.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--checked.vxe-table--filter-option,.iho-table .is--checked.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-checkbox,.iho-table .is--indeterminate.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-custom--option,.iho-table .is--indeterminate.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-export--panel-column-option,.iho-table .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-table--filter-option,.iho-table .is--indeterminate.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .vxe-checkbox:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-export--panel-column-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table .vxe-sort--asc-btn.sort--active,.iho-table .vxe-table .vxe-sort--desc-btn.sort--active,.iho-table .vxe-table--filter-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon{color:var(--c-primary-color)}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}@font-face{font-family:iho-table-iconfont;src:url(iconfont.ttf) format("truetype")}.iho-table .iho-table--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iho-table-iconfont!important;font-size:15px;font-style:normal}.iho-table .iho-table-icon-filter{display:inline-block;font-size:17px;transform:translateY(-1px);vertical-align:middle}.iho-table .iho-table-icon-filter:before{content:"\c2001"}.iho-table .iho-table-icon-date-filter{display:inline-block;transform:translateY(-1px)}.iho-table .iho-table-icon-date-filter:before{content:"\c2002"}.iho-table .row--custom{background-color:var(--row-background-color)}.iho-table__colorAndIcon{background-color:var(--color-and-icon-background-color-type);color:var(--color-and-icon-color-type)}.iho-table__htmlRender *{display:inline!important}.iho-table__ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.iho-table .vxe-grid[vertical] .vxe-table--header-wrapper.body--wrapper{background:transparent}.iho-table__pagerScrollWrapper{background:#fff;height:30px;overflow:auto;position:absolute;right:1px;width:9px;z-index:3000}.iho-table__pagerScrollWrapper::-webkit-scrollbar{background-color:transparent;height:8px;width:8px}.iho-table__pagerScrollWrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#b2b2b2;border:2px dashed transparent;border-radius:5px}.iho-table__pagerScrollWrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table--fixed-left,.iho-table--fixed-right{position:sticky!important;width:calc(var(--iho-table-fixed-width)*1px);z-index:100}.iho-table--fixed-left{left:calc(var(--iho-table-fixed-left)*1px + 1px)}.iho-table--fixed-right.vxe-header--column{right:calc(var(--iho-table-fixed-right)*1px + var(--c-scrollbar-width))}.iho-table--fixed-right.vxe-body--column{right:calc(var(--iho-table-fixed-right)*1px)}.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-left.vxe-body--column,.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-right.vxe-body--column{background-color:#fff}.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-left.vxe-header--column,.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-right.vxe-header--column{background-color:var(--c-head-bg-color)}.iho-table .row--hover .iho-table--fixed-left.vxe-body--column,.iho-table .row--hover .iho-table--fixed-right.vxe-body--column,.iho-table .row--hover.row--stripe .iho-table--fixed-left.vxe-body--column,.iho-table .row--hover.row--stripe .iho-table--fixed-right.vxe-body--column{background-color:var(--c-hover-color)}.iho-table .row--stripe .iho-table--fixed-left.vxe-body--column,.iho-table .row--stripe .iho-table--fixed-right.vxe-body--column{background-color:var(--c-stripe-color)}.iho-table .row--checked .iho-table--fixed-left.vxe-body--column,.iho-table .row--checked .iho-table--fixed-right.vxe-body--column,.iho-table .row--current .iho-table--fixed-left.vxe-body--column,.iho-table .row--current .iho-table--fixed-right.vxe-body--column,.iho-table .row--radio .iho-table--fixed-left.vxe-body--column,.iho-table .row--radio .iho-table--fixed-right.vxe-body--column{background-color:var(--c-primary-color-opacity2)}.iho-table .row--hover.row--checked .iho-table--fixed-left.vxe-body--column,.iho-table .row--hover.row--checked .iho-table--fixed-right.vxe-body--column,.iho-table .row--hover.row--current .iho-table--fixed-left.vxe-body--column,.iho-table .row--hover.row--current .iho-table--fixed-right.vxe-body--column,.iho-table .row--hover.row--radio .iho-table--fixed-left.vxe-body--column,.iho-table .row--hover.row--radio .iho-table--fixed-right.vxe-body--column{background-color:var(--c-primary-color-opacity3)}.iho-table__fixedLeftWrapper{border-left:1px solid var(--c-border-color);border-top:1px solid var(--c-border-color);height:calc(100% - 8px);overflow:hidden;position:absolute;z-index:99}.iho-table__fixedLeftWrapper.scrolling--middle{box-shadow:4px 3px 4px 0 rgba(0,0,0,.12)}.iho-table__fixedLeftTopBorder{background:var(--c-border-color);height:1px;left:0;position:absolute;top:0;z-index:101}.iho-table__fixedRightWrapper{height:calc(100% - 8px);overflow:hidden;position:absolute;right:10px;top:0;z-index:100}.iho-table__fixedRightWrapper.scrolling--middle{box-shadow:-4px 3px 4px 0 rgba(0,0,0,.12)}.iho-table__fixedRightTopBorder{background:var(--c-border-color);height:1px;position:absolute;right:0;top:0;z-index:101}.iho-table__fixedRightTopBorder:after{background:var(--c-head-bg-color);content:"";height:var(--c-header-height);position:absolute;right:1px;top:1px;width:calc(var(--c-scrollbar-width) - 1px)}
|
|
1
|
+
.iho-table{height:100%;position:relative}.iho-table .vxe-header--column{font-weight:400;text-shadow:0 0 1px}.iho-table .vxe-body--column.col--drag{cursor:move}.iho-table .vxe-table.size--mini{font-size:14px}.iho-table .vxe-table.size--mini .vxe-body--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-footer--column:not(.col--ellipsis),.iho-table .vxe-table.size--mini .vxe-header--column:not(.col--ellipsis){padding:4px 0}.iho-table .vxe-table.size--mini .vxe-sort--asc-btn{top:-2px}.iho-table .vxe-table.size--mini .vxe-sort--desc-btn{bottom:0}.iho-table__headerWrapper{display:inline-flex;flex-wrap:nowrap}.iho-table__boldCell{font-weight:700}.iho-table .vxe-table .vxe-table--header-wrapper,.iho-table .vxe-table.vxe-table--render-default{color:#212121}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#b2b2b2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-table--header .checkbox-cell--disable{border:2px solid #c0c4cc;border-radius:50%;box-sizing:border-box;cursor:not-allowed;display:inline-block;height:18px;left:-2px;position:relative;top:3px;width:18px}.iho-table .vxe-table--header .checkbox-cell--disable:before{background-color:#c0c4cc;content:"";height:16px;left:50%;position:absolute;top:-2px;transform:translate(-60%) rotate(-45deg);width:2px}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-table--render-default .vxe-body--column.col--selected{box-shadow:inset 0 0 0 2px var(--c-primary-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--hover,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--stripe{background-color:var(--c-hover-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--stripe{background-color:var(--c-stripe-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--radio{background-color:var(--c-primary-color-opacity2);text-shadow:0 0 1px}.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--radio{background-color:var(--c-primary-color-opacity3);text-shadow:0 0 1px}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:var(--c-border-color)!important}.iho-table .vxe-table--footer-wrapper{border-top-color:var(--c-border-color)!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color)),linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .vxe-table--header-border-line{border-bottom-color:var(--c-border-color)!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .is--filter-active .vxe-cell--filter .vxe-filter--btn{color:var(--c-primary-color)}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:var(--c-primary-color)}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;margin:8px 12px;width:240px}.iho-table__filterCheckAllWrapper{display:flex;justify-content:space-between}.iho-table__filterCheckAllWrapper>div{flex:1}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:var(--c-primary-color)}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05);overflow-x:hidden}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;padding:0 8px}.iho-table__filterListItem:hover{background:var(--c-primary-color-opacity2)}.iho-table__filterListItem .n-checkbox,.iho-table__filterListItem .n-radio{width:100%}.iho-table__filterListItem>*{padding:5px 0}.iho-table__filterListItemContent{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:190px}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table__time-picker{position:unset}.iho-table__time-picker .n-input{display:none}.iho-table__time-picker .v-binder-follower-container{height:auto;position:unset}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content{position:unset;transform:none!important}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content .n-time-picker-panel{box-shadow:none}.iho-table__scrollbar{margin:8px 8px 8px 0;max-height:255px}.iho-table .variable-height .vxe-cell,.iho-table .variable-height .vxe-cell--tree-node,.iho-table .variable-height .vxe-tree-cell{line-height:1.3;max-height:fit-content!important;white-space:break-spaces!important}.iho-table__selectMenu .n-scrollbar-rail__scrollbar{display:none!important}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar,.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{display:unset!important;height:6px;width:6px}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{background:#bfbfbf;border-radius:4px}.iho-table__selectMenu .v-vl-items{min-width:100%;width:max-content}.iho-table__selectOption .n-base-select-option__content{overflow:visible!important;text-overflow:unset!important;word-break:keep-all!important}.iho-table__selectOptionWrapper{align-items:center;display:flex}.iho-select-menu-width{width:var(--iho-select-menu-width)!important}.iho-table .is--checked.vxe-checkbox,.iho-table .is--checked.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--checked.vxe-custom--option,.iho-table .is--checked.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--checked.vxe-export--panel-column-option,.iho-table .is--checked.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--checked.vxe-table--filter-option,.iho-table .is--checked.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-checkbox,.iho-table .is--indeterminate.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-custom--option,.iho-table .is--indeterminate.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-export--panel-column-option,.iho-table .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-table--filter-option,.iho-table .is--indeterminate.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .vxe-checkbox:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-export--panel-column-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table .vxe-sort--asc-btn.sort--active,.iho-table .vxe-table .vxe-sort--desc-btn.sort--active,.iho-table .vxe-table--filter-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon{color:var(--c-primary-color)}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}@font-face{font-family:iho-table-iconfont;src:url(iconfont.ttf) format("truetype")}.iho-table .iho-table--iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iho-table-iconfont!important;font-size:15px;font-style:normal}.iho-table .iho-table-icon-filter{display:inline-block;font-size:17px;transform:translateY(-1px);vertical-align:middle}.iho-table .iho-table-icon-filter:before{content:"\c2001"}.iho-table .iho-table-icon-date-filter{display:inline-block;transform:translateY(-1px)}.iho-table .iho-table-icon-date-filter:before{content:"\c2002"}.iho-table .row--custom{background-color:var(--row-background-color)}.iho-table__colorAndIcon{background-color:var(--color-and-icon-background-color-type);color:var(--color-and-icon-color-type)}.iho-table__htmlRender *{display:inline!important}.iho-table__ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.iho-table .vxe-grid[vertical] .vxe-table--header-wrapper.body--wrapper{background:transparent}.iho-table__pagerScrollWrapper{background:#fff;height:30px;overflow:auto;position:absolute;right:1px;width:9px;z-index:3000}.iho-table__pagerScrollWrapper::-webkit-scrollbar{background-color:transparent;height:8px;width:8px}.iho-table__pagerScrollWrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#b2b2b2;border:2px dashed transparent;border-radius:5px}.iho-table__pagerScrollWrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table--fixed-left,.iho-table--fixed-right{position:sticky!important;width:calc(var(--iho-table-fixed-width)*1px);z-index:5}.iho-table--fixed-left{left:calc(var(--iho-table-fixed-left)*1px + 1px)}.iho-table--fixed-right.vxe-header--column{right:calc(var(--iho-table-fixed-right)*1px + var(--c-scrollbar-width))}.iho-table--fixed-right.vxe-body--column{right:calc(var(--iho-table-fixed-right)*1px)}.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-left.vxe-body--column,.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-right.vxe-body--column{background-color:#fff}.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-left.vxe-header--column,.iho-table tr:not(.row--current,.row--hover,.row--checked,.row--radio) .iho-table--fixed-right.vxe-header--column{background-color:var(--c-head-bg-color)}.iho-table tr.row--hover .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--hover .iho-table--fixed-right.vxe-body--column,.iho-table tr.row--hover.row--stripe .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--hover.row--stripe .iho-table--fixed-right.vxe-body--column{background-color:var(--c-hover-color)}.iho-table tr.row--stripe .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--stripe .iho-table--fixed-right.vxe-body--column{background-color:var(--c-stripe-color)}.iho-table tr.row--checked .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--checked .iho-table--fixed-right.vxe-body--column,.iho-table tr.row--current .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--current .iho-table--fixed-right.vxe-body--column,.iho-table tr.row--radio .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--radio .iho-table--fixed-right.vxe-body--column{background-color:var(--c-primary-color-opacity2)}.iho-table tr.row--hover.row--checked .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--hover.row--checked .iho-table--fixed-right.vxe-body--column,.iho-table tr.row--hover.row--current .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--hover.row--current .iho-table--fixed-right.vxe-body--column,.iho-table tr.row--hover.row--radio .iho-table--fixed-left.vxe-body--column,.iho-table tr.row--hover.row--radio .iho-table--fixed-right.vxe-body--column{background-color:var(--c-primary-color-opacity3)}.iho-table__fixedLeftBorderLeft{border-left:1px solid var(--c-border-color);height:calc(100% - 8px);left:0;overflow:hidden;position:absolute;width:0;z-index:5}.iho-table__fixedLeftShadow{height:calc(100% - 8px);position:absolute;top:0;width:3px;z-index:5}.iho-table__fixedLeftShadow.scrolling--middle{box-shadow:4px 3px 4px 0 rgba(0,0,0,.12)}.iho-table__fixedLeftBorderTop{background:var(--c-border-color);height:1px;left:0;position:absolute;top:0;z-index:6}.iho-table__fixedRightBorderLeft{border-left:1px solid var(--c-border-color);height:calc(100% - 8px);overflow:hidden;position:absolute;top:0;width:3px;z-index:5}.iho-table__fixedRightBorderLeft.scrolling--middle{box-shadow:-4px 3px 4px 0 rgba(0,0,0,.12)}.iho-table__fixedRightBorderTop{background:var(--c-border-color);height:1px;position:absolute;right:0;top:0;z-index:6}.iho-table__fixedRightBorderTop:after{background:var(--c-head-bg-color);content:"";height:var(--c-header-height);position:absolute;right:1px;top:1px;width:calc(var(--c-scrollbar-width) - 1px)}
|