linkmore-design 1.0.78 → 1.0.81
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/dist/Badge/Ribbon.d.ts +15 -0
- package/dist/Badge/ScrollNumber.d.ts +18 -0
- package/dist/Badge/SingleNumber.d.ts +12 -0
- package/dist/Badge/demos/basic.d.ts +2 -0
- package/dist/Badge/demos/basic1.d.ts +3 -0
- package/dist/Badge/demos/basic2.d.ts +3 -0
- package/dist/Badge/index.d.ts +30 -0
- package/dist/Badge/style/index.d.ts +1 -0
- package/dist/Badge/utils.d.ts +1 -0
- package/dist/Button/index.d.ts +6 -2
- package/dist/CardTable/utils.d.ts +1 -1
- package/dist/ConfigProvider/DisabledContext.d.ts +9 -0
- package/dist/ConfigProvider/SizeContext.d.ts +9 -0
- package/dist/ConfigProvider/context.d.ts +59 -0
- package/dist/ConfigProvider/cssVariables.d.ts +3 -0
- package/dist/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/dist/ConfigProvider/index.d.ts +60 -1
- package/dist/Divider/demos/basic.d.ts +3 -0
- package/dist/Divider/demos/plain.d.ts +3 -0
- package/dist/Divider/demos/vertical.d.ts +3 -0
- package/dist/Divider/index.d.ts +14 -0
- package/dist/Divider/style/index.d.ts +1 -0
- package/dist/Locale/ar_EG.d.ts +3 -0
- package/dist/Locale/az_AZ.d.ts +3 -0
- package/dist/Locale/bg_BG.d.ts +3 -0
- package/dist/Locale/bn_BD.d.ts +3 -0
- package/dist/Locale/by_BY.d.ts +3 -0
- package/dist/Locale/ca_ES.d.ts +3 -0
- package/dist/Locale/cs_CZ.d.ts +3 -0
- package/dist/Locale/da_DK.d.ts +3 -0
- package/dist/Locale/de_DE.d.ts +3 -0
- package/dist/Locale/default.d.ts +3 -0
- package/dist/Locale/el_GR.d.ts +3 -0
- package/dist/Locale/en_GB.d.ts +3 -0
- package/dist/Locale/en_US.d.ts +2 -0
- package/dist/Locale/es_ES.d.ts +3 -0
- package/dist/Locale/et_EE.d.ts +3 -0
- package/dist/Locale/fa_IR.d.ts +3 -0
- package/dist/Locale/fi_FI.d.ts +3 -0
- package/dist/Locale/fr_BE.d.ts +3 -0
- package/dist/Locale/fr_CA.d.ts +3 -0
- package/dist/Locale/fr_FR.d.ts +3 -0
- package/dist/Locale/ga_IE.d.ts +3 -0
- package/dist/Locale/gl_ES.d.ts +3 -0
- package/dist/Locale/he_IL.d.ts +3 -0
- package/dist/Locale/hi_IN.d.ts +3 -0
- package/dist/Locale/hr_HR.d.ts +3 -0
- package/dist/Locale/hu_HU.d.ts +3 -0
- package/dist/Locale/hy_AM.d.ts +3 -0
- package/dist/Locale/id_ID.d.ts +3 -0
- package/dist/Locale/is_IS.d.ts +3 -0
- package/dist/Locale/it_IT.d.ts +3 -0
- package/dist/Locale/ja_JP.d.ts +3 -0
- package/dist/Locale/ka_GE.d.ts +3 -0
- package/dist/Locale/kk_KZ.d.ts +3 -0
- package/dist/Locale/km_KH.d.ts +3 -0
- package/dist/Locale/kmr_IQ.d.ts +3 -0
- package/dist/Locale/kn_IN.d.ts +3 -0
- package/dist/Locale/ko_KR.d.ts +3 -0
- package/dist/Locale/ku_IQ.d.ts +3 -0
- package/dist/Locale/lt_LT.d.ts +3 -0
- package/dist/Locale/lv_LV.d.ts +3 -0
- package/dist/Locale/mk_MK.d.ts +3 -0
- package/dist/Locale/ml_IN.d.ts +3 -0
- package/dist/Locale/mn_MN.d.ts +3 -0
- package/dist/Locale/ms_MY.d.ts +3 -0
- package/dist/Locale/nb_NO.d.ts +3 -0
- package/dist/Locale/ne_NP.d.ts +3 -0
- package/dist/Locale/nl_BE.d.ts +3 -0
- package/dist/Locale/nl_NL.d.ts +3 -0
- package/dist/Locale/pl_PL.d.ts +3 -0
- package/dist/Locale/pt_BR.d.ts +3 -0
- package/dist/Locale/pt_PT.d.ts +3 -0
- package/dist/Locale/ro_RO.d.ts +3 -0
- package/dist/Locale/ru_RU.d.ts +3 -0
- package/dist/Locale/si_LK.d.ts +3 -0
- package/dist/Locale/sk_SK.d.ts +3 -0
- package/dist/Locale/sl_SI.d.ts +3 -0
- package/dist/Locale/sr_RS.d.ts +3 -0
- package/dist/Locale/sv_SE.d.ts +3 -0
- package/dist/Locale/ta_IN.d.ts +3 -0
- package/dist/Locale/th_TH.d.ts +3 -0
- package/dist/Locale/tk_TK.d.ts +3 -0
- package/dist/Locale/tr_TR.d.ts +3 -0
- package/dist/Locale/uk_UA.d.ts +3 -0
- package/dist/Locale/ur_PK.d.ts +3 -0
- package/dist/Locale/vi_VN.d.ts +3 -0
- package/dist/Locale/zh_CN.d.ts +3 -0
- package/dist/Locale/zh_HK.d.ts +3 -0
- package/dist/Locale/zh_TW.d.ts +3 -0
- package/dist/Menu/index.d.ts +2 -0
- package/dist/Result/demos/403.d.ts +2 -0
- package/dist/Result/demos/404.d.ts +2 -0
- package/dist/Result/demos/500.d.ts +2 -0
- package/dist/Result/demos/basic.d.ts +2 -0
- package/dist/Result/demos/customicon.d.ts +2 -0
- package/dist/Result/demos/error.d.ts +2 -0
- package/dist/Result/demos/info.d.ts +2 -0
- package/dist/Result/demos/success.d.ts +2 -0
- package/dist/Result/demos/warning.d.ts +2 -0
- package/dist/Result/index.d.ts +32 -0
- package/dist/Result/noFound.d.ts +2 -0
- package/dist/Result/serverError.d.ts +2 -0
- package/dist/Result/style/index.d.ts +1 -0
- package/dist/Result/unauthorized.d.ts +2 -0
- package/dist/Skeleton/demos/basic.d.ts +2 -0
- package/dist/Skeleton/index.d.ts +5 -0
- package/dist/Skeleton/style/index.d.ts +1 -0
- package/dist/index.d.ts +15 -7
- package/dist/index.umd.js +180268 -186762
- package/dist/index.umd.min.js +30 -22
- package/dist/locale-provider/LocaleReceiver.d.ts +20 -0
- package/dist/locale-provider/ar_EG.d.ts +2 -0
- package/dist/locale-provider/az_AZ.d.ts +2 -0
- package/dist/locale-provider/bg_BG.d.ts +2 -0
- package/dist/locale-provider/bn_BD.d.ts +2 -0
- package/dist/locale-provider/by_BY.d.ts +2 -0
- package/dist/locale-provider/ca_ES.d.ts +2 -0
- package/dist/locale-provider/context.d.ts +7 -0
- package/dist/locale-provider/cs_CZ.d.ts +2 -0
- package/dist/locale-provider/da_DK.d.ts +2 -0
- package/dist/locale-provider/de_DE.d.ts +2 -0
- package/dist/locale-provider/default.d.ts +2 -0
- package/dist/locale-provider/el_GR.d.ts +2 -0
- package/dist/locale-provider/en_GB.d.ts +2 -0
- package/dist/locale-provider/en_US.d.ts +2 -0
- package/dist/locale-provider/es_ES.d.ts +2 -0
- package/dist/locale-provider/et_EE.d.ts +2 -0
- package/dist/locale-provider/fa_IR.d.ts +2 -0
- package/dist/locale-provider/fi_FI.d.ts +2 -0
- package/dist/locale-provider/fr_BE.d.ts +2 -0
- package/dist/locale-provider/fr_CA.d.ts +2 -0
- package/dist/locale-provider/fr_FR.d.ts +2 -0
- package/dist/locale-provider/ga_IE.d.ts +2 -0
- package/dist/locale-provider/gl_ES.d.ts +2 -0
- package/dist/locale-provider/he_IL.d.ts +2 -0
- package/dist/locale-provider/hi_IN.d.ts +2 -0
- package/dist/locale-provider/hr_HR.d.ts +2 -0
- package/dist/locale-provider/hu_HU.d.ts +2 -0
- package/dist/locale-provider/hy_AM.d.ts +2 -0
- package/dist/locale-provider/id_ID.d.ts +2 -0
- package/dist/locale-provider/index.d.ts +61 -0
- package/dist/locale-provider/is_IS.d.ts +2 -0
- package/dist/locale-provider/it_IT.d.ts +2 -0
- package/dist/locale-provider/ja_JP.d.ts +2 -0
- package/dist/locale-provider/ka_GE.d.ts +2 -0
- package/dist/locale-provider/kk_KZ.d.ts +2 -0
- package/dist/locale-provider/km_KH.d.ts +2 -0
- package/dist/locale-provider/kmr_IQ.d.ts +2 -0
- package/dist/locale-provider/kn_IN.d.ts +2 -0
- package/dist/locale-provider/ko_KR.d.ts +2 -0
- package/dist/locale-provider/ku_IQ.d.ts +2 -0
- package/dist/locale-provider/lt_LT.d.ts +2 -0
- package/dist/locale-provider/lv_LV.d.ts +2 -0
- package/dist/locale-provider/mk_MK.d.ts +2 -0
- package/dist/locale-provider/ml_IN.d.ts +2 -0
- package/dist/locale-provider/mn_MN.d.ts +2 -0
- package/dist/locale-provider/ms_MY.d.ts +2 -0
- package/dist/locale-provider/nb_NO.d.ts +2 -0
- package/dist/locale-provider/ne_NP.d.ts +2 -0
- package/dist/locale-provider/nl_BE.d.ts +2 -0
- package/dist/locale-provider/nl_NL.d.ts +2 -0
- package/dist/locale-provider/pl_PL.d.ts +2 -0
- package/dist/locale-provider/pt_BR.d.ts +2 -0
- package/dist/locale-provider/pt_PT.d.ts +2 -0
- package/dist/locale-provider/ro_RO.d.ts +2 -0
- package/dist/locale-provider/ru_RU.d.ts +2 -0
- package/dist/locale-provider/si_LK.d.ts +2 -0
- package/dist/locale-provider/sk_SK.d.ts +2 -0
- package/dist/locale-provider/sl_SI.d.ts +2 -0
- package/dist/locale-provider/sr_RS.d.ts +2 -0
- package/dist/locale-provider/style/index.d.ts +1 -0
- package/dist/locale-provider/sv_SE.d.ts +2 -0
- package/dist/locale-provider/ta_IN.d.ts +2 -0
- package/dist/locale-provider/th_TH.d.ts +2 -0
- package/dist/locale-provider/tk_TK.d.ts +2 -0
- package/dist/locale-provider/tr_TR.d.ts +2 -0
- package/dist/locale-provider/uk_UA.d.ts +2 -0
- package/dist/locale-provider/ur_PK.d.ts +2 -0
- package/dist/locale-provider/vi_VN.d.ts +2 -0
- package/dist/locale-provider/zh_CN.d.ts +2 -0
- package/dist/locale-provider/zh_HK.d.ts +2 -0
- package/dist/locale-provider/zh_TW.d.ts +2 -0
- package/es/Badge/Ribbon.d.ts +15 -0
- package/es/Badge/Ribbon.js +47 -0
- package/es/Badge/ScrollNumber.d.ts +18 -0
- package/es/Badge/ScrollNumber.js +80 -0
- package/es/Badge/SingleNumber.d.ts +12 -0
- package/es/Badge/SingleNumber.js +122 -0
- package/es/Badge/index.d.ts +30 -0
- package/es/Badge/index.js +183 -0
- package/es/Badge/style/index.css +511 -0
- package/es/Badge/style/index.d.ts +1 -0
- package/es/Badge/style/index.js +1 -0
- package/es/Badge/utils.d.ts +1 -0
- package/es/Badge/utils.js +5 -0
- package/es/Button/index.d.ts +6 -2
- package/es/Button/index.js +1 -0
- package/es/CardTable/body/TableBodyCell.js +1 -3
- package/es/CardTable/card/PictureTextColumn.js +8 -4
- package/es/CardTable/card/PictureTextRow.js +19 -3
- package/es/CardTable/card/PictureTextRowOperate.js +19 -3
- package/es/CardTable/style/index.css +75 -63
- package/es/ConfigProvider/DisabledContext.d.ts +9 -0
- package/es/ConfigProvider/DisabledContext.js +11 -0
- package/es/ConfigProvider/SizeContext.d.ts +9 -0
- package/es/ConfigProvider/SizeContext.js +12 -0
- package/es/ConfigProvider/context.d.ts +59 -0
- package/es/ConfigProvider/context.js +41 -0
- package/es/ConfigProvider/cssVariables.d.ts +3 -0
- package/es/ConfigProvider/cssVariables.js +97 -0
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
- package/es/ConfigProvider/index.d.ts +61 -0
- package/es/ConfigProvider/index.js +209 -10
- package/es/DatePicker/generatePicker/index.d.ts +1 -1
- package/es/DatePicker/index.d.ts +1 -1
- package/es/Divider/index.d.ts +14 -0
- package/es/Divider/index.js +63 -0
- package/es/Divider/style/index.css +511 -0
- package/es/Divider/style/index.d.ts +1 -0
- package/es/Divider/style/index.js +1 -0
- package/es/Drawer/style/index.css +1 -0
- package/es/LeftTable/index.js +2 -24
- package/es/LmEditTable/EditTable.js +1 -1
- package/es/LmFilter/filterFns/index.js +1 -1
- package/es/LmTable/Table.js +97 -92
- package/es/LmTable/components/inputDataEdit.js +4 -0
- package/es/LmTable/components/sheelTableCell.js +14 -3
- package/es/LmTable/components/tableChartsModal.js +1 -0
- package/es/LmTable/index.js +0 -5
- package/es/Locale/ar_EG.d.ts +3 -0
- package/es/Locale/ar_EG.js +116 -0
- package/es/Locale/az_AZ.d.ts +3 -0
- package/es/Locale/az_AZ.js +97 -0
- package/es/Locale/bg_BG.d.ts +3 -0
- package/es/Locale/bg_BG.js +43 -0
- package/es/Locale/bn_BD.d.ts +3 -0
- package/es/Locale/bn_BD.js +130 -0
- package/es/Locale/by_BY.d.ts +3 -0
- package/es/Locale/by_BY.js +132 -0
- package/es/Locale/ca_ES.d.ts +3 -0
- package/es/Locale/ca_ES.js +125 -0
- package/es/Locale/cs_CZ.d.ts +3 -0
- package/es/Locale/cs_CZ.js +132 -0
- package/es/Locale/da_DK.d.ts +3 -0
- package/es/Locale/da_DK.js +53 -0
- package/es/Locale/de_DE.d.ts +3 -0
- package/es/Locale/de_DE.js +126 -0
- package/es/Locale/default.d.ts +3 -0
- package/es/Locale/default.js +132 -0
- package/es/Locale/el_GR.d.ts +3 -0
- package/es/Locale/el_GR.js +43 -0
- package/es/Locale/en_GB.d.ts +3 -0
- package/es/Locale/en_GB.js +132 -0
- package/es/Locale/en_US.d.ts +2 -0
- package/es/Locale/en_US.js +2 -0
- package/es/Locale/es_ES.d.ts +3 -0
- package/es/Locale/es_ES.js +132 -0
- package/es/Locale/et_EE.d.ts +3 -0
- package/es/Locale/et_EE.js +132 -0
- package/es/Locale/fa_IR.d.ts +3 -0
- package/es/Locale/fa_IR.js +130 -0
- package/es/Locale/fi_FI.d.ts +3 -0
- package/es/Locale/fi_FI.js +53 -0
- package/es/Locale/fr_BE.d.ts +3 -0
- package/es/Locale/fr_BE.js +48 -0
- package/es/Locale/fr_CA.d.ts +3 -0
- package/es/Locale/fr_CA.js +60 -0
- package/es/Locale/fr_FR.d.ts +3 -0
- package/es/Locale/fr_FR.js +128 -0
- package/es/Locale/ga_IE.d.ts +3 -0
- package/es/Locale/ga_IE.js +123 -0
- package/es/Locale/gl_ES.d.ts +3 -0
- package/es/Locale/gl_ES.js +110 -0
- package/es/Locale/he_IL.d.ts +3 -0
- package/es/Locale/he_IL.js +116 -0
- package/es/Locale/hi_IN.d.ts +3 -0
- package/es/Locale/hi_IN.js +130 -0
- package/es/Locale/hr_HR.d.ts +3 -0
- package/es/Locale/hr_HR.js +129 -0
- package/es/Locale/hu_HU.d.ts +3 -0
- package/es/Locale/hu_HU.js +44 -0
- package/es/Locale/hy_AM.d.ts +3 -0
- package/es/Locale/hy_AM.js +109 -0
- package/es/Locale/id_ID.d.ts +3 -0
- package/es/Locale/id_ID.js +45 -0
- package/es/Locale/is_IS.d.ts +3 -0
- package/es/Locale/is_IS.js +43 -0
- package/es/Locale/it_IT.d.ts +3 -0
- package/es/Locale/it_IT.js +61 -0
- package/es/Locale/ja_JP.d.ts +3 -0
- package/es/Locale/ja_JP.js +102 -0
- package/es/Locale/ka_GE.d.ts +3 -0
- package/es/Locale/ka_GE.js +130 -0
- package/es/Locale/kk_KZ.d.ts +3 -0
- package/es/Locale/kk_KZ.js +124 -0
- package/es/Locale/km_KH.d.ts +3 -0
- package/es/Locale/km_KH.js +104 -0
- package/es/Locale/kmr_IQ.d.ts +3 -0
- package/es/Locale/kmr_IQ.js +43 -0
- package/es/Locale/kn_IN.d.ts +3 -0
- package/es/Locale/kn_IN.js +51 -0
- package/es/Locale/ko_KR.d.ts +3 -0
- package/es/Locale/ko_KR.js +96 -0
- package/es/Locale/ku_IQ.d.ts +3 -0
- package/es/Locale/ku_IQ.js +46 -0
- package/es/Locale/lt_LT.d.ts +3 -0
- package/es/Locale/lt_LT.js +121 -0
- package/es/Locale/lv_LV.d.ts +3 -0
- package/es/Locale/lv_LV.js +43 -0
- package/es/Locale/mk_MK.d.ts +3 -0
- package/es/Locale/mk_MK.js +58 -0
- package/es/Locale/ml_IN.d.ts +3 -0
- package/es/Locale/ml_IN.js +130 -0
- package/es/Locale/mn_MN.d.ts +3 -0
- package/es/Locale/mn_MN.js +43 -0
- package/es/Locale/ms_MY.d.ts +3 -0
- package/es/Locale/ms_MY.js +63 -0
- package/es/Locale/nb_NO.d.ts +3 -0
- package/es/Locale/nb_NO.js +124 -0
- package/es/Locale/ne_NP.d.ts +3 -0
- package/es/Locale/ne_NP.js +44 -0
- package/es/Locale/nl_BE.d.ts +3 -0
- package/es/Locale/nl_BE.js +130 -0
- package/es/Locale/nl_NL.d.ts +3 -0
- package/es/Locale/nl_NL.js +130 -0
- package/es/Locale/pl_PL.d.ts +3 -0
- package/es/Locale/pl_PL.js +132 -0
- package/es/Locale/pt_BR.d.ts +3 -0
- package/es/Locale/pt_BR.js +130 -0
- package/es/Locale/pt_PT.d.ts +3 -0
- package/es/Locale/pt_PT.js +44 -0
- package/es/Locale/ro_RO.d.ts +3 -0
- package/es/Locale/ro_RO.js +130 -0
- package/es/Locale/ru_RU.d.ts +3 -0
- package/es/Locale/ru_RU.js +129 -0
- package/es/Locale/si_LK.d.ts +3 -0
- package/es/Locale/si_LK.js +132 -0
- package/es/Locale/sk_SK.d.ts +3 -0
- package/es/Locale/sk_SK.js +132 -0
- package/es/Locale/sl_SI.d.ts +3 -0
- package/es/Locale/sl_SI.js +43 -0
- package/es/Locale/sr_RS.d.ts +3 -0
- package/es/Locale/sr_RS.js +130 -0
- package/es/Locale/sv_SE.d.ts +3 -0
- package/es/Locale/sv_SE.js +130 -0
- package/es/Locale/ta_IN.d.ts +3 -0
- package/es/Locale/ta_IN.js +63 -0
- package/es/Locale/th_TH.d.ts +3 -0
- package/es/Locale/th_TH.js +126 -0
- package/es/Locale/tk_TK.d.ts +3 -0
- package/es/Locale/tk_TK.js +128 -0
- package/es/Locale/tr_TR.d.ts +3 -0
- package/es/Locale/tr_TR.js +128 -0
- package/es/Locale/uk_UA.d.ts +3 -0
- package/es/Locale/uk_UA.js +132 -0
- package/es/Locale/ur_PK.d.ts +3 -0
- package/es/Locale/ur_PK.js +130 -0
- package/es/Locale/vi_VN.d.ts +3 -0
- package/es/Locale/vi_VN.js +43 -0
- package/es/Locale/zh_CN.d.ts +3 -0
- package/es/Locale/zh_CN.js +131 -0
- package/es/Locale/zh_HK.d.ts +3 -0
- package/es/Locale/zh_HK.js +127 -0
- package/es/Locale/zh_TW.d.ts +3 -0
- package/es/Locale/zh_TW.js +128 -0
- package/es/Menu/index.d.ts +2 -0
- package/es/Modal/index.js +2 -0
- package/es/QuickMenu/style/index.css +1 -0
- package/es/Result/index.d.ts +32 -0
- package/es/Result/index.js +100 -0
- package/es/Result/noFound.d.ts +2 -0
- package/es/Result/noFound.js +239 -0
- package/es/Result/serverError.d.ts +2 -0
- package/es/Result/serverError.js +279 -0
- package/es/Result/style/index.css +511 -0
- package/es/Result/style/index.d.ts +1 -0
- package/es/Result/style/index.js +1 -0
- package/es/Result/unauthorized.d.ts +2 -0
- package/es/Result/unauthorized.js +229 -0
- package/es/Skeleton/index.d.ts +5 -0
- package/es/Skeleton/index.js +3 -0
- package/es/Skeleton/style/index.css +511 -0
- package/es/Skeleton/style/index.d.ts +1 -0
- package/es/Skeleton/style/index.js +1 -0
- package/es/_util/statusUtils.d.ts +1 -1
- package/es/index.d.ts +15 -7
- package/es/index.js +7 -8
- package/es/locale-provider/LocaleReceiver.d.ts +20 -0
- package/es/locale-provider/LocaleReceiver.js +66 -0
- package/es/locale-provider/ar_EG.d.ts +2 -0
- package/es/locale-provider/ar_EG.js +2 -0
- package/es/locale-provider/az_AZ.d.ts +2 -0
- package/es/locale-provider/az_AZ.js +2 -0
- package/es/locale-provider/bg_BG.d.ts +2 -0
- package/es/locale-provider/bg_BG.js +2 -0
- package/es/locale-provider/bn_BD.d.ts +2 -0
- package/es/locale-provider/bn_BD.js +2 -0
- package/es/locale-provider/by_BY.d.ts +2 -0
- package/es/locale-provider/by_BY.js +2 -0
- package/es/locale-provider/ca_ES.d.ts +2 -0
- package/es/locale-provider/ca_ES.js +2 -0
- package/es/locale-provider/context.d.ts +7 -0
- package/es/locale-provider/context.js +3 -0
- package/es/locale-provider/cs_CZ.d.ts +2 -0
- package/es/locale-provider/cs_CZ.js +2 -0
- package/es/locale-provider/da_DK.d.ts +2 -0
- package/es/locale-provider/da_DK.js +2 -0
- package/es/locale-provider/de_DE.d.ts +2 -0
- package/es/locale-provider/de_DE.js +2 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/el_GR.d.ts +2 -0
- package/es/locale-provider/el_GR.js +2 -0
- package/es/locale-provider/en_GB.d.ts +2 -0
- package/es/locale-provider/en_GB.js +2 -0
- package/es/locale-provider/en_US.d.ts +2 -0
- package/es/locale-provider/en_US.js +2 -0
- package/es/locale-provider/es_ES.d.ts +2 -0
- package/es/locale-provider/es_ES.js +2 -0
- package/es/locale-provider/et_EE.d.ts +2 -0
- package/es/locale-provider/et_EE.js +2 -0
- package/es/locale-provider/fa_IR.d.ts +2 -0
- package/es/locale-provider/fa_IR.js +2 -0
- package/es/locale-provider/fi_FI.d.ts +2 -0
- package/es/locale-provider/fi_FI.js +2 -0
- package/es/locale-provider/fr_BE.d.ts +2 -0
- package/es/locale-provider/fr_BE.js +2 -0
- package/es/locale-provider/fr_CA.d.ts +2 -0
- package/es/locale-provider/fr_CA.js +2 -0
- package/es/locale-provider/fr_FR.d.ts +2 -0
- package/es/locale-provider/fr_FR.js +2 -0
- package/es/locale-provider/ga_IE.d.ts +2 -0
- package/es/locale-provider/ga_IE.js +2 -0
- package/es/locale-provider/gl_ES.d.ts +2 -0
- package/es/locale-provider/gl_ES.js +2 -0
- package/es/locale-provider/he_IL.d.ts +2 -0
- package/es/locale-provider/he_IL.js +2 -0
- package/es/locale-provider/hi_IN.d.ts +2 -0
- package/es/locale-provider/hi_IN.js +2 -0
- package/es/locale-provider/hr_HR.d.ts +2 -0
- package/es/locale-provider/hr_HR.js +2 -0
- package/es/locale-provider/hu_HU.d.ts +2 -0
- package/es/locale-provider/hu_HU.js +2 -0
- package/es/locale-provider/hy_AM.d.ts +2 -0
- package/es/locale-provider/hy_AM.js +2 -0
- package/es/locale-provider/id_ID.d.ts +2 -0
- package/es/locale-provider/id_ID.js +2 -0
- package/es/locale-provider/index.d.ts +61 -0
- package/es/locale-provider/index.js +71 -0
- package/es/locale-provider/is_IS.d.ts +2 -0
- package/es/locale-provider/is_IS.js +2 -0
- package/es/locale-provider/it_IT.d.ts +2 -0
- package/es/locale-provider/it_IT.js +2 -0
- package/es/locale-provider/ja_JP.d.ts +2 -0
- package/es/locale-provider/ja_JP.js +2 -0
- package/es/locale-provider/ka_GE.d.ts +2 -0
- package/es/locale-provider/ka_GE.js +2 -0
- package/es/locale-provider/kk_KZ.d.ts +2 -0
- package/es/locale-provider/kk_KZ.js +2 -0
- package/es/locale-provider/km_KH.d.ts +2 -0
- package/es/locale-provider/km_KH.js +2 -0
- package/es/locale-provider/kmr_IQ.d.ts +2 -0
- package/es/locale-provider/kmr_IQ.js +2 -0
- package/es/locale-provider/kn_IN.d.ts +2 -0
- package/es/locale-provider/kn_IN.js +2 -0
- package/es/locale-provider/ko_KR.d.ts +2 -0
- package/es/locale-provider/ko_KR.js +2 -0
- package/es/locale-provider/ku_IQ.d.ts +2 -0
- package/es/locale-provider/ku_IQ.js +2 -0
- package/es/locale-provider/lt_LT.d.ts +2 -0
- package/es/locale-provider/lt_LT.js +2 -0
- package/es/locale-provider/lv_LV.d.ts +2 -0
- package/es/locale-provider/lv_LV.js +2 -0
- package/es/locale-provider/mk_MK.d.ts +2 -0
- package/es/locale-provider/mk_MK.js +2 -0
- package/es/locale-provider/ml_IN.d.ts +2 -0
- package/es/locale-provider/ml_IN.js +2 -0
- package/es/locale-provider/mn_MN.d.ts +2 -0
- package/es/locale-provider/mn_MN.js +2 -0
- package/es/locale-provider/ms_MY.d.ts +2 -0
- package/es/locale-provider/ms_MY.js +2 -0
- package/es/locale-provider/nb_NO.d.ts +2 -0
- package/es/locale-provider/nb_NO.js +2 -0
- package/es/locale-provider/ne_NP.d.ts +2 -0
- package/es/locale-provider/ne_NP.js +2 -0
- package/es/locale-provider/nl_BE.d.ts +2 -0
- package/es/locale-provider/nl_BE.js +2 -0
- package/es/locale-provider/nl_NL.d.ts +2 -0
- package/es/locale-provider/nl_NL.js +2 -0
- package/es/locale-provider/pl_PL.d.ts +2 -0
- package/es/locale-provider/pl_PL.js +2 -0
- package/es/locale-provider/pt_BR.d.ts +2 -0
- package/es/locale-provider/pt_BR.js +2 -0
- package/es/locale-provider/pt_PT.d.ts +2 -0
- package/es/locale-provider/pt_PT.js +2 -0
- package/es/locale-provider/ro_RO.d.ts +2 -0
- package/es/locale-provider/ro_RO.js +2 -0
- package/es/locale-provider/ru_RU.d.ts +2 -0
- package/es/locale-provider/ru_RU.js +2 -0
- package/es/locale-provider/si_LK.d.ts +2 -0
- package/es/locale-provider/si_LK.js +2 -0
- package/es/locale-provider/sk_SK.d.ts +2 -0
- package/es/locale-provider/sk_SK.js +2 -0
- package/es/locale-provider/sl_SI.d.ts +2 -0
- package/es/locale-provider/sl_SI.js +2 -0
- package/es/locale-provider/sr_RS.d.ts +2 -0
- package/es/locale-provider/sr_RS.js +2 -0
- package/es/locale-provider/style/index.css +511 -0
- package/es/locale-provider/style/index.d.ts +1 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/sv_SE.d.ts +2 -0
- package/es/locale-provider/sv_SE.js +2 -0
- package/es/locale-provider/ta_IN.d.ts +2 -0
- package/es/locale-provider/ta_IN.js +2 -0
- package/es/locale-provider/th_TH.d.ts +2 -0
- package/es/locale-provider/th_TH.js +2 -0
- package/es/locale-provider/tk_TK.d.ts +2 -0
- package/es/locale-provider/tk_TK.js +2 -0
- package/es/locale-provider/tr_TR.d.ts +2 -0
- package/es/locale-provider/tr_TR.js +2 -0
- package/es/locale-provider/uk_UA.d.ts +2 -0
- package/es/locale-provider/uk_UA.js +2 -0
- package/es/locale-provider/ur_PK.d.ts +2 -0
- package/es/locale-provider/ur_PK.js +2 -0
- package/es/locale-provider/vi_VN.d.ts +2 -0
- package/es/locale-provider/vi_VN.js +2 -0
- package/es/locale-provider/zh_CN.d.ts +2 -0
- package/es/locale-provider/zh_CN.js +2 -0
- package/es/locale-provider/zh_HK.d.ts +2 -0
- package/es/locale-provider/zh_HK.js +2 -0
- package/es/locale-provider/zh_TW.d.ts +2 -0
- package/es/locale-provider/zh_TW.js +2 -0
- package/es/message/index.d.ts +6 -6
- package/lib/Badge/Ribbon.d.ts +15 -0
- package/lib/Badge/Ribbon.js +63 -0
- package/lib/Badge/ScrollNumber.d.ts +18 -0
- package/lib/Badge/ScrollNumber.js +96 -0
- package/lib/Badge/SingleNumber.d.ts +12 -0
- package/lib/Badge/SingleNumber.js +135 -0
- package/lib/Badge/index.d.ts +30 -0
- package/lib/Badge/index.js +202 -0
- package/lib/Badge/style/index.css +511 -0
- package/lib/Badge/style/index.d.ts +1 -0
- package/{es/CkFilter → lib/Badge}/style/index.js +0 -0
- package/lib/Badge/utils.d.ts +1 -0
- package/lib/Badge/utils.js +13 -0
- package/lib/Button/index.d.ts +6 -2
- package/lib/Button/index.js +1 -0
- package/lib/CardTable/body/TableBodyCell.js +1 -3
- package/lib/CardTable/card/PictureTextColumn.js +8 -4
- package/lib/CardTable/card/PictureTextRow.js +19 -3
- package/lib/CardTable/card/PictureTextRowOperate.js +19 -3
- package/lib/CardTable/style/index.css +75 -63
- package/lib/ConfigProvider/DisabledContext.d.ts +9 -0
- package/lib/ConfigProvider/DisabledContext.js +25 -0
- package/lib/ConfigProvider/SizeContext.d.ts +9 -0
- package/lib/ConfigProvider/SizeContext.js +26 -0
- package/lib/ConfigProvider/context.d.ts +59 -0
- package/lib/ConfigProvider/context.js +54 -0
- package/lib/ConfigProvider/cssVariables.d.ts +3 -0
- package/lib/ConfigProvider/cssVariables.js +114 -0
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/lib/ConfigProvider/defaultRenderEmpty.js +52 -0
- package/lib/ConfigProvider/index.d.ts +61 -0
- package/lib/ConfigProvider/index.js +245 -4
- package/lib/DatePicker/generatePicker/index.d.ts +1 -1
- package/lib/DatePicker/index.d.ts +1 -1
- package/lib/Divider/index.d.ts +14 -0
- package/lib/Divider/index.js +79 -0
- package/lib/Divider/style/index.css +511 -0
- package/lib/Divider/style/index.d.ts +1 -0
- package/{es/Filter → lib/Divider}/style/index.js +0 -0
- package/lib/Drawer/style/index.css +1 -0
- package/lib/LeftTable/index.js +2 -24
- package/lib/LmEditTable/EditTable.js +1 -1
- package/lib/LmFilter/filterFns/index.js +1 -1
- package/lib/LmTable/Table.js +97 -92
- package/lib/LmTable/components/inputDataEdit.js +4 -0
- package/lib/LmTable/components/sheelTableCell.js +14 -2
- package/lib/LmTable/components/tableChartsModal.js +1 -0
- package/lib/LmTable/index.js +0 -5
- package/lib/Locale/ar_EG.d.ts +3 -0
- package/lib/Locale/ar_EG.js +130 -0
- package/lib/Locale/az_AZ.d.ts +3 -0
- package/lib/Locale/az_AZ.js +111 -0
- package/lib/Locale/bg_BG.d.ts +3 -0
- package/lib/Locale/bg_BG.js +57 -0
- package/lib/Locale/bn_BD.d.ts +3 -0
- package/lib/Locale/bn_BD.js +144 -0
- package/lib/Locale/by_BY.d.ts +3 -0
- package/lib/Locale/by_BY.js +146 -0
- package/lib/Locale/ca_ES.d.ts +3 -0
- package/lib/Locale/ca_ES.js +139 -0
- package/lib/Locale/cs_CZ.d.ts +3 -0
- package/lib/Locale/cs_CZ.js +146 -0
- package/lib/Locale/da_DK.d.ts +3 -0
- package/lib/Locale/da_DK.js +67 -0
- package/lib/Locale/de_DE.d.ts +3 -0
- package/lib/Locale/de_DE.js +140 -0
- package/lib/Locale/default.d.ts +3 -0
- package/lib/Locale/default.js +146 -0
- package/lib/Locale/el_GR.d.ts +3 -0
- package/lib/Locale/el_GR.js +57 -0
- package/lib/Locale/en_GB.d.ts +3 -0
- package/lib/Locale/en_GB.js +146 -0
- package/lib/Locale/en_US.d.ts +2 -0
- package/lib/Locale/en_US.js +13 -0
- package/lib/Locale/es_ES.d.ts +3 -0
- package/lib/Locale/es_ES.js +146 -0
- package/lib/Locale/et_EE.d.ts +3 -0
- package/lib/Locale/et_EE.js +146 -0
- package/lib/Locale/fa_IR.d.ts +3 -0
- package/lib/Locale/fa_IR.js +144 -0
- package/lib/Locale/fi_FI.d.ts +3 -0
- package/lib/Locale/fi_FI.js +67 -0
- package/lib/Locale/fr_BE.d.ts +3 -0
- package/lib/Locale/fr_BE.js +62 -0
- package/lib/Locale/fr_CA.d.ts +3 -0
- package/lib/Locale/fr_CA.js +74 -0
- package/lib/Locale/fr_FR.d.ts +3 -0
- package/lib/Locale/fr_FR.js +142 -0
- package/lib/Locale/ga_IE.d.ts +3 -0
- package/lib/Locale/ga_IE.js +137 -0
- package/lib/Locale/gl_ES.d.ts +3 -0
- package/lib/Locale/gl_ES.js +124 -0
- package/lib/Locale/he_IL.d.ts +3 -0
- package/lib/Locale/he_IL.js +130 -0
- package/lib/Locale/hi_IN.d.ts +3 -0
- package/lib/Locale/hi_IN.js +144 -0
- package/lib/Locale/hr_HR.d.ts +3 -0
- package/lib/Locale/hr_HR.js +143 -0
- package/lib/Locale/hu_HU.d.ts +3 -0
- package/lib/Locale/hu_HU.js +58 -0
- package/lib/Locale/hy_AM.d.ts +3 -0
- package/lib/Locale/hy_AM.js +116 -0
- package/lib/Locale/id_ID.d.ts +3 -0
- package/lib/Locale/id_ID.js +59 -0
- package/lib/Locale/is_IS.d.ts +3 -0
- package/lib/Locale/is_IS.js +57 -0
- package/lib/Locale/it_IT.d.ts +3 -0
- package/lib/Locale/it_IT.js +75 -0
- package/lib/Locale/ja_JP.d.ts +3 -0
- package/lib/Locale/ja_JP.js +116 -0
- package/lib/Locale/ka_GE.d.ts +3 -0
- package/lib/Locale/ka_GE.js +144 -0
- package/lib/Locale/kk_KZ.d.ts +3 -0
- package/lib/Locale/kk_KZ.js +138 -0
- package/lib/Locale/km_KH.d.ts +3 -0
- package/lib/Locale/km_KH.js +118 -0
- package/lib/Locale/kmr_IQ.d.ts +3 -0
- package/lib/Locale/kmr_IQ.js +57 -0
- package/lib/Locale/kn_IN.d.ts +3 -0
- package/lib/Locale/kn_IN.js +65 -0
- package/lib/Locale/ko_KR.d.ts +3 -0
- package/lib/Locale/ko_KR.js +110 -0
- package/lib/Locale/ku_IQ.d.ts +3 -0
- package/lib/Locale/ku_IQ.js +60 -0
- package/lib/Locale/lt_LT.d.ts +3 -0
- package/lib/Locale/lt_LT.js +135 -0
- package/lib/Locale/lv_LV.d.ts +3 -0
- package/lib/Locale/lv_LV.js +57 -0
- package/lib/Locale/mk_MK.d.ts +3 -0
- package/lib/Locale/mk_MK.js +72 -0
- package/lib/Locale/ml_IN.d.ts +3 -0
- package/lib/Locale/ml_IN.js +144 -0
- package/lib/Locale/mn_MN.d.ts +3 -0
- package/lib/Locale/mn_MN.js +57 -0
- package/lib/Locale/ms_MY.d.ts +3 -0
- package/lib/Locale/ms_MY.js +77 -0
- package/lib/Locale/nb_NO.d.ts +3 -0
- package/lib/Locale/nb_NO.js +138 -0
- package/lib/Locale/ne_NP.d.ts +3 -0
- package/lib/Locale/ne_NP.js +58 -0
- package/lib/Locale/nl_BE.d.ts +3 -0
- package/lib/Locale/nl_BE.js +144 -0
- package/lib/Locale/nl_NL.d.ts +3 -0
- package/lib/Locale/nl_NL.js +144 -0
- package/lib/Locale/pl_PL.d.ts +3 -0
- package/lib/Locale/pl_PL.js +146 -0
- package/lib/Locale/pt_BR.d.ts +3 -0
- package/lib/Locale/pt_BR.js +144 -0
- package/lib/Locale/pt_PT.d.ts +3 -0
- package/lib/Locale/pt_PT.js +58 -0
- package/lib/Locale/ro_RO.d.ts +3 -0
- package/lib/Locale/ro_RO.js +144 -0
- package/lib/Locale/ru_RU.d.ts +3 -0
- package/lib/Locale/ru_RU.js +143 -0
- package/lib/Locale/si_LK.d.ts +3 -0
- package/lib/Locale/si_LK.js +146 -0
- package/lib/Locale/sk_SK.d.ts +3 -0
- package/lib/Locale/sk_SK.js +146 -0
- package/lib/Locale/sl_SI.d.ts +3 -0
- package/lib/Locale/sl_SI.js +57 -0
- package/lib/Locale/sr_RS.d.ts +3 -0
- package/lib/Locale/sr_RS.js +144 -0
- package/lib/Locale/sv_SE.d.ts +3 -0
- package/lib/Locale/sv_SE.js +144 -0
- package/lib/Locale/ta_IN.d.ts +3 -0
- package/lib/Locale/ta_IN.js +77 -0
- package/lib/Locale/th_TH.d.ts +3 -0
- package/lib/Locale/th_TH.js +140 -0
- package/lib/Locale/tk_TK.d.ts +3 -0
- package/lib/Locale/tk_TK.js +142 -0
- package/lib/Locale/tr_TR.d.ts +3 -0
- package/lib/Locale/tr_TR.js +142 -0
- package/lib/Locale/uk_UA.d.ts +3 -0
- package/lib/Locale/uk_UA.js +146 -0
- package/lib/Locale/ur_PK.d.ts +3 -0
- package/lib/Locale/ur_PK.js +144 -0
- package/lib/Locale/vi_VN.d.ts +3 -0
- package/lib/Locale/vi_VN.js +57 -0
- package/lib/Locale/zh_CN.d.ts +3 -0
- package/lib/Locale/zh_CN.js +145 -0
- package/lib/Locale/zh_HK.d.ts +3 -0
- package/lib/Locale/zh_HK.js +141 -0
- package/lib/Locale/zh_TW.d.ts +3 -0
- package/lib/Locale/zh_TW.js +142 -0
- package/lib/Menu/index.d.ts +2 -0
- package/lib/Modal/index.js +2 -0
- package/lib/QuickMenu/style/index.css +1 -0
- package/lib/Result/index.d.ts +32 -0
- package/lib/Result/index.js +126 -0
- package/lib/Result/noFound.d.ts +2 -0
- package/lib/Result/noFound.js +249 -0
- package/lib/Result/serverError.d.ts +2 -0
- package/lib/Result/serverError.js +289 -0
- package/lib/Result/style/index.css +511 -0
- package/lib/Result/style/index.d.ts +1 -0
- package/{es/Locale → lib/Result}/style/index.js +0 -0
- package/lib/Result/unauthorized.d.ts +2 -0
- package/lib/Result/unauthorized.js +239 -0
- package/lib/Skeleton/index.d.ts +5 -0
- package/lib/Skeleton/index.js +15 -0
- package/lib/Skeleton/style/index.css +511 -0
- package/lib/Skeleton/style/index.d.ts +1 -0
- package/{es/OldModal → lib/Skeleton}/style/index.js +0 -0
- package/lib/_util/statusUtils.d.ts +1 -1
- package/lib/index.d.ts +15 -7
- package/lib/index.js +49 -57
- package/lib/locale-provider/LocaleReceiver.d.ts +20 -0
- package/lib/locale-provider/LocaleReceiver.js +83 -0
- package/lib/locale-provider/ar_EG.d.ts +2 -0
- package/lib/locale-provider/ar_EG.js +13 -0
- package/lib/locale-provider/az_AZ.d.ts +2 -0
- package/lib/locale-provider/az_AZ.js +13 -0
- package/lib/locale-provider/bg_BG.d.ts +2 -0
- package/lib/locale-provider/bg_BG.js +13 -0
- package/lib/locale-provider/bn_BD.d.ts +2 -0
- package/lib/locale-provider/bn_BD.js +13 -0
- package/lib/locale-provider/by_BY.d.ts +2 -0
- package/lib/locale-provider/by_BY.js +13 -0
- package/lib/locale-provider/ca_ES.d.ts +2 -0
- package/lib/locale-provider/ca_ES.js +13 -0
- package/lib/locale-provider/context.d.ts +7 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/cs_CZ.d.ts +2 -0
- package/lib/locale-provider/cs_CZ.js +13 -0
- package/lib/locale-provider/da_DK.d.ts +2 -0
- package/lib/locale-provider/da_DK.js +13 -0
- package/lib/locale-provider/de_DE.d.ts +2 -0
- package/lib/locale-provider/de_DE.js +13 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/el_GR.d.ts +2 -0
- package/lib/locale-provider/el_GR.js +13 -0
- package/lib/locale-provider/en_GB.d.ts +2 -0
- package/lib/locale-provider/en_GB.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/es_ES.d.ts +2 -0
- package/lib/locale-provider/es_ES.js +13 -0
- package/lib/locale-provider/et_EE.d.ts +2 -0
- package/lib/locale-provider/et_EE.js +13 -0
- package/lib/locale-provider/fa_IR.d.ts +2 -0
- package/lib/locale-provider/fa_IR.js +13 -0
- package/lib/locale-provider/fi_FI.d.ts +2 -0
- package/lib/locale-provider/fi_FI.js +13 -0
- package/lib/locale-provider/fr_BE.d.ts +2 -0
- package/lib/locale-provider/fr_BE.js +13 -0
- package/lib/locale-provider/fr_CA.d.ts +2 -0
- package/lib/locale-provider/fr_CA.js +13 -0
- package/lib/locale-provider/fr_FR.d.ts +2 -0
- package/lib/locale-provider/fr_FR.js +13 -0
- package/lib/locale-provider/ga_IE.d.ts +2 -0
- package/lib/locale-provider/ga_IE.js +13 -0
- package/lib/locale-provider/gl_ES.d.ts +2 -0
- package/lib/locale-provider/gl_ES.js +13 -0
- package/lib/locale-provider/he_IL.d.ts +2 -0
- package/lib/locale-provider/he_IL.js +13 -0
- package/lib/locale-provider/hi_IN.d.ts +2 -0
- package/lib/locale-provider/hi_IN.js +13 -0
- package/lib/locale-provider/hr_HR.d.ts +2 -0
- package/lib/locale-provider/hr_HR.js +13 -0
- package/lib/locale-provider/hu_HU.d.ts +2 -0
- package/lib/locale-provider/hu_HU.js +13 -0
- package/lib/locale-provider/hy_AM.d.ts +2 -0
- package/lib/locale-provider/hy_AM.js +13 -0
- package/lib/locale-provider/id_ID.d.ts +2 -0
- package/lib/locale-provider/id_ID.js +13 -0
- package/lib/locale-provider/index.d.ts +61 -0
- package/lib/locale-provider/index.js +90 -0
- package/lib/locale-provider/is_IS.d.ts +2 -0
- package/lib/locale-provider/is_IS.js +13 -0
- package/lib/locale-provider/it_IT.d.ts +2 -0
- package/lib/locale-provider/it_IT.js +13 -0
- package/lib/locale-provider/ja_JP.d.ts +2 -0
- package/lib/locale-provider/ja_JP.js +13 -0
- package/lib/locale-provider/ka_GE.d.ts +2 -0
- package/lib/locale-provider/ka_GE.js +13 -0
- package/lib/locale-provider/kk_KZ.d.ts +2 -0
- package/lib/locale-provider/kk_KZ.js +13 -0
- package/lib/locale-provider/km_KH.d.ts +2 -0
- package/lib/locale-provider/km_KH.js +13 -0
- package/lib/locale-provider/kmr_IQ.d.ts +2 -0
- package/lib/locale-provider/kmr_IQ.js +13 -0
- package/lib/locale-provider/kn_IN.d.ts +2 -0
- package/lib/locale-provider/kn_IN.js +13 -0
- package/lib/locale-provider/ko_KR.d.ts +2 -0
- package/lib/locale-provider/ko_KR.js +13 -0
- package/lib/locale-provider/ku_IQ.d.ts +2 -0
- package/lib/locale-provider/ku_IQ.js +13 -0
- package/lib/locale-provider/lt_LT.d.ts +2 -0
- package/lib/locale-provider/lt_LT.js +13 -0
- package/lib/locale-provider/lv_LV.d.ts +2 -0
- package/lib/locale-provider/lv_LV.js +13 -0
- package/lib/locale-provider/mk_MK.d.ts +2 -0
- package/lib/locale-provider/mk_MK.js +13 -0
- package/lib/locale-provider/ml_IN.d.ts +2 -0
- package/lib/locale-provider/ml_IN.js +13 -0
- package/lib/locale-provider/mn_MN.d.ts +2 -0
- package/lib/locale-provider/mn_MN.js +13 -0
- package/lib/locale-provider/ms_MY.d.ts +2 -0
- package/lib/locale-provider/ms_MY.js +13 -0
- package/lib/locale-provider/nb_NO.d.ts +2 -0
- package/lib/locale-provider/nb_NO.js +13 -0
- package/lib/locale-provider/ne_NP.d.ts +2 -0
- package/lib/locale-provider/ne_NP.js +13 -0
- package/lib/locale-provider/nl_BE.d.ts +2 -0
- package/lib/locale-provider/nl_BE.js +13 -0
- package/lib/locale-provider/nl_NL.d.ts +2 -0
- package/lib/locale-provider/nl_NL.js +13 -0
- package/lib/locale-provider/pl_PL.d.ts +2 -0
- package/lib/locale-provider/pl_PL.js +13 -0
- package/lib/locale-provider/pt_BR.d.ts +2 -0
- package/lib/locale-provider/pt_BR.js +13 -0
- package/lib/locale-provider/pt_PT.d.ts +2 -0
- package/lib/locale-provider/pt_PT.js +13 -0
- package/lib/locale-provider/ro_RO.d.ts +2 -0
- package/lib/locale-provider/ro_RO.js +13 -0
- package/lib/locale-provider/ru_RU.d.ts +2 -0
- package/lib/locale-provider/ru_RU.js +13 -0
- package/lib/locale-provider/si_LK.d.ts +2 -0
- package/lib/locale-provider/si_LK.js +13 -0
- package/lib/locale-provider/sk_SK.d.ts +2 -0
- package/lib/locale-provider/sk_SK.js +13 -0
- package/lib/locale-provider/sl_SI.d.ts +2 -0
- package/lib/locale-provider/sl_SI.js +13 -0
- package/lib/locale-provider/sr_RS.d.ts +2 -0
- package/lib/locale-provider/sr_RS.js +13 -0
- package/lib/locale-provider/style/index.css +511 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/{es/PopTable → lib/locale-provider}/style/index.js +0 -0
- package/lib/locale-provider/sv_SE.d.ts +2 -0
- package/lib/locale-provider/sv_SE.js +13 -0
- package/lib/locale-provider/ta_IN.d.ts +2 -0
- package/lib/locale-provider/ta_IN.js +13 -0
- package/lib/locale-provider/th_TH.d.ts +2 -0
- package/lib/locale-provider/th_TH.js +13 -0
- package/lib/locale-provider/tk_TK.d.ts +2 -0
- package/lib/locale-provider/tk_TK.js +13 -0
- package/lib/locale-provider/tr_TR.d.ts +2 -0
- package/lib/locale-provider/tr_TR.js +13 -0
- package/lib/locale-provider/uk_UA.d.ts +2 -0
- package/lib/locale-provider/uk_UA.js +13 -0
- package/lib/locale-provider/ur_PK.d.ts +2 -0
- package/lib/locale-provider/ur_PK.js +13 -0
- package/lib/locale-provider/vi_VN.d.ts +2 -0
- package/lib/locale-provider/vi_VN.js +13 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/locale-provider/zh_HK.d.ts +2 -0
- package/lib/locale-provider/zh_HK.js +13 -0
- package/lib/locale-provider/zh_TW.d.ts +2 -0
- package/lib/locale-provider/zh_TW.js +13 -0
- package/lib/message/index.d.ts +6 -6
- package/package.json +1 -1
- package/dist/CardTable/card/TextGray.d.ts +0 -2
- package/dist/CardTable/card/TextWhiteBorder.d.ts +0 -2
- package/dist/CkFilter/baseFilter/NestedFilter.d.ts +0 -2
- package/dist/CkFilter/baseFilter/filterMenu.d.ts +0 -2
- package/dist/CkFilter/baseFilter/index.d.ts +0 -2
- package/dist/CkFilter/baseFilter/moreFilters.d.ts +0 -2
- package/dist/CkFilter/complexFilter/drawer.d.ts +0 -2
- package/dist/CkFilter/complexFilter/index.d.ts +0 -2
- package/dist/CkFilter/complexFilter/saveModal.d.ts +0 -5
- package/dist/CkFilter/components/CascaderFilter.d.ts +0 -8
- package/dist/CkFilter/components/CheckboxTags.d.ts +0 -6
- package/dist/CkFilter/components/Controls.d.ts +0 -2
- package/dist/CkFilter/components/CustomModal.d.ts +0 -2
- package/dist/CkFilter/components/DragBox/DndContainer.d.ts +0 -5
- package/dist/CkFilter/components/DragBox/index.d.ts +0 -7
- package/dist/CkFilter/components/DragBox/sortableBox.d.ts +0 -5
- package/dist/CkFilter/components/DragBox/sortableItem.d.ts +0 -2
- package/dist/CkFilter/components/Nested.d.ts +0 -7
- package/dist/CkFilter/components/filterTypes.d.ts +0 -2
- package/dist/CkFilter/components/modal.d.ts +0 -2
- package/dist/CkFilter/components/modalBack.d.ts +0 -2
- package/dist/CkFilter/context.d.ts +0 -3
- package/dist/CkFilter/customFilter/drawer.d.ts +0 -2
- package/dist/CkFilter/customFilter/index.d.ts +0 -2
- package/dist/CkFilter/customFilter/radioGroup.d.ts +0 -2
- package/dist/CkFilter/demos/basic.d.ts +0 -2
- package/dist/CkFilter/demos/designSupplier.d.ts +0 -6
- package/dist/CkFilter/filter.d.ts +0 -3
- package/dist/CkFilter/index.d.ts +0 -2
- package/dist/CkFilter/style/index.d.ts +0 -1
- package/dist/CkFilter/utils.d.ts +0 -10
- package/dist/Filter/Popover.d.ts +0 -3
- package/dist/Filter/baseFilter/Popover.d.ts +0 -2
- package/dist/Filter/baseFilter/ToggleFilter.d.ts +0 -5
- package/dist/Filter/baseFilter/index.d.ts +0 -2
- package/dist/Filter/complex/ComplexFilter.d.ts +0 -2
- package/dist/Filter/complex/ComplexItem.d.ts +0 -2
- package/dist/Filter/components/Checkbox.d.ts +0 -3
- package/dist/Filter/components/Date.d.ts +0 -2
- package/dist/Filter/components/Input.d.ts +0 -2
- package/dist/Filter/components/Select.d.ts +0 -2
- package/dist/Filter/components/Tree.d.ts +0 -2
- package/dist/Filter/components/header.d.ts +0 -2
- package/dist/Filter/components/index.d.ts +0 -6
- package/dist/Filter/context.d.ts +0 -3
- package/dist/Filter/demos/basic.d.ts +0 -2
- package/dist/Filter/edit/editFilter.d.ts +0 -2
- package/dist/Filter/index.d.ts +0 -3
- package/dist/Filter/popContext.d.ts +0 -3
- package/dist/Filter/remember.d.ts +0 -2
- package/dist/Filter/style/index.d.ts +0 -1
- package/dist/LmTable/ImgList/body.d.ts +0 -2
- package/dist/LmTable/ImgList/cardCell.d.ts +0 -2
- package/dist/LmTable/ImgList/context.d.ts +0 -2
- package/dist/LmTable/ImgList/empty.d.ts +0 -2
- package/dist/LmTable/ImgList/footer.d.ts +0 -4
- package/dist/LmTable/ImgList/imgCell.d.ts +0 -2
- package/dist/LmTable/ImgList/imgTable.d.ts +0 -3
- package/dist/LmTable/ImgList/index.d.ts +0 -2
- package/dist/Locale/index.d.ts +0 -6
- package/dist/Locale/style/index.d.ts +0 -1
- package/dist/OldModal/add.d.ts +0 -2
- package/dist/OldModal/confirm.d.ts +0 -8
- package/dist/OldModal/demos/basic.d.ts +0 -2
- package/dist/OldModal/edit.d.ts +0 -2
- package/dist/OldModal/exportModal.d.ts +0 -20
- package/dist/OldModal/index.d.ts +0 -11
- package/dist/OldModal/style/index.d.ts +0 -1
- package/dist/PopTable/BseTable.d.ts +0 -3
- package/dist/PopTable/demos/basic.d.ts +0 -2
- package/dist/PopTable/index.d.ts +0 -2
- package/dist/PopTable/style/index.d.ts +0 -1
- package/dist/ProTable/ImgList/body.d.ts +0 -2
- package/dist/ProTable/ImgList/cardCell.d.ts +0 -2
- package/dist/ProTable/ImgList/context.d.ts +0 -2
- package/dist/ProTable/ImgList/empty.d.ts +0 -2
- package/dist/ProTable/ImgList/footer.d.ts +0 -2
- package/dist/ProTable/ImgList/imgCell.d.ts +0 -2
- package/dist/ProTable/ImgList/imgTable.d.ts +0 -3
- package/dist/ProTable/ImgList/index.d.ts +0 -2
- package/dist/ProTable/Table.d.ts +0 -4
- package/dist/ProTable/VList.d.ts +0 -13
- package/dist/ProTable/autosize.d.ts +0 -25
- package/dist/ProTable/context.d.ts +0 -2
- package/dist/ProTable/demos/basic.d.ts +0 -2
- package/dist/ProTable/demos/img-basic.d.ts +0 -2
- package/dist/ProTable/detectElementResize.d.ts +0 -16
- package/dist/ProTable/index.d.ts +0 -2
- package/dist/ProTable/resetConfig.d.ts +0 -30
- package/dist/ProTable/style/index.d.ts +0 -1
- package/dist/TableRender/demos/basic.d.ts +0 -2
- package/dist/TableRender/index.d.ts +0 -1
- package/dist/TableRender/state.d.ts +0 -2
- package/dist/TableRender/style/index.d.ts +0 -1
- package/es/CardTable/card/TextGray.js +0 -18
- package/es/CardTable/card/TextWhiteBorder.js +0 -18
- package/es/CkFilter/README.md.old +0 -137
- package/es/CkFilter/baseFilter/NestedFilter.js +0 -137
- package/es/CkFilter/baseFilter/filterMenu.js +0 -226
- package/es/CkFilter/baseFilter/index.js +0 -94
- package/es/CkFilter/baseFilter/moreFilters.js +0 -237
- package/es/CkFilter/complexFilter/drawer.js +0 -398
- package/es/CkFilter/complexFilter/index.js +0 -69
- package/es/CkFilter/complexFilter/saveModal.js +0 -148
- package/es/CkFilter/components/CascaderFilter.js +0 -139
- package/es/CkFilter/components/CheckboxTags.js +0 -53
- package/es/CkFilter/components/Controls.js +0 -53
- package/es/CkFilter/components/CustomModal.js +0 -229
- package/es/CkFilter/components/DragBox/DndContainer.js +0 -49
- package/es/CkFilter/components/DragBox/index.js +0 -63
- package/es/CkFilter/components/DragBox/sortableBox.js +0 -24
- package/es/CkFilter/components/DragBox/sortableItem.js +0 -111
- package/es/CkFilter/components/Nested.js +0 -90
- package/es/CkFilter/components/filterTypes.js +0 -848
- package/es/CkFilter/components/modal.js +0 -294
- package/es/CkFilter/components/modalBack.js +0 -260
- package/es/CkFilter/context.js +0 -174
- package/es/CkFilter/customFilter/drawer.js +0 -390
- package/es/CkFilter/customFilter/index.js +0 -129
- package/es/CkFilter/customFilter/radioGroup.js +0 -64
- package/es/CkFilter/filter.js +0 -189
- package/es/CkFilter/icon_placeholder.png +0 -0
- package/es/CkFilter/index.js +0 -13
- package/es/CkFilter/style/index.css +0 -1121
- package/es/CkFilter/utils.js +0 -65
- package/es/Filter/Popover.js +0 -199
- package/es/Filter/README.md.old +0 -144
- package/es/Filter/baseFilter/Popover.js +0 -213
- package/es/Filter/baseFilter/ToggleFilter.js +0 -111
- package/es/Filter/baseFilter/index.js +0 -100
- package/es/Filter/complex/ComplexFilter.js +0 -149
- package/es/Filter/complex/ComplexItem.js +0 -157
- package/es/Filter/components/Checkbox.js +0 -94
- package/es/Filter/components/Date.js +0 -87
- package/es/Filter/components/Input.js +0 -63
- package/es/Filter/components/Select.js +0 -89
- package/es/Filter/components/Tree.js +0 -64
- package/es/Filter/components/header.js +0 -60
- package/es/Filter/components/index.js +0 -47
- package/es/Filter/context.js +0 -15
- package/es/Filter/edit/editFilter.js +0 -273
- package/es/Filter/index.js +0 -174
- package/es/Filter/popContext.js +0 -15
- package/es/Filter/remember.js +0 -136
- package/es/Filter/style/index.css +0 -782
- package/es/LmTable/ImgList/body.js +0 -111
- package/es/LmTable/ImgList/cardCell.js +0 -192
- package/es/LmTable/ImgList/context.js +0 -12
- package/es/LmTable/ImgList/empty.js +0 -24
- package/es/LmTable/ImgList/footer.js +0 -61
- package/es/LmTable/ImgList/imgCell.js +0 -187
- package/es/LmTable/ImgList/imgTable.js +0 -133
- package/es/LmTable/ImgList/index.js +0 -13
- package/es/Locale/index.d.ts +0 -6
- package/es/Locale/index.js +0 -9
- package/es/Locale/style/index.css +0 -141
- package/es/OldModal/README.md.old +0 -27
- package/es/OldModal/add.js +0 -68
- package/es/OldModal/confirm.js +0 -88
- package/es/OldModal/edit.js +0 -44
- package/es/OldModal/exportModal.js +0 -300
- package/es/OldModal/index.js +0 -24
- package/es/OldModal/style/index.css +0 -119
- package/es/PopTable/BseTable.js +0 -113
- package/es/PopTable/README.md.old +0 -30
- package/es/PopTable/index.js +0 -151
- package/es/PopTable/style/index.css +0 -721
- package/es/ProTable/ImgList/body.js +0 -111
- package/es/ProTable/ImgList/cardCell.js +0 -192
- package/es/ProTable/ImgList/context.js +0 -12
- package/es/ProTable/ImgList/empty.js +0 -24
- package/es/ProTable/ImgList/footer.js +0 -59
- package/es/ProTable/ImgList/imgCell.js +0 -181
- package/es/ProTable/ImgList/imgTable.js +0 -110
- package/es/ProTable/ImgList/index.js +0 -13
- package/es/ProTable/README.md.old +0 -141
- package/es/ProTable/Table.js +0 -334
- package/es/ProTable/VList.js +0 -594
- package/es/ProTable/autosize.js +0 -167
- package/es/ProTable/context.js +0 -12
- package/es/ProTable/detectElementResize.js +0 -225
- package/es/ProTable/index.js +0 -19
- package/es/ProTable/resetConfig.js +0 -39
- package/es/ProTable/style/index.css +0 -1082
- package/es/ProTable/style/index.js +0 -3
- package/es/TableRender/README.md.old +0 -20
- package/es/TableRender/index.js +0 -15
- package/es/TableRender/state.js +0 -72
- package/es/TableRender/style/index.css +0 -0
- package/es/TableRender/style/index.js +0 -3
- package/lib/CardTable/card/TextGray.js +0 -18
- package/lib/CardTable/card/TextWhiteBorder.js +0 -18
- package/lib/CkFilter/README.md.old +0 -137
- package/lib/CkFilter/baseFilter/NestedFilter.js +0 -137
- package/lib/CkFilter/baseFilter/filterMenu.js +0 -226
- package/lib/CkFilter/baseFilter/index.js +0 -94
- package/lib/CkFilter/baseFilter/moreFilters.js +0 -237
- package/lib/CkFilter/complexFilter/drawer.js +0 -398
- package/lib/CkFilter/complexFilter/index.js +0 -69
- package/lib/CkFilter/complexFilter/saveModal.js +0 -148
- package/lib/CkFilter/components/CascaderFilter.js +0 -139
- package/lib/CkFilter/components/CheckboxTags.js +0 -53
- package/lib/CkFilter/components/Controls.js +0 -53
- package/lib/CkFilter/components/CustomModal.js +0 -229
- package/lib/CkFilter/components/DragBox/DndContainer.js +0 -49
- package/lib/CkFilter/components/DragBox/index.js +0 -63
- package/lib/CkFilter/components/DragBox/sortableBox.js +0 -24
- package/lib/CkFilter/components/DragBox/sortableItem.js +0 -111
- package/lib/CkFilter/components/Nested.js +0 -90
- package/lib/CkFilter/components/filterTypes.js +0 -848
- package/lib/CkFilter/components/modal.js +0 -294
- package/lib/CkFilter/components/modalBack.js +0 -260
- package/lib/CkFilter/context.js +0 -174
- package/lib/CkFilter/customFilter/drawer.js +0 -390
- package/lib/CkFilter/customFilter/index.js +0 -129
- package/lib/CkFilter/customFilter/radioGroup.js +0 -64
- package/lib/CkFilter/filter.js +0 -189
- package/lib/CkFilter/icon_placeholder.png +0 -0
- package/lib/CkFilter/index.js +0 -13
- package/lib/CkFilter/style/index.css +0 -1121
- package/lib/CkFilter/style/index.js +0 -3
- package/lib/CkFilter/utils.js +0 -65
- package/lib/Filter/Popover.js +0 -199
- package/lib/Filter/README.md.old +0 -144
- package/lib/Filter/baseFilter/Popover.js +0 -213
- package/lib/Filter/baseFilter/ToggleFilter.js +0 -111
- package/lib/Filter/baseFilter/index.js +0 -100
- package/lib/Filter/complex/ComplexFilter.js +0 -149
- package/lib/Filter/complex/ComplexItem.js +0 -157
- package/lib/Filter/components/Checkbox.js +0 -94
- package/lib/Filter/components/Date.js +0 -87
- package/lib/Filter/components/Input.js +0 -63
- package/lib/Filter/components/Select.js +0 -89
- package/lib/Filter/components/Tree.js +0 -64
- package/lib/Filter/components/header.js +0 -60
- package/lib/Filter/components/index.js +0 -47
- package/lib/Filter/context.js +0 -15
- package/lib/Filter/edit/editFilter.js +0 -273
- package/lib/Filter/index.js +0 -174
- package/lib/Filter/popContext.js +0 -15
- package/lib/Filter/remember.js +0 -136
- package/lib/Filter/style/index.css +0 -782
- package/lib/Filter/style/index.js +0 -3
- package/lib/LmTable/ImgList/body.js +0 -111
- package/lib/LmTable/ImgList/cardCell.js +0 -192
- package/lib/LmTable/ImgList/context.js +0 -12
- package/lib/LmTable/ImgList/empty.js +0 -24
- package/lib/LmTable/ImgList/footer.js +0 -61
- package/lib/LmTable/ImgList/imgCell.js +0 -187
- package/lib/LmTable/ImgList/imgTable.js +0 -133
- package/lib/LmTable/ImgList/index.js +0 -13
- package/lib/Locale/index.d.ts +0 -6
- package/lib/Locale/index.js +0 -22
- package/lib/Locale/style/index.css +0 -141
- package/lib/Locale/style/index.js +0 -3
- package/lib/OldModal/README.md.old +0 -27
- package/lib/OldModal/add.js +0 -68
- package/lib/OldModal/confirm.js +0 -88
- package/lib/OldModal/edit.js +0 -44
- package/lib/OldModal/exportModal.js +0 -300
- package/lib/OldModal/index.js +0 -24
- package/lib/OldModal/style/index.css +0 -119
- package/lib/OldModal/style/index.js +0 -3
- package/lib/PopTable/BseTable.js +0 -113
- package/lib/PopTable/README.md.old +0 -30
- package/lib/PopTable/index.js +0 -151
- package/lib/PopTable/style/index.css +0 -721
- package/lib/PopTable/style/index.js +0 -3
- package/lib/ProTable/ImgList/body.js +0 -111
- package/lib/ProTable/ImgList/cardCell.js +0 -192
- package/lib/ProTable/ImgList/context.js +0 -12
- package/lib/ProTable/ImgList/empty.js +0 -24
- package/lib/ProTable/ImgList/footer.js +0 -59
- package/lib/ProTable/ImgList/imgCell.js +0 -181
- package/lib/ProTable/ImgList/imgTable.js +0 -110
- package/lib/ProTable/ImgList/index.js +0 -13
- package/lib/ProTable/README.md.old +0 -141
- package/lib/ProTable/Table.js +0 -334
- package/lib/ProTable/VList.js +0 -594
- package/lib/ProTable/autosize.js +0 -167
- package/lib/ProTable/context.js +0 -12
- package/lib/ProTable/detectElementResize.js +0 -225
- package/lib/ProTable/index.js +0 -19
- package/lib/ProTable/resetConfig.js +0 -39
- package/lib/ProTable/style/index.css +0 -1082
- package/lib/ProTable/style/index.js +0 -3
- package/lib/TableRender/README.md.old +0 -20
- package/lib/TableRender/index.js +0 -15
- package/lib/TableRender/state.js +0 -72
- package/lib/TableRender/style/index.css +0 -0
- package/lib/TableRender/style/index.js +0 -3
package/lib/ProTable/VList.js
DELETED
|
@@ -1,594 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.scrollTo = exports.VList = void 0;
|
|
11
|
-
|
|
12
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
-
|
|
14
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
-
|
|
16
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
-
|
|
18
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
19
|
-
|
|
20
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
|
-
var _lodash = require("lodash");
|
|
23
|
-
|
|
24
|
-
var _reactResizable = require("react-resizable");
|
|
25
|
-
|
|
26
|
-
var _context = _interopRequireDefault(require("./context"));
|
|
27
|
-
|
|
28
|
-
var _excluded = ["width", "onResize", "children"],
|
|
29
|
-
_excluded2 = ["children"],
|
|
30
|
-
_excluded3 = ["children", "style"],
|
|
31
|
-
_excluded4 = ["children"],
|
|
32
|
-
_excluded5 = ["style", "children"],
|
|
33
|
-
_excluded6 = ["width"];
|
|
34
|
-
// ===============reducer ============== //
|
|
35
|
-
var initialState = {
|
|
36
|
-
// 行高度
|
|
37
|
-
rowHeight: 0,
|
|
38
|
-
// 当前的scrollTop
|
|
39
|
-
curScrollTop: 0,
|
|
40
|
-
// 总行数
|
|
41
|
-
totalLen: 0
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
function reducer(state, action) {
|
|
45
|
-
var curScrollTop = action.curScrollTop,
|
|
46
|
-
curScrollLeft = action.curScrollLeft,
|
|
47
|
-
rowHeight = action.rowHeight,
|
|
48
|
-
totalLen = action.totalLen,
|
|
49
|
-
ifScrollTopClear = action.ifScrollTopClear,
|
|
50
|
-
isScrolling = action.isScrolling;
|
|
51
|
-
var stateScrollTop = state.curScrollTop;
|
|
52
|
-
|
|
53
|
-
switch (action.type) {
|
|
54
|
-
// 滚动条是否滚动中
|
|
55
|
-
case 'changeScrolling':
|
|
56
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
57
|
-
isScrolling: isScrolling
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
case 'changeTrs':
|
|
61
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
62
|
-
curScrollTop: curScrollTop
|
|
63
|
-
});
|
|
64
|
-
// 滚动横向滚动条 即 改变渲染的列表operate
|
|
65
|
-
|
|
66
|
-
case 'changeOperate':
|
|
67
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
68
|
-
curScrollLeft: curScrollLeft
|
|
69
|
-
});
|
|
70
|
-
// 初始化每行的高度, 表格总高度, 渲染的条数
|
|
71
|
-
|
|
72
|
-
case 'initHeight':
|
|
73
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
74
|
-
rowHeight: rowHeight
|
|
75
|
-
});
|
|
76
|
-
// 更改totalLen
|
|
77
|
-
|
|
78
|
-
case 'changeTotalLen':
|
|
79
|
-
if (totalLen === 0) {
|
|
80
|
-
stateScrollTop = 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
84
|
-
totalLen: totalLen,
|
|
85
|
-
curScrollTop: stateScrollTop
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
case 'reset':
|
|
89
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
90
|
-
curScrollTop: ifScrollTopClear ? 0 : state.curScrollTop
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
default:
|
|
94
|
-
throw new Error();
|
|
95
|
-
}
|
|
96
|
-
} // ============== 全局常量 ================== //
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var DEFAULT_VID = 'vtable';
|
|
100
|
-
var vidMap = new Map(); // =============== context ============== //
|
|
101
|
-
|
|
102
|
-
var ScrollContext = /*#__PURE__*/(0, _react.createContext)({
|
|
103
|
-
dispatch: undefined,
|
|
104
|
-
renderLen: 1,
|
|
105
|
-
start: 0,
|
|
106
|
-
offsetStart: 0,
|
|
107
|
-
// =============
|
|
108
|
-
rowHeight: initialState.rowHeight,
|
|
109
|
-
totalLen: 0,
|
|
110
|
-
vid: DEFAULT_VID
|
|
111
|
-
});
|
|
112
|
-
var HeaderContext = /*#__PURE__*/(0, _react.createContext)(); // ============= 组件 =================== //
|
|
113
|
-
|
|
114
|
-
var HeaderWrapper = function HeaderWrapper(props) {
|
|
115
|
-
var _useState = (0, _react.useState)(),
|
|
116
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
117
|
-
useKeys = _useState2[0],
|
|
118
|
-
setKeys = _useState2[1];
|
|
119
|
-
|
|
120
|
-
var _useContext = (0, _react.useContext)(_context.default),
|
|
121
|
-
width = _useContext.width;
|
|
122
|
-
|
|
123
|
-
var changeKeys = function changeKeys() {
|
|
124
|
-
setKeys(Date.now());
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
(0, _react.useEffect)(function () {
|
|
128
|
-
changeKeys();
|
|
129
|
-
}, [width]); // console.log('每列的偏移', props.children[0].props.stickyOffsets);
|
|
130
|
-
|
|
131
|
-
return /*#__PURE__*/_react.default.createElement(HeaderContext.Provider, {
|
|
132
|
-
value: {
|
|
133
|
-
changeKeys: changeKeys
|
|
134
|
-
}
|
|
135
|
-
}, /*#__PURE__*/_react.default.createElement("thead", (0, _extends2.default)({
|
|
136
|
-
key: useKeys
|
|
137
|
-
}, props)));
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
var HeaderCell = function HeaderCell(props) {
|
|
141
|
-
var width = props.width,
|
|
142
|
-
onResize = props.onResize,
|
|
143
|
-
children = props.children,
|
|
144
|
-
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
145
|
-
|
|
146
|
-
var _useState3 = (0, _react.useState)(width || 0),
|
|
147
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
148
|
-
useWidth = _useState4[0],
|
|
149
|
-
setWidth = _useState4[1];
|
|
150
|
-
|
|
151
|
-
var _useContext2 = (0, _react.useContext)(HeaderContext),
|
|
152
|
-
changeKeys = _useContext2.changeKeys;
|
|
153
|
-
|
|
154
|
-
var handleResize = function handleResize(e, _ref) {
|
|
155
|
-
var size = _ref.size;
|
|
156
|
-
var nValue = size.width;
|
|
157
|
-
setWidth(nValue);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
var handleResizeStop = function handleResizeStop(e, _ref2) {
|
|
161
|
-
var size = _ref2.size;
|
|
162
|
-
var nValue = size.width; // const sc = width - nValue > 0 ? width - nValue : 1;
|
|
163
|
-
|
|
164
|
-
onResize === null || onResize === void 0 ? void 0 : onResize(width, nValue); // 触发重新渲染列头单元格,重新计算拖拽位置
|
|
165
|
-
|
|
166
|
-
changeKeys === null || changeKeys === void 0 ? void 0 : changeKeys();
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
if (!width) {
|
|
170
|
-
return /*#__PURE__*/_react.default.createElement("th", restProps, /*#__PURE__*/_react.default.createElement("div", {
|
|
171
|
-
className: "text-overflow"
|
|
172
|
-
}, children));
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
return /*#__PURE__*/_react.default.createElement("th", restProps, /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
-
className: "text-overflow"
|
|
177
|
-
}, children), /*#__PURE__*/_react.default.createElement(_reactResizable.ResizableBox, {
|
|
178
|
-
className: "yf_resizable_bar",
|
|
179
|
-
width: useWidth,
|
|
180
|
-
height: 0,
|
|
181
|
-
handle: /*#__PURE__*/_react.default.createElement("div", {
|
|
182
|
-
className: "react-resizable-handle",
|
|
183
|
-
onClick: function onClick(e) {
|
|
184
|
-
e.stopPropagation();
|
|
185
|
-
}
|
|
186
|
-
}),
|
|
187
|
-
onResize: handleResize,
|
|
188
|
-
onResizeStop: handleResizeStop,
|
|
189
|
-
minConstraints: [40, 0] // draggableOpts={{ enableUserSelectHack: false }}
|
|
190
|
-
|
|
191
|
-
}));
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
var VCell = function VCell(props) {
|
|
195
|
-
var children = props.children,
|
|
196
|
-
restProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
197
|
-
return /*#__PURE__*/_react.default.createElement("td", restProps, children);
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
var VRow = function VRow(props, ref) {
|
|
201
|
-
var _useContext3 = (0, _react.useContext)(ScrollContext),
|
|
202
|
-
dispatch = _useContext3.dispatch,
|
|
203
|
-
rowHeight = _useContext3.rowHeight,
|
|
204
|
-
totalLen = _useContext3.totalLen,
|
|
205
|
-
vid = _useContext3.vid;
|
|
206
|
-
|
|
207
|
-
var children = props.children,
|
|
208
|
-
style = props.style,
|
|
209
|
-
restProps = (0, _objectWithoutProperties2.default)(props, _excluded3);
|
|
210
|
-
var trRef = (0, _react.useRef)(null);
|
|
211
|
-
(0, _react.useEffect)(function () {
|
|
212
|
-
var initHeight = function initHeight(tempRef) {
|
|
213
|
-
var _tempRef$current;
|
|
214
|
-
|
|
215
|
-
if ((tempRef === null || tempRef === void 0 ? void 0 : (_tempRef$current = tempRef.current) === null || _tempRef$current === void 0 ? void 0 : _tempRef$current.offsetHeight) && !rowHeight && totalLen) {
|
|
216
|
-
var _tempRef$current$offs, _tempRef$current2;
|
|
217
|
-
|
|
218
|
-
var tempRowHeight = (_tempRef$current$offs = tempRef === null || tempRef === void 0 ? void 0 : (_tempRef$current2 = tempRef.current) === null || _tempRef$current2 === void 0 ? void 0 : _tempRef$current2.offsetHeight) !== null && _tempRef$current$offs !== void 0 ? _tempRef$current$offs : 0;
|
|
219
|
-
vidMap.set(vid, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, vidMap.get(vid)), {}, {
|
|
220
|
-
rowItemHeight: tempRowHeight
|
|
221
|
-
}));
|
|
222
|
-
dispatch({
|
|
223
|
-
type: 'initHeight',
|
|
224
|
-
rowHeight: tempRowHeight
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
initHeight(Object.prototype.hasOwnProperty.call(ref, 'current') ? ref : trRef);
|
|
230
|
-
}, [trRef, dispatch, rowHeight, totalLen, ref, vid]);
|
|
231
|
-
return /*#__PURE__*/_react.default.createElement("tr", (0, _extends2.default)({}, restProps, {
|
|
232
|
-
ref: Object.prototype.hasOwnProperty.call(ref, 'current') ? ref : trRef,
|
|
233
|
-
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
|
|
234
|
-
height: rowHeight || 'auto',
|
|
235
|
-
boxSizing: 'border-box'
|
|
236
|
-
})
|
|
237
|
-
}), children);
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
var VWrapper = function VWrapper(props) {
|
|
241
|
-
var children = props.children,
|
|
242
|
-
restProps = (0, _objectWithoutProperties2.default)(props, _excluded4);
|
|
243
|
-
|
|
244
|
-
var _useContext4 = (0, _react.useContext)(ScrollContext),
|
|
245
|
-
renderLen = _useContext4.renderLen,
|
|
246
|
-
start = _useContext4.start,
|
|
247
|
-
dispatch = _useContext4.dispatch,
|
|
248
|
-
vid = _useContext4.vid,
|
|
249
|
-
totalLen = _useContext4.totalLen;
|
|
250
|
-
|
|
251
|
-
var contents = (0, _react.useMemo)(function () {
|
|
252
|
-
return children[1];
|
|
253
|
-
}, [children]);
|
|
254
|
-
var contentsLen = (0, _react.useMemo)(function () {
|
|
255
|
-
var _contents$length;
|
|
256
|
-
|
|
257
|
-
return (_contents$length = contents === null || contents === void 0 ? void 0 : contents.length) !== null && _contents$length !== void 0 ? _contents$length : 0;
|
|
258
|
-
}, [contents]);
|
|
259
|
-
(0, _react.useEffect)(function () {
|
|
260
|
-
if (totalLen !== contentsLen) {
|
|
261
|
-
dispatch({
|
|
262
|
-
type: 'changeTotalLen',
|
|
263
|
-
totalLen: contentsLen !== null && contentsLen !== void 0 ? contentsLen : 0
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
}, [contentsLen, dispatch, vid, totalLen]);
|
|
267
|
-
var tempNode = null;
|
|
268
|
-
|
|
269
|
-
if (Array.isArray(contents) && contents.length) {
|
|
270
|
-
tempNode = [children[0], contents.slice(start, start + (renderLen !== null && renderLen !== void 0 ? renderLen : 1)) // contents.slice(start, start + (renderLen ?? 1)).map((item) => {
|
|
271
|
-
// if (Array.isArray(item)) {
|
|
272
|
-
// // 兼容antd v4.3.5 --- rc-table 7.8.1及以下
|
|
273
|
-
// return item[0];
|
|
274
|
-
// }
|
|
275
|
-
// // 处理antd ^v4.4.0 --- rc-table ^7.8.2
|
|
276
|
-
// return item;
|
|
277
|
-
// }),
|
|
278
|
-
];
|
|
279
|
-
} else {
|
|
280
|
-
tempNode = children;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
return /*#__PURE__*/_react.default.createElement("tbody", restProps, tempNode);
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
var VTable = function VTable(props, otherParams) {
|
|
287
|
-
var _children$1$props$dat, _children$, _children$$props, _children$$props$data;
|
|
288
|
-
|
|
289
|
-
var style = props.style,
|
|
290
|
-
children = props.children,
|
|
291
|
-
rest = (0, _objectWithoutProperties2.default)(props, _excluded5);
|
|
292
|
-
var width = style.width,
|
|
293
|
-
restStyle = (0, _objectWithoutProperties2.default)(style, _excluded6);
|
|
294
|
-
|
|
295
|
-
var _ref3 = otherParams !== null && otherParams !== void 0 ? otherParams : {},
|
|
296
|
-
vid = _ref3.vid,
|
|
297
|
-
scrollY = _ref3.scrollY,
|
|
298
|
-
reachEnd = _ref3.reachEnd,
|
|
299
|
-
onScroll = _ref3.onScroll,
|
|
300
|
-
resetScrollTopWhenDataChange = _ref3.resetScrollTopWhenDataChange;
|
|
301
|
-
|
|
302
|
-
var _useReducer = (0, _react.useReducer)(reducer, initialState),
|
|
303
|
-
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
|
304
|
-
state = _useReducer2[0],
|
|
305
|
-
dispatch = _useReducer2[1];
|
|
306
|
-
|
|
307
|
-
var wrapTableRef = (0, _react.useRef)(null);
|
|
308
|
-
var tableRef = (0, _react.useRef)(null);
|
|
309
|
-
var ifChangeRef = (0, _react.useRef)(false); // 数据的总条数
|
|
310
|
-
|
|
311
|
-
var _useState5 = (0, _react.useState)((_children$1$props$dat = (_children$ = children[1]) === null || _children$ === void 0 ? void 0 : (_children$$props = _children$.props) === null || _children$$props === void 0 ? void 0 : (_children$$props$data = _children$$props.data) === null || _children$$props$data === void 0 ? void 0 : _children$$props$data.length) !== null && _children$1$props$dat !== void 0 ? _children$1$props$dat : 0),
|
|
312
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
313
|
-
totalLen = _useState6[0],
|
|
314
|
-
setTotalLen = _useState6[1];
|
|
315
|
-
|
|
316
|
-
(0, _react.useEffect)(function () {
|
|
317
|
-
setTotalLen(state.totalLen);
|
|
318
|
-
}, [state.totalLen]);
|
|
319
|
-
(0, _react.useEffect)(function () {
|
|
320
|
-
return function () {
|
|
321
|
-
vidMap.delete(vid);
|
|
322
|
-
};
|
|
323
|
-
}, [vid]); // 数据变更
|
|
324
|
-
|
|
325
|
-
(0, _react.useEffect)(function () {
|
|
326
|
-
var _children$2, _children$2$props, _children$2$props$dat;
|
|
327
|
-
|
|
328
|
-
ifChangeRef.current = true;
|
|
329
|
-
|
|
330
|
-
if ((0, _lodash.isNumber)((_children$2 = children[1]) === null || _children$2 === void 0 ? void 0 : (_children$2$props = _children$2.props) === null || _children$2$props === void 0 ? void 0 : (_children$2$props$dat = _children$2$props.data) === null || _children$2$props$dat === void 0 ? void 0 : _children$2$props$dat.length)) {
|
|
331
|
-
var _children$1$props$dat2, _children$3, _children$3$props, _children$3$props$dat;
|
|
332
|
-
|
|
333
|
-
dispatch({
|
|
334
|
-
type: 'changeTotalLen',
|
|
335
|
-
totalLen: (_children$1$props$dat2 = (_children$3 = children[1]) === null || _children$3 === void 0 ? void 0 : (_children$3$props = _children$3.props) === null || _children$3$props === void 0 ? void 0 : (_children$3$props$dat = _children$3$props.data) === null || _children$3$props$dat === void 0 ? void 0 : _children$3$props$dat.length) !== null && _children$1$props$dat2 !== void 0 ? _children$1$props$dat2 : 0
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
}, [children[1].props.data]); // table总高度
|
|
339
|
-
|
|
340
|
-
var tableHeight = (0, _react.useMemo)(function () {
|
|
341
|
-
var temp = 'auto';
|
|
342
|
-
|
|
343
|
-
if (state.rowHeight && totalLen) {
|
|
344
|
-
temp = state.rowHeight * totalLen;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
return temp;
|
|
348
|
-
}, [state.rowHeight, totalLen]); // table的scrollY值
|
|
349
|
-
|
|
350
|
-
var _useState7 = (0, _react.useState)(0),
|
|
351
|
-
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
352
|
-
tableScrollY = _useState8[0],
|
|
353
|
-
setTableScrollY = _useState8[1]; // tableScrollY 随scrollY / tableHeight 进行变更
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
(0, _react.useEffect)(function () {
|
|
357
|
-
var temp = 0;
|
|
358
|
-
|
|
359
|
-
if (typeof scrollY === 'string') {
|
|
360
|
-
var _wrapTableRef$current, _wrapTableRef$current2, _wrapTableRef$current3;
|
|
361
|
-
|
|
362
|
-
temp = (_wrapTableRef$current = (_wrapTableRef$current2 = wrapTableRef.current) === null || _wrapTableRef$current2 === void 0 ? void 0 : (_wrapTableRef$current3 = _wrapTableRef$current2.parentNode) === null || _wrapTableRef$current3 === void 0 ? void 0 : _wrapTableRef$current3.offsetHeight) !== null && _wrapTableRef$current !== void 0 ? _wrapTableRef$current : 0;
|
|
363
|
-
} else {
|
|
364
|
-
temp = scrollY;
|
|
365
|
-
} // if (isNumber(tableHeight) && tableHeight < temp) {
|
|
366
|
-
// temp = tableHeight;
|
|
367
|
-
// }
|
|
368
|
-
// 处理tableScrollY <= 0的情况
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
if (temp <= 0) {
|
|
372
|
-
temp = 0;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
setTableScrollY(temp);
|
|
376
|
-
}, [scrollY, tableHeight]); // 渲染的条数
|
|
377
|
-
|
|
378
|
-
var renderLen = (0, _react.useMemo)(function () {
|
|
379
|
-
var temp = 1;
|
|
380
|
-
|
|
381
|
-
if (state.rowHeight && totalLen && tableScrollY) {
|
|
382
|
-
if (tableScrollY <= 0) {
|
|
383
|
-
temp = 0;
|
|
384
|
-
} else {
|
|
385
|
-
var tempRenderLen = (tableScrollY / state.rowHeight || 0) + 1 + 20; // temp = tempRenderLen > totalLen ? totalLen : tempRenderLen;
|
|
386
|
-
|
|
387
|
-
temp = tempRenderLen;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
return temp;
|
|
392
|
-
}, [state.rowHeight, totalLen, tableScrollY]); // 渲染中的第一条
|
|
393
|
-
|
|
394
|
-
var start = state.rowHeight ? state.curScrollTop / state.rowHeight || 0 : 0; // 偏移量
|
|
395
|
-
|
|
396
|
-
var offsetStart = state.rowHeight ? state.curScrollTop % state.rowHeight : 0; // 用来优化向上滚动出现的空白
|
|
397
|
-
|
|
398
|
-
if (state.curScrollTop && state.rowHeight && state.curScrollTop > state.rowHeight) {
|
|
399
|
-
start -= 1;
|
|
400
|
-
offsetStart += state.rowHeight;
|
|
401
|
-
} else {
|
|
402
|
-
start = 0;
|
|
403
|
-
} // 数据变更 操作scrollTop
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
(0, _react.useEffect)(function () {
|
|
407
|
-
var _wrapTableRef$current4;
|
|
408
|
-
|
|
409
|
-
var scrollNode = (_wrapTableRef$current4 = wrapTableRef.current) === null || _wrapTableRef$current4 === void 0 ? void 0 : _wrapTableRef$current4.parentNode;
|
|
410
|
-
|
|
411
|
-
if (ifChangeRef === null || ifChangeRef === void 0 ? void 0 : ifChangeRef.current) {
|
|
412
|
-
ifChangeRef.current = false;
|
|
413
|
-
|
|
414
|
-
if (resetScrollTopWhenDataChange) {
|
|
415
|
-
// 重置scrollTop
|
|
416
|
-
if (scrollNode) {
|
|
417
|
-
scrollNode.scrollTop = 0;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
dispatch({
|
|
421
|
-
type: 'reset',
|
|
422
|
-
ifScrollTopClear: true
|
|
423
|
-
});
|
|
424
|
-
} else {
|
|
425
|
-
// 不重置scrollTop 不清空curScrollTop
|
|
426
|
-
dispatch({
|
|
427
|
-
type: 'reset',
|
|
428
|
-
ifScrollTopClear: false
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
if (vidMap.has(vid)) {
|
|
434
|
-
vidMap.set(vid, {
|
|
435
|
-
scrollNode: scrollNode
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
}, [totalLen, resetScrollTopWhenDataChange, vid, children]);
|
|
439
|
-
(0, _react.useEffect)(function () {
|
|
440
|
-
var _wrapTableRef$current5;
|
|
441
|
-
|
|
442
|
-
var timer = null;
|
|
443
|
-
var timeout = 100;
|
|
444
|
-
var throttleScroll = (0, _lodash.throttle)(function (e) {
|
|
445
|
-
var _e$target$scrollLeft, _e$target, _e$target$scrollTop, _e$target2, _e$target$scrollHeigh, _e$target3, _e$target$clientHeigh, _e$target4;
|
|
446
|
-
|
|
447
|
-
var scrollLeft = (_e$target$scrollLeft = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.scrollLeft) !== null && _e$target$scrollLeft !== void 0 ? _e$target$scrollLeft : 0;
|
|
448
|
-
var scrollTop = (_e$target$scrollTop = e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.scrollTop) !== null && _e$target$scrollTop !== void 0 ? _e$target$scrollTop : 0;
|
|
449
|
-
var scrollHeight = (_e$target$scrollHeigh = e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.scrollHeight) !== null && _e$target$scrollHeigh !== void 0 ? _e$target$scrollHeigh : 0;
|
|
450
|
-
var clientHeight = (_e$target$clientHeigh = e === null || e === void 0 ? void 0 : (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : _e$target4.clientHeight) !== null && _e$target$clientHeigh !== void 0 ? _e$target$clientHeigh : 0; // 到底了 没有滚动条就不会触发reachEnd. 建议设置scrolly高度少点或者数据量多点.
|
|
451
|
-
|
|
452
|
-
if (scrollTop === scrollHeight) {// reachEnd && reachEnd()
|
|
453
|
-
} else if (scrollTop + clientHeight >= scrollHeight) {
|
|
454
|
-
// 有滚动条的情况
|
|
455
|
-
reachEnd && reachEnd();
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
onScroll && onScroll(scrollTop, scrollLeft);
|
|
459
|
-
|
|
460
|
-
if (!timer) {
|
|
461
|
-
dispatch({
|
|
462
|
-
type: 'changeScrolling',
|
|
463
|
-
isScrolling: true
|
|
464
|
-
});
|
|
465
|
-
} else {
|
|
466
|
-
clearTimeout(timer);
|
|
467
|
-
timer = null;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
timer = setTimeout(function () {
|
|
471
|
-
dispatch({
|
|
472
|
-
type: 'changeScrolling',
|
|
473
|
-
isScrolling: false
|
|
474
|
-
});
|
|
475
|
-
timer = null;
|
|
476
|
-
}, timeout);
|
|
477
|
-
dispatch({
|
|
478
|
-
type: 'changeScrolling',
|
|
479
|
-
isScrolling: true
|
|
480
|
-
});
|
|
481
|
-
dispatch({
|
|
482
|
-
type: 'changeTrs',
|
|
483
|
-
curScrollTop: scrollTop
|
|
484
|
-
});
|
|
485
|
-
dispatch({
|
|
486
|
-
type: 'changeOperate',
|
|
487
|
-
curScrollLeft: scrollLeft
|
|
488
|
-
});
|
|
489
|
-
}, 60);
|
|
490
|
-
var ref = wrapTableRef === null || wrapTableRef === void 0 ? void 0 : (_wrapTableRef$current5 = wrapTableRef.current) === null || _wrapTableRef$current5 === void 0 ? void 0 : _wrapTableRef$current5.parentNode;
|
|
491
|
-
|
|
492
|
-
if (ref) {
|
|
493
|
-
ref.addEventListener('scroll', throttleScroll);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
return function () {
|
|
497
|
-
ref.removeEventListener('scroll', throttleScroll);
|
|
498
|
-
};
|
|
499
|
-
}, [onScroll, reachEnd]);
|
|
500
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
501
|
-
className: "virtuallist",
|
|
502
|
-
ref: wrapTableRef,
|
|
503
|
-
style: {
|
|
504
|
-
width: '100%',
|
|
505
|
-
position: 'relative',
|
|
506
|
-
height: tableHeight,
|
|
507
|
-
boxSizing: 'border-box',
|
|
508
|
-
paddingTop: state.curScrollTop
|
|
509
|
-
}
|
|
510
|
-
}, /*#__PURE__*/_react.default.createElement(ScrollContext.Provider, {
|
|
511
|
-
value: {
|
|
512
|
-
dispatch: dispatch,
|
|
513
|
-
rowHeight: state.rowHeight,
|
|
514
|
-
start: start,
|
|
515
|
-
offsetStart: offsetStart,
|
|
516
|
-
scrollLeft: state.curScrollLeft,
|
|
517
|
-
renderLen: renderLen,
|
|
518
|
-
totalLen: totalLen,
|
|
519
|
-
vid: vid
|
|
520
|
-
}
|
|
521
|
-
}, /*#__PURE__*/_react.default.createElement("table", (0, _extends2.default)({}, rest, {
|
|
522
|
-
ref: tableRef,
|
|
523
|
-
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, restStyle), {}, {
|
|
524
|
-
width: width,
|
|
525
|
-
position: 'relative',
|
|
526
|
-
transform: "translateY(-".concat(offsetStart, "px)"),
|
|
527
|
-
pointerEvents: state.isScrolling ? 'none' : 'initial'
|
|
528
|
-
})
|
|
529
|
-
}), children)));
|
|
530
|
-
}; // ================导出===================
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
var VList = function VList(props) {
|
|
534
|
-
var _props$vid = props.vid,
|
|
535
|
-
vid = _props$vid === void 0 ? DEFAULT_VID : _props$vid,
|
|
536
|
-
height = props.height,
|
|
537
|
-
onReachEnd = props.onReachEnd,
|
|
538
|
-
onScroll = props.onScroll,
|
|
539
|
-
_props$resetTopWhenDa = props.resetTopWhenDataChange,
|
|
540
|
-
resetTopWhenDataChange = _props$resetTopWhenDa === void 0 ? true : _props$resetTopWhenDa;
|
|
541
|
-
var resetScrollTopWhenDataChange = onReachEnd ? false : resetTopWhenDataChange;
|
|
542
|
-
|
|
543
|
-
if (!vidMap.has(vid)) {
|
|
544
|
-
vidMap.set(vid, {});
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
return {
|
|
548
|
-
table: function table(p) {
|
|
549
|
-
return VTable(p, {
|
|
550
|
-
vid: vid,
|
|
551
|
-
scrollY: height,
|
|
552
|
-
reachEnd: onReachEnd,
|
|
553
|
-
onScroll: onScroll,
|
|
554
|
-
resetScrollTopWhenDataChange: resetScrollTopWhenDataChange
|
|
555
|
-
});
|
|
556
|
-
},
|
|
557
|
-
body: {
|
|
558
|
-
wrapper: VWrapper,
|
|
559
|
-
row: VRow,
|
|
560
|
-
cell: function cell(cellProps) {
|
|
561
|
-
return /*#__PURE__*/_react.default.createElement(VCell, cellProps);
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
header: {
|
|
565
|
-
wrapper: HeaderWrapper,
|
|
566
|
-
cell: HeaderCell
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
|
|
571
|
-
exports.VList = VList;
|
|
572
|
-
|
|
573
|
-
var scrollTo = function scrollTo(option) {
|
|
574
|
-
var row = option.row,
|
|
575
|
-
y = option.y,
|
|
576
|
-
_option$vid = option.vid,
|
|
577
|
-
vid = _option$vid === void 0 ? DEFAULT_VID : _option$vid;
|
|
578
|
-
|
|
579
|
-
var _vidMap$get = vidMap.get(vid),
|
|
580
|
-
scrollNode = _vidMap$get.scrollNode,
|
|
581
|
-
rowItemHeight = _vidMap$get.rowItemHeight;
|
|
582
|
-
|
|
583
|
-
if (row) {
|
|
584
|
-
if (row - 1 > 0) {
|
|
585
|
-
scrollNode.scrollTop = (row - 1) * (rowItemHeight !== null && rowItemHeight !== void 0 ? rowItemHeight : 0);
|
|
586
|
-
} else {
|
|
587
|
-
scrollNode.scrollTop = 0;
|
|
588
|
-
}
|
|
589
|
-
} else {
|
|
590
|
-
scrollNode.scrollTop = y !== null && y !== void 0 ? y : 0;
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
exports.scrollTo = scrollTo;
|