tntd 2.7.31 → 2.7.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/form/form.js +37 -38
- package/es/form/form.js.map +1 -1
- package/es/tntd-form/_util/context.js +12 -0
- package/es/tntd-form/_util/context.js.map +1 -0
- package/es/tntd-form/_util/defaultRenderEmpty.js +31 -0
- package/es/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
- package/es/tntd-form/_util/hooks/useFlexGapSupport.js +9 -0
- package/es/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
- package/es/tntd-form/_util/hooks/useForceUpdate.js +5 -0
- package/es/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
- package/es/tntd-form/_util/motion.js +47 -0
- package/es/tntd-form/_util/motion.js.map +1 -0
- package/es/tntd-form/_util/reactNode.js +16 -0
- package/es/tntd-form/_util/reactNode.js.map +1 -0
- package/es/tntd-form/_util/responsiveObserve.js +59 -0
- package/es/tntd-form/_util/responsiveObserve.js.map +1 -0
- package/es/tntd-form/_util/scrollTo.js +35 -0
- package/es/tntd-form/_util/scrollTo.js.map +1 -0
- package/es/tntd-form/_util/styleChecker.js +26 -0
- package/es/tntd-form/_util/styleChecker.js.map +1 -0
- package/es/tntd-form/_util/type.js +3 -0
- package/es/tntd-form/_util/type.js.map +1 -0
- package/es/tntd-form/_util/warning.js +5 -0
- package/es/tntd-form/_util/warning.js.map +1 -0
- package/es/tntd-form/_util/wave.js +168 -0
- package/es/tntd-form/_util/wave.js.map +1 -0
- package/es/tntd-form/grid/RowContext.js.map +1 -0
- package/es/{grid-v4 → tntd-form/grid}/col.js +1 -0
- package/es/tntd-form/grid/col.js.map +1 -0
- package/es/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
- package/es/tntd-form/grid/index.js.map +1 -0
- package/es/{grid-v4 → tntd-form/grid}/row.js +0 -1
- package/es/tntd-form/grid/row.js.map +1 -0
- package/es/tntd-form/grid/style/index.js.map +1 -0
- package/es/tntd-form/tntd-form.stories.js +836 -0
- package/es/tntd-form/tntd-form.stories.js.map +1 -0
- package/lib/form/form.d.ts +1 -2
- package/lib/form/form.d.ts.map +1 -1
- package/lib/form/form.js +41 -40
- package/lib/form/form.js.map +1 -1
- package/lib/tntd-form/_util/context.d.ts +42 -0
- package/lib/tntd-form/_util/context.d.ts.map +1 -0
- package/lib/tntd-form/_util/context.js +22 -0
- package/lib/tntd-form/_util/context.js.map +1 -0
- package/lib/tntd-form/_util/defaultRenderEmpty.d.ts +5 -0
- package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +1 -0
- package/lib/tntd-form/_util/defaultRenderEmpty.js +44 -0
- package/lib/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts +3 -0
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts.map +1 -0
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.js +28 -0
- package/lib/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
- package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts +3 -0
- package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts.map +1 -0
- package/lib/tntd-form/_util/hooks/useForceUpdate.js +24 -0
- package/lib/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
- package/lib/tntd-form/_util/motion.d.ts +9 -0
- package/lib/tntd-form/_util/motion.d.ts.map +1 -0
- package/lib/tntd-form/_util/motion.js +59 -0
- package/lib/tntd-form/_util/motion.js.map +1 -0
- package/lib/tntd-form/_util/reactNode.d.ts +9 -0
- package/lib/tntd-form/_util/reactNode.d.ts.map +1 -0
- package/lib/tntd-form/_util/reactNode.js +27 -0
- package/lib/tntd-form/_util/reactNode.js.map +1 -0
- package/lib/tntd-form/_util/responsiveObserve.d.ts +22 -0
- package/lib/tntd-form/_util/responsiveObserve.d.ts.map +1 -0
- package/lib/tntd-form/_util/responsiveObserve.js +73 -0
- package/lib/tntd-form/_util/responsiveObserve.js.map +1 -0
- package/lib/tntd-form/_util/scrollTo.d.ts +1 -0
- package/lib/tntd-form/_util/scrollTo.d.ts.map +1 -0
- package/lib/tntd-form/_util/scrollTo.js +35 -0
- package/lib/tntd-form/_util/scrollTo.js.map +1 -0
- package/lib/tntd-form/_util/styleChecker.d.ts +5 -0
- package/lib/tntd-form/_util/styleChecker.d.ts.map +1 -0
- package/lib/tntd-form/_util/styleChecker.js +42 -0
- package/lib/tntd-form/_util/styleChecker.js.map +1 -0
- package/lib/tntd-form/_util/type.d.ts +4 -0
- package/lib/tntd-form/_util/type.d.ts.map +1 -0
- package/lib/tntd-form/_util/type.js +21 -0
- package/lib/tntd-form/_util/type.js.map +1 -0
- package/lib/tntd-form/_util/warning.d.ts +5 -0
- package/lib/tntd-form/_util/warning.d.ts.map +1 -0
- package/lib/tntd-form/_util/warning.js +20 -0
- package/lib/tntd-form/_util/warning.js.map +1 -0
- package/lib/tntd-form/_util/wave.d.ts +1 -0
- package/lib/tntd-form/_util/wave.d.ts.map +1 -0
- package/lib/tntd-form/_util/wave.js +168 -0
- package/lib/tntd-form/_util/wave.js.map +1 -0
- package/lib/tntd-form/grid/RowContext.d.ts.map +1 -0
- package/lib/tntd-form/grid/RowContext.js.map +1 -0
- package/lib/tntd-form/grid/col.d.ts.map +1 -0
- package/lib/tntd-form/grid/col.js.map +1 -0
- package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts.map +1 -0
- package/lib/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
- package/lib/tntd-form/grid/index.d.ts.map +1 -0
- package/lib/tntd-form/grid/index.js.map +1 -0
- package/lib/tntd-form/grid/row.d.ts.map +1 -0
- package/lib/{grid-v4 → tntd-form/grid}/row.js +0 -1
- package/lib/tntd-form/grid/row.js.map +1 -0
- package/lib/tntd-form/grid/style/index.d.ts.map +1 -0
- package/lib/tntd-form/grid/style/index.js.map +1 -0
- package/lib/tntd-form/tntd-form.stories.d.ts +33 -0
- package/lib/tntd-form/tntd-form.stories.d.ts.map +1 -0
- package/lib/tntd-form/tntd-form.stories.js +943 -0
- package/lib/tntd-form/tntd-form.stories.js.map +1 -0
- package/package.json +1 -1
- package/es/affix/style/index.js.map +0 -1
- package/es/alert/style/index.js +0 -2
- package/es/alert/style/index.js.map +0 -1
- package/es/anchor/style/index.js +0 -4
- package/es/anchor/style/index.js.map +0 -1
- package/es/auto-complete/style/index.js +0 -5
- package/es/auto-complete/style/index.js.map +0 -1
- package/es/avatar/style/index.js +0 -2
- package/es/avatar/style/index.js.map +0 -1
- package/es/back-top/style/index.js +0 -2
- package/es/back-top/style/index.js.map +0 -1
- package/es/badge/style/index.js +0 -2
- package/es/badge/style/index.js.map +0 -1
- package/es/breadcrumb/style/index.js +0 -4
- package/es/breadcrumb/style/index.js.map +0 -1
- package/es/button/style/index.js +0 -2
- package/es/button/style/index.js.map +0 -1
- package/es/calendar/style/index.js +0 -5
- package/es/calendar/style/index.js.map +0 -1
- package/es/card/style/index.js +0 -6
- package/es/card/style/index.js.map +0 -1
- package/es/carousel/style/index.js +0 -2
- package/es/carousel/style/index.js.map +0 -1
- package/es/cascader/style/index.js +0 -5
- package/es/cascader/style/index.js.map +0 -1
- package/es/checkbox/style/index.js +0 -2
- package/es/checkbox/style/index.js.map +0 -1
- package/es/col/style/index.js +0 -4
- package/es/col/style/index.js.map +0 -1
- package/es/collapse/style/index.js +0 -2
- package/es/collapse/style/index.js.map +0 -1
- package/es/comment/style/index.js +0 -2
- package/es/comment/style/index.js.map +0 -1
- package/es/config-provider/style/index.js +0 -1
- package/es/config-provider/style/index.js.map +0 -1
- package/es/date-picker/style/index.js +0 -7
- package/es/date-picker/style/index.js.map +0 -1
- package/es/descriptions/style/index.js +0 -2
- package/es/descriptions/style/index.js.map +0 -1
- package/es/divider/style/index.js +0 -2
- package/es/divider/style/index.js.map +0 -1
- package/es/drawer/style/index.js +0 -3
- package/es/drawer/style/index.js.map +0 -1
- package/es/dropdown/style/index.js +0 -4
- package/es/dropdown/style/index.js.map +0 -1
- package/es/empty/style/index.js +0 -2
- package/es/empty/style/index.js.map +0 -1
- package/es/form/style/index.js +0 -4
- package/es/form/style/index.js.map +0 -1
- package/es/grid-v4/RowContext.js.map +0 -1
- package/es/grid-v4/col.js.map +0 -1
- package/es/grid-v4/hooks/useBreakpoint.js.map +0 -1
- package/es/grid-v4/index.js.map +0 -1
- package/es/grid-v4/row.js.map +0 -1
- package/es/grid-v4/style/index.js +0 -2
- package/es/grid-v4/style/index.js.map +0 -1
- package/es/icon/style/index.js +0 -2
- package/es/icon/style/index.js.map +0 -1
- package/es/input/style/index.js +0 -4
- package/es/input/style/index.js.map +0 -1
- package/es/input-number/style/index.js +0 -2
- package/es/input-number/style/index.js.map +0 -1
- package/es/layout/style/index.js +0 -2
- package/es/layout/style/index.js.map +0 -1
- package/es/list/style/index.js +0 -7
- package/es/list/style/index.js.map +0 -1
- package/es/locale-provider/style/index.js +0 -1
- package/es/locale-provider/style/index.js.map +0 -1
- package/es/mentions/style/index.js +0 -4
- package/es/mentions/style/index.js.map +0 -1
- package/es/menu/style/index.js +0 -5
- package/es/menu/style/index.js.map +0 -1
- package/es/message/style/index.js +0 -2
- package/es/message/style/index.js.map +0 -1
- package/es/modal/style/index.js +0 -4
- package/es/modal/style/index.js.map +0 -1
- package/es/notification/style/index.js +0 -2
- package/es/notification/style/index.js.map +0 -1
- package/es/page-header/style/index.js +0 -4
- package/es/page-header/style/index.js.map +0 -1
- package/es/pagination/style/index.js +0 -4
- package/es/pagination/style/index.js.map +0 -1
- package/es/popconfirm/style/index.js +0 -5
- package/es/popconfirm/style/index.js.map +0 -1
- package/es/popover/style/index.js +0 -4
- package/es/popover/style/index.js.map +0 -1
- package/es/progress/style/index.js +0 -2
- package/es/progress/style/index.js.map +0 -1
- package/es/radio/style/index.js +0 -2
- package/es/radio/style/index.js.map +0 -1
- package/es/rate/style/index.js +0 -4
- package/es/rate/style/index.js.map +0 -1
- package/es/result/style/index.js +0 -2
- package/es/result/style/index.js.map +0 -1
- package/es/row/style/index.js +0 -4
- package/es/row/style/index.js.map +0 -1
- package/es/select/style/index.js +0 -4
- package/es/select/style/index.js.map +0 -1
- package/es/skeleton/style/index.js +0 -2
- package/es/skeleton/style/index.js.map +0 -1
- package/es/slider/style/index.js +0 -4
- package/es/slider/style/index.js.map +0 -1
- package/es/spin/style/index.js +0 -2
- package/es/spin/style/index.js.map +0 -1
- package/es/statistic/style/index.js +0 -2
- package/es/statistic/style/index.js.map +0 -1
- package/es/steps/style/index.js +0 -2
- package/es/steps/style/index.js.map +0 -1
- package/es/style/index.js +0 -1
- package/es/style/index.js.map +0 -1
- package/es/style/v2-compatible-reset.js +0 -1
- package/es/style/v2-compatible-reset.js.map +0 -1
- package/es/switch/style/index.js +0 -2
- package/es/switch/style/index.js.map +0 -1
- package/es/table/style/index.js +0 -10
- package/es/table/style/index.js.map +0 -1
- package/es/tabs/style/index.js +0 -2
- package/es/tabs/style/index.js.map +0 -1
- package/es/tag/style/index.js +0 -2
- package/es/tag/style/index.js.map +0 -1
- package/es/time-picker/style/index.js +0 -2
- package/es/time-picker/style/index.js.map +0 -1
- package/es/timeline/style/index.js +0 -2
- package/es/timeline/style/index.js.map +0 -1
- package/es/tooltip/style/index.js +0 -2
- package/es/tooltip/style/index.js.map +0 -1
- package/es/transfer/style/index.js +0 -7
- package/es/transfer/style/index.js.map +0 -1
- package/es/tree/style/index.js +0 -2
- package/es/tree/style/index.js.map +0 -1
- package/es/tree-select/style/index.js +0 -6
- package/es/tree-select/style/index.js.map +0 -1
- package/es/typography/style/index.js +0 -5
- package/es/typography/style/index.js.map +0 -1
- package/es/upload/style/index.js +0 -5
- package/es/upload/style/index.js.map +0 -1
- package/es/version/style/index.js +0 -2
- package/es/version/style/index.js.map +0 -1
- package/lib/affix/style/index.d.ts.map +0 -1
- package/lib/affix/style/index.js.map +0 -1
- package/lib/alert/style/index.d.ts +0 -3
- package/lib/alert/style/index.d.ts.map +0 -1
- package/lib/alert/style/index.js +0 -4
- package/lib/alert/style/index.js.map +0 -1
- package/lib/anchor/style/index.d.ts +0 -4
- package/lib/anchor/style/index.d.ts.map +0 -1
- package/lib/anchor/style/index.js +0 -5
- package/lib/anchor/style/index.js.map +0 -1
- package/lib/auto-complete/style/index.d.ts +0 -5
- package/lib/auto-complete/style/index.d.ts.map +0 -1
- package/lib/auto-complete/style/index.js +0 -6
- package/lib/auto-complete/style/index.js.map +0 -1
- package/lib/avatar/style/index.d.ts +0 -3
- package/lib/avatar/style/index.d.ts.map +0 -1
- package/lib/avatar/style/index.js +0 -4
- package/lib/avatar/style/index.js.map +0 -1
- package/lib/back-top/style/index.d.ts +0 -3
- package/lib/back-top/style/index.d.ts.map +0 -1
- package/lib/back-top/style/index.js +0 -4
- package/lib/back-top/style/index.js.map +0 -1
- package/lib/badge/style/index.d.ts +0 -3
- package/lib/badge/style/index.d.ts.map +0 -1
- package/lib/badge/style/index.js +0 -4
- package/lib/badge/style/index.js.map +0 -1
- package/lib/breadcrumb/style/index.d.ts +0 -5
- package/lib/breadcrumb/style/index.d.ts.map +0 -1
- package/lib/breadcrumb/style/index.js +0 -6
- package/lib/breadcrumb/style/index.js.map +0 -1
- package/lib/button/style/index.d.ts +0 -3
- package/lib/button/style/index.d.ts.map +0 -1
- package/lib/button/style/index.js +0 -4
- package/lib/button/style/index.js.map +0 -1
- package/lib/calendar/style/index.d.ts +0 -5
- package/lib/calendar/style/index.d.ts.map +0 -1
- package/lib/calendar/style/index.js +0 -6
- package/lib/calendar/style/index.js.map +0 -1
- package/lib/card/style/index.d.ts +0 -6
- package/lib/card/style/index.d.ts.map +0 -1
- package/lib/card/style/index.js +0 -7
- package/lib/card/style/index.js.map +0 -1
- package/lib/carousel/style/index.d.ts +0 -3
- package/lib/carousel/style/index.d.ts.map +0 -1
- package/lib/carousel/style/index.js +0 -4
- package/lib/carousel/style/index.js.map +0 -1
- package/lib/cascader/style/index.d.ts +0 -5
- package/lib/cascader/style/index.d.ts.map +0 -1
- package/lib/cascader/style/index.js +0 -6
- package/lib/cascader/style/index.js.map +0 -1
- package/lib/checkbox/style/index.d.ts +0 -3
- package/lib/checkbox/style/index.d.ts.map +0 -1
- package/lib/checkbox/style/index.js +0 -4
- package/lib/checkbox/style/index.js.map +0 -1
- package/lib/col/style/index.d.ts +0 -3
- package/lib/col/style/index.d.ts.map +0 -1
- package/lib/col/style/index.js +0 -4
- package/lib/col/style/index.js.map +0 -1
- package/lib/collapse/style/index.d.ts +0 -3
- package/lib/collapse/style/index.d.ts.map +0 -1
- package/lib/collapse/style/index.js +0 -4
- package/lib/collapse/style/index.js.map +0 -1
- package/lib/comment/style/index.d.ts +0 -3
- package/lib/comment/style/index.d.ts.map +0 -1
- package/lib/comment/style/index.js +0 -4
- package/lib/comment/style/index.js.map +0 -1
- package/lib/config-provider/style/index.d.ts +0 -2
- package/lib/config-provider/style/index.d.ts.map +0 -1
- package/lib/config-provider/style/index.js +0 -3
- package/lib/config-provider/style/index.js.map +0 -1
- package/lib/date-picker/style/index.d.ts +0 -6
- package/lib/date-picker/style/index.d.ts.map +0 -1
- package/lib/date-picker/style/index.js +0 -7
- package/lib/date-picker/style/index.js.map +0 -1
- package/lib/descriptions/style/index.d.ts +0 -3
- package/lib/descriptions/style/index.d.ts.map +0 -1
- package/lib/descriptions/style/index.js +0 -4
- package/lib/descriptions/style/index.js.map +0 -1
- package/lib/divider/style/index.d.ts +0 -3
- package/lib/divider/style/index.d.ts.map +0 -1
- package/lib/divider/style/index.js +0 -4
- package/lib/divider/style/index.js.map +0 -1
- package/lib/drawer/style/index.d.ts +0 -3
- package/lib/drawer/style/index.d.ts.map +0 -1
- package/lib/drawer/style/index.js +0 -4
- package/lib/drawer/style/index.js.map +0 -1
- package/lib/dropdown/style/index.d.ts +0 -4
- package/lib/dropdown/style/index.d.ts.map +0 -1
- package/lib/dropdown/style/index.js +0 -5
- package/lib/dropdown/style/index.js.map +0 -1
- package/lib/empty/style/index.d.ts +0 -3
- package/lib/empty/style/index.d.ts.map +0 -1
- package/lib/empty/style/index.js +0 -4
- package/lib/empty/style/index.js.map +0 -1
- package/lib/form/style/index.d.ts +0 -4
- package/lib/form/style/index.d.ts.map +0 -1
- package/lib/form/style/index.js +0 -5
- package/lib/form/style/index.js.map +0 -1
- package/lib/grid-v4/RowContext.d.ts.map +0 -1
- package/lib/grid-v4/RowContext.js.map +0 -1
- package/lib/grid-v4/col.d.ts.map +0 -1
- package/lib/grid-v4/col.js.map +0 -1
- package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/grid-v4/hooks/useBreakpoint.js.map +0 -1
- package/lib/grid-v4/index.d.ts.map +0 -1
- package/lib/grid-v4/index.js.map +0 -1
- package/lib/grid-v4/row.d.ts.map +0 -1
- package/lib/grid-v4/row.js.map +0 -1
- package/lib/grid-v4/style/index.d.ts +0 -2
- package/lib/grid-v4/style/index.d.ts.map +0 -1
- package/lib/grid-v4/style/index.js +0 -3
- package/lib/grid-v4/style/index.js.map +0 -1
- package/lib/icon/style/index.d.ts +0 -3
- package/lib/icon/style/index.d.ts.map +0 -1
- package/lib/icon/style/index.js +0 -4
- package/lib/icon/style/index.js.map +0 -1
- package/lib/input/style/index.d.ts +0 -4
- package/lib/input/style/index.d.ts.map +0 -1
- package/lib/input/style/index.js +0 -5
- package/lib/input/style/index.js.map +0 -1
- package/lib/input-number/style/index.d.ts +0 -3
- package/lib/input-number/style/index.d.ts.map +0 -1
- package/lib/input-number/style/index.js +0 -4
- package/lib/input-number/style/index.js.map +0 -1
- package/lib/layout/style/index.d.ts +0 -3
- package/lib/layout/style/index.d.ts.map +0 -1
- package/lib/layout/style/index.js +0 -4
- package/lib/layout/style/index.js.map +0 -1
- package/lib/list/style/index.d.ts +0 -7
- package/lib/list/style/index.d.ts.map +0 -1
- package/lib/list/style/index.js +0 -8
- package/lib/list/style/index.js.map +0 -1
- package/lib/locale-provider/style/index.d.ts +0 -2
- package/lib/locale-provider/style/index.d.ts.map +0 -1
- package/lib/locale-provider/style/index.js +0 -3
- package/lib/locale-provider/style/index.js.map +0 -1
- package/lib/mentions/style/index.d.ts +0 -4
- package/lib/mentions/style/index.d.ts.map +0 -1
- package/lib/mentions/style/index.js +0 -5
- package/lib/mentions/style/index.js.map +0 -1
- package/lib/menu/style/index.d.ts +0 -4
- package/lib/menu/style/index.d.ts.map +0 -1
- package/lib/menu/style/index.js +0 -5
- package/lib/menu/style/index.js.map +0 -1
- package/lib/message/style/index.d.ts +0 -3
- package/lib/message/style/index.d.ts.map +0 -1
- package/lib/message/style/index.js +0 -4
- package/lib/message/style/index.js.map +0 -1
- package/lib/modal/style/index.d.ts +0 -4
- package/lib/modal/style/index.d.ts.map +0 -1
- package/lib/modal/style/index.js +0 -5
- package/lib/modal/style/index.js.map +0 -1
- package/lib/notification/style/index.d.ts +0 -3
- package/lib/notification/style/index.d.ts.map +0 -1
- package/lib/notification/style/index.js +0 -4
- package/lib/notification/style/index.js.map +0 -1
- package/lib/page-header/style/index.d.ts +0 -4
- package/lib/page-header/style/index.d.ts.map +0 -1
- package/lib/page-header/style/index.js +0 -5
- package/lib/page-header/style/index.js.map +0 -1
- package/lib/pagination/style/index.d.ts +0 -4
- package/lib/pagination/style/index.d.ts.map +0 -1
- package/lib/pagination/style/index.js +0 -5
- package/lib/pagination/style/index.js.map +0 -1
- package/lib/popconfirm/style/index.d.ts +0 -4
- package/lib/popconfirm/style/index.d.ts.map +0 -1
- package/lib/popconfirm/style/index.js +0 -5
- package/lib/popconfirm/style/index.js.map +0 -1
- package/lib/popover/style/index.d.ts +0 -3
- package/lib/popover/style/index.d.ts.map +0 -1
- package/lib/popover/style/index.js +0 -4
- package/lib/popover/style/index.js.map +0 -1
- package/lib/progress/style/index.d.ts +0 -3
- package/lib/progress/style/index.d.ts.map +0 -1
- package/lib/progress/style/index.js +0 -4
- package/lib/progress/style/index.js.map +0 -1
- package/lib/radio/style/index.d.ts +0 -3
- package/lib/radio/style/index.d.ts.map +0 -1
- package/lib/radio/style/index.js +0 -4
- package/lib/radio/style/index.js.map +0 -1
- package/lib/rate/style/index.d.ts +0 -4
- package/lib/rate/style/index.d.ts.map +0 -1
- package/lib/rate/style/index.js +0 -5
- package/lib/rate/style/index.js.map +0 -1
- package/lib/result/style/index.d.ts +0 -3
- package/lib/result/style/index.d.ts.map +0 -1
- package/lib/result/style/index.js +0 -4
- package/lib/result/style/index.js.map +0 -1
- package/lib/row/style/index.d.ts +0 -3
- package/lib/row/style/index.d.ts.map +0 -1
- package/lib/row/style/index.js +0 -4
- package/lib/row/style/index.js.map +0 -1
- package/lib/select/style/index.d.ts +0 -4
- package/lib/select/style/index.d.ts.map +0 -1
- package/lib/select/style/index.js +0 -5
- package/lib/select/style/index.js.map +0 -1
- package/lib/skeleton/style/index.d.ts +0 -3
- package/lib/skeleton/style/index.d.ts.map +0 -1
- package/lib/skeleton/style/index.js +0 -4
- package/lib/skeleton/style/index.js.map +0 -1
- package/lib/slider/style/index.d.ts +0 -4
- package/lib/slider/style/index.d.ts.map +0 -1
- package/lib/slider/style/index.js +0 -5
- package/lib/slider/style/index.js.map +0 -1
- package/lib/spin/style/index.d.ts +0 -3
- package/lib/spin/style/index.d.ts.map +0 -1
- package/lib/spin/style/index.js +0 -4
- package/lib/spin/style/index.js.map +0 -1
- package/lib/statistic/style/index.d.ts +0 -3
- package/lib/statistic/style/index.d.ts.map +0 -1
- package/lib/statistic/style/index.js +0 -4
- package/lib/statistic/style/index.js.map +0 -1
- package/lib/steps/style/index.d.ts +0 -3
- package/lib/steps/style/index.d.ts.map +0 -1
- package/lib/steps/style/index.js +0 -4
- package/lib/steps/style/index.js.map +0 -1
- package/lib/style/index.d.ts +0 -2
- package/lib/style/index.d.ts.map +0 -1
- package/lib/style/index.js +0 -3
- package/lib/style/index.js.map +0 -1
- package/lib/style/v2-compatible-reset.d.ts +0 -2
- package/lib/style/v2-compatible-reset.d.ts.map +0 -1
- package/lib/style/v2-compatible-reset.js +0 -3
- package/lib/style/v2-compatible-reset.js.map +0 -1
- package/lib/switch/style/index.d.ts +0 -3
- package/lib/switch/style/index.d.ts.map +0 -1
- package/lib/switch/style/index.js +0 -4
- package/lib/switch/style/index.js.map +0 -1
- package/lib/table/style/index.d.ts +0 -9
- package/lib/table/style/index.d.ts.map +0 -1
- package/lib/table/style/index.js +0 -10
- package/lib/table/style/index.js.map +0 -1
- package/lib/tabs/style/index.d.ts +0 -3
- package/lib/tabs/style/index.d.ts.map +0 -1
- package/lib/tabs/style/index.js +0 -4
- package/lib/tabs/style/index.js.map +0 -1
- package/lib/tag/style/index.d.ts +0 -3
- package/lib/tag/style/index.d.ts.map +0 -1
- package/lib/tag/style/index.js +0 -4
- package/lib/tag/style/index.js.map +0 -1
- package/lib/time-picker/style/index.d.ts +0 -3
- package/lib/time-picker/style/index.d.ts.map +0 -1
- package/lib/time-picker/style/index.js +0 -4
- package/lib/time-picker/style/index.js.map +0 -1
- package/lib/timeline/style/index.d.ts +0 -3
- package/lib/timeline/style/index.d.ts.map +0 -1
- package/lib/timeline/style/index.js +0 -4
- package/lib/timeline/style/index.js.map +0 -1
- package/lib/tooltip/style/index.d.ts +0 -3
- package/lib/tooltip/style/index.d.ts.map +0 -1
- package/lib/tooltip/style/index.js +0 -4
- package/lib/tooltip/style/index.js.map +0 -1
- package/lib/transfer/style/index.d.ts +0 -7
- package/lib/transfer/style/index.d.ts.map +0 -1
- package/lib/transfer/style/index.js +0 -8
- package/lib/transfer/style/index.js.map +0 -1
- package/lib/tree/style/index.d.ts +0 -3
- package/lib/tree/style/index.d.ts.map +0 -1
- package/lib/tree/style/index.js +0 -4
- package/lib/tree/style/index.js.map +0 -1
- package/lib/tree-select/style/index.d.ts +0 -5
- package/lib/tree-select/style/index.d.ts.map +0 -1
- package/lib/tree-select/style/index.js +0 -6
- package/lib/tree-select/style/index.js.map +0 -1
- package/lib/typography/style/index.d.ts +0 -5
- package/lib/typography/style/index.d.ts.map +0 -1
- package/lib/typography/style/index.js +0 -6
- package/lib/typography/style/index.js.map +0 -1
- package/lib/upload/style/index.d.ts +0 -5
- package/lib/upload/style/index.d.ts.map +0 -1
- package/lib/upload/style/index.js +0 -6
- package/lib/upload/style/index.js.map +0 -1
- package/lib/version/style/index.d.ts +0 -2
- package/lib/version/style/index.d.ts.map +0 -1
- package/lib/version/style/index.js +0 -3
- package/lib/version/style/index.js.map +0 -1
- /package/es/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
- /package/es/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
- /package/es/{grid-v4 → tntd-form/grid}/index.js +0 -0
- /package/es/{affix → tntd-form/grid}/style/index.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/RowContext.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/col.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/col.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/index.d.ts +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/index.js +0 -0
- /package/lib/{grid-v4 → tntd-form/grid}/row.d.ts +0 -0
- /package/lib/{affix → tntd-form/grid}/style/index.d.ts +0 -0
- /package/lib/{affix → tntd-form/grid}/style/index.js +0 -0
package/es/form/form.js
CHANGED
|
@@ -22,47 +22,10 @@ export const Form = forwardRef((_a, ref) => {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
Form.Item = forwardRef((_a, ref) => {
|
|
25
|
-
// const titleHandle = (label: string | React.ReactNode): undefined | React.ReactNode => {
|
|
26
|
-
// if (!label) {
|
|
27
|
-
// return label
|
|
28
|
-
// }
|
|
29
|
-
// if (typeof label === 'string') {
|
|
30
|
-
// const words: string[] = label.split(' ')
|
|
31
|
-
// const capitalizedWords: string[] = words.map((word: string) => {
|
|
32
|
-
// const lowerCaseWord: string = word?.toLowerCase()
|
|
33
|
-
// return lowerCaseWord.charAt(0).toUpperCase() + lowerCaseWord.slice(1)
|
|
34
|
-
// })
|
|
35
|
-
// label = capitalizedWords.join(' ')
|
|
36
|
-
// } else {
|
|
37
|
-
// if (React.isValidElement(label)) {
|
|
38
|
-
// if (label?.props?.children && Array.isArray(label?.props?.children)) {
|
|
39
|
-
// return {
|
|
40
|
-
// ...label,
|
|
41
|
-
// props: {
|
|
42
|
-
// ...label.props,
|
|
43
|
-
// children: label?.props?.children?.map((subLabel: string | React.ReactNode) => {
|
|
44
|
-
// return titleHandle(subLabel)
|
|
45
|
-
// }),
|
|
46
|
-
// },
|
|
47
|
-
// }
|
|
48
|
-
// } else if (typeof label?.props?.children === 'string') {
|
|
49
|
-
// label = {
|
|
50
|
-
// ...label,
|
|
51
|
-
// props: {
|
|
52
|
-
// ...label.props,
|
|
53
|
-
// children: titleHandle(label?.props?.children),
|
|
54
|
-
// },
|
|
55
|
-
// }
|
|
56
|
-
// }
|
|
57
|
-
// }
|
|
58
|
-
// }
|
|
59
|
-
// return label
|
|
60
|
-
// }
|
|
61
25
|
var {
|
|
62
26
|
label
|
|
63
27
|
} = _a,
|
|
64
28
|
rest = __rest(_a, ["label"]);
|
|
65
|
-
// const curLabel = titleHandle(label)
|
|
66
29
|
return React.createElement(ConfigConsumer, null, ({
|
|
67
30
|
getPrefixCls
|
|
68
31
|
}) => {
|
|
@@ -72,5 +35,41 @@ Form.Item = forwardRef((_a, ref) => {
|
|
|
72
35
|
}));
|
|
73
36
|
});
|
|
74
37
|
});
|
|
38
|
+
const Create = options => WrappedComponent => {
|
|
39
|
+
const validateSubmitMap = {};
|
|
40
|
+
const CustomFormWrapper = props => {
|
|
41
|
+
const getFieldDecorator = props.form.getFieldDecorator;
|
|
42
|
+
props.form.getFieldDecorator = (name, options) => {
|
|
43
|
+
let opt = options;
|
|
44
|
+
if (options.validateSubmit) {
|
|
45
|
+
opt = Object.assign(Object.assign({}, options), {
|
|
46
|
+
validateTrigger: 'noEvent'
|
|
47
|
+
});
|
|
48
|
+
validateSubmitMap[name] = true;
|
|
49
|
+
}
|
|
50
|
+
return getFieldDecorator(name, opt);
|
|
51
|
+
};
|
|
52
|
+
return React.createElement(WrappedComponent, Object.assign({}, props));
|
|
53
|
+
};
|
|
54
|
+
return AntdForm.create(Object.assign(Object.assign({}, options), {
|
|
55
|
+
onValuesChange: (props, changedValues, allValues) => {
|
|
56
|
+
const keys = Object.keys(changedValues);
|
|
57
|
+
if (keys.length === 1) {
|
|
58
|
+
keys.forEach(name => {
|
|
59
|
+
if (validateSubmitMap[name]) {
|
|
60
|
+
props.form.setFields({
|
|
61
|
+
[name]: {
|
|
62
|
+
errors: undefined
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (options && options.onValuesChange) {
|
|
69
|
+
options.onValuesChange(props, changedValues, allValues);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}))(CustomFormWrapper);
|
|
73
|
+
};
|
|
75
74
|
Form.createFormField = AntdForm.createFormField;
|
|
76
|
-
Form.create =
|
|
75
|
+
Form.create = Create;
|
package/es/form/form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../src/form/form.tsx"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../src/form/form.tsx"],"names":[],"mappings":";;;;;;;;;;;AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,cAAc,cAAc,CAAA;AAW5B,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAA0B,CAAC,EAAW,EAAE,GAAG,EAAE,EAAE;QAAf,IAAI,cAAT,EAAW,CAAF;IAChE,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,oBAAC,QAAQ,oBAAK,IAAI,IAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACzC,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAkB,CAAA;AAEnB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAkC,CAAC,EAAkB,EAAE,GAAG,EAAE,EAAE;QAA3B,EAAE,KAAK,OAAW,EAAN,IAAI,cAAhB,SAAkB,CAAF;IACvE,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,oBAAC,QAAQ,CAAC,IAAI,oBAAK,IAAI,IAAE,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IAC1E,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAC,CAAA;AAOF,MAAM,MAAM,GAAmB,CAAC,OAAY,EAAE,EAAE,CAAC,CAAC,gBAAqB,EAAE,EAAE;IACzE,MAAM,iBAAiB,GAAQ,EAAE,CAAA;IACjC,MAAM,iBAAiB,GAAG,CAAC,KAAU,EAAE,EAAE;QACvC,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAA;QACtD,KAAK,CAAC,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAS,EAAE,OAAY,EAAE,EAAE;YACzD,IAAI,GAAG,GAAG,OAAO,CAAA;YACjB,IAAI,OAAO,CAAC,cAAc,EAAE;gBAC1B,GAAG,mCACE,OAAO,KACV,eAAe,EAAE,SAAS,GAC3B,CAAA;gBACD,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;aAC/B;YACD,OAAO,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;QACrC,CAAC,CAAA;QACD,OAAO,oBAAC,gBAAgB,oBAAK,KAAK,EAAI,CAAA;IACxC,CAAC,CAAA;IAED,OAAO,QAAQ,CAAC,MAAM,iCACjB,OAAO,KACV,cAAc,EAAE,CAAC,KAAU,EAAE,aAAkB,EAAE,SAAc,EAAE,EAAE;YACjE,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;YACvC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;gBACrB,IAAI,CAAC,OAAO,CAAC,CAAC,IAAS,EAAE,EAAE;oBACzB,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE;wBAC3B,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;4BACnB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;yBAC9B,CAAC,CAAA;qBACH;gBACH,CAAC,CAAC,CAAA;aACH;YACD,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE;gBACrC,OAAO,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,CAAC,CAAA;aACxD;QACH,CAAC,IACD,CAAC,iBAAiB,CAAC,CAAA;AACvB,CAAC,CAAA;AAED,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAA;AAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA","sourcesContent":["import type {\n FormItemProps as AntdFormItemProps,\n FormProps as AntdFormProps,\n FormComponentProps,\n FormCreateOption,\n} from 'antd/es/form'\nimport React, { forwardRef } from 'react'\n\nimport { ConfigConsumer } from 'antd/es/config-provider'\n\nimport { default as AntdForm } from 'antd/es/form'\nimport type AntdFormItem from 'antd/es/form/FormItem'\n\nimport { doUpperTitle } from '../utils'\n\nexport * from 'antd/es/form'\n\ninterface FormItemComponent\n extends React.ForwardRefExoticComponent<AntdFormItemProps & React.RefAttributes<AntdFormItem>> {}\ninterface FormComponent\n extends React.ForwardRefExoticComponent<AntdFormProps & React.RefAttributes<AntdForm>> {\n Item: FormItemComponent\n create: typeof AntdForm.create\n createFormField: typeof AntdForm.createFormField\n}\n\nexport const Form = forwardRef<AntdForm, AntdFormProps>(({ ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return <AntdForm {...rest} ref={ref} />\n }}\n </ConfigConsumer>\n )\n}) as FormComponent\n\nForm.Item = forwardRef<AntdFormItem, AntdFormItemProps>(({ label, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return <AntdForm.Item {...rest} label={doUpperTitle(label)} ref={ref} />\n }}\n </ConfigConsumer>\n )\n})\n\n// 定义 create 函数的类型\ntype CreateFunction = <TOwnProps extends FormComponentProps<any>>(\n options?: FormCreateOption<TOwnProps>\n) => any\n\nconst Create: CreateFunction = (options: any) => (WrappedComponent: any) => {\n const validateSubmitMap: any = {}\n const CustomFormWrapper = (props: any) => {\n const getFieldDecorator = props.form.getFieldDecorator\n props.form.getFieldDecorator = (name: any, options: any) => {\n let opt = options\n if (options.validateSubmit) {\n opt = {\n ...options,\n validateTrigger: 'noEvent',\n }\n validateSubmitMap[name] = true\n }\n return getFieldDecorator(name, opt)\n }\n return <WrappedComponent {...props} />\n }\n\n return AntdForm.create({\n ...options,\n onValuesChange: (props: any, changedValues: any, allValues: any) => {\n const keys = Object.keys(changedValues)\n if (keys.length === 1) {\n keys.forEach((name: any) => {\n if (validateSubmitMap[name]) {\n props.form.setFields({\n [name]: { errors: undefined },\n })\n }\n })\n }\n if (options && options.onValuesChange) {\n options.onValuesChange(props, changedValues, allValues)\n }\n },\n })(CustomFormWrapper)\n}\n\nForm.createFormField = AntdForm.createFormField\nForm.create = Create\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
|
|
3
|
+
if (customizePrefixCls) return customizePrefixCls;
|
|
4
|
+
return suffixCls ? `tntd-rc-${suffixCls}` : 'tntd-rc';
|
|
5
|
+
};
|
|
6
|
+
export const defaultIconPrefixCls = 'anticon';
|
|
7
|
+
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.
|
|
8
|
+
export const ConfigContext = React.createContext({
|
|
9
|
+
// We provide a default function for Context without provider
|
|
10
|
+
getPrefixCls: defaultGetPrefixCls
|
|
11
|
+
});
|
|
12
|
+
export const ConfigConsumer = ConfigContext.Consumer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,MAAM,mBAAmB,GAAG,CAAC,SAAkB,EAAE,kBAA2B,EAAE,EAAE;IAC9E,IAAI,kBAAkB;QAAE,OAAO,kBAAkB,CAAA;IAEjD,OAAO,SAAS,CAAC,CAAC,CAAC,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;AACvD,CAAC,CAAA;AAQD,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAiC7C,4FAA4F;AAC5F,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAsB;IACpE,6DAA6D;IAC7D,YAAY,EAAE,mBAAmB;CAClC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,QAAQ,CAAA","sourcesContent":["import React from 'react'\nimport type { RenderEmptyHandler } from './defaultRenderEmpty'\n\nexport interface CSPConfig {\n nonce?: string\n}\n\nconst defaultGetPrefixCls = (suffixCls?: string, customizePrefixCls?: string) => {\n if (customizePrefixCls) return customizePrefixCls\n\n return suffixCls ? `tntd-rc-${suffixCls}` : 'tntd-rc'\n}\n\nexport type DirectionType = 'ltr' | 'rtl' | undefined\n\nexport type SizeType = 'small' | 'middle' | 'large' | undefined\n\nexport type RequiredMark = boolean | 'optional'\n\nexport const defaultIconPrefixCls = 'anticon'\n\nexport interface ConfigConsumerProps {\n getTargetContainer?: () => HTMLElement\n getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement\n rootPrefixCls?: string\n iconPrefixCls?: string\n getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string\n renderEmpty?: RenderEmptyHandler\n csp?: CSPConfig\n autoInsertSpaceInButton?: boolean\n input?: {\n autoComplete?: string\n }\n pagination?: {\n showSizeChanger?: boolean\n }\n locale?: object\n pageHeader?: {\n ghost: boolean\n }\n direction?: DirectionType\n space?: {\n size?: SizeType | number\n }\n virtual?: boolean\n dropdownMatchSelectWidth?: boolean\n form?: {\n requiredMark?: RequiredMark\n colon?: boolean\n }\n}\n\n// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.\nexport const ConfigContext = React.createContext<ConfigConsumerProps>({\n // We provide a default function for Context without provider\n getPrefixCls: defaultGetPrefixCls,\n})\n\nexport const ConfigConsumer = ConfigContext.Consumer\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Descripttion: 空状态
|
|
3
|
+
* @Author: 郑泳健
|
|
4
|
+
* @Date: 2022-12-19 16:45:16
|
|
5
|
+
* @LastEditors: 郑泳健
|
|
6
|
+
* @LastEditTime: 2023-02-07 11:47:03
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import { ConfigConsumer } from './context';
|
|
10
|
+
import LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver';
|
|
11
|
+
const defaultRenderEmpty = componentName => React.createElement(ConfigConsumer, null, ({
|
|
12
|
+
getPrefixCls
|
|
13
|
+
}) => {
|
|
14
|
+
const prefix = getPrefixCls('empty');
|
|
15
|
+
return React.createElement(LocaleReceiver, {
|
|
16
|
+
componentName: "TntdSelect"
|
|
17
|
+
}, locale => {
|
|
18
|
+
return React.createElement("div", {
|
|
19
|
+
className: `tntd-select-no-data-wrapper ${prefix}`
|
|
20
|
+
}, React.createElement("img", {
|
|
21
|
+
style: {
|
|
22
|
+
width: 80,
|
|
23
|
+
height: 50
|
|
24
|
+
},
|
|
25
|
+
src: require('../img/no-data-s.png').default
|
|
26
|
+
}), React.createElement("div", {
|
|
27
|
+
className: "tntd-select-no-data-content"
|
|
28
|
+
}, locale.noData));
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export default defaultRenderEmpty;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultRenderEmpty.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/defaultRenderEmpty.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,cAAc,MAAM,wCAAwC,CAAA;AAEnE,MAAM,kBAAkB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAAC,CACpD,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAEpC,OAAO,CACL,oBAAC,cAAc,IAAC,aAAa,EAAC,YAAY,IACvC,CAAC,MAAM,EAAE,EAAE;QACV,OAAO,CACL,6BAAK,SAAS,EAAE,+BAA+B,MAAM,EAAE;YACrD,6BACE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAChC,GAAG,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,GAC5C;YACF,6BAAK,SAAS,EAAC,6BAA6B,IACxC,MAAmC,CAAC,MAAM,CACxC,CACF,CACP,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACc,CAClB,CAAA;AAID,eAAe,kBAAkB,CAAA","sourcesContent":["/*\n * @Descripttion: 空状态\n * @Author: 郑泳健\n * @Date: 2022-12-19 16:45:16\n * @LastEditors: 郑泳健\n * @LastEditTime: 2023-02-07 11:47:03\n */\nimport * as React from 'react'\nimport { ConfigConsumer } from './context'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\n\nconst defaultRenderEmpty = (componentName: string) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefix = getPrefixCls('empty')\n\n return (\n <LocaleReceiver componentName=\"TntdSelect\">\n {(locale) => {\n return (\n <div className={`tntd-select-no-data-wrapper ${prefix}`}>\n <img\n style={{ width: 80, height: 50 }}\n src={require('../img/no-data-s.png').default}\n />\n <div className=\"tntd-select-no-data-content\">\n {(locale as Record<'noData', object>).noData}\n </div>\n </div>\n )\n }}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n\nexport type RenderEmptyHandler = typeof defaultRenderEmpty\n\nexport default defaultRenderEmpty\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { detectFlexGapSupported } from '../styleChecker';
|
|
3
|
+
export default (() => {
|
|
4
|
+
const [flexible, setFlexible] = React.useState(false);
|
|
5
|
+
React.useEffect(() => {
|
|
6
|
+
setFlexible(detectFlexGapSupported());
|
|
7
|
+
}, []);
|
|
8
|
+
return flexible;
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFlexGapSupport.js","sourceRoot":"","sources":["../../../../src/tntd-form/_util/hooks/useFlexGapSupport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,eAAe,GAAG,EAAE;IAClB,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,WAAW,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACxC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { detectFlexGapSupported } from '../styleChecker';\n\nexport default () => {\n const [flexible, setFlexible] = React.useState(false);\n React.useEffect(() => {\n setFlexible(detectFlexGapSupported());\n }, []);\n\n return flexible;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useForceUpdate.js","sourceRoot":"","sources":["../../../../src/tntd-form/_util/hooks/useForceUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,cAAc;IACpC,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACxD,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["import * as React from 'react';\n\nexport default function useForceUpdate() {\n const [, forceUpdate] = React.useReducer(x => x + 1, 0);\n return forceUpdate;\n}\n"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { tuple } from './type';
|
|
2
|
+
// ================== Collapse Motion ==================
|
|
3
|
+
const getCollapsedHeight = () => ({
|
|
4
|
+
height: 0,
|
|
5
|
+
opacity: 0
|
|
6
|
+
});
|
|
7
|
+
const getRealHeight = node => {
|
|
8
|
+
const {
|
|
9
|
+
scrollHeight
|
|
10
|
+
} = node;
|
|
11
|
+
return {
|
|
12
|
+
height: scrollHeight,
|
|
13
|
+
opacity: 1
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
const getCurrentHeight = node => ({
|
|
17
|
+
height: node ? node.offsetHeight : 0
|
|
18
|
+
});
|
|
19
|
+
const skipOpacityTransition = (_, event) => (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';
|
|
20
|
+
const collapseMotion = {
|
|
21
|
+
motionName: 'ant-motion-collapse',
|
|
22
|
+
onAppearStart: getCollapsedHeight,
|
|
23
|
+
onEnterStart: getCollapsedHeight,
|
|
24
|
+
onAppearActive: getRealHeight,
|
|
25
|
+
onEnterActive: getRealHeight,
|
|
26
|
+
onLeaveStart: getCurrentHeight,
|
|
27
|
+
onLeaveActive: getCollapsedHeight,
|
|
28
|
+
onAppearEnd: skipOpacityTransition,
|
|
29
|
+
onEnterEnd: skipOpacityTransition,
|
|
30
|
+
onLeaveEnd: skipOpacityTransition,
|
|
31
|
+
motionDeadline: 500
|
|
32
|
+
};
|
|
33
|
+
const SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
|
|
34
|
+
const getTransitionDirection = placement => {
|
|
35
|
+
if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
|
|
36
|
+
return `slide-down`;
|
|
37
|
+
}
|
|
38
|
+
return `slide-up`;
|
|
39
|
+
};
|
|
40
|
+
const getTransitionName = (rootPrefixCls, motion, transitionName) => {
|
|
41
|
+
if (transitionName !== undefined) {
|
|
42
|
+
return transitionName;
|
|
43
|
+
}
|
|
44
|
+
return `${rootPrefixCls}-${motion}`;
|
|
45
|
+
};
|
|
46
|
+
export { getTransitionName, getTransitionDirection };
|
|
47
|
+
export default collapseMotion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/motion.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,wDAAwD;AACxD,MAAM,kBAAkB,GAAuB,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;AAChF,MAAM,aAAa,GAAuB,CAAC,IAAI,EAAE,EAAE;IACjD,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IAC7B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAA;AAC7C,CAAC,CAAA;AACD,MAAM,gBAAgB,GAAuB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;AACjG,MAAM,qBAAqB,GAA0B,CAAC,CAAC,EAAE,KAAkB,EAAE,EAAE,CAC7E,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,MAAK,IAAI,IAAK,KAAyB,CAAC,YAAY,KAAK,QAAQ,CAAA;AAElF,MAAM,cAAc,GAAmB;IACrC,UAAU,EAAE,qBAAqB;IACjC,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,kBAAkB;IAChC,cAAc,EAAE,aAAa;IAC7B,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,qBAAqB;IACjC,UAAU,EAAE,qBAAqB;IACjC,cAAc,EAAE,GAAG;CACpB,CAAA;AAED,MAAM,gBAAgB,GAAG,KAAK,CAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAA;AAGlF,MAAM,sBAAsB,GAAG,CAAC,SAA4C,EAAE,EAAE;IAC9E,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,UAAU,CAAC,EAAE;QACpF,OAAO,YAAY,CAAA;KACpB;IACD,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAG,CAAC,aAAqB,EAAE,MAAc,EAAE,cAAuB,EAAE,EAAE;IAC3F,IAAI,cAAc,KAAK,SAAS,EAAE;QAChC,OAAO,cAAc,CAAA;KACtB;IACD,OAAO,GAAG,aAAa,IAAI,MAAM,EAAE,CAAA;AACrC,CAAC,CAAA;AACD,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,CAAA;AACpD,eAAe,cAAc,CAAA","sourcesContent":["import type { CSSMotionProps, MotionEndEventHandler, MotionEventHandler } from 'rc-motion'\nimport type { MotionEvent } from 'rc-motion/lib/interface'\nimport { tuple } from './type'\n\n// ================== Collapse Motion ==================\nconst getCollapsedHeight: MotionEventHandler = () => ({ height: 0, opacity: 0 })\nconst getRealHeight: MotionEventHandler = (node) => {\n const { scrollHeight } = node\n return { height: scrollHeight, opacity: 1 }\n}\nconst getCurrentHeight: MotionEventHandler = (node) => ({ height: node ? node.offsetHeight : 0 })\nconst skipOpacityTransition: MotionEndEventHandler = (_, event: MotionEvent) =>\n event?.deadline === true || (event as TransitionEvent).propertyName === 'height'\n\nconst collapseMotion: CSSMotionProps = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500,\n}\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight')\nexport type SelectCommonPlacement = typeof SelectPlacements[number]\n\nconst getTransitionDirection = (placement: SelectCommonPlacement | undefined) => {\n if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {\n return `slide-down`\n }\n return `slide-up`\n}\n\nconst getTransitionName = (rootPrefixCls: string, motion: string, transitionName?: string) => {\n if (transitionName !== undefined) {\n return transitionName\n }\n return `${rootPrefixCls}-${motion}`\n}\nexport { getTransitionName, getTransitionDirection }\nexport default collapseMotion\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export const {
|
|
3
|
+
isValidElement
|
|
4
|
+
} = React;
|
|
5
|
+
export function isFragment(child) {
|
|
6
|
+
return child && isValidElement(child) && child.type === React.Fragment;
|
|
7
|
+
}
|
|
8
|
+
export function replaceElement(element, replacement, props) {
|
|
9
|
+
if (!isValidElement(element)) {
|
|
10
|
+
return replacement;
|
|
11
|
+
}
|
|
12
|
+
return React.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);
|
|
13
|
+
}
|
|
14
|
+
export function cloneElement(element, props) {
|
|
15
|
+
return replaceElement(element, element, props);
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reactNode.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/reactNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,KAAK,CAAA;AAEvC,MAAM,UAAU,UAAU,CAAC,KAAU;IACnC,OAAO,KAAK,IAAI,cAAc,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,QAAQ,CAAA;AACxE,CAAC;AAMD,MAAM,UAAU,cAAc,CAC5B,OAAwB,EACxB,WAA4B,EAC5B,KAAmB;IAEnB,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;QAC5B,OAAO,WAAW,CAAA;KACnB;IACD,OAAO,KAAK,CAAC,YAAY,CACvB,OAAO,EACP,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CACjE,CAAA;AACH,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAwB,EAAE,KAAmB;IACxE,OAAO,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAuB,CAAA;AACtE,CAAC","sourcesContent":["import * as React from 'react'\n\nexport const { isValidElement } = React\n\nexport function isFragment(child: any): boolean {\n return child && isValidElement(child) && child.type === React.Fragment\n}\n\ntype AnyObject = Record<PropertyKey, any>\n\ntype RenderProps = AnyObject | ((originProps: AnyObject) => AnyObject | void)\n\nexport function replaceElement(\n element: React.ReactNode,\n replacement: React.ReactNode,\n props?: RenderProps\n): React.ReactNode {\n if (!isValidElement(element)) {\n return replacement\n }\n return React.cloneElement(\n element,\n typeof props === 'function' ? props(element.props || {}) : props\n )\n}\n\nexport function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement {\n return replaceElement(element, element, props) as React.ReactElement\n}\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export const responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
|
|
2
|
+
export const responsiveMap = {
|
|
3
|
+
xs: '(max-width: 575px)',
|
|
4
|
+
sm: '(min-width: 576px)',
|
|
5
|
+
md: '(min-width: 768px)',
|
|
6
|
+
lg: '(min-width: 992px)',
|
|
7
|
+
xl: '(min-width: 1200px)',
|
|
8
|
+
xxl: '(min-width: 1600px)'
|
|
9
|
+
};
|
|
10
|
+
const subscribers = new Map();
|
|
11
|
+
let subUid = -1;
|
|
12
|
+
let screens = {};
|
|
13
|
+
const responsiveObserve = {
|
|
14
|
+
matchHandlers: {},
|
|
15
|
+
dispatch(pointMap) {
|
|
16
|
+
screens = pointMap;
|
|
17
|
+
subscribers.forEach(func => func(screens));
|
|
18
|
+
return subscribers.size >= 1;
|
|
19
|
+
},
|
|
20
|
+
subscribe(func) {
|
|
21
|
+
if (!subscribers.size) this.register();
|
|
22
|
+
subUid += 1;
|
|
23
|
+
subscribers.set(subUid, func);
|
|
24
|
+
func(screens);
|
|
25
|
+
return subUid;
|
|
26
|
+
},
|
|
27
|
+
unsubscribe(token) {
|
|
28
|
+
subscribers.delete(token);
|
|
29
|
+
if (!subscribers.size) this.unregister();
|
|
30
|
+
},
|
|
31
|
+
unregister() {
|
|
32
|
+
Object.keys(responsiveMap).forEach(screen => {
|
|
33
|
+
const matchMediaQuery = responsiveMap[screen];
|
|
34
|
+
const handler = this.matchHandlers[matchMediaQuery];
|
|
35
|
+
handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
|
|
36
|
+
});
|
|
37
|
+
subscribers.clear();
|
|
38
|
+
},
|
|
39
|
+
register() {
|
|
40
|
+
Object.keys(responsiveMap).forEach(screen => {
|
|
41
|
+
const matchMediaQuery = responsiveMap[screen];
|
|
42
|
+
const listener = ({
|
|
43
|
+
matches
|
|
44
|
+
}) => {
|
|
45
|
+
this.dispatch(Object.assign(Object.assign({}, screens), {
|
|
46
|
+
[screen]: matches
|
|
47
|
+
}));
|
|
48
|
+
};
|
|
49
|
+
const mql = window.matchMedia(matchMediaQuery);
|
|
50
|
+
mql.addListener(listener);
|
|
51
|
+
this.matchHandlers[matchMediaQuery] = {
|
|
52
|
+
mql,
|
|
53
|
+
listener
|
|
54
|
+
};
|
|
55
|
+
listener(mql);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
export default responsiveObserve;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsiveObserve.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/responsiveObserve.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,eAAe,GAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,qBAAqB;IACzB,GAAG,EAAE,qBAAqB;CAC3B,CAAC;AAGF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAyB,CAAC;AACrD,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC;AAChB,IAAI,OAAO,GAAG,EAAE,CAAC;AAEjB,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,EAKd;IACD,QAAQ,CAAC,QAAmB;QAC1B,OAAO,GAAG,QAAQ,CAAC;QACnB,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;QAC3C,OAAO,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC;IAC/B,CAAC;IACD,SAAS,CAAC,IAAmB;QAC3B,IAAI,CAAC,WAAW,CAAC,IAAI;YAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,IAAI,CAAC,CAAC;QACZ,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,CAAC,CAAC;QACd,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,WAAW,CAAC,KAAa;QACvB,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,CAAC,WAAW,CAAC,IAAI;YAAE,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3C,CAAC;IACD,UAAU;QACR,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,MAAc,EAAG,EAAE;YACrD,MAAM,eAAe,GAAG,aAAa,CAAC,MAAoB,CAAC,CAAC;YAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;YACpD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,cAAc,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QACH,WAAW,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IACD,QAAQ;QACN,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,MAAc,EAAE,EAAE;YACpD,MAAM,eAAe,GAAG,aAAa,CAAC,MAAoB,CAAC,CAAC;YAC5D,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAwB,EAAE,EAAE;gBACrD,IAAI,CAAC,QAAQ,iCACR,OAAO,KACV,CAAC,MAAM,CAAC,EAAE,OAAO,IACjB,CAAC;YACL,CAAC,CAAC;YACF,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;YAC/C,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC1B,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG;gBACpC,GAAG;gBACH,QAAQ;aACT,CAAC;YAEF,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';\nexport type BreakpointMap = Record<Breakpoint, string>;\nexport type ScreenMap = Partial<Record<Breakpoint, boolean>>;\nexport type ScreenSizeMap = Partial<Record<Breakpoint, number>>;\n\nexport const responsiveArray: Breakpoint[] = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];\n\nexport const responsiveMap: BreakpointMap = {\n xs: '(max-width: 575px)',\n sm: '(min-width: 576px)',\n md: '(min-width: 768px)',\n lg: '(min-width: 992px)',\n xl: '(min-width: 1200px)',\n xxl: '(min-width: 1600px)',\n};\n\ntype SubscribeFunc = (screens: ScreenMap) => void;\nconst subscribers = new Map<Number, SubscribeFunc>();\nlet subUid = -1;\nlet screens = {};\n\nconst responsiveObserve = {\n matchHandlers: {} as {\n [prop: string]: {\n mql: MediaQueryList;\n listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n };\n },\n dispatch(pointMap: ScreenMap) {\n screens = pointMap;\n subscribers.forEach(func => func(screens));\n return subscribers.size >= 1;\n },\n subscribe(func: SubscribeFunc): number {\n if (!subscribers.size) this.register();\n subUid += 1;\n subscribers.set(subUid, func);\n func(screens);\n return subUid;\n },\n unsubscribe(token: number) {\n subscribers.delete(token);\n if (!subscribers.size) this.unregister();\n },\n unregister() {\n Object.keys(responsiveMap).forEach((screen: string ) => {\n const matchMediaQuery = responsiveMap[screen as Breakpoint];\n const handler = this.matchHandlers[matchMediaQuery];\n handler?.mql.removeListener(handler?.listener);\n });\n subscribers.clear();\n },\n register() {\n Object.keys(responsiveMap).forEach((screen: string) => {\n const matchMediaQuery = responsiveMap[screen as Breakpoint];\n const listener = ({ matches }: { matches: boolean }) => {\n this.dispatch({\n ...screens,\n [screen]: matches,\n });\n };\n const mql = window.matchMedia(matchMediaQuery);\n mql.addListener(listener);\n this.matchHandlers[matchMediaQuery] = {\n mql,\n listener,\n };\n\n listener(mql);\n });\n },\n};\n\nexport default responsiveObserve;\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// import raf from 'raf';
|
|
4
|
+
// import getScroll from './getScroll';
|
|
5
|
+
// import { easeInOutCubic } from './easings';
|
|
6
|
+
// interface ScrollToOptions {
|
|
7
|
+
// /** Scroll container, default as window */
|
|
8
|
+
// getContainer?: () => HTMLElement | Window;
|
|
9
|
+
// /** Scroll end callback */
|
|
10
|
+
// callback?: () => any;
|
|
11
|
+
// /** Animation duration, default as 450 */
|
|
12
|
+
// duration?: number;
|
|
13
|
+
// }
|
|
14
|
+
// export default function scrollTo(y: number, options: ScrollToOptions = {}) {
|
|
15
|
+
// const { getContainer = () => window, callback, duration = 450 } = options;
|
|
16
|
+
// const container = getContainer();
|
|
17
|
+
// const scrollTop = getScroll(container, true);
|
|
18
|
+
// const startTime = Date.now();
|
|
19
|
+
// const frameFunc = () => {
|
|
20
|
+
// const timestamp = Date.now();
|
|
21
|
+
// const time = timestamp - startTime;
|
|
22
|
+
// const nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);
|
|
23
|
+
// if (container === window) {
|
|
24
|
+
// window.scrollTo(window.pageXOffset, nextScrollTop);
|
|
25
|
+
// } else {
|
|
26
|
+
// (container as HTMLElement).scrollTop = nextScrollTop;
|
|
27
|
+
// }
|
|
28
|
+
// if (time < duration) {
|
|
29
|
+
// raf(frameFunc);
|
|
30
|
+
// } else if (typeof callback === 'function') {
|
|
31
|
+
// callback();
|
|
32
|
+
// }
|
|
33
|
+
// };
|
|
34
|
+
// raf(frameFunc);
|
|
35
|
+
// }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollTo.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/scrollTo.ts"],"names":[],"mappings":";AAAA,yBAAyB;AACzB,uCAAuC;AACvC,8CAA8C;AAE9C,8BAA8B;AAC9B,+CAA+C;AAC/C,+CAA+C;AAC/C,+BAA+B;AAC/B,0BAA0B;AAC1B,8CAA8C;AAC9C,uBAAuB;AACvB,IAAI;AAEJ,+EAA+E;AAC/E,+EAA+E;AAE/E,sCAAsC;AACtC,kDAAkD;AAClD,kCAAkC;AAElC,8BAA8B;AAC9B,oCAAoC;AACpC,0CAA0C;AAC1C,uGAAuG;AACvG,kCAAkC;AAClC,4DAA4D;AAC5D,eAAe;AACf,8DAA8D;AAC9D,QAAQ;AACR,6BAA6B;AAC7B,wBAAwB;AACxB,mDAAmD;AACnD,oBAAoB;AACpB,QAAQ;AACR,OAAO;AACP,oBAAoB;AACpB,IAAI","sourcesContent":["// import raf from 'raf';\n// import getScroll from './getScroll';\n// import { easeInOutCubic } from './easings';\n\n// interface ScrollToOptions {\n// /** Scroll container, default as window */\n// getContainer?: () => HTMLElement | Window;\n// /** Scroll end callback */\n// callback?: () => any;\n// /** Animation duration, default as 450 */\n// duration?: number;\n// }\n\n// export default function scrollTo(y: number, options: ScrollToOptions = {}) {\n// const { getContainer = () => window, callback, duration = 450 } = options;\n\n// const container = getContainer();\n// const scrollTop = getScroll(container, true);\n// const startTime = Date.now();\n\n// const frameFunc = () => {\n// const timestamp = Date.now();\n// const time = timestamp - startTime;\n// const nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);\n// if (container === window) {\n// window.scrollTo(window.pageXOffset, nextScrollTop);\n// } else {\n// (container as HTMLElement).scrollTop = nextScrollTop;\n// }\n// if (time < duration) {\n// raf(frameFunc);\n// } else if (typeof callback === 'function') {\n// callback();\n// }\n// };\n// raf(frameFunc);\n// }\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import canUseDom from 'rc-util/lib/Dom/canUseDom';
|
|
2
|
+
import { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';
|
|
3
|
+
export const canUseDocElement = () => canUseDom() && window.document.documentElement;
|
|
4
|
+
export { isStyleSupport };
|
|
5
|
+
let flexGapSupported;
|
|
6
|
+
export const detectFlexGapSupported = () => {
|
|
7
|
+
if (!canUseDocElement()) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
if (flexGapSupported !== undefined) {
|
|
11
|
+
return flexGapSupported;
|
|
12
|
+
}
|
|
13
|
+
// create flex container with row-gap set
|
|
14
|
+
const flex = document.createElement('div');
|
|
15
|
+
flex.style.display = 'flex';
|
|
16
|
+
flex.style.flexDirection = 'column';
|
|
17
|
+
flex.style.rowGap = '1px';
|
|
18
|
+
// create two, elements inside it
|
|
19
|
+
flex.appendChild(document.createElement('div'));
|
|
20
|
+
flex.appendChild(document.createElement('div'));
|
|
21
|
+
// append to the DOM (needed to obtain scrollHeight)
|
|
22
|
+
document.body.appendChild(flex);
|
|
23
|
+
flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap
|
|
24
|
+
document.body.removeChild(flex);
|
|
25
|
+
return flexGapSupported;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleChecker.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/styleChecker.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,SAAS,EAAE,IAAI,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,IAAI,gBAAqC,CAAC;AAC1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACzC,IAAI,CAAC,gBAAgB,EAAE,EAAE;QACvB,OAAO,KAAK,CAAC;KACd;IAED,IAAI,gBAAgB,KAAK,SAAS,EAAE;QAClC,OAAO,gBAAgB,CAAC;KACzB;IAED,yCAAyC;IACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,QAAQ,CAAC;IACpC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;IAE1B,iCAAiC;IACjC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAChD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAEhD,oDAAoD;IACpD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,gBAAgB,GAAG,IAAI,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,qDAAqD;IACjG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAEhC,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC","sourcesContent":["import canUseDom from 'rc-util/lib/Dom/canUseDom';\nimport { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';\n\nexport const canUseDocElement = () => canUseDom() && window.document.documentElement;\n\nexport { isStyleSupport };\n\nlet flexGapSupported: boolean | undefined;\nexport const detectFlexGapSupported = () => {\n if (!canUseDocElement()) {\n return false;\n }\n\n if (flexGapSupported !== undefined) {\n return flexGapSupported;\n }\n\n // create flex container with row-gap set\n const flex = document.createElement('div');\n flex.style.display = 'flex';\n flex.style.flexDirection = 'column';\n flex.style.rowGap = '1px';\n\n // create two, elements inside it\n flex.appendChild(document.createElement('div'));\n flex.appendChild(document.createElement('div'));\n\n // append to the DOM (needed to obtain scrollHeight)\n document.body.appendChild(flex);\n flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n document.body.removeChild(flex);\n\n return flexGapSupported;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/type.ts"],"names":[],"mappings":"AACA,qHAAqH;AACrH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAE7D,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA","sourcesContent":["export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>\n// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\nexport const tuple = <T extends string[]>(...args: T) => args\n\nexport const tupleNum = <T extends number[]>(...args: T) => args\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warning.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/warning.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,CAAA;AAEtB,eAAe,CAAC,KAAc,EAAE,SAAiB,EAAE,OAAe,EAAQ,EAAE;IAC1E,OAAO,CAAC,KAAK,EAAE,UAAU,SAAS,KAAK,OAAO,EAAE,CAAC,CAAA;AACnD,CAAC,CAAA","sourcesContent":["import warning, { resetWarned } from 'rc-util/lib/warning'\n\nexport { resetWarned }\n\nexport default (valid: boolean, component: string, message: string): void => {\n warning(valid, `[antd: ${component}] ${message}`)\n}\n"]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// import * as React from 'react'
|
|
4
|
+
// import { findDOMNode } from 'react-dom'
|
|
5
|
+
// import TransitionEvents from 'css-animation/lib/Event'
|
|
6
|
+
// import raf from './raf'
|
|
7
|
+
// import { ConfigConsumer, ConfigConsumerProps, CSPConfig } from '../../config-provider'
|
|
8
|
+
// let styleForPesudo: HTMLStyleElement | null
|
|
9
|
+
// // Where el is the DOM element you'd like to test for visibility
|
|
10
|
+
// function isHidden(element: HTMLElement) {
|
|
11
|
+
// if (process.env.NODE_ENV === 'test') {
|
|
12
|
+
// return false
|
|
13
|
+
// }
|
|
14
|
+
// return !element || element.offsetParent === null
|
|
15
|
+
// }
|
|
16
|
+
// function isNotGrey(color: string) {
|
|
17
|
+
// // eslint-disable-next-line no-useless-escape
|
|
18
|
+
// const match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/)
|
|
19
|
+
// if (match && match[1] && match[2] && match[3]) {
|
|
20
|
+
// return !(match[1] === match[2] && match[2] === match[3])
|
|
21
|
+
// }
|
|
22
|
+
// return true
|
|
23
|
+
// }
|
|
24
|
+
// export default class Wave extends React.Component<{ insertExtraNode?: boolean }> {
|
|
25
|
+
// private instance?: {
|
|
26
|
+
// cancel: () => void
|
|
27
|
+
// }
|
|
28
|
+
// private extraNode: HTMLDivElement
|
|
29
|
+
// private clickWaveTimeoutId: number
|
|
30
|
+
// private animationStartId: number
|
|
31
|
+
// private animationStart: boolean = false
|
|
32
|
+
// private destroy: boolean = false
|
|
33
|
+
// private csp?: CSPConfig
|
|
34
|
+
// componentDidMount() {
|
|
35
|
+
// const node = findDOMNode(this) as HTMLElement
|
|
36
|
+
// if (!node || node.nodeType !== 1) {
|
|
37
|
+
// return
|
|
38
|
+
// }
|
|
39
|
+
// this.instance = this.bindAnimationEvent(node)
|
|
40
|
+
// }
|
|
41
|
+
// componentWillUnmount() {
|
|
42
|
+
// if (this.instance) {
|
|
43
|
+
// this.instance.cancel()
|
|
44
|
+
// }
|
|
45
|
+
// if (this.clickWaveTimeoutId) {
|
|
46
|
+
// clearTimeout(this.clickWaveTimeoutId)
|
|
47
|
+
// }
|
|
48
|
+
// this.destroy = true
|
|
49
|
+
// }
|
|
50
|
+
// onClick = (node: HTMLElement, waveColor: string) => {
|
|
51
|
+
// if (!node || isHidden(node) || node.className.indexOf('-leave') >= 0) {
|
|
52
|
+
// return
|
|
53
|
+
// }
|
|
54
|
+
// const { insertExtraNode } = this.props
|
|
55
|
+
// this.extraNode = document.createElement('div')
|
|
56
|
+
// const { extraNode } = this
|
|
57
|
+
// extraNode.className = 'ant-click-animating-node'
|
|
58
|
+
// const attributeName = this.getAttributeName()
|
|
59
|
+
// node.setAttribute(attributeName, 'true')
|
|
60
|
+
// // Not white or transparnt or grey
|
|
61
|
+
// styleForPesudo = styleForPesudo || document.createElement('style')
|
|
62
|
+
// if (
|
|
63
|
+
// waveColor &&
|
|
64
|
+
// waveColor !== '#ffffff' &&
|
|
65
|
+
// waveColor !== 'rgb(255, 255, 255)' &&
|
|
66
|
+
// isNotGrey(waveColor) &&
|
|
67
|
+
// !/rgba\(\d*, \d*, \d*, 0\)/.test(waveColor) && // any transparent rgba color
|
|
68
|
+
// waveColor !== 'transparent'
|
|
69
|
+
// ) {
|
|
70
|
+
// // Add nonce if CSP exist
|
|
71
|
+
// if (this.csp && this.csp.nonce) {
|
|
72
|
+
// styleForPesudo.nonce = this.csp.nonce
|
|
73
|
+
// }
|
|
74
|
+
// extraNode.style.borderColor = waveColor
|
|
75
|
+
// styleForPesudo.innerHTML = `
|
|
76
|
+
// [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {
|
|
77
|
+
// --antd-wave-shadow-color: ${waveColor};
|
|
78
|
+
// }`
|
|
79
|
+
// if (!document.body.contains(styleForPesudo)) {
|
|
80
|
+
// document.body.appendChild(styleForPesudo)
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
83
|
+
// if (insertExtraNode) {
|
|
84
|
+
// node.appendChild(extraNode)
|
|
85
|
+
// }
|
|
86
|
+
// TransitionEvents.addStartEventListener(node, this.onTransitionStart)
|
|
87
|
+
// TransitionEvents.addEndEventListener(node, this.onTransitionEnd)
|
|
88
|
+
// }
|
|
89
|
+
// onTransitionStart = (e: AnimationEvent) => {
|
|
90
|
+
// if (this.destroy) return
|
|
91
|
+
// const node = findDOMNode(this) as HTMLElement
|
|
92
|
+
// if (!e || e.target !== node) {
|
|
93
|
+
// return
|
|
94
|
+
// }
|
|
95
|
+
// if (!this.animationStart) {
|
|
96
|
+
// this.resetEffect(node)
|
|
97
|
+
// }
|
|
98
|
+
// }
|
|
99
|
+
// onTransitionEnd = (e: AnimationEvent) => {
|
|
100
|
+
// if (!e || e.animationName !== 'fadeEffect') {
|
|
101
|
+
// return
|
|
102
|
+
// }
|
|
103
|
+
// this.resetEffect(e.target as HTMLElement)
|
|
104
|
+
// }
|
|
105
|
+
// getAttributeName() {
|
|
106
|
+
// const { insertExtraNode } = this.props
|
|
107
|
+
// return insertExtraNode ? 'ant-click-animating' : 'ant-click-animating-without-extra-node'
|
|
108
|
+
// }
|
|
109
|
+
// bindAnimationEvent = (node: HTMLElement) => {
|
|
110
|
+
// if (
|
|
111
|
+
// !node ||
|
|
112
|
+
// !node.getAttribute ||
|
|
113
|
+
// node.getAttribute('disabled') ||
|
|
114
|
+
// node.className.indexOf('disabled') >= 0
|
|
115
|
+
// ) {
|
|
116
|
+
// return
|
|
117
|
+
// }
|
|
118
|
+
// const onClick = (e: MouseEvent) => {
|
|
119
|
+
// // Fix radio button click twice
|
|
120
|
+
// if ((e.target as HTMLElement).tagName === 'INPUT' || isHidden(e.target as HTMLElement)) {
|
|
121
|
+
// return
|
|
122
|
+
// }
|
|
123
|
+
// this.resetEffect(node)
|
|
124
|
+
// // Get wave color from target
|
|
125
|
+
// const waveColor =
|
|
126
|
+
// getComputedStyle(node).getPropertyValue('border-top-color') || // Firefox Compatible
|
|
127
|
+
// getComputedStyle(node).getPropertyValue('border-color') ||
|
|
128
|
+
// getComputedStyle(node).getPropertyValue('background-color')
|
|
129
|
+
// this.clickWaveTimeoutId = window.setTimeout(() => this.onClick(node, waveColor), 0)
|
|
130
|
+
// raf.cancel(this.animationStartId)
|
|
131
|
+
// this.animationStart = true
|
|
132
|
+
// // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
|
|
133
|
+
// this.animationStartId = raf(() => {
|
|
134
|
+
// this.animationStart = false
|
|
135
|
+
// }, 10)
|
|
136
|
+
// }
|
|
137
|
+
// node.addEventListener('click', onClick, true)
|
|
138
|
+
// return {
|
|
139
|
+
// cancel: () => {
|
|
140
|
+
// node.removeEventListener('click', onClick, true)
|
|
141
|
+
// },
|
|
142
|
+
// }
|
|
143
|
+
// }
|
|
144
|
+
// resetEffect(node: HTMLElement) {
|
|
145
|
+
// if (!node || node === this.extraNode || !(node instanceof Element)) {
|
|
146
|
+
// return
|
|
147
|
+
// }
|
|
148
|
+
// const { insertExtraNode } = this.props
|
|
149
|
+
// const attributeName = this.getAttributeName()
|
|
150
|
+
// node.setAttribute(attributeName, 'false') // edge has bug on `removeAttribute` #14466
|
|
151
|
+
// if (styleForPesudo) {
|
|
152
|
+
// styleForPesudo.innerHTML = ''
|
|
153
|
+
// }
|
|
154
|
+
// if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
|
|
155
|
+
// node.removeChild(this.extraNode)
|
|
156
|
+
// }
|
|
157
|
+
// TransitionEvents.removeStartEventListener(node, this.onTransitionStart)
|
|
158
|
+
// TransitionEvents.removeEndEventListener(node, this.onTransitionEnd)
|
|
159
|
+
// }
|
|
160
|
+
// renderWave = ({ csp }: ConfigConsumerProps) => {
|
|
161
|
+
// const { children } = this.props
|
|
162
|
+
// this.csp = csp
|
|
163
|
+
// return children
|
|
164
|
+
// }
|
|
165
|
+
// render() {
|
|
166
|
+
// return <ConfigConsumer>{this.renderWave}</ConfigConsumer>
|
|
167
|
+
// }
|
|
168
|
+
// }
|