cnhis-design-vue 3.2.4-release.7 → 3.2.4-release.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +87 -87
- package/es/components/biunique-chat/index.d.ts +10 -0
- package/es/components/biunique-chat/src/Index.vue.d.ts +10 -0
- package/es/components/biunique-chat/src/Index.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatFooter.vue.d.ts +4 -0
- package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +7 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/biunique-chat/src/constants/index.d.ts +3 -1
- package/es/components/biunique-chat/src/constants/index.js +1 -1
- package/es/components/biunique-chat/src/hooks/useSession.js +1 -1
- package/es/components/biunique-chat/src/types/index.d.ts +1 -0
- package/es/components/biunique-chat/src/utils/index.d.ts +1 -1
- package/es/components/biunique-chat/src/utils/index.js +1 -1
- package/es/components/biunique-chat/style/index.css +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +11 -5
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +11 -5
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +5 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +1 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +8 -0
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +4 -4
- package/es/components/expand-field/index.d.ts +13 -0
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +13 -0
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +13 -0
- package/es/components/expand-field/src/components/form.vue.d.ts +13 -0
- package/es/components/expand-field/src/index.vue.d.ts +13 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/FieldFilter.vue.d.ts +26 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +41 -0
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +26 -0
- package/es/components/field-set/src/components/Row.vue2.js +1 -1
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/iho-table/index.d.ts +8 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +8 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +2 -1
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/pagerScroll.vue.d.ts +26 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/pagerScroll.vue.js +1 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/pagerScroll.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/types.d.ts +16 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/types.js +1 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/utils.d.ts +51 -0
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/utils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowClassName.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +4 -0
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/index.d.ts +13 -0
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +13 -0
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +13 -0
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_001.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_002.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_003.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_004.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_005.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_006.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_007.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_008.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_009.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_010.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_011.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_012.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_013.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_014.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_015.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_016.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_017.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_018.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_019.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_020.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_021.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_022.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_023.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_024.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_025.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_026.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_027.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_028.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_029.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_030.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_031.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_032.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_033.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_034.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_035.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_036.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_037.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_038.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_039.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_040.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_041.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_042.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_043.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_044.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_045.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_046.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_047.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_048.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_049.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_050.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_051.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_052.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_053.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_054.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_055.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_056.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_057.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_058.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_059.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_060.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_061.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_062.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_063.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_064.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_065.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_066.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_067.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_068.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_069.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_070.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_071.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_072.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_073.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_074.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_075.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_076.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_077.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_078.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_079.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_080.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_081.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_082.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_083.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_084.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_085.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_086.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_087.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_088.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_089.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_090.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_091.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_092.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_093.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_094.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_095.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_096.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_097.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_098.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_099.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_100.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_101.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_102.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_103.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_104.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_105.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_106.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_107.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_108.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_109.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_110.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_111.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_112.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_113.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_114.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_115.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_116.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_117.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_118.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_119.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_120.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_121.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_122.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_123.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_124.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_125.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_126.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_127.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_128.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_129.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_130.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_131.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_132.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_133.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_134.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_135.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_136.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_137.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_138.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_139.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_140.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_141.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_142.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_143.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_144.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_145.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_146.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_147.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_148.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_149.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_150.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_151.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_152.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_153.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_154.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_155.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_156.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_157.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_158.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_159.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_160.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_161.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_162.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_163.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_164.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_165.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_166.png.js +1 -1
- package/es/shared/assets/img/emoji/emotion_167.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-1.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-2.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-3.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-4.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-5.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-6.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-7.png.js +1 -1
- package/es/shared/assets/img/tooth/l-b-8.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-1.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-2.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-3.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-4.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-5.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-6.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-7.png.js +1 -1
- package/es/shared/assets/img/tooth/l-t-8.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-1.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-2.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-3.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-4.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-5.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-6.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-7.png.js +1 -1
- package/es/shared/assets/img/tooth/r-b-8.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-1.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-2.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-3.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-4.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-5.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-6.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-7.png.js +1 -1
- package/es/shared/assets/img/tooth/r-t-8.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
@@ -243,6 +243,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
243
243
|
type: BooleanConstructor;
|
244
244
|
default: boolean;
|
245
245
|
};
|
246
|
+
draggable: {
|
247
|
+
type: BooleanConstructor;
|
248
|
+
default: boolean;
|
249
|
+
};
|
250
|
+
isFieldSet: {
|
251
|
+
type: BooleanConstructor;
|
252
|
+
default: boolean;
|
253
|
+
};
|
246
254
|
}, {
|
247
255
|
fixedWayOptions: {
|
248
256
|
label: string;
|
@@ -319,6 +327,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
319
327
|
type: BooleanConstructor;
|
320
328
|
default: boolean;
|
321
329
|
};
|
330
|
+
draggable: {
|
331
|
+
type: BooleanConstructor;
|
332
|
+
default: boolean;
|
333
|
+
};
|
334
|
+
isFieldSet: {
|
335
|
+
type: BooleanConstructor;
|
336
|
+
default: boolean;
|
337
|
+
};
|
322
338
|
}>> & {
|
323
339
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
324
340
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -416,6 +432,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
416
432
|
type: BooleanConstructor;
|
417
433
|
default: boolean;
|
418
434
|
};
|
435
|
+
draggable: {
|
436
|
+
type: BooleanConstructor;
|
437
|
+
default: boolean;
|
438
|
+
};
|
439
|
+
isFieldSet: {
|
440
|
+
type: BooleanConstructor;
|
441
|
+
default: boolean;
|
442
|
+
};
|
419
443
|
}>> & {
|
420
444
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
421
445
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -458,9 +482,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
458
482
|
requiredDisable: boolean;
|
459
483
|
hide: boolean;
|
460
484
|
}>;
|
485
|
+
draggable: boolean;
|
461
486
|
isHighlightRow: boolean;
|
462
487
|
idx: number;
|
463
488
|
isHighlight: boolean;
|
489
|
+
isFieldSet: boolean;
|
464
490
|
}>;
|
465
491
|
setStyle: typeof setStyle;
|
466
492
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -66,6 +66,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
66
66
|
fieldShowMaxValue: {
|
67
67
|
type: NumberConstructor;
|
68
68
|
};
|
69
|
+
rowDraggable: {
|
70
|
+
type: BooleanConstructor;
|
71
|
+
default: boolean;
|
72
|
+
};
|
69
73
|
}, {
|
70
74
|
fieldsMapping: Record<string, string>;
|
71
75
|
attrs: {
|
@@ -134,6 +138,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
134
138
|
fieldShowMaxValue: {
|
135
139
|
type: NumberConstructor;
|
136
140
|
};
|
141
|
+
rowDraggable: {
|
142
|
+
type: BooleanConstructor;
|
143
|
+
default: boolean;
|
144
|
+
};
|
137
145
|
}>> & {
|
138
146
|
onReset?: ((...args: any[]) => any) | undefined;
|
139
147
|
onSave?: ((...args: any[]) => any) | undefined;
|
@@ -176,6 +184,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
176
184
|
checked: boolean;
|
177
185
|
column: AnyObject;
|
178
186
|
}) => void;
|
187
|
+
draggable: boolean;
|
188
|
+
isFieldSet: boolean;
|
179
189
|
};
|
180
190
|
searchData: {
|
181
191
|
keyword: string;
|
@@ -340,6 +350,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
340
350
|
type: BooleanConstructor;
|
341
351
|
default: boolean;
|
342
352
|
};
|
353
|
+
draggable: {
|
354
|
+
type: BooleanConstructor;
|
355
|
+
default: boolean;
|
356
|
+
};
|
357
|
+
isFieldSet: {
|
358
|
+
type: BooleanConstructor;
|
359
|
+
default: boolean;
|
360
|
+
};
|
343
361
|
}, {
|
344
362
|
fixedWayOptions: {
|
345
363
|
label: string;
|
@@ -416,6 +434,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
416
434
|
type: BooleanConstructor;
|
417
435
|
default: boolean;
|
418
436
|
};
|
437
|
+
draggable: {
|
438
|
+
type: BooleanConstructor;
|
439
|
+
default: boolean;
|
440
|
+
};
|
441
|
+
isFieldSet: {
|
442
|
+
type: BooleanConstructor;
|
443
|
+
default: boolean;
|
444
|
+
};
|
419
445
|
}>> & {
|
420
446
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
421
447
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -513,6 +539,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
513
539
|
type: BooleanConstructor;
|
514
540
|
default: boolean;
|
515
541
|
};
|
542
|
+
draggable: {
|
543
|
+
type: BooleanConstructor;
|
544
|
+
default: boolean;
|
545
|
+
};
|
546
|
+
isFieldSet: {
|
547
|
+
type: BooleanConstructor;
|
548
|
+
default: boolean;
|
549
|
+
};
|
516
550
|
}>> & {
|
517
551
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
518
552
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -555,9 +589,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
555
589
|
requiredDisable: boolean;
|
556
590
|
hide: boolean;
|
557
591
|
}>;
|
592
|
+
draggable: boolean;
|
558
593
|
isHighlightRow: boolean;
|
559
594
|
idx: number;
|
560
595
|
isHighlight: boolean;
|
596
|
+
isFieldSet: boolean;
|
561
597
|
}>;
|
562
598
|
isArray: {
|
563
599
|
(value?: any): value is any[];
|
@@ -629,6 +665,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
629
665
|
fieldShowMaxValue: {
|
630
666
|
type: NumberConstructor;
|
631
667
|
};
|
668
|
+
rowDraggable: {
|
669
|
+
type: BooleanConstructor;
|
670
|
+
default: boolean;
|
671
|
+
};
|
632
672
|
}>> & {
|
633
673
|
onReset?: ((...args: any[]) => any) | undefined;
|
634
674
|
onSave?: ((...args: any[]) => any) | undefined;
|
@@ -654,6 +694,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
654
694
|
hide: boolean;
|
655
695
|
}>[];
|
656
696
|
isEdit: boolean;
|
697
|
+
rowDraggable: boolean;
|
657
698
|
showSeq: boolean;
|
658
699
|
footerFlag: boolean;
|
659
700
|
customColumns: FieldSetColumnItem[];
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as l,ref as t,computed as i,reactive as o,watch as
|
1
|
+
import{defineComponent as e,useAttrs as l,ref as t,computed as i,reactive as o,watch as a,openBlock as d,createElementBlock as r,createBlock as s,unref as n,withKeys as u,withModifiers as c,createCommentVNode as f,createElementVNode as h,Fragment as p,renderList as m,normalizeStyle as y,withCtx as v,createTextVNode as b,toDisplayString as g,createVNode as k,normalizeClass as x,mergeProps as w,renderSlot as S}from"vue";import{NInput as A,NCheckbox as _,NTooltip as C,NIcon as F,NPopconfirm as W,NButton as E}from"naive-ui";import H from"../../../shared/components/VueDraggable/src/vuedraggable.js";import N from"./components/Row.vue.js";import{isArray as P,cloneDeep as q,isString as B,omit as R}from"lodash-es";import{isDisable as V,setStyle as j,isDraggableItem as D,isDraggable as I,getGroupTree as M}from"./utils/index.js";import{uuidGenerator as U}from"../../../shared/utils/index.js";import{HelpCircleSharp as O}from"@vicons/ionicons5";const T={class:"main-wrapper"},K={class:"main-wrapper__table-header"},G=h("span",null,"数值越小,优先级越高",-1),L=["tabindex"],$={key:1,class:"main-wrapper__table-footer"};var z=e({__name:"FieldSet",props:{fields:{type:Array,default:()=>[]},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1},showColumnNames:{type:Array},groupSetting:{type:Object},customColumns:{type:Array,default:()=>[]},showSeq:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSortPriority:{type:Boolean,default:!1},showHeadFilter:{type:Boolean,default:!1},fieldShowMaxValue:{type:Number},rowDraggable:{type:Boolean,default:!0}},emits:["save","close","reset"],setup(e,{expose:z,emit:J}){const Q=e,X={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},Y=l(),Z=t(""),ee=t(),le=t([]),te=t([{title:"所有字段",type:"text",field:"title"},{title:"显示",type:"checkbox",checkedAll:!1,disabledAll:!!Q.fieldShowMaxValue,field:"show",fieldShowMaxValue:Q.fieldShowMaxValue},{title:"编辑",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"editable"},{title:"必填",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"required"},{title:"排序",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"sort"},{title:"加粗",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"bold"},{title:"默认排序",type:"select",field:"sortDirection"},{title:"排序优先级",type:"select",field:"sortPriority"},{title:"固定",type:"select",field:"fixedWay"},{title:"自定义标题",type:"input",field:"alias"},{title:"列宽",type:"inputNumber",field:"columnWidth"},{title:"表头筛选",type:"checkbox",isHeadCheckHide:!0,field:"isShowHeaderFilter"}]),ie=i((()=>le.value.flat())),oe=o({columns:te,data:ie,onUpdateChecked:function({checked:e,column:l}){const t=!e||he(l.field);l.checkedAll=!t},draggable:Q.rowDraggable,isFieldSet:!0}),ae={keyword:Z.value,idx:0,startIdx:0},de=()=>{J("save")},re=()=>{J("close")};function se(){le.value=ne(),fe(),J("reset")}function ne(){const e=q(Q.fields).map((e=>({...e,uuid:U()})));return Object.keys(X).forEach((l=>{e.forEach((e=>{"old"==Q.type&&Reflect.has(e,l)&&("isFixed"==l?e.fixedWay=1==e[l]?"LEFT":2==e[l]?"RIGHT":"NONE":["isShow","isSort"].includes(l)&&"boolean"!=typeof l?e[X[l]]=1==e[l]:e[X[l]]=e[l],Reflect.deleteProperty(e,l)),e.columnWidth=+e.columnWidth||null,Reflect.has(e,"alias")||(e.alias=""),Reflect.has(e,"bold")||(e.bold=!1),e.draggable=!!I(e)}))})),function(e){if(Q.groupSetting){return M(Q.groupSetting,e).reduce(((t,i)=>{const o=B(i)?e.find((e=>e.name===i)):l(i.children);return o&&t.push(o),t}),[])}return e;function l(t){const i=[];return t.forEach((t=>{if(t.children)i.push(...l(t.children));else{const l=e.find((e=>e.name===t));l&&i.push(l)}})),i}}(e)}function ue(){const e=ae.keyword!==Z.value;let l=Z.value?ie.value.findIndex(((l,t)=>{var i;if(null==(i=l.title)?void 0:i.includes(Z.value))return!!e||t>ae.idx})):0;-1!==l||e||(l=ae.startIdx),ee.value.scrollTop=Y.rowHeight*l,Object.assign(ae,{keyword:Z.value,idx:l},e?{startIdx:l}:{})}function ce(e){var l;return!!Z.value&&(null==(l=e.title)?void 0:l.includes(Z.value))}function fe(){var e,l;(null==(e=Q.showColumnNames)?void 0:e.length)&&(te.value=te.value.filter((e=>{var l,t;return"title"===e.field||(null==(t=null==(l=Q.showColumnNames)?void 0:l.includes)?void 0:t.call(l,e.field))}))),(null==(l=Q.customColumns)?void 0:l.length)&&te.value.push(...Q.customColumns),Q.showSeq&&te.value.splice(1,0,{title:"排序",type:"text",field:"seq"}),te.value.forEach((e=>{if(e.isShow=function(e){return!(["editable","required"].includes(e.field)&&!Q.isEdit||"sortPriority"===e.field&&!Q.showSortPriority||"isShowHeaderFilter"===e.field&&!Q.showHeadFilter)}(e),"checkbox"===e.type){const l=le.value.flat().every((l=>!Reflect.has(l,e.field)));e.checkedAll=!he(e.field)&&!l}}))}function he(e){return le.value.flat().some((l=>!V(l,e)&&!l[e]&&"0001"!=l.id))}function pe(e){return!!D(e.relatedContext.element)}return a([()=>Q.fields,()=>{var e;return null==(e=Q.showColumnNames)?void 0:e.length}],(([e,l])=>{e.length>0&&(le.value=ne(),fe())}),{immediate:!0,deep:!0}),z({getTableFields:function(){let e=[];return e="old"==Q.type?ie.value.map(((e,l)=>({id:e.id,field:e.name,visible:e.show,sequence:l,sortable:e.sort,title:e.alias,fixed:e.fixedWay,minWidth:e.columnWidth,bold:e.bold,sortDirection:e.sortDirection,sortPriority:e.sortPriority,...Q.isEdit?{required:e.required,editable:e.editable}:{}}))):ie.value,e.map((e=>R(e,["uuid"])))}}),(l,t)=>(d(),r("div",T,[e.showSearch?(d(),s(n(A),{key:0,class:"main-wrapper__search-wrapper",value:Z.value,"onUpdate:value":t[0]||(t[0]=e=>Z.value=e),valueModifiers:{trim:!0},placeholder:"请输入字段标题",onKeydown:u(c(ue,["prevent"]),["enter"])},null,8,["value","onKeydown"])):f("v-if",!0),h("div",K,[(d(!0),r(p,null,m(te.value,((e,l)=>(d(),r(p,{key:l},[e.isShow?(d(),r("span",{key:0,class:"table-cell",style:y(n(j)(e,l))},["checkbox"!==e.type||e.isHeadCheckHide?(d(),r(p,{key:1},[b(g(e.title),1)],64)):(d(),s(n(_),{key:0,checked:e.checkedAll,"onUpdate:checked":[l=>e.checkedAll=l,l=>{return t=l,i=e.field,void ie.value.forEach((e=>{V(e,i)||(e[i]=t)}));var t,i}],disabled:e.disabledAll},{default:v((()=>[b(g(e.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])),"sortPriority"===e.field?(d(),s(n(C),{key:2,trigger:"hover"},{trigger:v((()=>[k(n(F),{component:n(O),style:{top:"2px"}},null,8,["component"])])),default:v((()=>[G])),_:1})):f("v-if",!0)],4)):f("v-if",!0)],64)))),128))]),h("div",{class:"main-wrapper__table-body",ref_key:"tableBodyRef",ref:ee},[k(n(H),{modelValue:le.value,"onUpdate:modelValue":t[1]||(t[1]=e=>le.value=e),animation:"150","item-key":"id",filter:".disabled",draggable:".item",move:pe,disabled:!e.rowDraggable},{item:v((({element:e,index:l})=>[e.hide?f("v-if",!0):(d(),r("div",{key:0,class:x(["item",n(D)(e)?"":"disabled"]),tabindex:l},[n(P)(e)?(d(!0),r(p,{key:0},m(e,((e,t)=>(d(),s(N,w(oe,{key:t,element:e,idx:l+1,"is-highlight":ce(e)}),null,16,["element","idx","is-highlight"])))),128)):(d(),s(N,w({key:1},oe,{element:e,idx:l+1,"is-highlight":ce(e)}),null,16,["element","idx","is-highlight"]))],10,L))])),_:1},8,["modelValue","disabled"])],512),e.footerFlag?(d(),r("div",$,[f(" 底部按钮插槽 "),S(l.$slots,"footer",{},(()=>[k(n(W),{onPositiveClick:se},{trigger:v((()=>[k(n(E),{style:{"margin-right":"8px"}},{default:v((()=>[b("恢复默认设置")])),_:1})])),default:v((()=>[b(" 确认要恢复系统默认设置吗? ")])),_:1}),k(n(E),{style:{"margin-right":"8px"},onClick:re},{default:v((()=>[b("取消")])),_:1}),k(n(E),{type:"primary",onClick:de},{default:v((()=>[b("保存")])),_:1})]))])):f("v-if",!0)]))}});export{z as default};
|
@@ -64,6 +64,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
64
|
type: BooleanConstructor;
|
65
65
|
default: boolean;
|
66
66
|
};
|
67
|
+
draggable: {
|
68
|
+
type: BooleanConstructor;
|
69
|
+
default: boolean;
|
70
|
+
};
|
71
|
+
isFieldSet: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
default: boolean;
|
74
|
+
};
|
67
75
|
}, {
|
68
76
|
fixedWayOptions: {
|
69
77
|
label: string;
|
@@ -140,6 +148,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
140
148
|
type: BooleanConstructor;
|
141
149
|
default: boolean;
|
142
150
|
};
|
151
|
+
draggable: {
|
152
|
+
type: BooleanConstructor;
|
153
|
+
default: boolean;
|
154
|
+
};
|
155
|
+
isFieldSet: {
|
156
|
+
type: BooleanConstructor;
|
157
|
+
default: boolean;
|
158
|
+
};
|
143
159
|
}>> & {
|
144
160
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
145
161
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -237,6 +253,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
237
253
|
type: BooleanConstructor;
|
238
254
|
default: boolean;
|
239
255
|
};
|
256
|
+
draggable: {
|
257
|
+
type: BooleanConstructor;
|
258
|
+
default: boolean;
|
259
|
+
};
|
260
|
+
isFieldSet: {
|
261
|
+
type: BooleanConstructor;
|
262
|
+
default: boolean;
|
263
|
+
};
|
240
264
|
}>> & {
|
241
265
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
242
266
|
onEdit?: ((...args: any[]) => any) | undefined;
|
@@ -279,8 +303,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
279
303
|
requiredDisable: boolean;
|
280
304
|
hide: boolean;
|
281
305
|
}>;
|
306
|
+
draggable: boolean;
|
282
307
|
isHighlightRow: boolean;
|
283
308
|
idx: number;
|
284
309
|
isHighlight: boolean;
|
310
|
+
isFieldSet: boolean;
|
285
311
|
}>;
|
286
312
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,openBlock as t,createElementBlock as l,Fragment as i,renderList as n,normalizeStyle as a,unref as
|
1
|
+
import{defineComponent as e,openBlock as t,createElementBlock as l,Fragment as i,renderList as n,normalizeStyle as a,unref as o,createBlock as r,withCtx as u,createVNode as d,createCommentVNode as s,createElementVNode as c,toDisplayString as f,normalizeClass as p,withDirectives as m,vShow as v,resolveDynamicComponent as y,createTextVNode as g}from"vue";import{NTooltip as h,NIcon as b,NCheckbox as k,NSelect as x,NColorPicker as E,NInput as S,NInputNumber as T,NPopconfirm as w}from"naive-ui";import{setStyle as C,setColorInfo as N,isShowExplicitRequired as U,isDisable as D}from"../utils/index.js";import{ReorderTwoOutline as _,HelpCircleOutline as O,CreateOutline as j,TrashOutline as R}from"@vicons/ionicons5";import{isFunction as A,isArray as H,range as L}from"lodash-es";import{COLOR_MAP as M}from"../constants/index.js";import{WIDGET_TYPE as P,SELECT_MAP as F,WIDGET_MAP as V,SELECT_TYPE as I,SELECT_DEFAULT_MAP as B,DATE_MAP as q,DATETIME_MAP as W}from"../constants/filter.js";const G={class:"row"},z=["title"],J=c("span",null,"拖拽调整顺序",-1);var K=e({__name:"Row",props:{element:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},idx:{type:Number,default:1},data:{type:Array,default:()=>[]},isHighlight:{type:Boolean},index:{type:Number,default:0},isHighlightRow:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},isFieldSet:{type:Boolean,default:!1}},emits:["updateChecked","edit"],setup(e,{emit:K}){const Q=e,X=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],Y=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],Z=[{label:"字体",value:"font"},{label:"背景",value:"background"}],$=Object.entries(M).map((([e])=>e));function ee(){Q.data.splice(Q.index,1)}function te(){K("edit",Q.element)}function le(e){if("defaultValue"===e){const{optionType:e}=Q.element;return e===I.SELECT_MULTIPLE}return!1}function ie(e){if("0001"==Q.element.id&&"fixedWay"!=e)return!1;const{isConfiguredHeaderFilter:t}=Q.element;return"isShowHeaderFilter"===e?!!t:!(["explicitRequired","defaultValue"].includes(e)&&![P.DATE,P.DATETIME,P.SELECT].includes(Q.element.type))}function ne(e){return!["explicitRequired","defaultValue"].includes(e)||U(Q.element)}function ae(e){switch(e.field){case"fixedWay":return X;case"sortDirection":return Y;case"sortPriority":return function(){const e=L(1,Q.data.length+1).map((e=>({label:e.toString(),value:e}))),t=Q.data.filter((e=>!!e.sortPriority&&e.uuid!==Q.element.uuid)).map((e=>e.sortPriority));return e.filter((e=>!t.includes(e.value)))}();case"colorScope":return Z;case"defaultValue":{const{type:e,optionInfo:t}=Q.element;return e===P.SELECT?H(null==t?void 0:t.list)&&t.list.length>0?t.list.map((e=>({...e,label:e.name}))):Object.entries(B).map((([e,t])=>({value:e,label:t}))):e===P.DATE?Object.entries(q).map((([e,t])=>({value:e,label:t}))):e===P.DATETIME?Object.entries(W).map((([e,t])=>({value:e,label:t}))):[]}default:return[]}}function oe(e){var t;if(1==Q.element.defaultMark||"color"===e.type&&Q.isHighlightRow)return!0;if("checkbox"===e.type)return"show"===e.field&&e.fieldShowMaxValue?!Q.element[e.field]&&(null==(t=Q.data.filter((t=>t[e.field])))?void 0:t.length)===e.fieldShowMaxValue:D(Q.element,e.field);if("sortPriority"!==e.field)return!1;const{sortDirection:l}=Q.element;return!l||"NONE"===l}function re(e){return["title","result"].includes(e.field)&&Q.element.style||{}}return(U,D)=>(t(),l("div",G,[(t(!0),l(i,null,n(e.columns,((n,U)=>{return t(),l(i,{key:U},[n.isShow?(t(),l("span",{key:0,class:"table-cell",title:e.element[n.field],style:a(o(C)(n,U))},["text"===n.type?(t(),l(i,{key:0},[0===U?(t(),l(i,{key:0},[!e.isFieldSet||e.draggable&&e.isFieldSet?(t(),r(o(h),{key:0,trigger:"hover"},{trigger:u((()=>[d(o(b),{style:{"margin-right":"5px",top:"2px"},component:o(_)},null,8,["component"])])),default:u((()=>[J])),_:1})):s("v-if",!0),"title"===n.field&&e.element.feildDescribe?(t(),r(o(h),{key:1,trigger:"hover"},{trigger:u((()=>[d(o(b),{style:{"margin-right":"5px",top:"2px"},component:o(O)},null,8,["component"])])),default:u((()=>[c("span",null,f(e.element.feildDescribe),1)])),_:1})):s("v-if",!0)],64)):s("v-if",!0),c("span",{class:p([e.isHighlight&&"title"===n.field?"highlight":""]),style:a(re(n))},f((H=n.field,"seq"===H?Q.idx:"optionType"===H?Q.element[H]&&Q.element.type===P.SELECT?F[Q.element[H]]:"":"type"===H?V[Q.element[H]]:Q.element[H])),7)],64)):s("v-if",!0),"checkbox"===n.type&&ie(n.field)?m((t(),r(o(k),{key:1,disabled:oe(n),checked:e.element[n.field],"onUpdate:checked":[t=>e.element[n.field]=t,e=>function(e,t){K("updateChecked",{checked:e,column:t})}(e,n)]},null,8,["disabled","checked","onUpdate:checked"])),[[v,ne(n.field)]]):s("v-if",!0),"select"===n.type&&ie(n.field)?m((t(),r(o(x),{key:2,clearable:"",multiple:le(n.field),disabled:oe(n),value:e.element[n.field],"onUpdate:value":[t=>e.element[n.field]=t,e=>function(e,t){"sortDirection"===t.field&&"NONE"===e&&(Q.element.sortPriority=null),"colorScope"===t.field&&N(Q.element)}(e,n)],options:ae(n)},null,8,["multiple","disabled","value","onUpdate:value","options"])),[[v,ne(n.field)]]):s("v-if",!0),"color"===n.type?(t(),r(o(E),{key:3,class:"c-field-set__color-picker",clearable:"",disabled:oe(n),value:e.element[n.field],"onUpdate:value":[t=>e.element[n.field]=t,D[0]||(D[0]=t=>o(N)(e.element))],"show-preview":"",modes:["hex"],swatches:o($)},null,8,["disabled","value","onUpdate:value","swatches"])):s("v-if",!0),"input"===n.type?m((t(),r(o(S),{key:4,value:e.element[n.field],"onUpdate:value":t=>e.element[n.field]=t,clearable:""},null,8,["value","onUpdate:value"])),[[v,"0001"!=e.element.id]]):s("v-if",!0),"inputNumber"===n.type?(t(),r(o(T),{key:5,value:e.element[n.field],"onUpdate:value":t=>e.element[n.field]=t},null,8,["value","onUpdate:value"])):s("v-if",!0),"custom"===n.type&&o(A)(n.contentRender)?(t(),r(y((()=>n.contentRender(n,e.element))),{key:6})):s("v-if",!0),"custom"===n.type&&"opt"===n.field&&1!=e.element.defaultMark?(t(),l(i,{key:7},[d(o(h),{trigger:"hover"},{trigger:u((()=>[d(o(b),{component:o(j),onClick:te},null,8,["component"])])),default:u((()=>[g(" 编辑 ")])),_:1}),d(o(w),{onPositiveClick:ee},{trigger:u((()=>[d(o(h),{trigger:"hover"},{trigger:u((()=>[d(o(b),{component:o(R)},null,8,["component"])])),default:u((()=>[g(" 删除 ")])),_:1})])),default:u((()=>[g(" 是否确认删除? ")])),_:1})],64)):s("v-if",!0)],12,z)):s("v-if",!0)],64);var H})),128))]))}});export{K as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{isArray as e,isObject as t}from"lodash-es";import{IhoTableRowGroupSequence as o}from"../../../iho-table/src/constants/index.js";import{COLOR_MAP as n}from"../constants/index.js";import{WIDGET_TYPE as r}from"../constants/filter.js";function i(e,t){const o={flex:"1 1 90px"};switch(e.type){case"text":0===t&&["title","name"].includes(e.field)&&Object.assign(o,{flex:"
|
1
|
+
import{isArray as e,isObject as t}from"lodash-es";import{IhoTableRowGroupSequence as o}from"../../../iho-table/src/constants/index.js";import{COLOR_MAP as n}from"../constants/index.js";import{WIDGET_TYPE as r}from"../constants/filter.js";function i(e,t){const o={flex:"1 1 90px"};switch(e.type){case"text":0===t&&["title","name"].includes(e.field)&&Object.assign(o,{flex:"1 1 120px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}),"seq"===e.field&&(o.flex="1 1 40px");break;case"checkbox":o.flex="1 1 60px";break;case"select":o.flex="1 1 80px";break;case"input":o.flex="1 1 100px"}return o}function l(e,t){return["editable","required","show"].includes(t)&&(e[`${t}Disable`]||e[`${t}Disabled`])||["sort"].includes(t)&&(1==e.notParticipatingSort||e.sortDisabled)}function s(n,r,i=(e=>e.name)){const l=r.map((e=>i(e)));return o.some((o=>{const r=n[o];if(!e(r))return!0;r.forEach((o=>{if(!e(o.list)||!o.list.length)return;const n=[];let r=null;o.list.forEach(((e,i)=>{const s=function(e,o,n){return o.findIndex((o=>o!==n&&(t(o)?o.fieldName:o)===e))}(e,l,r);~s&&(n.push(l[s]),0===i?l.splice(s,1,r={fieldName:o.title,children:n}):l.splice(s,1))}))}))})),l}function c(e){return void 0===e.draggable||e.draggable}function a(t){return e(t)?!t.some((e=>!e.draggable)):t.draggable}function f(e){e.style="font"===e.colorScope?{color:e.color}:{background:e.color,color:"#fff"},e.result=n[e.color]}function u(e){const{isShowSearch:t,filterExplicit:o,type:n}=e;return t&&o&&[r.DATE,r.DATETIME,r.SELECT].includes(n)}export{s as getGroupTree,l as isDisable,c as isDraggable,a as isDraggableItem,u as isShowExplicitRequired,f as setColorInfo,i as setStyle};
|
@@ -3214,6 +3214,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
3214
3214
|
bodyWidth?: number | ((index: number) => number) | undefined;
|
3215
3215
|
bodyMinWidth?: number | ((index: number) => number) | undefined;
|
3216
3216
|
} | undefined;
|
3217
|
+
pagerScroll?: {
|
3218
|
+
enable?: boolean | undefined;
|
3219
|
+
capacity?: number | undefined;
|
3220
|
+
} | undefined;
|
3217
3221
|
onFormChange?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
3218
3222
|
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
3219
3223
|
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
@@ -6779,6 +6783,10 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
6779
6783
|
bodyWidth?: number | ((index: number) => number) | undefined;
|
6780
6784
|
bodyMinWidth?: number | ((index: number) => number) | undefined;
|
6781
6785
|
} | undefined;
|
6786
|
+
pagerScroll?: {
|
6787
|
+
enable?: boolean | undefined;
|
6788
|
+
capacity?: number | undefined;
|
6789
|
+
} | undefined;
|
6782
6790
|
onFormChange?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
6783
6791
|
onSettingClick?: (() => void) | undefined;
|
6784
6792
|
onFormClick?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
@@ -3215,6 +3215,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3215
3215
|
bodyWidth?: number | ((index: number) => number) | undefined;
|
3216
3216
|
bodyMinWidth?: number | ((index: number) => number) | undefined;
|
3217
3217
|
} | undefined;
|
3218
|
+
pagerScroll?: {
|
3219
|
+
enable?: boolean | undefined;
|
3220
|
+
capacity?: number | undefined;
|
3221
|
+
} | undefined;
|
3218
3222
|
onFormChange?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
3219
3223
|
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
3220
3224
|
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
@@ -6780,6 +6784,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
6780
6784
|
bodyWidth?: number | ((index: number) => number) | undefined;
|
6781
6785
|
bodyMinWidth?: number | ((index: number) => number) | undefined;
|
6782
6786
|
} | undefined;
|
6787
|
+
pagerScroll?: {
|
6788
|
+
enable?: boolean | undefined;
|
6789
|
+
capacity?: number | undefined;
|
6790
|
+
} | undefined;
|
6783
6791
|
onFormChange?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
6784
6792
|
onSettingClick?: (() => void) | undefined;
|
6785
6793
|
onFormClick?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,computed as t,provide as o,ref as a,toRaw as l,watch as r,resolveComponent as n,openBlock as s,createElementBlock as i,mergeProps as u,unref as c,createBlock as d,resolveDynamicComponent as f,createElementVNode as m,normalizeStyle as p,createVNode as v,withCtx as b,createSlots as h,renderList as g,createCommentVNode as x,renderSlot as y,normalizeProps as k,guardReactiveProps as C}from"vue";import{useTheme as D,createOpacityColor as j}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as $}from"@vueuse/core";import"date-fns";import{isString as I,isEqualWith as w,isFunction as q,pick as R}from"lodash-es";import{useFormAsyncQueue as H,presetRequestHandler as T}from"../../../shared/hooks/useFormRequest/index.js";import{promiseTimeout as _}from"@vueuse/shared";import{hex2rgba as P,widthAppend as A,uuidGenerator as L}from"../../../shared/utils/index.js";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NConfigProvider as S}from"naive-ui";import{useVersion as F}from"../../../shared/hooks/useVersion.js";import{VxeTableEventNameList as O,InjectionIhoTableEmits as B,InjectionTableAsyncQueue as E,InjectionIhoTableAnnotation as N,InjectionIhoTableUUID as V,InjectionIhoTableInstance as W,InjectionIhoTableConfig as z,InjectionIhoTableFieldList as G,InjectionIhoTableHandler as J}from"./constants/index.js";import{createTableHooks as
|
1
|
+
import{defineComponent as e,computed as t,provide as o,ref as a,toRaw as l,watch as r,resolveComponent as n,openBlock as s,createElementBlock as i,mergeProps as u,unref as c,createBlock as d,resolveDynamicComponent as f,createElementVNode as m,normalizeStyle as p,createVNode as v,withCtx as b,createSlots as h,renderList as g,createCommentVNode as x,renderSlot as y,normalizeProps as k,guardReactiveProps as C}from"vue";import{useTheme as D,createOpacityColor as j}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as $}from"@vueuse/core";import"date-fns";import{isString as I,isEqualWith as w,isFunction as q,pick as R}from"lodash-es";import{useFormAsyncQueue as H,presetRequestHandler as T}from"../../../shared/hooks/useFormRequest/index.js";import{promiseTimeout as _}from"@vueuse/shared";import{hex2rgba as P,widthAppend as A,uuidGenerator as L}from"../../../shared/utils/index.js";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NConfigProvider as S}from"naive-ui";import{useVersion as F}from"../../../shared/hooks/useVersion.js";import{VxeTableEventNameList as O,InjectionIhoTableEmits as B,InjectionTableAsyncQueue as E,InjectionIhoTableAnnotation as N,InjectionIhoTableUUID as V,InjectionIhoTableInstance as W,InjectionIhoTableConfig as z,InjectionIhoTableFieldList as G,InjectionIhoTableHandler as J,InjectionIhoTableGlobProps as K}from"./constants/index.js";import{createTableHooks as M,applyTableConfigHooks as Q,applyTableFieldHooks as U,createTableEventHandlers as X,createDomInsertComponent as Y,createDataTransfer as Z}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as ee}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as te}from"./utils/index.js";const oe=["id"];var ae=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",...O],setup(e,{expose:O,emit:ae}){var le,re;const ne=e,se=t((()=>{const e=D({"--c-border-color":"#d0d0d0","--c-head-bg-color":"#f2f2f2","--c-hover-color":"#e6e6e6","--c-stripe-color":"#f6f6f6"}).value;return e["--c-primary-color-opacity3"]=j(...P(e["--c-primary-color"]+""),.3),e})),ie=t((()=>{var e,t;const o=null!=(t=null==(e=ne.tableConfig)?void 0:e.height)?t:"100%";return{height:"auto"===o?"100%":I(o)&&(o.includes("calc")||o.endsWith("%"))?o:A(o)}})),ue=ee(),ce=function(e,...t){ae(e,...t);const o=c(ve)[te(e)];q(o)&&o(...t),ue.trigger(e,...t)};o(B,ce);const de=H(t((()=>ne.requestInstance)),t((()=>!!ne.uniqueCacheData))).create(ne.parallelism,{beforeRequest:(e,t)=>t,afterRequest:(e,t)=>T(t)});o(E,de);const fe=M();o(N,t((()=>ne.annotation)));const me=L();o(V,me);const pe=a();o(W,pe);const ve=a({uuid:null!=(re=null==(le=ne.tableConfig)?void 0:le.uuid)?re:me});o(z,ve);const be=$(he,10);function he(){var e,t;ve.value=Q(fe,{...ne.tableConfig,uuid:null!=(t=null==(e=ne.tableConfig)?void 0:e.uuid)?t:me},{$table:pe,emits:ce,globProps:ne})}const ge=a([]);o(G,ge);const xe=$(ye,10);function ye(){const e=U(fe,ne.fieldList,ve.value,{$table:pe,emits:ce,globProps:ne});w(e,l(ge.value),((e,t)=>{if(q(e)&&q(t))return e.toString()===t.toString()}))||(ge.value=e)}const ke=Z(fe,ve,pe),Ce=a([]);async function De(){var e,t;const o=await ke(ne.tableData),a=null==(e=pe.value)?void 0:e.getTableData().fullData;if(a){let e=0;if(!(a.some((t=>{var a;if(!(null==(a=pe.value)?void 0:a.isInsertByRow(t))){if(t!==o[e])return!0;e++}}))||e!==o.length))return}Ce.value=o,null==(t=pe.value)||t.recalculate(!0)}const je={updateTableDataRef:$(De,10),updateConfigRef:be,updateFieldListRef:xe};o(J,je),o(K,ne);const $e=X({hooks:fe,config:ve,$table:pe,context:je,emits:ce,globProps:ne}),Ie=t((()=>({...ve.value,...$e})));let we=!1,qe=!1,Re=!1;const He=$((()=>{we&&he(),qe&&ye(),Re&&De(),we=!1,qe=!1,Re=!1}),10);r((()=>ne.tableConfig),(()=>{we=!0,qe=!0,Re=!0,He()}),{deep:!0}),r((()=>ne.fieldList),(()=>{qe=!0,Re=!0,He()}),{deep:!0}),r([()=>[...ne.tableData],()=>{var e;return null==(e=ne.tableData)?void 0:e.length}],(()=>{Re=!0,He()})),r([()=>ne.tableData,()=>{var e;return null==(e=ne.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=ve.value.treeConfig)?void 0:e.expandAll)&&(await _(11),null==(t=pe.value)||t.setAllTreeExpand(!0))})),he(),ye(),De();const{header:Te,footer:_e}=Y(fe);function Pe(e){return R(e,["row","rowIndex","$rowIndex","column","columnIndex","$columnIndex","_columnIndex","checked","disabled","indeterminate"])}return O({$table:pe,async loadData(e){var t;null==(t=pe.value)||t.loadData(await ke(e))},setSort:(e,t)=>({field:e,value:t}),setFilter:(e,t)=>({field:e,value:t}),reload(){var e,t;null==(e=pe.value)||e.loadColumn([]),null==(t=pe.value)||t.loadData([]),he(),ye(),De()},verticalTable:{update:()=>{}},...fe.exposeHooks.expose.call({},ve,{$table:pe,emits:ce,globProps:ne,...je})}),fe.setupHooks.setup.call(ve,ge,{$table:pe,emits:ce,globProps:ne}),(e,t)=>{const o=n("vxe-grid");return s(),i("section",u({class:"iho-table",id:c(me),style:c(se)},c(F)()),[(s(),d(f(c(Te)))),m("section",{style:p(c(ie))},[v(c(S),{abstract:"",namespace:"vxe-table--ignore-clear"},{default:b((()=>[v(o,u({ref_key:"$table",ref:pe},c(Ie),{columns:ge.value,data:Ce.value}),h({_:2},[g(e.$slots,((t,o)=>({name:o,fn:b((t=>[x(" 实际上所有的vxe-grid插槽都支持 "),y(e.$slots,o,k(C(Pe(t))))]))})))]),1040,["columns","data"])])),_:3})],4),(s(),d(f(c(_e))))],16,oe)}}});export{ae as default};
|
@@ -3,7 +3,7 @@ import { Nullable, UndefinedAble } from '../../../../shared/types';
|
|
3
3
|
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
4
4
|
import { VxeTableInstance } from 'vxe-table';
|
5
5
|
import { AnnotationItem } from '../../../../components/annotation-edit/src/type';
|
6
|
-
import { IhoTableConfig, IhoTableEmits, IhoTableFieldItem, IhoTableHandler } from '../../../../components/iho-table';
|
6
|
+
import { IhoTableConfig, IhoTableEmits, IhoTableFieldItem, IhoTableHandler, IhoTableProps } from '../../../../components/iho-table';
|
7
7
|
import { IhoTableEventListener } from '../../../../components/iho-table/src/hooks/tapHooks/useEventHooks';
|
8
8
|
export declare enum WIDGET_TYPE {
|
9
9
|
DEFAULT = "DEFAULT",
|
@@ -83,5 +83,6 @@ export declare const InjectionIhoTableAnnotation: InjectionKey<ComputedRef<Nulla
|
|
83
83
|
export declare const InjectionIhoTableUUID: InjectionKey<string>;
|
84
84
|
export declare const InjectionIhoTableInstance: InjectionKey<Ref<UndefinedAble<VxeTableInstance>>>;
|
85
85
|
export declare const InjectionIhoTableHandler: InjectionKey<IhoTableHandler>;
|
86
|
+
export declare const InjectionIhoTableGlobProps: InjectionKey<IhoTableProps>;
|
86
87
|
export declare const InjectionIhoTableEventListener: InjectionKey<IhoTableEventListener>;
|
87
88
|
export declare const InjectionTableAsyncQueue: InjectionKey<FormRequestDefine.FormAsyncQueue>;
|
@@ -1 +1 @@
|
|
1
|
-
import{eventListener2EventName as e}from"../utils/index.js";var o=(e=>(e.DEFAULT="DEFAULT",e.PICTURE="PICTURE",e.FILE="FILE",e.MONEY="MONEY",e.HEADPORTRAIT="HEADPORTRAIT",e.LABEL="LABEL",e.TELEPHONE="TELEPHONE",e.BIRTHDAY="BIRTHDAY",e.MULTISELECT="MULTISELECT",e.CASCADE="CASCADE",e.SEARCH_TREE="SEARCH_TREE",e.COLOR="COLOR",e.EVALUATE="EVALUATE",e.MAP="MAP",e.VIDEO="VIDEO",e.SYSTEMFIELDS="SYSTEMFIELDS",e.PERCENTAGE="PERCENTAGE",e.HTML="HTML",e.CANDIDATE_COMPONENTS="CANDIDATE_COMPONENTS",e.TASKDATE="TASKDATE",e.AGE="AGE",e.STATUS="STATUS",e.WEBSITE="WEBSITE",e.IDCARD="IDCARD",e.COUNTDOWN="COUNTDOWN",e.DURATION="DURATION",e.COMBINATION="COMBINATION",e.PASSWORD="PASSWORD",e.QR_CODE="QR_CODE",e.CUSTOMER_NAME="CUSTOMER_NAME",e.BANK_CARD="BANK_CARD",e.SEQUENCE="SEQUENCE",e))(o||{});const n=Object.freeze(["onKeydownStart","onKeydown","onKeydownEnd","onPaste","onCopy","onCut","onCurrentChange","onRadioChange","onCheckboxChange","onCheckboxAll","onCheckboxRangeStart","onCheckboxRangeChange","onCheckboxRangeEnd","onCellClick","onCellDblclick","onCellMenu","onCellMouseenter","onCellMouseleave","onHeaderCellClick","onHeaderCellDblclick","onHeaderCellMenu","onFooterCellClick","onFooterCellDblclick","onFooterCellMenu","onSortChange","onFilterChange","onFilterVisible","onResizableChange","onToggleRowExpand","onToggleTreeExpand","onMenuClick","onEditClosed","onEditActived","onEditDisabled","onValidError","onScroll","onCustom","onOpenFnr","onFnrChange","onFnrFind","onFnrFindAll","onFnrReplace","onFnrReplaceAll","onCellAreaCopy","onCellAreaCut","onCellAreaPaste","onCellAreaMerge","onClearCellAreaMerge","onHeaderCellAreaSelection","onCellAreaSelectionStart","onCellAreaSelectionDrag","onCellAreaSelectionEnd","onCellAreaExtensionStart","onCellAreaExtensionDrag","onCellAreaExtensionEnd","onCellAreaArrowsStart","onCellAreaArrowsEnd","onActiveCellChangeStart","onActiveCellChangeEnd","onPageChange"]),E=n.map(e),l=Object.freeze(["firstRowGroup","secondRowGroup","thirdRowGroup","fourthRowGroup","fifthRowGroup","sixthRowGroup","seventhRowGroup","eighthRowGroup","ninthRowGroup","tenthRowGroup"]),C=-1/0,A=1/0;var T=(e=>(e.INPUT="INPUT",e.SEPARATE="SEPARATE",e.SELECT="SELECT",e.SELECT_MORE="SELECT_MORE",e.DATE="DATE",e.TIME="TIME",e.NUMBER="NUMBER",e.RADIO="RADIO",e.SWITCH="SWITCH",e.LEVEL_SEARCH_CASCADE="LEVEL_SEARCH_CASCADE",e))(T||{}),r=(e=>(e[e.NEGATIVE=0]="NEGATIVE",e[e.POSITIVE=1]="POSITIVE",e))(r||{}),t=(e=>(e.NEGATIVE="0",e.POSITIVE="1",e))(t||{}),a=(e=>(e.NOT_TREE="0",e.UNKNOWN="1",e.TRANSFORM_TREE_TYPE="2",e.TRANSFORM_WITH_SPAN_METHOD="3",e))(a||{}),S=(e=>(e[e.left=1]="left",e[e.right=2]="right",e))(S||{});const
|
1
|
+
import{eventListener2EventName as e}from"../utils/index.js";var o=(e=>(e.DEFAULT="DEFAULT",e.PICTURE="PICTURE",e.FILE="FILE",e.MONEY="MONEY",e.HEADPORTRAIT="HEADPORTRAIT",e.LABEL="LABEL",e.TELEPHONE="TELEPHONE",e.BIRTHDAY="BIRTHDAY",e.MULTISELECT="MULTISELECT",e.CASCADE="CASCADE",e.SEARCH_TREE="SEARCH_TREE",e.COLOR="COLOR",e.EVALUATE="EVALUATE",e.MAP="MAP",e.VIDEO="VIDEO",e.SYSTEMFIELDS="SYSTEMFIELDS",e.PERCENTAGE="PERCENTAGE",e.HTML="HTML",e.CANDIDATE_COMPONENTS="CANDIDATE_COMPONENTS",e.TASKDATE="TASKDATE",e.AGE="AGE",e.STATUS="STATUS",e.WEBSITE="WEBSITE",e.IDCARD="IDCARD",e.COUNTDOWN="COUNTDOWN",e.DURATION="DURATION",e.COMBINATION="COMBINATION",e.PASSWORD="PASSWORD",e.QR_CODE="QR_CODE",e.CUSTOMER_NAME="CUSTOMER_NAME",e.BANK_CARD="BANK_CARD",e.SEQUENCE="SEQUENCE",e))(o||{});const n=Object.freeze(["onKeydownStart","onKeydown","onKeydownEnd","onPaste","onCopy","onCut","onCurrentChange","onRadioChange","onCheckboxChange","onCheckboxAll","onCheckboxRangeStart","onCheckboxRangeChange","onCheckboxRangeEnd","onCellClick","onCellDblclick","onCellMenu","onCellMouseenter","onCellMouseleave","onHeaderCellClick","onHeaderCellDblclick","onHeaderCellMenu","onFooterCellClick","onFooterCellDblclick","onFooterCellMenu","onSortChange","onFilterChange","onFilterVisible","onResizableChange","onToggleRowExpand","onToggleTreeExpand","onMenuClick","onEditClosed","onEditActived","onEditDisabled","onValidError","onScroll","onCustom","onOpenFnr","onFnrChange","onFnrFind","onFnrFindAll","onFnrReplace","onFnrReplaceAll","onCellAreaCopy","onCellAreaCut","onCellAreaPaste","onCellAreaMerge","onClearCellAreaMerge","onHeaderCellAreaSelection","onCellAreaSelectionStart","onCellAreaSelectionDrag","onCellAreaSelectionEnd","onCellAreaExtensionStart","onCellAreaExtensionDrag","onCellAreaExtensionEnd","onCellAreaArrowsStart","onCellAreaArrowsEnd","onActiveCellChangeStart","onActiveCellChangeEnd","onPageChange"]),E=n.map(e),l=Object.freeze(["firstRowGroup","secondRowGroup","thirdRowGroup","fourthRowGroup","fifthRowGroup","sixthRowGroup","seventhRowGroup","eighthRowGroup","ninthRowGroup","tenthRowGroup"]),C=-1/0,A=1/0;var T=(e=>(e.INPUT="INPUT",e.SEPARATE="SEPARATE",e.SELECT="SELECT",e.SELECT_MORE="SELECT_MORE",e.DATE="DATE",e.TIME="TIME",e.NUMBER="NUMBER",e.RADIO="RADIO",e.SWITCH="SWITCH",e.LEVEL_SEARCH_CASCADE="LEVEL_SEARCH_CASCADE",e))(T||{}),r=(e=>(e[e.NEGATIVE=0]="NEGATIVE",e[e.POSITIVE=1]="POSITIVE",e))(r||{}),t=(e=>(e.NEGATIVE="0",e.POSITIVE="1",e))(t||{}),a=(e=>(e.NOT_TREE="0",e.UNKNOWN="1",e.TRANSFORM_TREE_TYPE="2",e.TRANSFORM_WITH_SPAN_METHOD="3",e))(a||{}),S=(e=>(e[e.left=1]="left",e[e.right=2]="right",e))(S||{});const I=["formChange","settingClick","formClick","keyboard","rowDrag"],i=[...I,...E],R=Symbol("injectionIhoTableConfig"),D=Symbol("injectionIhoTableFieldList"),O=Symbol("InjectionIhoTableEmits"),c=Symbol("InjectionIhoTableAnnotation"),N=Symbol("InjectionIhoTableUUID"),h=Symbol("InjectionIhoTableInstance"),b=Symbol("InjectionIhoTableHandler"),M=Symbol("InjectionIhoTableGlobProps"),L=Symbol("InjectionIhoTableEventListener"),d=Symbol("InjectionTableAsyncQueue");export{T as EDITABLE_WIDGET_TYPE,C as HIGHEST_PRIORITY,S as IHO_TABLE_FIXED_STATUS,r as IHO_TABLE_NUMBER_STATUS,t as IHO_TABLE_STRING_STATUS,a as IHO_TABLE_TREE_TYPE,I as IhoTableCustomEventNameTuple,i as IhoTableEventNameTuple,l as IhoTableRowGroupSequence,c as InjectionIhoTableAnnotation,R as InjectionIhoTableConfig,O as InjectionIhoTableEmits,L as InjectionIhoTableEventListener,D as InjectionIhoTableFieldList,M as InjectionIhoTableGlobProps,b as InjectionIhoTableHandler,h as InjectionIhoTableInstance,N as InjectionIhoTableUUID,d as InjectionTableAsyncQueue,A as LOWEST_PRIORITY,n as VxeEventListenerNameList,E as VxeTableEventNameList,o as WIDGET_TYPE};
|
@@ -1 +1 @@
|
|
1
|
-
import*as e from"./anchorPlugin/index.js";import*as r from"./bindEventSettingPlugin.js";import*as i from"./colorAndIconPlugin.js";import*as n from"./copyPastePlugin.js";import*as s from"./defaultConfigPlugin.js";import*as t from"./defaultValuePlugin.js";import*as l from"./dragScrollPlugin.js";import*as d from"./filterDaterangeRenderPlugin/index.js";import*as g from"./filterRenderPlugin/index.js";import*as o from"./filterVisibleEventPlugin.js";import*as u from"./forceArrowKeyPlugin.js";import*as a from"./headerPlugin.js";import*as P from"./highLightSetPlugin.js";import*as m from"./keyboardEventPlugin.js";import*as f from"./lowCodeFieldAdaptorPlugin.js";import*as p from"./maxCheckSizePlugin.js";import*as x from"./operationalFormPlugin.js";import*as j from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as b from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as
|
1
|
+
import*as e from"./anchorPlugin/index.js";import*as r from"./bindEventSettingPlugin.js";import*as i from"./colorAndIconPlugin.js";import*as n from"./copyPastePlugin.js";import*as s from"./defaultConfigPlugin.js";import*as t from"./defaultValuePlugin.js";import*as l from"./dragScrollPlugin.js";import*as d from"./filterDaterangeRenderPlugin/index.js";import*as g from"./filterRenderPlugin/index.js";import*as o from"./filterVisibleEventPlugin.js";import*as u from"./forceArrowKeyPlugin.js";import*as a from"./headerPlugin.js";import*as P from"./highLightSetPlugin.js";import*as m from"./keyboardEventPlugin.js";import*as f from"./lowCodeFieldAdaptorPlugin.js";import*as p from"./maxCheckSizePlugin.js";import*as x from"./operationalFormPlugin.js";import*as j from"./pagerScrollPlugin/index.js";import*as c from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as b from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as R from"./rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js";import*as w from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as h from"./rendererPlugins/editableWidgets/radioRendererPlugin.js";import*as W from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as S from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as v from"./rendererPlugins/editableWidgets/switchRendererPlugin.js";import*as k from"./rendererPlugins/editableWidgets/timeRendererPlugin/index.js";import*as C from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as y from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as A from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as E from"./rendererPlugins/widgets/htmlRendererPlugin.js";import*as D from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as F from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as T from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as V from"./rowClickPlugin.js";import*as q from"./rowDragPlugin.js";import*as z from"./rowGroupSettingPlugin/index.js";import*as G from"./varialbleHeightPlugin.js";import*as H from"./verticalTablePlugin/index.js";import*as I from"./virtualTreePlugin.js";import*as K from"./wordbookSettingPlugin.js";import{separateMetaModule as L}from"../../../../shared/utils/index.js";var O=L(Object.assign({"./anchorPlugin/index.tsx":e,"./bindEventSettingPlugin.ts":r,"./colorAndIconPlugin.ts":i,"./copyPastePlugin.ts":n,"./defaultConfigPlugin.ts":s,"./defaultValuePlugin.ts":t,"./dragScrollPlugin.ts":l,"./filterDaterangeRenderPlugin/index.tsx":d,"./filterRenderPlugin/index.tsx":g,"./filterVisibleEventPlugin.ts":o,"./forceArrowKeyPlugin.ts":u,"./headerPlugin.tsx":a,"./highLightSetPlugin.tsx":P,"./keyboardEventPlugin.ts":m,"./lowCodeFieldAdaptorPlugin.tsx":f,"./maxCheckSizePlugin.ts":p,"./operationalFormPlugin.ts":x,"./pagerScrollPlugin/index.ts":j,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":c,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":b,"./rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.tsx":R,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":w,"./rendererPlugins/editableWidgets/radioRendererPlugin.tsx":h,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":W,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":S,"./rendererPlugins/editableWidgets/switchRendererPlugin.tsx":v,"./rendererPlugins/editableWidgets/timeRendererPlugin/index.tsx":k,"./rendererPlugins/widgets/checkRendererPlugin.tsx":C,"./rendererPlugins/widgets/colorRendererPlugin.tsx":y,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":A,"./rendererPlugins/widgets/htmlRendererPlugin.tsx":E,"./rendererPlugins/widgets/labelRendererPlugin.tsx":D,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":F,"./rendererPlugins/widgets/seqRendererPlugin.tsx":T,"./rowClickPlugin.ts":V,"./rowDragPlugin.ts":q,"./rowGroupSettingPlugin/index.ts":z,"./varialbleHeightPlugin.tsx":G,"./verticalTablePlugin/index.ts":H,"./virtualTreePlugin.ts":I,"./wordbookSettingPlugin.ts":K}));export{O as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function pagerScrollPlugin(): import("../../../../../components/iho-table").TablePlugin;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{useThrottleFn as e,useElementSize as t}from"@vueuse/core";import{h as a,ref as l,onMounted as r,onBeforeUnmount as o}from"vue";import"../../../index.js";import{LOWEST_PRIORITY as u}from"../../constants/index.js";import{isPagerScrollEnable as n,scrollStateMap as i,isTreeTable as c,pageCapacityCalc as d}from"./utils.js";import s from"./pagerScroll.vue.js";import{defineTablePlugin as p}from"../../hooks/useTablePlugin.js";function g(){const g="pagerScrollPlugin";return p({name:g,apply(p){p.configHooks.config.tap(g,((t,{$table:a})=>{if(!n(t)||!t.uuid)return t;const l=i.getItemFromUUID(t.uuid);return l.config=t,t.onWheel=e((async e=>{var r,o,u,c,d,s,p;if(!n(t)||!t.uuid)return;const g=l.tBodyWrapper;if(!g)return;if(!(g.scrollHeight>g.clientHeight))return;let f=v;if(g.scrollHeight-g.clientHeight<v&&(f=(g.scrollHeight-g.clientHeight)/2),e.deltaY<0){if(g.scrollTop<f){const{capacityInfo:e,currentPage:t=0}=l;if(!e)return;t>0&&(l.currentPage=t-1,await(null==(r=a.value)?void 0:r.loadData([])),await(null==(o=a.value)?void 0:o.loadData(e[t-1].pageData)),await(null==(u=a.value)?void 0:u.setAllTreeExpand(!0)),null==(c=a.value)||c.scrollTo(null,9999))}}else if(g.scrollHeight-g.scrollTop-g.clientHeight<f){const e=i.getItemFromUUID(t.uuid),{capacityInfo:l,currentPage:r=0}=e;if(!l)return;r<l.length-1&&(e.currentPage=r+1,await(null==(d=a.value)?void 0:d.loadData([])),await(null==(s=a.value)?void 0:s.loadData(l[r+1].pageData)),await(null==(p=a.value)?void 0:p.setAllTreeExpand(!0)))}}),500),t.columnConfig={...t.columnConfig,seqSlotFn(e){var a,r,o,u,n,i;const{rowIndex:d,seq:s}=e;if(c(t)){const e=null!=(r=null==(a=t.treeConfig)?void 0:a.parentField)?r:"parentId";return(null!=(u=null==(o=l.capacityInfo)?void 0:o.reduce(((t,a,r)=>r<l.currentPage?t+a.pageData.filter((t=>!t[e])).length:t),0))?u:0)+ +s}return(null!=(i=null==(n=l.capacityInfo)?void 0:n.reduce(((e,t,a)=>a<l.currentPage?e+t.pageData.length:e),0))?i:0)+d+1}},t.scrollY={...t.scrollY,enabled:!1},t}));const v=3;p.dataHooks.dataList.tap({name:g,stage:u},((e,t)=>{var a,l;if(!n(t)||!t.uuid)return e;const r=i.getItemFromUUID(t.uuid);return r.dataList=e,r.capacityInfo=d(e,t),r.currentPage=0,null!=(l=null==(a=r.capacityInfo[0])?void 0:a.pageData)?l:[]})),p.domInsertHooks.footer.tap(g,(e=>(e.push(a(s)),e))),p.setupHooks.setup.tap(g,(e=>{if(!e.value.uuid)return;const a=l(null),u=l(null),{height:c}=t(a),{height:d}=t(u),s=i.getItemFromUUID(e.value.uuid);s.tBodyHeight=c,s.tHeaderHeight=d,s.tBodyWrapper=a,r((()=>{n(e.value)&&e.value.uuid&&function(){const t=document.querySelector(`#${e.value.uuid} .vxe-table--main-wrapper`);if(!t)return;a.value=t.querySelector(".vxe-table--body-wrapper"),u.value=t.querySelector(".vxe-table--header-wrapper")}()})),o((()=>{e.value.uuid&&i.removeItemFromUUID(e.value.uuid)}))}))}})}export{g as pagerScrollPlugin};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { widthAppend } from '../../../../../shared/utils';
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
3
|
+
configRef: import("vue").Ref<import("../../types").IhoTableConfig>;
|
4
|
+
$table: import("vue").Ref<import("../../../..").UndefinedAble<import("vxe-table").VxeTableInstance>>;
|
5
|
+
eventListener: import("../../hooks/tapHooks/useEventHooks").IhoTableEventListener;
|
6
|
+
globProps: Partial<{
|
7
|
+
tableConfig: import("../../types").IhoTableConfig;
|
8
|
+
fieldList: import("../../types").IhoTableFieldItem[];
|
9
|
+
tableData: import("../../../..").AnyObject[];
|
10
|
+
annotation: Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>;
|
11
|
+
}>;
|
12
|
+
enable: import("vue").ComputedRef<boolean>;
|
13
|
+
scrollWrapper: import("vue").Ref<HTMLElement | undefined>;
|
14
|
+
placeholderHeight: import("vue").ComputedRef<number>;
|
15
|
+
tBodyWrapper: import("vue").Ref<HTMLElement | null>;
|
16
|
+
tHeaderWrapper: import("vue").Ref<HTMLElement | null>;
|
17
|
+
tBodyHeight: import("vue").Ref<number>;
|
18
|
+
tHeaderHeight: import("vue").Ref<number>;
|
19
|
+
calcRectInfo: () => void;
|
20
|
+
isWheeling: boolean;
|
21
|
+
onWheel: () => Promise<void>;
|
22
|
+
isDragging: boolean;
|
23
|
+
onScroll: () => void;
|
24
|
+
widthAppend: typeof widthAppend;
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
26
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import r from"./pagerScroll.vue2.js";import e from"../../../../../_virtual/_plugin-vue_export-helper.js";var l=e(r,[["__file","pagerScroll.vue"]]);export{l as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,inject as l,computed as t,ref as r,onMounted as a,nextTick as n,unref as o,openBlock as u,createElementBlock as c,normalizeStyle as i,createElementVNode as s,createCommentVNode as v}from"vue";import{widthAppend as p}from"../../../../../shared/utils/index.js";import{useElementSize as d,useThrottleFn as f,useEventListener as g}from"@vueuse/core";import{InjectionIhoTableGlobProps as h}from"../../constants/index.js";import{useTableContext as m}from"../../hooks/useTableContext.js";import{isPagerScrollEnable as y,isTreeTable as w,scrollStateMap as I}from"./utils.js";var b=e({__name:"pagerScroll",setup(e){const{configRef:b,$table:x,eventListener:T}=m(),D=l(h),S=t((()=>y(b.value))),_=r(),P=t((()=>{var e,l,t,r,a,n;const o=null!=(l=null==(e=b.value.rowConfig)?void 0:e.height)?l:36;if(w(b.value)){const e=null!=(t=b.value.treeConfig.children)?t:"children";return o*(null!=(r=D.tableData.reduce(((l,t)=>{var r;return l+((null==(r=t[e])?void 0:r.length)||0)+1}),0))?r:0)}return o*(null!=(n=null==(a=D.tableData)?void 0:a.length)?n:0)})),j=r(null),U=r(null),{height:k}=d(j),{height:q}=d(U);a((()=>{S.value&&b.value.uuid&&function(){const e=document.querySelector(`#${b.value.uuid} .vxe-table--main-wrapper`);if(!e)return;j.value=e.querySelector(".vxe-table--body-wrapper"),U.value=e.querySelector(".vxe-table--header-wrapper")}()})),T.addEventListener("scroll",f((({scrollTop:e})=>{var l,t;if(E||C)return;const r=I.getItemFromUUID(b.value.uuid);if(!r.capacityInfo||!k.value)return;const a=(r.capacityInfo[r.currentPage||0].percent||0)*(e/k.value);if(r.currentPage){const e=r.capacityInfo.slice(0,r.currentPage).reduce(((e,l)=>e+l.percent),0)+a;null==(l=_.value)||l.scrollTo({top:e*P.value})}else null==(t=_.value)||t.scrollTo({top:a*P.value})}),100));let C=!1;const W=f((async function(){var e,l,t,r,a,o;C=!0,setTimeout((()=>{C=!1}),100);const u=_.value;if(!u||!b.value.uuid)return;const c=u.scrollTop/u.scrollHeight,i=I.getItemFromUUID(b.value.uuid);let s=0,v=0;const p=null==(e=i.capacityInfo)?void 0:e.findIndex((e=>{if(s+=e.percent,s>=c)return v=1-(s-c)/e.percent,!0}));if(-1===p)return;p!==i.currentPage&&(i.currentPage=p,(null==(l=i.capacityInfo)?void 0:l[p])&&(await x.value.loadData([]),await x.value.loadData(i.capacityInfo[p].pageData),null==(t=x.value)||t.setAllTreeExpand(!0),await n()));const d=(null!=(a=null==(r=j.value)?void 0:r.scrollHeight)?a:0)*v;null==(o=x.value)||o.scrollTo(null,d)}),50);let E=!1;g(window,"mousedown",(()=>{E=!0})),g(window,"mouseup",(()=>{E=!1}));const F=function(){E&&W()};return(e,l)=>o(S)?(u(),c("div",{key:0,class:"iho-table__pagerScrollWrapper",style:i({height:o(p)(o(k)),top:o(p)(o(q))}),ref_key:"scrollWrapper",ref:_,onWheel:l[0]||(l[0]=(...e)=>o(W)&&o(W)(...e)),onScroll:F},[s("div",{class:"iho-table__pagerScrollPlaceholder",style:i({height:o(p)(o(P))})},null,4)],36)):v("v-if",!0)}});export{b as default};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { AnyObject } from '../../../../../shared/types';
|
2
|
+
import { Ref } from 'vue';
|
3
|
+
import { IhoTableConfig } from '../../../../../components/iho-table';
|
4
|
+
export declare type ScrollState = Partial<{
|
5
|
+
dataList: AnyObject[];
|
6
|
+
capacityInfo: {
|
7
|
+
pageData: AnyObject[];
|
8
|
+
percent: number;
|
9
|
+
}[];
|
10
|
+
currentPage: number;
|
11
|
+
config: IhoTableConfig;
|
12
|
+
tBodyHeight: Ref<number>;
|
13
|
+
tHeaderHeight: Ref<number>;
|
14
|
+
scrollPending: boolean;
|
15
|
+
tBodyWrapper: Ref<HTMLElement | null>;
|
16
|
+
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { AnyObject } from '../../../../../shared/types';
|
2
|
+
import { IhoTableConfig } from '../../../../../components/iho-table';
|
3
|
+
export declare const scrollStateMap: {
|
4
|
+
uuidMap: Map<string, Partial<{
|
5
|
+
dataList: AnyObject[];
|
6
|
+
capacityInfo: {
|
7
|
+
pageData: AnyObject[];
|
8
|
+
percent: number;
|
9
|
+
}[];
|
10
|
+
currentPage: number;
|
11
|
+
config: IhoTableConfig;
|
12
|
+
tBodyHeight: import("vue").Ref<number>;
|
13
|
+
tHeaderHeight: import("vue").Ref<number>;
|
14
|
+
scrollPending: boolean;
|
15
|
+
tBodyWrapper: import("vue").Ref<HTMLElement | null>;
|
16
|
+
}>>;
|
17
|
+
getItemFromUUID: (uuid: string) => Partial<{
|
18
|
+
dataList: AnyObject[];
|
19
|
+
capacityInfo: {
|
20
|
+
pageData: AnyObject[];
|
21
|
+
percent: number;
|
22
|
+
}[];
|
23
|
+
currentPage: number;
|
24
|
+
config: IhoTableConfig;
|
25
|
+
tBodyHeight: import("vue").Ref<number>;
|
26
|
+
tHeaderHeight: import("vue").Ref<number>;
|
27
|
+
scrollPending: boolean;
|
28
|
+
tBodyWrapper: import("vue").Ref<HTMLElement | null>;
|
29
|
+
}>;
|
30
|
+
setItemFromUUID: (uuid: string, value: Partial<{
|
31
|
+
dataList: AnyObject[];
|
32
|
+
capacityInfo: {
|
33
|
+
pageData: AnyObject[];
|
34
|
+
percent: number;
|
35
|
+
}[];
|
36
|
+
currentPage: number;
|
37
|
+
config: IhoTableConfig;
|
38
|
+
tBodyHeight: import("vue").Ref<number>;
|
39
|
+
tHeaderHeight: import("vue").Ref<number>;
|
40
|
+
scrollPending: boolean;
|
41
|
+
tBodyWrapper: import("vue").Ref<HTMLElement | null>;
|
42
|
+
}>) => void;
|
43
|
+
removeItemFromUUID: (uuid: string) => void;
|
44
|
+
};
|
45
|
+
export declare function isPagerScrollEnable(config: IhoTableConfig): boolean;
|
46
|
+
export declare function isParentRow(config: IhoTableConfig, row: AnyObject): any;
|
47
|
+
export declare function isTreeTable(config: IhoTableConfig): boolean;
|
48
|
+
export declare function pageCapacityCalc(dataList: AnyObject[], config: IhoTableConfig): {
|
49
|
+
pageData: AnyObject[];
|
50
|
+
percent: number;
|
51
|
+
}[];
|
@@ -0,0 +1 @@
|
|
1
|
+
import{isArray as e}from"lodash-es";import{useUUIDMap as n}from"../../utils/index.js";const t=n((()=>({})));function l(e){var n;return!!(null==(n=e.pagerScroll)?void 0:n.enable)}function r(n,t){var l,r;const i=(null==(l=n.treeConfig)?void 0:l.children)||"children",h=(null==(r=n.treeConfig)?void 0:r.hasChild)||"hasChild";return e(t[i])||t[h]}function i(e){return[2,3,"2","3"].includes(e.isTree)}function h(n,t){var l,r;const h=(null==(l=t.pagerScroll)?void 0:l.capacity)||40,o=(null==(r=t.treeConfig)?void 0:r.children)||"children";if(!i(t))return n.reduce(((e,n)=>{let t=e[e.length-1];return(!t||t.length>=h)&&(t=[],e.push(t)),t.push(n),e}),[]).map((e=>({pageData:e,percent:e.length/n.length})));const u=[];for(let t=0;t<n.length;t++){const l=n[t];let r=u[u.length-1];(!r||r.length>=h)&&(r=[],u.push(r)),e(l[o])?(r.push(l),r.push(...n.slice(t+1,t+1+l[o].length)),t+=l[o].length):r.push(l)}return u.map((e=>({pageData:e,percent:e.length/n.length})))}export{l as isPagerScrollEnable,r as isParentRow,i as isTreeTable,h as pageCapacityCalc,t as scrollStateMap};
|