tntd 2.7.30 → 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/ellipsis/index.js +2 -0
- package/es/ellipsis/index.js.map +1 -1
- package/es/form/form.js +37 -38
- package/es/form/form.js.map +1 -1
- package/es/tntd-form/_util/context.js.map +1 -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/responsiveObserve.js +59 -0
- package/es/tntd-form/_util/responsiveObserve.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/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/lib/ellipsis/index.d.ts.map +1 -1
- package/lib/ellipsis/index.js +2 -0
- package/lib/ellipsis/index.js.map +1 -1
- 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.map +1 -0
- package/lib/tntd-form/_util/context.js.map +1 -0
- package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +1 -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-select/rc-select/hooks/useDelayReset.js → tntd-form/_util/hooks/useFlexGapSupport.js} +9 -25
- 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-select/rc-select/hooks/useId.js → tntd-form/_util/hooks/useForceUpdate.js} +8 -32
- package/lib/tntd-form/_util/hooks/useForceUpdate.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/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/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 +1 -1
- package/package.json +1 -1
- package/themes/common/index.less +3 -3
- package/es/affix/style/index.js.map +0 -1
- package/es/affix/style/index.less +0 -6
- package/es/alert/style/index.js +0 -2
- package/es/alert/style/index.js.map +0 -1
- package/es/alert/style/index.less +0 -188
- package/es/anchor/style/index.js +0 -4
- package/es/anchor/style/index.js.map +0 -1
- package/es/anchor/style/index.less +0 -82
- package/es/auto-complete/style/index.js +0 -5
- package/es/auto-complete/style/index.js.map +0 -1
- package/es/auto-complete/style/index.less +0 -92
- package/es/avatar/style/index.js +0 -2
- package/es/avatar/style/index.js.map +0 -1
- package/es/avatar/style/index.less +0 -59
- package/es/back-top/style/index.js +0 -2
- package/es/back-top/style/index.js.map +0 -1
- package/es/back-top/style/index.less +0 -42
- package/es/back-top/style/responsive.less +0 -11
- package/es/badge/style/index.js +0 -2
- package/es/badge/style/index.js.map +0 -1
- package/es/badge/style/index.less +0 -190
- package/es/breadcrumb/style/index.js +0 -4
- package/es/breadcrumb/style/index.js.map +0 -1
- package/es/breadcrumb/style/index.less +0 -51
- package/es/button/style/index.js +0 -2
- package/es/button/style/index.js.map +0 -1
- package/es/button/style/index.less +0 -224
- package/es/button/style/mixin.less +0 -357
- package/es/calendar/style/index.js +0 -5
- package/es/calendar/style/index.js.map +0 -1
- package/es/calendar/style/index.less +0 -278
- package/es/card/style/index.js +0 -6
- package/es/card/style/index.js.map +0 -1
- package/es/card/style/index.less +0 -263
- package/es/card/style/size.less +0 -25
- package/es/carousel/style/index.js +0 -2
- package/es/carousel/style/index.js.map +0 -1
- package/es/carousel/style/index.less +0 -238
- package/es/cascader/style/index.js +0 -5
- package/es/cascader/style/index.js.map +0 -1
- package/es/cascader/style/index.less +0 -227
- package/es/checkbox/style/index.js +0 -2
- package/es/checkbox/style/index.js.map +0 -1
- package/es/checkbox/style/index.less +0 -4
- package/es/checkbox/style/mixin.less +0 -220
- 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/collapse/style/index.less +0 -134
- package/es/comment/style/index.js +0 -2
- package/es/comment/style/index.js.map +0 -1
- package/es/comment/style/index.less +0 -93
- package/es/config-provider/style/index.js +0 -1
- package/es/config-provider/style/index.js.map +0 -1
- package/es/config-provider/style/index.less +0 -2
- package/es/date-picker/style/Calendar.less +0 -402
- package/es/date-picker/style/DecadePanel.less +0 -81
- package/es/date-picker/style/MonthPanel.less +0 -86
- package/es/date-picker/style/MonthPicker.less +0 -11
- package/es/date-picker/style/Picker.less +0 -113
- package/es/date-picker/style/RangePicker.less +0 -248
- package/es/date-picker/style/TimePicker.less +0 -151
- package/es/date-picker/style/WeekPicker.less +0 -21
- package/es/date-picker/style/YearPanel.less +0 -85
- package/es/date-picker/style/index.js +0 -7
- package/es/date-picker/style/index.js.map +0 -1
- package/es/date-picker/style/index.less +0 -17
- package/es/descriptions/style/index.js +0 -2
- package/es/descriptions/style/index.js.map +0 -1
- package/es/descriptions/style/index.less +0 -144
- package/es/divider/style/index.js +0 -2
- package/es/divider/style/index.js.map +0 -1
- package/es/divider/style/index.less +0 -109
- package/es/drawer/style/drawer.less +0 -230
- package/es/drawer/style/index.js +0 -3
- package/es/drawer/style/index.js.map +0 -1
- package/es/drawer/style/index.less +0 -3
- package/es/dropdown/style/index.js +0 -4
- package/es/dropdown/style/index.js.map +0 -1
- package/es/dropdown/style/index.less +0 -282
- package/es/empty/style/index.js +0 -2
- package/es/empty/style/index.js.map +0 -1
- package/es/empty/style/index.less +0 -52
- package/es/form/style/index.js +0 -4
- package/es/form/style/index.js.map +0 -1
- package/es/form/style/index.less +0 -653
- package/es/form/style/mixin.less +0 -126
- 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/grid-v4/style/index.less +0 -124
- package/es/grid-v4/style/mixin.less +0 -57
- package/es/grid-v4/style/rtl.less +0 -69
- package/es/handle/handle.js +0 -138
- package/es/handle/handle.js.map +0 -1
- package/es/icon/style/index.js +0 -2
- package/es/icon/style/index.js.map +0 -1
- package/es/icon/style/index.less +0 -4
- package/es/input/style/index.js +0 -4
- package/es/input/style/index.js.map +0 -1
- package/es/input/style/index.less +0 -57
- package/es/input/style/mixin.less +0 -449
- package/es/input/style/search-input.less +0 -34
- package/es/input-number/style/index.js +0 -2
- package/es/input-number/style/index.js.map +0 -1
- package/es/input-number/style/index.less +0 -179
- package/es/layout/style/index.js +0 -2
- package/es/layout/style/index.js.map +0 -1
- package/es/layout/style/index.less +0 -124
- package/es/layout/style/light.less +0 -15
- package/es/list/style/bordered.less +0 -41
- package/es/list/style/index.js +0 -7
- package/es/list/style/index.js.map +0 -1
- package/es/list/style/index.less +0 -234
- package/es/list/style/responsive.less +0 -40
- package/es/locale-provider/style/index.js +0 -1
- package/es/locale-provider/style/index.js.map +0 -1
- package/es/locale-provider/style/index.less +0 -2
- package/es/mention/index.js +0 -4
- package/es/mention/index.js.map +0 -1
- package/es/mentions/style/index.js +0 -4
- package/es/mentions/style/index.js.map +0 -1
- package/es/mentions/style/index.less +0 -164
- package/es/menu/style/dark.less +0 -139
- package/es/menu/style/index.js +0 -5
- package/es/menu/style/index.js.map +0 -1
- package/es/menu/style/index.less +0 -515
- package/es/message/style/index.js +0 -2
- package/es/message/style/index.js.map +0 -1
- package/es/message/style/index.less +0 -75
- package/es/modal/style/confirm.less +0 -78
- package/es/modal/style/index.js +0 -4
- package/es/modal/style/index.js.map +0 -1
- package/es/modal/style/index.less +0 -4
- package/es/modal/style/modal.less +0 -165
- package/es/notification/style/index.js +0 -2
- package/es/notification/style/index.js.map +0 -1
- package/es/notification/style/index.less +0 -199
- package/es/page-header/style/index.js +0 -4
- package/es/page-header/style/index.js.map +0 -1
- package/es/page-header/style/index.less +0 -119
- package/es/pagination/style/index.js +0 -4
- package/es/pagination/style/index.js.map +0 -1
- package/es/pagination/style/index.less +0 -400
- 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/popover/style/index.less +0 -205
- package/es/progress/style/index.js +0 -2
- package/es/progress/style/index.js.map +0 -1
- package/es/progress/style/index.less +0 -182
- package/es/radio/style/index.js +0 -2
- package/es/radio/style/index.js.map +0 -1
- package/es/radio/style/index.less +0 -327
- package/es/rate/style/index.js +0 -4
- package/es/rate/style/index.js.map +0 -1
- package/es/rate/style/index.less +0 -85
- package/es/result/style/index.js +0 -2
- package/es/result/style/index.js.map +0 -1
- package/es/result/style/index.less +0 -71
- 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/select/style/index.less +0 -604
- package/es/skeleton/style/index.js +0 -2
- package/es/skeleton/style/index.js.map +0 -1
- package/es/skeleton/style/index.less +0 -130
- package/es/slider/style/index.js +0 -4
- package/es/slider/style/index.js.map +0 -1
- package/es/slider/style/index.less +0 -197
- package/es/spin/style/index.js +0 -2
- package/es/spin/style/index.js.map +0 -1
- package/es/spin/style/index.less +0 -214
- package/es/statistic/style/index.js +0 -2
- package/es/statistic/style/index.js.map +0 -1
- package/es/statistic/style/index.less +0 -40
- package/es/steps/style/compatibility.less +0 -50
- package/es/steps/style/custom-icon.less +0 -31
- package/es/steps/style/index.js +0 -2
- package/es/steps/style/index.js.map +0 -1
- package/es/steps/style/label-placement.less +0 -38
- package/es/steps/style/progress-dot.less +0 -80
- package/es/steps/style/vertical.less +0 -74
- package/es/style/color/bezierEasing.less +0 -110
- package/es/style/color/colorPalette.less +0 -75
- package/es/style/color/colors.less +0 -149
- package/es/style/color/tinyColor.less +0 -1184
- package/es/style/core/base.less +0 -510
- package/es/style/core/iconfont.less +0 -19
- package/es/style/core/index.less +0 -4
- package/es/style/core/motion/fade.less +0 -31
- package/es/style/core/motion/move.less +0 -120
- package/es/style/core/motion/other.less +0 -40
- package/es/style/core/motion/slide.less +0 -120
- package/es/style/core/motion/swing.less +0 -34
- package/es/style/core/motion/zoom.less +0 -162
- package/es/style/core/motion.less +0 -20
- package/es/style/index.js +0 -1
- package/es/style/index.js.map +0 -1
- package/es/style/index.less +0 -2
- package/es/style/mixins/clearfix.less +0 -13
- package/es/style/mixins/compatibility.less +0 -22
- package/es/style/mixins/iconfont.less +0 -43
- package/es/style/mixins/index.less +0 -10
- package/es/style/mixins/motion.less +0 -35
- package/es/style/mixins/operation-unit.less +0 -18
- package/es/style/mixins/reset.less +0 -13
- package/es/style/mixins/size.less +0 -10
- package/es/style/mixins/typography.less +0 -49
- package/es/style/themes/default.less +0 -699
- package/es/style/themes/index.less +0 -1
- package/es/style/v2-compatible-reset.js +0 -1
- package/es/style/v2-compatible-reset.js.map +0 -1
- package/es/style/v2-compatible-reset.less +0 -51
- package/es/switch/style/index.js +0 -2
- package/es/switch/style/index.js.map +0 -1
- package/es/switch/style/index.less +0 -178
- package/es/table/style/index.js +0 -10
- package/es/table/style/index.js.map +0 -1
- package/es/table/style/index.less +0 -800
- package/es/table/style/size.less +0 -179
- package/es/tabs/style/card-style.less +0 -186
- package/es/tabs/style/index.js +0 -2
- package/es/tabs/style/index.js.map +0 -1
- package/es/tabs/style/index.less +0 -436
- package/es/tag/style/index.js +0 -2
- package/es/tag/style/index.js.map +0 -1
- package/es/tag/style/index.less +0 -106
- package/es/time-picker/style/index.js +0 -2
- package/es/time-picker/style/index.js.map +0 -1
- package/es/time-picker/style/index.less +0 -246
- package/es/timeline/style/index.js +0 -2
- package/es/timeline/style/index.js.map +0 -1
- package/es/timeline/style/index.less +0 -167
- package/es/tntd-form/TntdForm/components/Item.js +0 -55
- package/es/tntd-form/TntdForm/components/Item.js.map +0 -1
- package/es/tntd-form/TntdForm/components/ItemComp.js +0 -186
- package/es/tntd-form/TntdForm/components/ItemComp.js.map +0 -1
- package/es/tntd-form/TntdForm/components/List.js +0 -102
- package/es/tntd-form/TntdForm/components/List.js.map +0 -1
- package/es/tntd-form/TntdForm/index.js +0 -55
- package/es/tntd-form/TntdForm/index.js.map +0 -1
- package/es/tntd-form/TntdForm/interface.js +0 -1
- package/es/tntd-form/TntdForm/interface.js.map +0 -1
- package/es/tntd-form/TntdForm/store.js +0 -2
- package/es/tntd-form/TntdForm/store.js.map +0 -1
- package/es/tntd-form/TntdForm/utils.js +0 -219
- package/es/tntd-form/TntdForm/utils.js.map +0 -1
- package/es/tntd-select/_util/DisabledContext.js +0 -12
- package/es/tntd-select/_util/DisabledContext.js.map +0 -1
- package/es/tntd-select/_util/FormItemInputContext.js +0 -2
- package/es/tntd-select/_util/FormItemInputContext.js.map +0 -1
- package/es/tntd-select/_util/PurePanel.js +0 -66
- package/es/tntd-select/_util/PurePanel.js.map +0 -1
- package/es/tntd-select/_util/SizeContext.js +0 -2
- package/es/tntd-select/_util/SizeContext.js.map +0 -1
- package/es/tntd-select/_util/context.js.map +0 -1
- package/es/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
- package/es/tntd-select/_util/getIcons.js +0 -74
- package/es/tntd-select/_util/getIcons.js.map +0 -1
- package/es/tntd-select/_util/interface.js +0 -4
- package/es/tntd-select/_util/interface.js.map +0 -1
- package/es/tntd-select/_util/motion.js +0 -47
- package/es/tntd-select/_util/motion.js.map +0 -1
- package/es/tntd-select/_util/type.js +0 -3
- package/es/tntd-select/_util/type.js.map +0 -1
- package/es/tntd-select/_util/useCompactItemContext.js +0 -26
- package/es/tntd-select/_util/useCompactItemContext.js.map +0 -1
- package/es/tntd-select/_util/warning.js +0 -14
- package/es/tntd-select/_util/warning.js.map +0 -1
- package/es/tntd-select/rc-select/BaseSelect.js +0 -524
- package/es/tntd-select/rc-select/BaseSelect.js.map +0 -1
- package/es/tntd-select/rc-select/OptGroup.js +0 -4
- package/es/tntd-select/rc-select/OptGroup.js.map +0 -1
- package/es/tntd-select/rc-select/Option.js +0 -4
- package/es/tntd-select/rc-select/Option.js.map +0 -1
- package/es/tntd-select/rc-select/OptionList.js +0 -346
- package/es/tntd-select/rc-select/OptionList.js.map +0 -1
- package/es/tntd-select/rc-select/Select.js +0 -440
- package/es/tntd-select/rc-select/Select.js.map +0 -1
- package/es/tntd-select/rc-select/SelectContext.js +0 -3
- package/es/tntd-select/rc-select/SelectContext.js.map +0 -1
- package/es/tntd-select/rc-select/SelectTrigger.js +0 -130
- package/es/tntd-select/rc-select/SelectTrigger.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/Input.js +0 -103
- package/es/tntd-select/rc-select/Selector/Input.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js +0 -171
- package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/SingleSelector.js +0 -98
- package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
- package/es/tntd-select/rc-select/Selector/index.js +0 -158
- package/es/tntd-select/rc-select/Selector/index.js.map +0 -1
- package/es/tntd-select/rc-select/TransBtn.js +0 -36
- package/es/tntd-select/rc-select/TransBtn.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useAllowClear.js +0 -24
- package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useBaseProps.js +0 -9
- package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useCache.js +0 -38
- package/es/tntd-select/rc-select/hooks/useCache.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useDelayReset.js +0 -23
- package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js +0 -55
- package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useId.js +0 -26
- package/es/tntd-select/rc-select/hooks/useId.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -16
- package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useLock.js +0 -25
- package/es/tntd-select/rc-select/hooks/useLock.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useOptions.js +0 -43
- package/es/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useRefFunc.js +0 -13
- package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -28
- package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
- package/es/tntd-select/rc-select/index.js +0 -7
- package/es/tntd-select/rc-select/index.js.map +0 -1
- package/es/tntd-select/rc-select/interface.js +0 -1
- package/es/tntd-select/rc-select/interface.js.map +0 -1
- package/es/tntd-select/rc-select/utils/commonUtil.js +0 -30
- package/es/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/keyUtil.js +0 -9
- package/es/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/legacyUtil.js +0 -55
- package/es/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/platformUtil.js +0 -4
- package/es/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/valueUtil.js +0 -112
- package/es/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js +0 -112
- package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
- package/es/tooltip/style/index.js +0 -2
- package/es/tooltip/style/index.js.map +0 -1
- package/es/tooltip/style/index.less +0 -187
- package/es/transfer/style/customize.less +0 -62
- package/es/transfer/style/index.js +0 -7
- package/es/transfer/style/index.js.map +0 -1
- package/es/transfer/style/index.less +0 -191
- package/es/tree/style/directory.less +0 -95
- package/es/tree/style/index.js +0 -2
- package/es/tree/style/index.js.map +0 -1
- package/es/tree/style/index.less +0 -280
- package/es/tree/style/mixin.less +0 -29
- package/es/tree-select/style/index.js +0 -6
- package/es/tree-select/style/index.js.map +0 -1
- package/es/tree-select/style/index.less +0 -191
- package/es/typography/style/index.js +0 -5
- package/es/typography/style/index.js.map +0 -1
- package/es/typography/style/index.less +0 -204
- package/es/upload/style/index.js +0 -5
- package/es/upload/style/index.js.map +0 -1
- package/es/upload/style/index.less +0 -542
- 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/affix/style/index.less +0 -6
- 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/alert/style/index.less +0 -188
- 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/anchor/style/index.less +0 -82
- 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/auto-complete/style/index.less +0 -92
- 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/avatar/style/index.less +0 -59
- 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/back-top/style/index.less +0 -42
- package/lib/back-top/style/responsive.less +0 -11
- 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/badge/style/index.less +0 -190
- 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/breadcrumb/style/index.less +0 -51
- 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/button/style/index.less +0 -224
- package/lib/button/style/mixin.less +0 -357
- 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/calendar/style/index.less +0 -278
- 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/card/style/index.less +0 -263
- package/lib/card/style/size.less +0 -25
- 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/carousel/style/index.less +0 -238
- 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/cascader/style/index.less +0 -227
- 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/checkbox/style/index.less +0 -4
- package/lib/checkbox/style/mixin.less +0 -220
- 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/collapse/style/index.less +0 -134
- 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/comment/style/index.less +0 -93
- 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/config-provider/style/index.less +0 -2
- package/lib/date-picker/style/Calendar.less +0 -402
- package/lib/date-picker/style/DecadePanel.less +0 -81
- package/lib/date-picker/style/MonthPanel.less +0 -86
- package/lib/date-picker/style/MonthPicker.less +0 -11
- package/lib/date-picker/style/Picker.less +0 -113
- package/lib/date-picker/style/RangePicker.less +0 -248
- package/lib/date-picker/style/TimePicker.less +0 -151
- package/lib/date-picker/style/WeekPicker.less +0 -21
- package/lib/date-picker/style/YearPanel.less +0 -85
- 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/date-picker/style/index.less +0 -17
- 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/descriptions/style/index.less +0 -144
- 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/divider/style/index.less +0 -109
- package/lib/drawer/style/drawer.less +0 -230
- 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/drawer/style/index.less +0 -3
- 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/dropdown/style/index.less +0 -282
- 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/empty/style/index.less +0 -52
- 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/form/style/index.less +0 -653
- package/lib/form/style/mixin.less +0 -126
- 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/grid-v4/style/index.less +0 -124
- package/lib/grid-v4/style/mixin.less +0 -57
- package/lib/grid-v4/style/rtl.less +0 -69
- package/lib/handle/handle.d.ts +0 -3
- package/lib/handle/handle.d.ts.map +0 -1
- package/lib/handle/handle.js +0 -181
- package/lib/handle/handle.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/icon/style/index.less +0 -4
- 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/style/index.less +0 -57
- package/lib/input/style/mixin.less +0 -449
- package/lib/input/style/search-input.less +0 -34
- 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/input-number/style/index.less +0 -179
- 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/layout/style/index.less +0 -124
- package/lib/layout/style/light.less +0 -15
- package/lib/list/style/bordered.less +0 -41
- 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/list/style/index.less +0 -234
- package/lib/list/style/responsive.less +0 -40
- 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/locale-provider/style/index.less +0 -2
- package/lib/mention/index.js +0 -25
- 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/mentions/style/index.less +0 -164
- package/lib/menu/style/dark.less +0 -139
- 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/menu/style/index.less +0 -515
- 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/message/style/index.less +0 -75
- package/lib/modal/style/confirm.less +0 -78
- 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/modal/style/index.less +0 -4
- package/lib/modal/style/modal.less +0 -165
- 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/notification/style/index.less +0 -199
- 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/page-header/style/index.less +0 -119
- 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/pagination/style/index.less +0 -400
- 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/popover/style/index.less +0 -205
- 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/progress/style/index.less +0 -182
- 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/radio/style/index.less +0 -327
- 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/rate/style/index.less +0 -85
- 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/result/style/index.less +0 -71
- 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/select/style/index.less +0 -604
- 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/skeleton/style/index.less +0 -130
- 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/slider/style/index.less +0 -197
- 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/spin/style/index.less +0 -214
- 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/statistic/style/index.less +0 -40
- package/lib/steps/style/compatibility.less +0 -50
- package/lib/steps/style/custom-icon.less +0 -31
- 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/steps/style/label-placement.less +0 -38
- package/lib/steps/style/progress-dot.less +0 -80
- package/lib/steps/style/vertical.less +0 -74
- package/lib/style/color/bezierEasing.less +0 -110
- package/lib/style/color/colorPalette.less +0 -75
- package/lib/style/color/colors.less +0 -149
- package/lib/style/color/tinyColor.less +0 -1184
- package/lib/style/core/base.less +0 -510
- package/lib/style/core/iconfont.less +0 -19
- package/lib/style/core/index.less +0 -4
- package/lib/style/core/motion/fade.less +0 -31
- package/lib/style/core/motion/move.less +0 -120
- package/lib/style/core/motion/other.less +0 -40
- package/lib/style/core/motion/slide.less +0 -120
- package/lib/style/core/motion/swing.less +0 -34
- package/lib/style/core/motion/zoom.less +0 -162
- package/lib/style/core/motion.less +0 -20
- 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/index.less +0 -2
- package/lib/style/mixins/clearfix.less +0 -13
- package/lib/style/mixins/compatibility.less +0 -22
- package/lib/style/mixins/iconfont.less +0 -43
- package/lib/style/mixins/index.less +0 -10
- package/lib/style/mixins/motion.less +0 -35
- package/lib/style/mixins/operation-unit.less +0 -18
- package/lib/style/mixins/reset.less +0 -13
- package/lib/style/mixins/size.less +0 -10
- package/lib/style/mixins/typography.less +0 -49
- package/lib/style/themes/default.less +0 -699
- package/lib/style/themes/index.less +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/style/v2-compatible-reset.less +0 -51
- 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/switch/style/index.less +0 -178
- 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/table/style/index.less +0 -800
- package/lib/table/style/size.less +0 -179
- package/lib/tabs/style/card-style.less +0 -186
- 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/tabs/style/index.less +0 -436
- 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/tag/style/index.less +0 -106
- 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/time-picker/style/index.less +0 -246
- 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/timeline/style/index.less +0 -167
- package/lib/tntd-form/TntdForm/components/Item.js +0 -65
- package/lib/tntd-form/TntdForm/components/ItemComp.js +0 -215
- package/lib/tntd-form/TntdForm/components/List.js +0 -123
- package/lib/tntd-form/TntdForm/index.js +0 -72
- package/lib/tntd-form/TntdForm/interface.js +0 -5
- package/lib/tntd-form/TntdForm/store.js +0 -10
- package/lib/tntd-form/TntdForm/utils.js +0 -239
- package/lib/tntd-select/_util/DisabledContext.d.ts +0 -10
- package/lib/tntd-select/_util/DisabledContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/DisabledContext.js +0 -22
- package/lib/tntd-select/_util/DisabledContext.js.map +0 -1
- package/lib/tntd-select/_util/FormItemInputContext.d.ts +0 -4
- package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/FormItemInputContext.js +0 -12
- package/lib/tntd-select/_util/FormItemInputContext.js.map +0 -1
- package/lib/tntd-select/_util/PurePanel.d.ts +0 -9
- package/lib/tntd-select/_util/PurePanel.d.ts.map +0 -1
- package/lib/tntd-select/_util/PurePanel.js +0 -90
- package/lib/tntd-select/_util/PurePanel.js.map +0 -1
- package/lib/tntd-select/_util/SizeContext.d.ts +0 -4
- package/lib/tntd-select/_util/SizeContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/SizeContext.js +0 -12
- package/lib/tntd-select/_util/SizeContext.js.map +0 -1
- package/lib/tntd-select/_util/context.d.ts.map +0 -1
- package/lib/tntd-select/_util/context.js.map +0 -1
- package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +0 -1
- package/lib/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
- package/lib/tntd-select/_util/getIcons.d.ts +0 -25
- package/lib/tntd-select/_util/getIcons.d.ts.map +0 -1
- package/lib/tntd-select/_util/getIcons.js +0 -84
- package/lib/tntd-select/_util/getIcons.js.map +0 -1
- package/lib/tntd-select/_util/interface.d.ts +0 -25
- package/lib/tntd-select/_util/interface.d.ts.map +0 -1
- package/lib/tntd-select/_util/interface.js +0 -16
- package/lib/tntd-select/_util/interface.js.map +0 -1
- package/lib/tntd-select/_util/motion.d.ts +0 -9
- package/lib/tntd-select/_util/motion.d.ts.map +0 -1
- package/lib/tntd-select/_util/motion.js +0 -59
- package/lib/tntd-select/_util/motion.js.map +0 -1
- package/lib/tntd-select/_util/type.d.ts +0 -10
- package/lib/tntd-select/_util/type.d.ts.map +0 -1
- package/lib/tntd-select/_util/type.js +0 -21
- package/lib/tntd-select/_util/type.js.map +0 -1
- package/lib/tntd-select/_util/useCompactItemContext.d.ts +0 -9
- package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +0 -1
- package/lib/tntd-select/_util/useCompactItemContext.js +0 -35
- package/lib/tntd-select/_util/useCompactItemContext.js.map +0 -1
- package/lib/tntd-select/_util/warning.d.ts +0 -4
- package/lib/tntd-select/_util/warning.d.ts.map +0 -1
- package/lib/tntd-select/_util/warning.js +0 -24
- package/lib/tntd-select/_util/warning.js.map +0 -1
- package/lib/tntd-select/rc-select/BaseSelect.d.ts +0 -114
- package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/BaseSelect.js +0 -566
- package/lib/tntd-select/rc-select/BaseSelect.js.map +0 -1
- package/lib/tntd-select/rc-select/OptGroup.d.ts +0 -13
- package/lib/tntd-select/rc-select/OptGroup.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/OptGroup.js +0 -13
- package/lib/tntd-select/rc-select/OptGroup.js.map +0 -1
- package/lib/tntd-select/rc-select/Option.d.ts +0 -15
- package/lib/tntd-select/rc-select/Option.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Option.js +0 -13
- package/lib/tntd-select/rc-select/Option.js.map +0 -1
- package/lib/tntd-select/rc-select/OptionList.d.ts +0 -11
- package/lib/tntd-select/rc-select/OptionList.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/OptionList.js +0 -372
- package/lib/tntd-select/rc-select/OptionList.js.map +0 -1
- package/lib/tntd-select/rc-select/Select.d.ts +0 -115
- package/lib/tntd-select/rc-select/Select.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Select.js +0 -509
- package/lib/tntd-select/rc-select/Select.js.map +0 -1
- package/lib/tntd-select/rc-select/SelectContext.d.ts +0 -23
- package/lib/tntd-select/rc-select/SelectContext.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/SelectContext.js +0 -13
- package/lib/tntd-select/rc-select/SelectContext.js.map +0 -1
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts +0 -31
- package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/SelectTrigger.js +0 -149
- package/lib/tntd-select/rc-select/SelectTrigger.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/Input.d.ts +0 -27
- package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/Input.js +0 -110
- package/lib/tntd-select/rc-select/Selector/Input.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +0 -17
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +0 -193
- package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +0 -9
- package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js +0 -116
- package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
- package/lib/tntd-select/rc-select/Selector/index.d.ts +0 -83
- package/lib/tntd-select/rc-select/Selector/index.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/Selector/index.js +0 -159
- package/lib/tntd-select/rc-select/Selector/index.js.map +0 -1
- package/lib/tntd-select/rc-select/TransBtn.d.ts +0 -13
- package/lib/tntd-select/rc-select/TransBtn.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/TransBtn.js +0 -48
- package/lib/tntd-select/rc-select/TransBtn.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +0 -9
- package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js +0 -35
- package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +0 -14
- package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js +0 -21
- package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts +0 -8
- package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useCache.js +0 -49
- package/lib/tntd-select/rc-select/hooks/useCache.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +0 -4
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +0 -72
- package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useId.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useId.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -26
- package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts +0 -8
- package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useLock.js +0 -39
- package/lib/tntd-select/rc-select/hooks/useLock.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +0 -12
- package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useOptions.js +0 -53
- package/lib/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +0 -6
- package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js +0 -22
- package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -2
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -43
- package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
- package/lib/tntd-select/rc-select/index.d.ts +0 -11
- package/lib/tntd-select/rc-select/index.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/index.js +0 -38
- package/lib/tntd-select/rc-select/index.js.map +0 -1
- package/lib/tntd-select/rc-select/interface.d.ts +0 -23
- package/lib/tntd-select/rc-select/interface.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/interface.js +0 -5
- package/lib/tntd-select/rc-select/interface.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +0 -10
- package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/commonUtil.js +0 -43
- package/lib/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +0 -3
- package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/keyUtil.js +0 -16
- package/lib/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +0 -4
- package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/legacyUtil.js +0 -60
- package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +0 -2
- package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/platformUtil.js +0 -10
- package/lib/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +0 -24
- package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/valueUtil.js +0 -132
- package/lib/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +0 -5
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +0 -1
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +0 -127
- package/lib/tntd-select/rc-select/utils/warningPropsUtil.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/tooltip/style/index.less +0 -187
- package/lib/transfer/style/customize.less +0 -62
- 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/transfer/style/index.less +0 -191
- package/lib/tree/style/directory.less +0 -95
- 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/style/index.less +0 -280
- package/lib/tree/style/mixin.less +0 -29
- 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/tree-select/style/index.less +0 -191
- 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/typography/style/index.less +0 -204
- 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/upload/style/index.less +0 -542
- 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/{tntd-select → tntd-form}/_util/context.js +0 -0
- /package/es/{tntd-select → tntd-form}/_util/defaultRenderEmpty.js +0 -0
- /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/{tntd-select → tntd-form}/_util/context.d.ts +0 -0
- /package/lib/{tntd-select → tntd-form}/_util/context.js +0 -0
- /package/lib/{tntd-select → tntd-form}/_util/defaultRenderEmpty.d.ts +0 -0
- /package/lib/{tntd-select → tntd-form}/_util/defaultRenderEmpty.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
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
@import '../../style/themes/index';
|
|
2
|
-
@import '../../style/mixins/index';
|
|
3
|
-
@import '../../input/style/mixin';
|
|
4
|
-
|
|
5
|
-
@timepicker-prefix-cls: ~'@{ant-prefix}-time-picker';
|
|
6
|
-
@timepicker-item-height: 32px;
|
|
7
|
-
|
|
8
|
-
.@{timepicker-prefix-cls}-panel {
|
|
9
|
-
.reset-component;
|
|
10
|
-
|
|
11
|
-
position: absolute;
|
|
12
|
-
z-index: @zindex-picker;
|
|
13
|
-
font-family: @font-family;
|
|
14
|
-
|
|
15
|
-
&-inner {
|
|
16
|
-
position: relative;
|
|
17
|
-
left: -2px;
|
|
18
|
-
font-size: @font-size-base;
|
|
19
|
-
text-align: left;
|
|
20
|
-
list-style: none;
|
|
21
|
-
background-color: @component-background;
|
|
22
|
-
background-clip: padding-box;
|
|
23
|
-
border-radius: @border-radius-base;
|
|
24
|
-
outline: none;
|
|
25
|
-
box-shadow: @box-shadow-base;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-input {
|
|
29
|
-
width: 100%;
|
|
30
|
-
max-width: calc(@time-picker-panel-column-width * 3 - @control-padding-horizontal - 2px);
|
|
31
|
-
margin: 0;
|
|
32
|
-
padding: 0;
|
|
33
|
-
line-height: normal;
|
|
34
|
-
border: 0;
|
|
35
|
-
outline: 0;
|
|
36
|
-
cursor: auto;
|
|
37
|
-
|
|
38
|
-
.placeholder;
|
|
39
|
-
|
|
40
|
-
&-wrap {
|
|
41
|
-
position: relative;
|
|
42
|
-
padding: 7px 2px 7px @control-padding-horizontal;
|
|
43
|
-
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-invalid {
|
|
47
|
-
border-color: @error-color;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-narrow &-input-wrap {
|
|
52
|
-
max-width: calc(@time-picker-panel-column-width * 2);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-select {
|
|
56
|
-
position: relative; // Fix chrome weird render bug
|
|
57
|
-
float: left;
|
|
58
|
-
width: @time-picker-panel-column-width;
|
|
59
|
-
max-height: calc(@timepicker-item-height * 6);
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
font-size: @font-size-base;
|
|
62
|
-
border-left: @border-width-base @border-style-base @border-color-split;
|
|
63
|
-
|
|
64
|
-
&:hover {
|
|
65
|
-
overflow-y: auto;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:first-child {
|
|
69
|
-
margin-left: 0;
|
|
70
|
-
border-left: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:last-child {
|
|
74
|
-
border-right: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:only-child {
|
|
78
|
-
width: 100%;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
ul {
|
|
82
|
-
// use fixed width instead of 100%
|
|
83
|
-
// to fix strange render bug in safari: https://github.com/ant-design/ant-design/issues/17842
|
|
84
|
-
width: @time-picker-panel-column-width;
|
|
85
|
-
margin: 0;
|
|
86
|
-
padding: 0 0 calc(@timepicker-item-height * 5);
|
|
87
|
-
list-style: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
li {
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: @timepicker-item-height;
|
|
93
|
-
margin: 0;
|
|
94
|
-
padding: 0 0 0 @control-padding-horizontal;
|
|
95
|
-
line-height: @timepicker-item-height;
|
|
96
|
-
text-align: left;
|
|
97
|
-
list-style: none;
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
transition: all 0.3s;
|
|
100
|
-
user-select: none;
|
|
101
|
-
|
|
102
|
-
&:focus {
|
|
103
|
-
color: @primary-color;
|
|
104
|
-
font-weight: 600;
|
|
105
|
-
outline: none;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
li:hover {
|
|
110
|
-
background: @item-hover-bg;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
li&-option-selected {
|
|
114
|
-
font-weight: 600;
|
|
115
|
-
background: @time-picker-selected-bg;
|
|
116
|
-
&:hover {
|
|
117
|
-
background: @time-picker-selected-bg;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
li&-option-disabled {
|
|
122
|
-
color: @btn-disable-color;
|
|
123
|
-
&:hover {
|
|
124
|
-
background: transparent;
|
|
125
|
-
cursor: not-allowed;
|
|
126
|
-
}
|
|
127
|
-
&:focus {
|
|
128
|
-
color: @btn-disable-color;
|
|
129
|
-
font-weight: inherit;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&-combobox {
|
|
135
|
-
.clearfix;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&-addon {
|
|
139
|
-
padding: 8px;
|
|
140
|
-
border-top: @border-width-base @border-style-base @border-color-split;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&.slide-up-enter.slide-up-enter-active&-placement-topLeft,
|
|
144
|
-
&.slide-up-enter.slide-up-enter-active&-placement-topRight,
|
|
145
|
-
&.slide-up-appear.slide-up-appear-active&-placement-topLeft,
|
|
146
|
-
&.slide-up-appear.slide-up-appear-active&-placement-topRight {
|
|
147
|
-
animation-name: antSlideDownIn;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&.slide-up-enter.slide-up-enter-active&-placement-bottomLeft,
|
|
151
|
-
&.slide-up-enter.slide-up-enter-active&-placement-bottomRight,
|
|
152
|
-
&.slide-up-appear.slide-up-appear-active&-placement-bottomLeft,
|
|
153
|
-
&.slide-up-appear.slide-up-appear-active&-placement-bottomRight {
|
|
154
|
-
animation-name: antSlideUpIn;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&.slide-up-leave.slide-up-leave-active&-placement-topLeft,
|
|
158
|
-
&.slide-up-leave.slide-up-leave-active&-placement-topRight {
|
|
159
|
-
animation-name: antSlideDownOut;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&.slide-up-leave.slide-up-leave-active&-placement-bottomLeft,
|
|
163
|
-
&.slide-up-leave.slide-up-leave-active&-placement-bottomRight {
|
|
164
|
-
animation-name: antSlideUpOut;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.@{timepicker-prefix-cls} {
|
|
169
|
-
.reset-component;
|
|
170
|
-
|
|
171
|
-
position: relative;
|
|
172
|
-
display: inline-block;
|
|
173
|
-
width: 128px;
|
|
174
|
-
outline: none;
|
|
175
|
-
cursor: text;
|
|
176
|
-
transition: opacity 0.3s;
|
|
177
|
-
|
|
178
|
-
&-input {
|
|
179
|
-
.input;
|
|
180
|
-
&[disabled] {
|
|
181
|
-
.disabled;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&-open {
|
|
186
|
-
opacity: 0;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&-icon,
|
|
190
|
-
&-clear {
|
|
191
|
-
position: absolute;
|
|
192
|
-
top: 50%;
|
|
193
|
-
right: calc(@control-padding-horizontal - 1px);
|
|
194
|
-
z-index: 1;
|
|
195
|
-
width: 14px;
|
|
196
|
-
height: 14px;
|
|
197
|
-
margin-top: -7px;
|
|
198
|
-
color: @disabled-color;
|
|
199
|
-
line-height: 14px;
|
|
200
|
-
transition: all 0.3s @ease-in-out;
|
|
201
|
-
user-select: none;
|
|
202
|
-
.@{timepicker-prefix-cls}-clock-icon {
|
|
203
|
-
display: block;
|
|
204
|
-
color: @disabled-color;
|
|
205
|
-
line-height: 1;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&-clear {
|
|
210
|
-
z-index: 2;
|
|
211
|
-
background: @input-bg;
|
|
212
|
-
opacity: 0;
|
|
213
|
-
pointer-events: none;
|
|
214
|
-
&:hover {
|
|
215
|
-
color: @text-color-secondary;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
&:hover &-clear {
|
|
219
|
-
opacity: 1;
|
|
220
|
-
pointer-events: auto;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
&-large &-input {
|
|
224
|
-
.input-lg;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&-small &-input {
|
|
228
|
-
.input-sm;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
&-small &-icon,
|
|
232
|
-
&-small &-clear {
|
|
233
|
-
right: calc(@control-padding-horizontal-sm - 1px);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// Fix cursor height in safari
|
|
238
|
-
// https://stackoverflow.com/q/3843408/3040605
|
|
239
|
-
// https://browserstrangeness.github.io/css_hacks.html#safari
|
|
240
|
-
@media not all and (min-resolution: 0.001dpcm) {
|
|
241
|
-
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
|
|
242
|
-
.@{ant-prefix}-input {
|
|
243
|
-
line-height: @line-height-base;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/timeline/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA","sourcesContent":["import '../../style/index.less'\nimport './index.less'\n"]}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
@import '../../style/themes/index';
|
|
2
|
-
@import '../../style/mixins/index';
|
|
3
|
-
|
|
4
|
-
@timeline-prefix-cls: ~'@{ant-prefix}-timeline';
|
|
5
|
-
|
|
6
|
-
.@{timeline-prefix-cls} {
|
|
7
|
-
.reset-component;
|
|
8
|
-
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
list-style: none;
|
|
12
|
-
|
|
13
|
-
&-item {
|
|
14
|
-
position: relative;
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0 0 20px;
|
|
17
|
-
font-size: @font-size-base;
|
|
18
|
-
list-style: none;
|
|
19
|
-
|
|
20
|
-
&-tail {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 10px;
|
|
23
|
-
left: 4px;
|
|
24
|
-
height: calc(100% - 10px);
|
|
25
|
-
border-left: @timeline-width solid @timeline-color;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-pending &-head {
|
|
29
|
-
font-size: @font-size-sm;
|
|
30
|
-
background-color: transparent;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-pending &-tail {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-head {
|
|
38
|
-
position: absolute;
|
|
39
|
-
width: 10px;
|
|
40
|
-
height: 10px;
|
|
41
|
-
background-color: @timeline-dot-bg;
|
|
42
|
-
border: @timeline-dot-border-width solid transparent;
|
|
43
|
-
border-radius: 100px;
|
|
44
|
-
|
|
45
|
-
&-blue {
|
|
46
|
-
color: @primary-color;
|
|
47
|
-
border-color: @primary-color;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&-red {
|
|
51
|
-
color: @error-color;
|
|
52
|
-
border-color: @error-color;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-green {
|
|
56
|
-
color: @success-color;
|
|
57
|
-
border-color: @success-color;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&-gray {
|
|
61
|
-
color: @disabled-color;
|
|
62
|
-
border-color: @disabled-color;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&-head-custom {
|
|
67
|
-
position: absolute;
|
|
68
|
-
top: 5.5px;
|
|
69
|
-
left: 5px;
|
|
70
|
-
width: auto;
|
|
71
|
-
height: auto;
|
|
72
|
-
margin-top: 0;
|
|
73
|
-
padding: 3px 1px;
|
|
74
|
-
line-height: 1;
|
|
75
|
-
text-align: center;
|
|
76
|
-
border: 0;
|
|
77
|
-
border-radius: 0;
|
|
78
|
-
transform: translate(-50%, -50%);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&-content {
|
|
82
|
-
position: relative;
|
|
83
|
-
top: calc(-(@font-size-base * @line-height-base - @font-size-base) + 1px);
|
|
84
|
-
margin: 0 0 0 18px;
|
|
85
|
-
word-break: break-word;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&-last {
|
|
89
|
-
> .@{timeline-prefix-cls}-item-tail {
|
|
90
|
-
display: none;
|
|
91
|
-
}
|
|
92
|
-
> .@{timeline-prefix-cls}-item-content {
|
|
93
|
-
min-height: 48px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&.@{timeline-prefix-cls}-alternate,
|
|
99
|
-
&.@{timeline-prefix-cls}-right {
|
|
100
|
-
.@{timeline-prefix-cls}-item {
|
|
101
|
-
&-tail,
|
|
102
|
-
&-head,
|
|
103
|
-
&-head-custom {
|
|
104
|
-
left: 50%;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&-head {
|
|
108
|
-
margin-left: -4px;
|
|
109
|
-
&-custom {
|
|
110
|
-
margin-left: 1px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&-left {
|
|
115
|
-
.@{timeline-prefix-cls}-item-content {
|
|
116
|
-
left: calc(50% - 4px);
|
|
117
|
-
width: calc(50% - 14px);
|
|
118
|
-
text-align: left;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&-right {
|
|
123
|
-
.@{timeline-prefix-cls}-item-content {
|
|
124
|
-
width: calc(50% - 12px);
|
|
125
|
-
margin: 0;
|
|
126
|
-
text-align: right;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&.@{timeline-prefix-cls}-right {
|
|
133
|
-
.@{timeline-prefix-cls}-item-right {
|
|
134
|
-
.@{timeline-prefix-cls}-item-tail,
|
|
135
|
-
.@{timeline-prefix-cls}-item-head,
|
|
136
|
-
.@{timeline-prefix-cls}-item-head-custom {
|
|
137
|
-
// stylelint-disable-next-line function-calc-no-invalid
|
|
138
|
-
left: calc(100% - 4px - @timeline-width);
|
|
139
|
-
}
|
|
140
|
-
.@{timeline-prefix-cls}-item-content {
|
|
141
|
-
width: calc(100% - 18px);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&&-pending &-item-last &-item-tail {
|
|
147
|
-
display: block;
|
|
148
|
-
height: calc(100% - 14px);
|
|
149
|
-
border-left: 2px dotted @timeline-color;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&&-reverse &-item-last &-item-tail {
|
|
153
|
-
display: none;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&&-reverse &-item-pending {
|
|
157
|
-
.@{timeline-prefix-cls}-item-tail {
|
|
158
|
-
top: 15px;
|
|
159
|
-
display: block;
|
|
160
|
-
height: calc(100% - 15px);
|
|
161
|
-
border-left: 2px dotted @timeline-color;
|
|
162
|
-
}
|
|
163
|
-
.@{timeline-prefix-cls}-item-content {
|
|
164
|
-
min-height: 48px;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import _isEqual from "lodash/isEqual";
|
|
2
|
-
/*
|
|
3
|
-
* @Descripttion: TntdForm.Item
|
|
4
|
-
* @Author: 郑泳健
|
|
5
|
-
* @Date: 2023-02-22 23:25:24
|
|
6
|
-
* @LastEditors: 郑泳健
|
|
7
|
-
* @LastEditTime: 2023-04-06 17:46:57
|
|
8
|
-
*/
|
|
9
|
-
import React, { memo, useRef, useContext, useEffect } from 'react';
|
|
10
|
-
import ItemComp from './ItemComp';
|
|
11
|
-
import { FormContext } from '../store';
|
|
12
|
-
import { getNames } from '../utils';
|
|
13
|
-
const Item = ({
|
|
14
|
-
name,
|
|
15
|
-
children,
|
|
16
|
-
style,
|
|
17
|
-
rules,
|
|
18
|
-
shouldUpdate,
|
|
19
|
-
initialValue,
|
|
20
|
-
dependencies
|
|
21
|
-
}) => {
|
|
22
|
-
const {
|
|
23
|
-
form,
|
|
24
|
-
initialValues,
|
|
25
|
-
updateRefs,
|
|
26
|
-
compsRefs
|
|
27
|
-
} = useContext(FormContext);
|
|
28
|
-
const ref = useRef();
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
compsRefs.current[getNames(name).join('.')] = () => {
|
|
31
|
-
var _a, _b;
|
|
32
|
-
(_b = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.onRefresh) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
33
|
-
};
|
|
34
|
-
}, [compsRefs, name]);
|
|
35
|
-
return React.createElement(ItemComp, Object.assign({}, {
|
|
36
|
-
form,
|
|
37
|
-
initialValues,
|
|
38
|
-
updateRefs,
|
|
39
|
-
compsRefs,
|
|
40
|
-
style,
|
|
41
|
-
rules,
|
|
42
|
-
name,
|
|
43
|
-
ref,
|
|
44
|
-
children,
|
|
45
|
-
initialValue,
|
|
46
|
-
shouldUpdate,
|
|
47
|
-
dependencies
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
export default memo(Item, (nextProps, prevProps) => {
|
|
51
|
-
if (_isEqual(nextProps.name, prevProps.name) && !!prevProps.name) {
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
return false;
|
|
55
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/tntd-form/TntdForm/components/Item.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,MAAM,IAAI,GAAwB,CAAC,EACjC,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,YAAY,GACb,EAAE,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,UAAU,CAAe,WAAW,CAAC,CAAA;IAC5F,MAAM,GAAG,GAAG,MAAM,EAAoB,CAAA;IAEtC,SAAS,CAAC,GAAG,EAAE;QACb,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE;;YACjD,MAAA,MAAA,GAAG,CAAC,OAAO,0CAAE,SAAS,kDAAI,CAAA;QAC5B,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAA;IAErB,OAAO,CACL,oBAAC,QAAQ,oBACH;QACF,IAAI;QACJ,aAAa;QACb,UAAU;QACV,SAAS;QACT,KAAK;QACL,KAAK;QACL,IAAI;QACJ,GAAG;QACH,QAAQ;QACR,YAAY;QACZ,YAAY;QACZ,YAAY;KACb,EACD,CACH,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE;IACjD,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE;QAC/D,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAC,CAAA","sourcesContent":["/*\n * @Descripttion: TntdForm.Item\n * @Author: 郑泳健\n * @Date: 2023-02-22 23:25:24\n * @LastEditors: 郑泳健\n * @LastEditTime: 2023-04-06 17:46:57\n */\n\nimport React, { memo, useRef, useContext, useEffect } from 'react'\nimport { isEqual } from 'lodash'\nimport ItemComp from './ItemComp'\nimport { FormContext } from '../store'\nimport type { IFormItem, IFormContext, IChildrenCompFun } from '../interface'\nimport { getNames } from '../utils'\n\nconst Item: React.FC<IFormItem> = ({\n name,\n children,\n style,\n rules,\n shouldUpdate,\n initialValue,\n dependencies,\n}) => {\n const { form, initialValues, updateRefs, compsRefs } = useContext<IFormContext>(FormContext)\n const ref = useRef<IChildrenCompFun>()\n\n useEffect(() => {\n compsRefs.current[getNames(name).join('.')] = () => {\n ref.current?.onRefresh?.()\n }\n }, [compsRefs, name])\n\n return (\n <ItemComp\n {...{\n form,\n initialValues,\n updateRefs,\n compsRefs,\n style,\n rules,\n name,\n ref,\n children,\n initialValue,\n shouldUpdate,\n dependencies,\n }}\n />\n )\n}\n\nexport default memo(Item, (nextProps, prevProps) => {\n if (isEqual(nextProps.name, prevProps.name) && !!prevProps.name) {\n return true\n }\n return false\n})\n"]}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Descripttion: TntdForm.Item进行性能优化
|
|
3
|
-
* @Author: 郑泳健
|
|
4
|
-
* @Date: 2023-02-23 12:47:28
|
|
5
|
-
* @LastEditors: 郑泳健
|
|
6
|
-
* @LastEditTime: 2023-04-06 17:45:35
|
|
7
|
-
*/
|
|
8
|
-
import React, { useState, memo, useEffect, useImperativeHandle } from 'react';
|
|
9
|
-
import { getNames, handleCheckItem, getInitValue } from '../utils';
|
|
10
|
-
const ItemComp = React.forwardRef(({
|
|
11
|
-
name,
|
|
12
|
-
children,
|
|
13
|
-
style,
|
|
14
|
-
initialValue,
|
|
15
|
-
rules,
|
|
16
|
-
shouldUpdate,
|
|
17
|
-
dependencies,
|
|
18
|
-
form,
|
|
19
|
-
updateRefs,
|
|
20
|
-
initialValues,
|
|
21
|
-
compsRefs
|
|
22
|
-
}, ref) => {
|
|
23
|
-
const [value, setValue] = useState(undefined);
|
|
24
|
-
const [errorMsg, setErrorMsg] = useState(undefined);
|
|
25
|
-
const [refresh, setRefresh] = useState(false);
|
|
26
|
-
useImperativeHandle(ref, () => ({
|
|
27
|
-
onRefresh: () => {
|
|
28
|
-
setRefresh(!refresh);
|
|
29
|
-
}
|
|
30
|
-
}));
|
|
31
|
-
/** 根据shouldUpdate 和 dependencies收集修改某个字段后需要同步更新的字段 */
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
var _a;
|
|
34
|
-
const nameStr = (_a = getNames(name)) === null || _a === void 0 ? void 0 : _a.join('.');
|
|
35
|
-
if (shouldUpdate) {
|
|
36
|
-
updateRefs.current.shouldUpdateList.push(nameStr);
|
|
37
|
-
}
|
|
38
|
-
if (Array.isArray(dependencies)) {
|
|
39
|
-
const arr = dependencies.map(i => getNames(i).join('.'));
|
|
40
|
-
if (Array.isArray(arr)) {
|
|
41
|
-
arr.forEach(i => {
|
|
42
|
-
if (Array.isArray(updateRefs.current.dependencies[i])) {
|
|
43
|
-
updateRefs.current.dependencies[i] = [...updateRefs.current.dependencies[i], getNames(name).join('.')];
|
|
44
|
-
} else {
|
|
45
|
-
updateRefs.current.dependencies[i] = [getNames(name).join('.')];
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}, [shouldUpdate, dependencies, name, updateRefs]);
|
|
51
|
-
const updateRender = () => {
|
|
52
|
-
if (Array.isArray(updateRefs.current.shouldUpdateList)) {
|
|
53
|
-
updateRefs.current.shouldUpdateList.forEach(i => {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
(_b = (_a = compsRefs === null || compsRefs === void 0 ? void 0 : compsRefs.current) === null || _a === void 0 ? void 0 : _a[i]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
const list = updateRefs.current.dependencies[getNames(name).join('.')];
|
|
59
|
-
if (Array.isArray(list)) {
|
|
60
|
-
list.forEach(i => {
|
|
61
|
-
var _a, _b;
|
|
62
|
-
(_b = (_a = compsRefs === null || compsRefs === void 0 ? void 0 : compsRefs.current) === null || _a === void 0 ? void 0 : _a[i]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* 动态修改form内部的值,为啥不在useEffect里面处理的原因是子组件的useEffect会比父组件useEffect先执行,需要保证在子组件useEffect监听value变化的时候获取到的formData永远是最新的
|
|
68
|
-
* @param name
|
|
69
|
-
* @param value
|
|
70
|
-
* @returns
|
|
71
|
-
*/
|
|
72
|
-
const generateFormData = (name, value) => {
|
|
73
|
-
if (!name || !form || typeof name !== 'object') return;
|
|
74
|
-
const [str, ...rest] = name;
|
|
75
|
-
rest.forEach(i => {
|
|
76
|
-
if (form.formData[str]) {
|
|
77
|
-
form.formData[str][i].value = value;
|
|
78
|
-
form.formData[str][i].checkItem = () => {
|
|
79
|
-
const error = handleCheckItem(value, rules);
|
|
80
|
-
setErrorMsg(error);
|
|
81
|
-
return error;
|
|
82
|
-
};
|
|
83
|
-
} else {
|
|
84
|
-
form.formData[str] = {
|
|
85
|
-
[i]: {
|
|
86
|
-
value,
|
|
87
|
-
checkItem: () => {
|
|
88
|
-
const error = handleCheckItem(value, rules);
|
|
89
|
-
setErrorMsg(error);
|
|
90
|
-
return error;
|
|
91
|
-
},
|
|
92
|
-
setItemValue: () => {},
|
|
93
|
-
errorMsg: undefined
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
// 为了给最外层提供方法去校验,比如保存的时候.
|
|
100
|
-
// 这里依赖不要添加value,因为子组件的useEffect会比父组件useEffect先执行,如果添加了依赖value会导致子组件获取到的formData永远是上一次的
|
|
101
|
-
useEffect(() => {
|
|
102
|
-
if (!name || !form || typeof name !== 'object') return;
|
|
103
|
-
const [str, ...rest] = name;
|
|
104
|
-
const addItem = {
|
|
105
|
-
setItemValue: (_val, callback) => {
|
|
106
|
-
const error = handleCheckItem(_val, rules);
|
|
107
|
-
setValue(_val);
|
|
108
|
-
setErrorMsg(error);
|
|
109
|
-
callback === null || callback === void 0 ? void 0 : callback();
|
|
110
|
-
updateRender();
|
|
111
|
-
},
|
|
112
|
-
checkItem: () => {
|
|
113
|
-
const error = handleCheckItem(value, rules);
|
|
114
|
-
setErrorMsg(error);
|
|
115
|
-
return error;
|
|
116
|
-
},
|
|
117
|
-
value,
|
|
118
|
-
errorMsg
|
|
119
|
-
};
|
|
120
|
-
rest.forEach(i => {
|
|
121
|
-
if (form.formData[str]) {
|
|
122
|
-
form.formData[str][i] = addItem;
|
|
123
|
-
} else {
|
|
124
|
-
form.formData[str] = {
|
|
125
|
-
[i]: addItem
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
}, [rules, name, errorMsg, form]);
|
|
130
|
-
/** 这段代码不能删除,当增加/删除列的时候有些默认值需要更新 */
|
|
131
|
-
useEffect(() => {
|
|
132
|
-
if (initialValue) {
|
|
133
|
-
setValue(initialValue);
|
|
134
|
-
generateFormData(name, initialValue);
|
|
135
|
-
updateRender();
|
|
136
|
-
}
|
|
137
|
-
}, [initialValue]);
|
|
138
|
-
// 初始化设置默认值,
|
|
139
|
-
useEffect(() => {
|
|
140
|
-
const initValue = getInitValue(initialValues, name);
|
|
141
|
-
// @ts-ignore
|
|
142
|
-
const _value = ['', null, undefined].includes(initValue) ? initialValue : initValue;
|
|
143
|
-
setValue(_value);
|
|
144
|
-
generateFormData(name, _value);
|
|
145
|
-
updateRender();
|
|
146
|
-
}, []);
|
|
147
|
-
// 默认方法
|
|
148
|
-
const handleChange = e => {
|
|
149
|
-
var _a;
|
|
150
|
-
let val;
|
|
151
|
-
if (typeof e === 'object') {
|
|
152
|
-
val = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.value;
|
|
153
|
-
} else {
|
|
154
|
-
val = e;
|
|
155
|
-
}
|
|
156
|
-
setValue(val);
|
|
157
|
-
generateFormData(name, val);
|
|
158
|
-
const error = handleCheckItem(val, rules);
|
|
159
|
-
setErrorMsg(error);
|
|
160
|
-
updateRender();
|
|
161
|
-
};
|
|
162
|
-
return React.createElement("div", {
|
|
163
|
-
className: errorMsg ? 'has-error custom-form-item-wrapper' : 'custom-form-item-wrapper',
|
|
164
|
-
style: style
|
|
165
|
-
}, React.Children.map(children, child => {
|
|
166
|
-
var _a;
|
|
167
|
-
if (React.isValidElement(child)) {
|
|
168
|
-
return React.cloneElement(child, Object.assign({
|
|
169
|
-
value,
|
|
170
|
-
form,
|
|
171
|
-
onChange: handleChange,
|
|
172
|
-
'data-key': (_a = getNames(name)) === null || _a === void 0 ? void 0 : _a.join('.')
|
|
173
|
-
}, child.props));
|
|
174
|
-
}
|
|
175
|
-
return null;
|
|
176
|
-
}), errorMsg && React.createElement("div", {
|
|
177
|
-
className: "ant-form-explain ant-form-item-explain-error"
|
|
178
|
-
}, errorMsg));
|
|
179
|
-
});
|
|
180
|
-
function arePropsEqual(prevProps, nextProps) {
|
|
181
|
-
if (!nextProps.shouldUpdate && Array.isArray(nextProps.dependencies)) {
|
|
182
|
-
return true;
|
|
183
|
-
}
|
|
184
|
-
return false;
|
|
185
|
-
}
|
|
186
|
-
export default memo(ItemComp);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ItemComp.js","sourceRoot":"","sources":["../../../../src/tntd-form/TntdForm/components/ItemComp.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGlE,MAAM,QAAQ,GAAwB,KAAK,CAAC,UAAU,CACpD,CACE,EACE,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,aAAa,EACb,SAAS,GACV,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAoB,SAAS,CAAC,CAAA;IAChE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAA;IACvE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAA;IAEtD,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,SAAS,EAAE,GAAG,EAAE;YACd,UAAU,CAAC,CAA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 郑泳健\n * @Date: 2023-02-23 12:47:28\n * @LastEditors: 郑泳健\n * @LastEditTime: 2023-04-06 17:45:35\n */\n\nimport React, { useState, memo, useEffect, useImperativeHandle } from 'react'\nimport { getNames, handleCheckItem, getInitValue } from '../utils'\nimport type { IFormItem, IFormItemData, TinitialValueType, IChildrenCompFun } from '../interface'\n\nconst ItemComp: React.FC<IFormItem> = React.forwardRef<IChildrenCompFun, IFormItem>(\n (\n {\n name,\n children,\n style,\n initialValue,\n rules,\n shouldUpdate,\n dependencies,\n form,\n updateRefs,\n initialValues,\n compsRefs,\n },\n ref\n ) => {\n const [value, setValue] = useState<TinitialValueType>(undefined)\n const [errorMsg, setErrorMsg] = useState<string | undefined>(undefined)\n const [refresh, setRefresh] = useState<boolean>(false)\n\n useImperativeHandle(ref, () => ({\n onRefresh: () => {\n setRefresh(!refresh)\n },\n }))\n\n /** 根据shouldUpdate 和 dependencies收集修改某个字段后需要同步更新的字段 */\n useEffect(() => {\n const nameStr = getNames(name)?.join('.')\n if (shouldUpdate) {\n updateRefs.current.shouldUpdateList.push(nameStr)\n }\n\n if (Array.isArray(dependencies)) {\n const arr = dependencies.map((i) => getNames(i).join('.'))\n if (Array.isArray(arr)) {\n arr.forEach((i) => {\n if (Array.isArray(updateRefs.current.dependencies[i])) {\n updateRefs.current.dependencies[i] = [\n ...updateRefs.current.dependencies[i],\n getNames(name).join('.'),\n ]\n } else {\n updateRefs.current.dependencies[i] = [getNames(name).join('.')]\n }\n })\n }\n }\n }, [shouldUpdate, dependencies, name, updateRefs])\n\n const updateRender = () => {\n if (Array.isArray(updateRefs.current.shouldUpdateList)) {\n updateRefs.current.shouldUpdateList.forEach((i) => {\n compsRefs?.current?.[i]?.()\n })\n }\n const list = updateRefs.current.dependencies[getNames(name).join('.')]\n\n if (Array.isArray(list)) {\n list.forEach((i) => {\n compsRefs?.current?.[i]?.()\n })\n }\n }\n\n /**\n * 动态修改form内部的值,为啥不在useEffect里面处理的原因是子组件的useEffect会比父组件useEffect先执行,需要保证在子组件useEffect监听value变化的时候获取到的formData永远是最新的\n * @param name\n * @param value\n * @returns\n */\n const generateFormData = (name: string[] | string, value: TinitialValueType) => {\n if (!name || !form || typeof name !== 'object') return\n const [str, ...rest] = name\n\n rest.forEach((i) => {\n if (form.formData[str]) {\n form.formData[str][i].value = value\n form.formData[str][i].checkItem = () => {\n const error = handleCheckItem(value, rules)\n setErrorMsg(error)\n return error\n }\n } else {\n form.formData[str] = {\n [i]: {\n value,\n checkItem: () => {\n const error = handleCheckItem(value, rules)\n setErrorMsg(error)\n return error\n },\n setItemValue: () => {},\n errorMsg: undefined,\n },\n }\n }\n })\n }\n\n // 为了给最外层提供方法去校验,比如保存的时候.\n // 这里依赖不要添加value,因为子组件的useEffect会比父组件useEffect先执行,如果添加了依赖value会导致子组件获取到的formData永远是上一次的\n useEffect(() => {\n if (!name || !form || typeof name !== 'object') return\n const [str, ...rest] = name\n\n const addItem: IFormItemData = {\n setItemValue: (_val, callback) => {\n const error = handleCheckItem(_val, rules)\n setValue(_val)\n setErrorMsg(error)\n callback?.()\n updateRender()\n },\n checkItem: () => {\n const error = handleCheckItem(value, rules)\n setErrorMsg(error)\n return error\n },\n value,\n errorMsg,\n }\n rest.forEach((i) => {\n if (form.formData[str]) {\n form.formData[str][i] = addItem\n } else {\n form.formData[str] = {\n [i]: addItem,\n }\n }\n })\n }, [rules, name, errorMsg, form])\n\n /** 这段代码不能删除,当增加/删除列的时候有些默认值需要更新 */\n useEffect(() => {\n if (initialValue) {\n setValue(initialValue)\n generateFormData(name, initialValue)\n updateRender()\n }\n }, [initialValue])\n\n // 初始化设置默认值,\n useEffect(() => {\n const initValue = getInitValue(initialValues, name)\n // @ts-ignore\n const _value = ['', null, undefined].includes(initValue) ? initialValue : initValue\n\n setValue(_value)\n generateFormData(name, _value)\n updateRender()\n }, [])\n\n // 默认方法\n const handleChange = (\n e:\n | React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>\n | string\n | number\n | undefined\n ) => {\n let val\n if (typeof e === 'object') {\n val = (e as React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>)\n ?.target?.value\n } else {\n val = e\n }\n setValue(val)\n generateFormData(name, val)\n const error = handleCheckItem(val, rules)\n setErrorMsg(error)\n updateRender()\n }\n\n return (\n <div\n className={errorMsg ? 'has-error custom-form-item-wrapper' : 'custom-form-item-wrapper'}\n style={style}\n >\n {React.Children.map(children, (child) => {\n if (React.isValidElement(child)) {\n return React.cloneElement(child, {\n value,\n form,\n onChange: handleChange,\n 'data-key': getNames(name)?.join('.'),\n ...child.props,\n })\n }\n return null\n })}\n {errorMsg && <div className=\"ant-form-explain ant-form-item-explain-error\">{errorMsg}</div>}\n </div>\n )\n }\n)\n\nfunction arePropsEqual(prevProps: IFormItem, nextProps: IFormItem) {\n if (!nextProps.shouldUpdate && Array.isArray(nextProps.dependencies)) {\n return true\n }\n\n return false\n}\n\nexport default memo(ItemComp)\n"]}
|