naive-ui 2.34.2 → 2.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11964 -9783
- package/dist/index.prod.js +3 -2
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/es/_internal/scrollbar/styles/light.d.ts +2 -2
- package/es/_internal/select-menu/src/interface.d.ts +7 -7
- package/es/_internal/select-menu/styles/light.d.ts +2 -2
- package/es/_internal/selection/src/interface.d.ts +1 -1
- package/es/_internal/selection/styles/light.d.ts +2 -2
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +2 -2
- package/es/_mixins/use-theme.d.ts +6 -6
- package/es/_styles/common/light.d.ts +1 -1
- package/es/_utils/cssr/create-key.d.ts +3 -3
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/es/_utils/env/is-native-lazy-load.js +2 -3
- package/es/_utils/naive/extract-public-props.d.ts +4 -4
- package/es/_utils/naive/mutable.d.ts +1 -1
- package/es/_utils/naive/prop.d.ts +1 -1
- package/es/_utils/vue/call.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +1 -1
- package/es/affix/src/utils.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/styles/light.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/utils.d.ts +1 -1
- package/es/anchor/styles/light.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/interface.d.ts +5 -5
- package/es/auto-complete/styles/light.d.ts +2 -2
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar/src/Avatar.js +7 -1
- package/es/avatar/src/interface.d.ts +2 -2
- package/es/avatar/styles/light.d.ts +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/styles/light.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/styles/light.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +7 -1
- package/es/badge/src/Badge.js +15 -3
- package/es/badge/styles/light.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/styles/light.d.ts +2 -2
- package/es/button/src/Button.d.ts +4 -4
- package/es/button/src/interface.d.ts +2 -2
- package/es/button/styles/light.d.ts +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/styles/light.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/interface.d.ts +2 -2
- package/es/calendar/styles/light.d.ts +2 -2
- package/es/card/src/Card.d.ts +23 -18
- package/es/card/src/Card.js +8 -7
- package/es/card/styles/light.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +2 -2
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/styles/light.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +11 -1
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +11 -11
- package/es/cascader/styles/light.d.ts +3 -2
- package/es/checkbox/src/Checkbox.d.ts +12 -1
- package/es/checkbox/src/Checkbox.js +2 -1
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/interface.d.ts +2 -2
- package/es/checkbox/src/styles/index.cssr.js +1 -0
- package/es/checkbox/styles/_common.d.ts +1 -0
- package/es/checkbox/styles/_common.js +2 -1
- package/es/checkbox/styles/light.d.ts +3 -2
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/styles/light.d.ts +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/interface.d.ts +4 -4
- package/es/collapse/styles/light.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/styles/light.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +1 -1
- package/es/color-picker/src/interface.d.ts +5 -5
- package/es/color-picker/src/utils.d.ts +2 -2
- package/es/color-picker/styles/light.d.ts +2 -2
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +3 -5
- package/es/config-provider/src/katex.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +52 -52
- package/es/data-table/styles/light.d.ts +4 -2
- package/es/date-picker/src/DatePicker.d.ts +2 -2
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +21 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/es/date-picker/styles/light.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +5 -5
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/interface.d.ts +1 -1
- package/es/dialog/styles/light.d.ts +2 -2
- package/es/discrete/src/discreteApp.d.ts +2 -2
- package/es/discrete/src/interface.d.ts +3 -3
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/styles/light.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +1 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/drawer/src/interface.d.ts +1 -1
- package/es/drawer/styles/light.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dropdown/src/interface.d.ts +21 -21
- package/es/dropdown/styles/light.d.ts +2 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/interface.d.ts +1 -1
- package/es/dynamic-input/styles/light.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/interface.d.ts +3 -3
- package/es/dynamic-tags/styles/light.d.ts +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/styles/light.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +7 -1
- package/es/ellipsis/styles/light.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/styles/light.d.ts +2 -2
- package/es/equation/styles/light.d.ts +2 -2
- package/es/form/src/Form.d.ts +11 -2
- package/es/form/src/FormItem.d.ts +14 -4
- package/es/form/src/FormItem.js +2 -1
- package/es/form/src/FormItemCol.d.ts +12 -3
- package/es/form/src/FormItemGridItem.d.ts +12 -3
- package/es/form/src/FormItemRow.d.ts +11 -2
- package/es/form/src/interface.d.ts +19 -19
- package/es/form/src/styles/form-item.cssr.js +1 -0
- package/es/form/styles/_common.d.ts +1 -0
- package/es/form/styles/_common.js +2 -1
- package/es/form/styles/light.d.ts +3 -2
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/gradient-text/styles/light.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon/styles/light.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/icon-wrapper/styles/light.d.ts +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +5 -1
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.js +5 -4
- package/es/image/src/utils.d.ts +1 -1
- package/es/image/styles/light.d.ts +2 -2
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/interface.d.ts +4 -4
- package/es/input/src/styles/input.cssr.js +1 -0
- package/es/input/styles/light.d.ts +2 -2
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/interface.d.ts +2 -2
- package/es/input-number/styles/light.d.ts +2 -2
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/styles/light.d.ts +2 -2
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-grid/src/interface.d.ts +1 -1
- package/es/legacy-grid/styles/dark.d.ts +1 -1
- package/es/legacy-grid/styles/light.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +11 -1
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/src/interface.d.ts +3 -3
- package/es/legacy-transfer/styles/light.d.ts +3 -2
- package/es/list/src/List.d.ts +1 -1
- package/es/list/styles/light.d.ts +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/es/loading-bar/styles/light.d.ts +2 -2
- package/es/locales/common/enUS.d.ts +1 -1
- package/es/locales/common/koKR.js +9 -9
- package/es/locales/utils/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/styles/light.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +1 -1
- package/es/mention/styles/light.d.ts +2 -2
- package/es/menu/src/Menu.d.ts +2 -2
- package/es/menu/src/Submenu.js +2 -2
- package/es/menu/src/interface.d.ts +11 -11
- package/es/menu/src/use-menu-child-props.d.ts +1 -1
- package/es/menu/styles/light.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +5 -7
- package/es/message/src/message-props.d.ts +2 -2
- package/es/message/src/types.d.ts +3 -3
- package/es/message/styles/light.d.ts +2 -2
- package/es/modal/src/BodyWrapper.d.ts +9 -0
- package/es/modal/src/Modal.d.ts +14 -1
- package/es/modal/src/interface.d.ts +1 -1
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/modal/styles/light.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +7 -7
- package/es/notification/styles/light.d.ts +2 -2
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/styles/light.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +9 -2
- package/es/pagination/src/Pagination.js +6 -4
- package/es/pagination/src/interface.d.ts +9 -8
- package/es/pagination/src/utils.d.ts +1 -1
- package/es/pagination/styles/light.d.ts +2 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -2
- package/es/popconfirm/src/interface.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +2 -2
- package/es/popover/src/Popover.d.ts +2 -2
- package/es/popover/src/interface.d.ts +3 -3
- package/es/popover/styles/light.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +2 -2
- package/es/popselect/src/interface.d.ts +2 -2
- package/es/popselect/styles/light.d.ts +1 -1
- package/es/progress/src/Line.js +3 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/interface.d.ts +1 -1
- package/es/progress/styles/light.d.ts +2 -2
- package/es/radio/src/Radio.d.ts +8 -1
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +1 -1
- package/es/radio/src/RadioGroup.d.ts +10 -1
- package/es/radio/src/interface.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/radio/src/use-radio.d.ts +1 -1
- package/es/radio/styles/_common.d.ts +1 -0
- package/es/radio/styles/_common.js +2 -1
- package/es/radio/styles/light.d.ts +3 -2
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/interface.d.ts +2 -2
- package/es/rate/styles/light.d.ts +2 -2
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/styles/light.d.ts +2 -2
- package/es/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/select/src/Select.d.ts +5 -1
- package/es/select/src/Select.js +5 -2
- package/es/select/src/interface.d.ts +12 -12
- package/es/select/styles/light.d.ts +2 -2
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/styles/light.d.ts +2 -2
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/utils.d.ts +3 -3
- package/es/slider/styles/light.d.ts +2 -2
- package/es/space/src/Space.d.ts +3 -3
- package/es/space/styles/light.d.ts +2 -2
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/styles/light.d.ts +2 -2
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/styles/light.d.ts +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/styles/light.d.ts +2 -2
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/interface.d.ts +2 -2
- package/es/switch/styles/light.d.ts +2 -2
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/styles/light.d.ts +2 -2
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +123 -1
- package/es/tabs/src/Tabs.js +83 -61
- package/es/tabs/src/interface.d.ts +8 -8
- package/es/tabs/src/styles/index.cssr.js +49 -2
- package/es/tabs/styles/_common.d.ts +12 -0
- package/es/tabs/styles/_common.js +12 -0
- package/es/tabs/styles/light.d.ts +14 -2
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/styles/light.d.ts +2 -2
- package/es/themes/interface.d.ts +1 -1
- package/es/themes/utils.d.ts +2 -2
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/styles/light.d.ts +2 -2
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/interface.d.ts +9 -9
- package/es/time-picker/styles/light.d.ts +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/styles/light.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +2 -2
- package/es/tooltip/styles/light.d.ts +2 -2
- package/es/transfer/src/Transfer.d.ts +11 -1
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +6 -6
- package/es/transfer/styles/light.d.ts +3 -2
- package/es/tree/src/Tree.d.ts +24 -12
- package/es/tree/src/Tree.js +36 -34
- package/es/tree/src/TreeNode.js +4 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/interface.d.ts +16 -16
- package/es/tree/styles/light.d.ts +3 -2
- package/es/tree-select/src/TreeSelect.d.ts +22 -5
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/interface.d.ts +12 -12
- package/es/tree-select/styles/light.d.ts +3 -2
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/styles/light.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +2 -4
- package/es/upload/src/interface.d.ts +16 -16
- package/es/upload/src/utils.js +7 -9
- package/es/upload/styles/light.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/styles/light.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/lib/_internal/scrollbar/styles/light.d.ts +2 -2
- package/lib/_internal/select-menu/src/interface.d.ts +7 -7
- package/lib/_internal/select-menu/styles/light.d.ts +2 -2
- package/lib/_internal/selection/src/interface.d.ts +1 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -2
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +2 -2
- package/lib/_mixins/use-theme.d.ts +6 -6
- package/lib/_styles/common/light.d.ts +1 -1
- package/lib/_utils/cssr/create-key.d.ts +3 -3
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/lib/_utils/env/is-native-lazy-load.js +2 -3
- package/lib/_utils/naive/extract-public-props.d.ts +4 -4
- package/lib/_utils/naive/mutable.d.ts +1 -1
- package/lib/_utils/naive/prop.d.ts +1 -1
- package/lib/_utils/vue/call.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +1 -1
- package/lib/affix/src/utils.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/styles/light.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/utils.d.ts +1 -1
- package/lib/anchor/styles/light.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/interface.d.ts +5 -5
- package/lib/auto-complete/styles/light.d.ts +2 -2
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar/src/Avatar.js +7 -1
- package/lib/avatar/src/interface.d.ts +2 -2
- package/lib/avatar/styles/light.d.ts +3 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/styles/light.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/styles/light.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +7 -1
- package/lib/badge/src/Badge.js +15 -3
- package/lib/badge/styles/light.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/styles/light.d.ts +2 -2
- package/lib/button/src/Button.d.ts +4 -4
- package/lib/button/src/interface.d.ts +2 -2
- package/lib/button/styles/light.d.ts +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/styles/light.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/interface.d.ts +2 -2
- package/lib/calendar/styles/light.d.ts +2 -2
- package/lib/card/src/Card.d.ts +23 -18
- package/lib/card/src/Card.js +8 -7
- package/lib/card/styles/light.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +2 -2
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/styles/light.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +11 -1
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +11 -11
- package/lib/cascader/styles/light.d.ts +3 -2
- package/lib/checkbox/src/Checkbox.d.ts +12 -1
- package/lib/checkbox/src/Checkbox.js +2 -1
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/interface.d.ts +2 -2
- package/lib/checkbox/src/styles/index.cssr.js +1 -0
- package/lib/checkbox/styles/_common.d.ts +1 -0
- package/lib/checkbox/styles/_common.js +2 -1
- package/lib/checkbox/styles/light.d.ts +3 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/styles/light.d.ts +2 -2
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/interface.d.ts +4 -4
- package/lib/collapse/styles/light.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/styles/light.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +1 -1
- package/lib/color-picker/src/interface.d.ts +5 -5
- package/lib/color-picker/src/utils.d.ts +2 -2
- package/lib/color-picker/styles/light.d.ts +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +3 -5
- package/lib/config-provider/src/katex.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +52 -52
- package/lib/data-table/styles/light.d.ts +4 -2
- package/lib/date-picker/src/DatePicker.d.ts +2 -2
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +21 -21
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/lib/date-picker/styles/light.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +5 -5
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/interface.d.ts +1 -1
- package/lib/dialog/styles/light.d.ts +2 -2
- package/lib/discrete/src/discreteApp.d.ts +2 -2
- package/lib/discrete/src/interface.d.ts +3 -3
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/styles/light.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +1 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/drawer/src/interface.d.ts +1 -1
- package/lib/drawer/styles/light.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dropdown/src/interface.d.ts +21 -21
- package/lib/dropdown/styles/light.d.ts +2 -2
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/interface.d.ts +1 -1
- package/lib/dynamic-input/styles/light.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/interface.d.ts +3 -3
- package/lib/dynamic-tags/styles/light.d.ts +1 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/styles/light.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +6 -0
- package/lib/ellipsis/styles/light.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/styles/light.d.ts +2 -2
- package/lib/equation/styles/light.d.ts +2 -2
- package/lib/form/src/Form.d.ts +11 -2
- package/lib/form/src/FormItem.d.ts +14 -4
- package/lib/form/src/FormItem.js +2 -1
- package/lib/form/src/FormItemCol.d.ts +12 -3
- package/lib/form/src/FormItemGridItem.d.ts +12 -3
- package/lib/form/src/FormItemRow.d.ts +11 -2
- package/lib/form/src/interface.d.ts +19 -19
- package/lib/form/src/styles/form-item.cssr.js +1 -0
- package/lib/form/styles/_common.d.ts +1 -0
- package/lib/form/styles/_common.js +2 -1
- package/lib/form/styles/light.d.ts +3 -2
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/gradient-text/styles/light.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon/styles/light.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/icon-wrapper/styles/light.d.ts +2 -2
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +5 -1
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +5 -4
- package/lib/image/src/utils.d.ts +1 -1
- package/lib/image/styles/light.d.ts +2 -2
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/interface.d.ts +4 -4
- package/lib/input/src/styles/input.cssr.js +1 -0
- package/lib/input/styles/light.d.ts +2 -2
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/interface.d.ts +2 -2
- package/lib/input-number/styles/light.d.ts +2 -2
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/styles/light.d.ts +2 -2
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-grid/src/interface.d.ts +1 -1
- package/lib/legacy-grid/styles/dark.d.ts +1 -1
- package/lib/legacy-grid/styles/light.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +11 -1
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/src/interface.d.ts +3 -3
- package/lib/legacy-transfer/styles/light.d.ts +3 -2
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/styles/light.d.ts +2 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/lib/loading-bar/styles/light.d.ts +2 -2
- package/lib/locales/common/enUS.d.ts +1 -1
- package/lib/locales/common/koKR.js +9 -9
- package/lib/locales/utils/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/styles/light.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +1 -1
- package/lib/mention/styles/light.d.ts +2 -2
- package/lib/menu/src/Menu.d.ts +2 -2
- package/lib/menu/src/Submenu.js +2 -2
- package/lib/menu/src/interface.d.ts +11 -11
- package/lib/menu/src/use-menu-child-props.d.ts +1 -1
- package/lib/menu/styles/light.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +5 -7
- package/lib/message/src/message-props.d.ts +2 -2
- package/lib/message/src/types.d.ts +3 -3
- package/lib/message/styles/light.d.ts +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +9 -0
- package/lib/modal/src/Modal.d.ts +14 -1
- package/lib/modal/src/interface.d.ts +1 -1
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/modal/styles/light.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +7 -7
- package/lib/notification/styles/light.d.ts +2 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/styles/light.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +9 -2
- package/lib/pagination/src/Pagination.js +6 -4
- package/lib/pagination/src/interface.d.ts +9 -8
- package/lib/pagination/src/utils.d.ts +1 -1
- package/lib/pagination/styles/light.d.ts +2 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
- package/lib/popconfirm/src/interface.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +2 -2
- package/lib/popover/src/Popover.d.ts +2 -2
- package/lib/popover/src/interface.d.ts +3 -3
- package/lib/popover/styles/light.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +2 -2
- package/lib/popselect/src/interface.d.ts +2 -2
- package/lib/popselect/styles/light.d.ts +1 -1
- package/lib/progress/src/Line.js +3 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/interface.d.ts +1 -1
- package/lib/progress/styles/light.d.ts +2 -2
- package/lib/radio/src/Radio.d.ts +8 -1
- package/lib/radio/src/Radio.js +2 -1
- package/lib/radio/src/RadioButton.d.ts +1 -1
- package/lib/radio/src/RadioGroup.d.ts +10 -1
- package/lib/radio/src/interface.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +1 -1
- package/lib/radio/styles/_common.d.ts +1 -0
- package/lib/radio/styles/_common.js +2 -1
- package/lib/radio/styles/light.d.ts +3 -2
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/interface.d.ts +2 -2
- package/lib/rate/styles/light.d.ts +2 -2
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/styles/light.d.ts +2 -2
- package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/select/src/Select.d.ts +5 -1
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +12 -12
- package/lib/select/styles/light.d.ts +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/styles/light.d.ts +2 -2
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/utils.d.ts +3 -3
- package/lib/slider/styles/light.d.ts +2 -2
- package/lib/space/src/Space.d.ts +3 -3
- package/lib/space/styles/light.d.ts +2 -2
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/styles/light.d.ts +2 -2
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/styles/light.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/styles/light.d.ts +2 -2
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/interface.d.ts +2 -2
- package/lib/switch/styles/light.d.ts +2 -2
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/styles/light.d.ts +2 -2
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +123 -1
- package/lib/tabs/src/Tabs.js +83 -61
- package/lib/tabs/src/interface.d.ts +8 -8
- package/lib/tabs/src/styles/index.cssr.js +49 -2
- package/lib/tabs/styles/_common.d.ts +12 -0
- package/lib/tabs/styles/_common.js +12 -0
- package/lib/tabs/styles/light.d.ts +14 -2
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/styles/light.d.ts +2 -2
- package/lib/themes/interface.d.ts +1 -1
- package/lib/themes/utils.d.ts +2 -2
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/styles/light.d.ts +2 -2
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/interface.d.ts +9 -9
- package/lib/time-picker/styles/light.d.ts +2 -2
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/styles/light.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +2 -2
- package/lib/tooltip/styles/light.d.ts +2 -2
- package/lib/transfer/src/Transfer.d.ts +11 -1
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +6 -6
- package/lib/transfer/styles/light.d.ts +3 -2
- package/lib/tree/src/Tree.d.ts +24 -12
- package/lib/tree/src/Tree.js +36 -34
- package/lib/tree/src/TreeNode.js +4 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/interface.d.ts +16 -16
- package/lib/tree/styles/light.d.ts +3 -2
- package/lib/tree-select/src/TreeSelect.d.ts +22 -5
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/interface.d.ts +12 -12
- package/lib/tree-select/styles/light.d.ts +3 -2
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/styles/light.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +2 -4
- package/lib/upload/src/interface.d.ts +16 -16
- package/lib/upload/src/utils.js +7 -9
- package/lib/upload/styles/light.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/styles/light.d.ts +1 -1
- package/package.json +13 -13
- package/web-types.json +80 -14
|
@@ -60,6 +60,7 @@ export declare const formItemProps: {
|
|
|
60
60
|
labelPaddingHorizontal: string;
|
|
61
61
|
labelTextAlignVertical: string;
|
|
62
62
|
labelTextAlignHorizontal: string;
|
|
63
|
+
labelFontWeight: string;
|
|
63
64
|
}, any>>;
|
|
64
65
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
65
66
|
blankHeightSmall: string;
|
|
@@ -91,6 +92,7 @@ export declare const formItemProps: {
|
|
|
91
92
|
labelPaddingHorizontal: string;
|
|
92
93
|
labelTextAlignVertical: string;
|
|
93
94
|
labelTextAlignHorizontal: string;
|
|
95
|
+
labelFontWeight: string;
|
|
94
96
|
}, any>>>;
|
|
95
97
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
96
98
|
blankHeightSmall: string;
|
|
@@ -122,11 +124,12 @@ export declare const formItemProps: {
|
|
|
122
124
|
labelPaddingHorizontal: string;
|
|
123
125
|
labelTextAlignVertical: string;
|
|
124
126
|
labelTextAlignHorizontal: string;
|
|
127
|
+
labelFontWeight: string;
|
|
125
128
|
}, any>>>;
|
|
126
129
|
};
|
|
127
|
-
export
|
|
128
|
-
export
|
|
129
|
-
export declare const formItemPropKeys: ("label" | "
|
|
130
|
+
export type FormItemSetupProps = ExtractPropTypes<typeof formItemProps>;
|
|
131
|
+
export type FormItemProps = ExtractPublicPropTypes<typeof formItemProps>;
|
|
132
|
+
export declare const formItemPropKeys: ("label" | "size" | "first" | "required" | "path" | "theme" | "themeOverrides" | "builtinThemeOverrides" | "labelWidth" | "labelAlign" | "labelPlacement" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "labelStyle" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "labelProps")[];
|
|
130
133
|
declare const _default: import("vue").DefineComponent<{
|
|
131
134
|
readonly label: StringConstructor;
|
|
132
135
|
readonly labelWidth: PropType<string | number>;
|
|
@@ -186,6 +189,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
189
|
labelPaddingHorizontal: string;
|
|
187
190
|
labelTextAlignVertical: string;
|
|
188
191
|
labelTextAlignHorizontal: string;
|
|
192
|
+
labelFontWeight: string;
|
|
189
193
|
}, any>>;
|
|
190
194
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
191
195
|
blankHeightSmall: string;
|
|
@@ -217,6 +221,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
221
|
labelPaddingHorizontal: string;
|
|
218
222
|
labelTextAlignVertical: string;
|
|
219
223
|
labelTextAlignHorizontal: string;
|
|
224
|
+
labelFontWeight: string;
|
|
220
225
|
}, any>>>;
|
|
221
226
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
222
227
|
blankHeightSmall: string;
|
|
@@ -248,6 +253,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
248
253
|
labelPaddingHorizontal: string;
|
|
249
254
|
labelTextAlignVertical: string;
|
|
250
255
|
labelTextAlignHorizontal: string;
|
|
256
|
+
labelFontWeight: string;
|
|
251
257
|
}, any>>>;
|
|
252
258
|
}, {
|
|
253
259
|
cssVars: import("vue").ComputedRef<{
|
|
@@ -258,6 +264,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
258
264
|
'--n-label-text-align': string;
|
|
259
265
|
'--n-label-height': string;
|
|
260
266
|
'--n-label-padding': string;
|
|
267
|
+
'--n-label-font-weight': string;
|
|
261
268
|
'--n-asterisk-color': string;
|
|
262
269
|
'--n-label-text-color': string;
|
|
263
270
|
'--n-feedback-padding': string;
|
|
@@ -352,6 +359,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
352
359
|
labelPaddingHorizontal: string;
|
|
353
360
|
labelTextAlignVertical: string;
|
|
354
361
|
labelTextAlignHorizontal: string;
|
|
362
|
+
labelFontWeight: string;
|
|
355
363
|
}, any>>;
|
|
356
364
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
357
365
|
blankHeightSmall: string;
|
|
@@ -383,6 +391,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
383
391
|
labelPaddingHorizontal: string;
|
|
384
392
|
labelTextAlignVertical: string;
|
|
385
393
|
labelTextAlignHorizontal: string;
|
|
394
|
+
labelFontWeight: string;
|
|
386
395
|
}, any>>>;
|
|
387
396
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
388
397
|
blankHeightSmall: string;
|
|
@@ -414,10 +423,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
414
423
|
labelPaddingHorizontal: string;
|
|
415
424
|
labelTextAlignVertical: string;
|
|
416
425
|
labelTextAlignHorizontal: string;
|
|
426
|
+
labelFontWeight: string;
|
|
417
427
|
}, any>>>;
|
|
418
428
|
}>>, {
|
|
419
|
-
readonly required: boolean;
|
|
420
429
|
readonly first: boolean;
|
|
430
|
+
readonly required: boolean;
|
|
421
431
|
readonly showRequireMark: boolean | undefined;
|
|
422
432
|
readonly showFeedback: boolean | undefined;
|
|
423
433
|
readonly showLabel: boolean | undefined;
|
package/lib/form/src/FormItem.js
CHANGED
|
@@ -271,7 +271,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
271
271
|
const { value: size } = mergedSizeRef;
|
|
272
272
|
const { value: labelPlacement } = labelPlacementRef;
|
|
273
273
|
const direction = labelPlacement === 'top' ? 'vertical' : 'horizontal';
|
|
274
|
-
const { common: { cubicBezierEaseInOut }, self: { labelTextColor, asteriskColor, lineHeight, feedbackTextColor, feedbackTextColorWarning, feedbackTextColorError, feedbackPadding, [(0, _utils_1.createKey)('labelHeight', size)]: labelHeight, [(0, _utils_1.createKey)('blankHeight', size)]: blankHeight, [(0, _utils_1.createKey)('feedbackFontSize', size)]: feedbackFontSize, [(0, _utils_1.createKey)('feedbackHeight', size)]: feedbackHeight, [(0, _utils_1.createKey)('labelPadding', direction)]: labelPadding, [(0, _utils_1.createKey)('labelTextAlign', direction)]: labelTextAlign, [(0, _utils_1.createKey)((0, _utils_1.createKey)('labelFontSize', labelPlacement), size)]: labelFontSize } } = themeRef.value;
|
|
274
|
+
const { common: { cubicBezierEaseInOut }, self: { labelTextColor, asteriskColor, lineHeight, feedbackTextColor, feedbackTextColorWarning, feedbackTextColorError, feedbackPadding, labelFontWeight, [(0, _utils_1.createKey)('labelHeight', size)]: labelHeight, [(0, _utils_1.createKey)('blankHeight', size)]: blankHeight, [(0, _utils_1.createKey)('feedbackFontSize', size)]: feedbackFontSize, [(0, _utils_1.createKey)('feedbackHeight', size)]: feedbackHeight, [(0, _utils_1.createKey)('labelPadding', direction)]: labelPadding, [(0, _utils_1.createKey)('labelTextAlign', direction)]: labelTextAlign, [(0, _utils_1.createKey)((0, _utils_1.createKey)('labelFontSize', labelPlacement), size)]: labelFontSize } } = themeRef.value;
|
|
275
275
|
let mergedLabelTextAlign = (_a = labelTextAlignRef.value) !== null && _a !== void 0 ? _a : labelTextAlign;
|
|
276
276
|
if (labelPlacement === 'top') {
|
|
277
277
|
mergedLabelTextAlign =
|
|
@@ -285,6 +285,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
285
285
|
'--n-label-text-align': mergedLabelTextAlign,
|
|
286
286
|
'--n-label-height': labelHeight,
|
|
287
287
|
'--n-label-padding': labelPadding,
|
|
288
|
+
'--n-label-font-weight': labelFontWeight,
|
|
288
289
|
'--n-asterisk-color': asteriskColor,
|
|
289
290
|
'--n-label-text-color': labelTextColor,
|
|
290
291
|
'--n-feedback-padding': feedbackPadding,
|
|
@@ -58,6 +58,7 @@ export declare const formItemColProps: {
|
|
|
58
58
|
labelPaddingHorizontal: string;
|
|
59
59
|
labelTextAlignVertical: string;
|
|
60
60
|
labelTextAlignHorizontal: string;
|
|
61
|
+
labelFontWeight: string;
|
|
61
62
|
}, any>>;
|
|
62
63
|
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
63
64
|
blankHeightSmall: string;
|
|
@@ -89,6 +90,7 @@ export declare const formItemColProps: {
|
|
|
89
90
|
labelPaddingHorizontal: string;
|
|
90
91
|
labelTextAlignVertical: string;
|
|
91
92
|
labelTextAlignHorizontal: string;
|
|
93
|
+
labelFontWeight: string;
|
|
92
94
|
}, any>>>;
|
|
93
95
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
94
96
|
blankHeightSmall: string;
|
|
@@ -120,6 +122,7 @@ export declare const formItemColProps: {
|
|
|
120
122
|
labelPaddingHorizontal: string;
|
|
121
123
|
labelTextAlignVertical: string;
|
|
122
124
|
labelTextAlignHorizontal: string;
|
|
125
|
+
labelFontWeight: string;
|
|
123
126
|
}, any>>>;
|
|
124
127
|
readonly span: {
|
|
125
128
|
readonly type: import("vue").PropType<import("../../legacy-grid/src/interface").Span>;
|
|
@@ -138,8 +141,8 @@ export declare const formItemColProps: {
|
|
|
138
141
|
readonly default: 0;
|
|
139
142
|
};
|
|
140
143
|
};
|
|
141
|
-
export declare const formItemColPropKeys: ("label" | "push" | "
|
|
142
|
-
export
|
|
144
|
+
export declare const formItemColPropKeys: ("label" | "push" | "size" | "first" | "offset" | "span" | "required" | "path" | "theme" | "themeOverrides" | "builtinThemeOverrides" | "labelWidth" | "labelAlign" | "labelPlacement" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "labelStyle" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "labelProps" | "pull")[];
|
|
145
|
+
export type FormItemColProps = ExtractPublicPropTypes<typeof formItemColProps>;
|
|
143
146
|
declare const _default: import("vue").DefineComponent<{
|
|
144
147
|
readonly label: StringConstructor;
|
|
145
148
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
@@ -199,6 +202,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
202
|
labelPaddingHorizontal: string;
|
|
200
203
|
labelTextAlignVertical: string;
|
|
201
204
|
labelTextAlignHorizontal: string;
|
|
205
|
+
labelFontWeight: string;
|
|
202
206
|
}, any>>;
|
|
203
207
|
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
204
208
|
blankHeightSmall: string;
|
|
@@ -230,6 +234,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
230
234
|
labelPaddingHorizontal: string;
|
|
231
235
|
labelTextAlignVertical: string;
|
|
232
236
|
labelTextAlignHorizontal: string;
|
|
237
|
+
labelFontWeight: string;
|
|
233
238
|
}, any>>>;
|
|
234
239
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
235
240
|
blankHeightSmall: string;
|
|
@@ -261,6 +266,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
261
266
|
labelPaddingHorizontal: string;
|
|
262
267
|
labelTextAlignVertical: string;
|
|
263
268
|
labelTextAlignHorizontal: string;
|
|
269
|
+
labelFontWeight: string;
|
|
264
270
|
}, any>>>;
|
|
265
271
|
readonly span: {
|
|
266
272
|
readonly type: import("vue").PropType<import("../../legacy-grid/src/interface").Span>;
|
|
@@ -346,6 +352,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
346
352
|
labelPaddingHorizontal: string;
|
|
347
353
|
labelTextAlignVertical: string;
|
|
348
354
|
labelTextAlignHorizontal: string;
|
|
355
|
+
labelFontWeight: string;
|
|
349
356
|
}, any>>;
|
|
350
357
|
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
351
358
|
blankHeightSmall: string;
|
|
@@ -377,6 +384,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
377
384
|
labelPaddingHorizontal: string;
|
|
378
385
|
labelTextAlignVertical: string;
|
|
379
386
|
labelTextAlignHorizontal: string;
|
|
387
|
+
labelFontWeight: string;
|
|
380
388
|
}, any>>>;
|
|
381
389
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
382
390
|
blankHeightSmall: string;
|
|
@@ -408,6 +416,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
408
416
|
labelPaddingHorizontal: string;
|
|
409
417
|
labelTextAlignVertical: string;
|
|
410
418
|
labelTextAlignHorizontal: string;
|
|
419
|
+
labelFontWeight: string;
|
|
411
420
|
}, any>>>;
|
|
412
421
|
readonly span: {
|
|
413
422
|
readonly type: import("vue").PropType<import("../../legacy-grid/src/interface").Span>;
|
|
@@ -427,10 +436,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
427
436
|
};
|
|
428
437
|
}>>, {
|
|
429
438
|
readonly push: import("../../legacy-grid/src/interface").Span;
|
|
430
|
-
readonly required: boolean;
|
|
431
439
|
readonly first: boolean;
|
|
432
440
|
readonly offset: import("../../legacy-grid/src/interface").Span;
|
|
433
441
|
readonly span: import("../../legacy-grid/src/interface").Span;
|
|
442
|
+
readonly required: boolean;
|
|
434
443
|
readonly showRequireMark: boolean | undefined;
|
|
435
444
|
readonly showFeedback: boolean | undefined;
|
|
436
445
|
readonly showLabel: boolean | undefined;
|
|
@@ -58,6 +58,7 @@ export declare const formItemGiProps: {
|
|
|
58
58
|
labelPaddingHorizontal: string;
|
|
59
59
|
labelTextAlignVertical: string;
|
|
60
60
|
labelTextAlignHorizontal: string;
|
|
61
|
+
labelFontWeight: string;
|
|
61
62
|
}, any>>;
|
|
62
63
|
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
63
64
|
blankHeightSmall: string;
|
|
@@ -89,6 +90,7 @@ export declare const formItemGiProps: {
|
|
|
89
90
|
labelPaddingHorizontal: string;
|
|
90
91
|
labelTextAlignVertical: string;
|
|
91
92
|
labelTextAlignHorizontal: string;
|
|
93
|
+
labelFontWeight: string;
|
|
92
94
|
}, any>>>;
|
|
93
95
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
94
96
|
blankHeightSmall: string;
|
|
@@ -120,6 +122,7 @@ export declare const formItemGiProps: {
|
|
|
120
122
|
labelPaddingHorizontal: string;
|
|
121
123
|
labelTextAlignVertical: string;
|
|
122
124
|
labelTextAlignHorizontal: string;
|
|
125
|
+
labelFontWeight: string;
|
|
123
126
|
}, any>>>;
|
|
124
127
|
readonly span: {
|
|
125
128
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -138,8 +141,8 @@ export declare const formItemGiProps: {
|
|
|
138
141
|
readonly default: true;
|
|
139
142
|
};
|
|
140
143
|
};
|
|
141
|
-
export declare const formItemGiPropKeys: ("label" | "
|
|
142
|
-
export
|
|
144
|
+
export declare const formItemGiPropKeys: ("label" | "size" | "first" | "offset" | "span" | "required" | "path" | "theme" | "themeOverrides" | "builtinThemeOverrides" | "suffix" | "labelWidth" | "labelAlign" | "labelPlacement" | "showRequireMark" | "requireMarkPlacement" | "showFeedback" | "showLabel" | "labelStyle" | "rulePath" | "rule" | "ignorePathChange" | "validationStatus" | "feedback" | "labelProps" | "privateSpan" | "privateColStart" | "privateShow" | "privateOffset")[];
|
|
145
|
+
export type FormItemGiProps = ExtractPublicPropTypes<typeof formItemGiProps>;
|
|
143
146
|
declare const _default: import("vue").DefineComponent<{
|
|
144
147
|
readonly label: StringConstructor;
|
|
145
148
|
readonly labelWidth: import("vue").PropType<string | number>;
|
|
@@ -199,6 +202,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
202
|
labelPaddingHorizontal: string;
|
|
200
203
|
labelTextAlignVertical: string;
|
|
201
204
|
labelTextAlignHorizontal: string;
|
|
205
|
+
labelFontWeight: string;
|
|
202
206
|
}, any>>;
|
|
203
207
|
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
204
208
|
blankHeightSmall: string;
|
|
@@ -230,6 +234,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
230
234
|
labelPaddingHorizontal: string;
|
|
231
235
|
labelTextAlignVertical: string;
|
|
232
236
|
labelTextAlignHorizontal: string;
|
|
237
|
+
labelFontWeight: string;
|
|
233
238
|
}, any>>>;
|
|
234
239
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
235
240
|
blankHeightSmall: string;
|
|
@@ -261,6 +266,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
261
266
|
labelPaddingHorizontal: string;
|
|
262
267
|
labelTextAlignVertical: string;
|
|
263
268
|
labelTextAlignHorizontal: string;
|
|
269
|
+
labelFontWeight: string;
|
|
264
270
|
}, any>>>;
|
|
265
271
|
readonly span: {
|
|
266
272
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -346,6 +352,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
346
352
|
labelPaddingHorizontal: string;
|
|
347
353
|
labelTextAlignVertical: string;
|
|
348
354
|
labelTextAlignHorizontal: string;
|
|
355
|
+
labelFontWeight: string;
|
|
349
356
|
}, any>>;
|
|
350
357
|
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
351
358
|
blankHeightSmall: string;
|
|
@@ -377,6 +384,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
377
384
|
labelPaddingHorizontal: string;
|
|
378
385
|
labelTextAlignVertical: string;
|
|
379
386
|
labelTextAlignHorizontal: string;
|
|
387
|
+
labelFontWeight: string;
|
|
380
388
|
}, any>>>;
|
|
381
389
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
382
390
|
blankHeightSmall: string;
|
|
@@ -408,6 +416,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
408
416
|
labelPaddingHorizontal: string;
|
|
409
417
|
labelTextAlignVertical: string;
|
|
410
418
|
labelTextAlignHorizontal: string;
|
|
419
|
+
labelFontWeight: string;
|
|
411
420
|
}, any>>>;
|
|
412
421
|
readonly span: {
|
|
413
422
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -426,10 +435,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
426
435
|
readonly default: true;
|
|
427
436
|
};
|
|
428
437
|
}>>, {
|
|
429
|
-
readonly required: boolean;
|
|
430
438
|
readonly first: boolean;
|
|
431
439
|
readonly offset: string | number;
|
|
432
440
|
readonly span: string | number;
|
|
441
|
+
readonly required: boolean;
|
|
433
442
|
readonly suffix: boolean;
|
|
434
443
|
readonly showRequireMark: boolean | undefined;
|
|
435
444
|
readonly showFeedback: boolean | undefined;
|
|
@@ -58,6 +58,7 @@ export declare const formItemRowProps: {
|
|
|
58
58
|
labelPaddingHorizontal: string;
|
|
59
59
|
labelTextAlignVertical: string;
|
|
60
60
|
labelTextAlignHorizontal: string;
|
|
61
|
+
labelFontWeight: string;
|
|
61
62
|
}, any>>;
|
|
62
63
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
63
64
|
blankHeightSmall: string;
|
|
@@ -89,6 +90,7 @@ export declare const formItemRowProps: {
|
|
|
89
90
|
labelPaddingHorizontal: string;
|
|
90
91
|
labelTextAlignVertical: string;
|
|
91
92
|
labelTextAlignHorizontal: string;
|
|
93
|
+
labelFontWeight: string;
|
|
92
94
|
}, any>>>;
|
|
93
95
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
94
96
|
blankHeightSmall: string;
|
|
@@ -120,6 +122,7 @@ export declare const formItemRowProps: {
|
|
|
120
122
|
labelPaddingHorizontal: string;
|
|
121
123
|
labelTextAlignVertical: string;
|
|
122
124
|
labelTextAlignHorizontal: string;
|
|
125
|
+
labelFontWeight: string;
|
|
123
126
|
}, any>>>;
|
|
124
127
|
span: {
|
|
125
128
|
readonly type: import("vue").PropType<import("../../legacy-grid/src/interface").Span>;
|
|
@@ -144,7 +147,7 @@ export declare const formItemRowProps: {
|
|
|
144
147
|
alignItems: StringConstructor;
|
|
145
148
|
justifyContent: StringConstructor;
|
|
146
149
|
};
|
|
147
|
-
export
|
|
150
|
+
export type FormItemRowProps = ExtractPublicPropTypes<typeof formItemRowProps>;
|
|
148
151
|
declare const _default: import("vue").DefineComponent<{
|
|
149
152
|
label: StringConstructor;
|
|
150
153
|
labelWidth: import("vue").PropType<string | number>;
|
|
@@ -204,6 +207,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
207
|
labelPaddingHorizontal: string;
|
|
205
208
|
labelTextAlignVertical: string;
|
|
206
209
|
labelTextAlignHorizontal: string;
|
|
210
|
+
labelFontWeight: string;
|
|
207
211
|
}, any>>;
|
|
208
212
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
209
213
|
blankHeightSmall: string;
|
|
@@ -235,6 +239,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
235
239
|
labelPaddingHorizontal: string;
|
|
236
240
|
labelTextAlignVertical: string;
|
|
237
241
|
labelTextAlignHorizontal: string;
|
|
242
|
+
labelFontWeight: string;
|
|
238
243
|
}, any>>>;
|
|
239
244
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
240
245
|
blankHeightSmall: string;
|
|
@@ -266,6 +271,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
266
271
|
labelPaddingHorizontal: string;
|
|
267
272
|
labelTextAlignVertical: string;
|
|
268
273
|
labelTextAlignHorizontal: string;
|
|
274
|
+
labelFontWeight: string;
|
|
269
275
|
}, any>>>;
|
|
270
276
|
span: {
|
|
271
277
|
readonly type: import("vue").PropType<import("../../legacy-grid/src/interface").Span>;
|
|
@@ -357,6 +363,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
357
363
|
labelPaddingHorizontal: string;
|
|
358
364
|
labelTextAlignVertical: string;
|
|
359
365
|
labelTextAlignHorizontal: string;
|
|
366
|
+
labelFontWeight: string;
|
|
360
367
|
}, any>>;
|
|
361
368
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
362
369
|
blankHeightSmall: string;
|
|
@@ -388,6 +395,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
388
395
|
labelPaddingHorizontal: string;
|
|
389
396
|
labelTextAlignVertical: string;
|
|
390
397
|
labelTextAlignHorizontal: string;
|
|
398
|
+
labelFontWeight: string;
|
|
391
399
|
}, any>>>;
|
|
392
400
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Form", {
|
|
393
401
|
blankHeightSmall: string;
|
|
@@ -419,6 +427,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
419
427
|
labelPaddingHorizontal: string;
|
|
420
428
|
labelTextAlignVertical: string;
|
|
421
429
|
labelTextAlignHorizontal: string;
|
|
430
|
+
labelFontWeight: string;
|
|
422
431
|
}, any>>>;
|
|
423
432
|
span: {
|
|
424
433
|
readonly type: import("vue").PropType<import("../../legacy-grid/src/interface").Span>;
|
|
@@ -444,10 +453,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
444
453
|
justifyContent: StringConstructor;
|
|
445
454
|
}>>, {
|
|
446
455
|
push: import("../../legacy-grid/src/interface").Span;
|
|
447
|
-
required: boolean;
|
|
448
456
|
first: boolean;
|
|
449
457
|
offset: import("../../legacy-grid/src/interface").Span;
|
|
450
458
|
span: import("../../legacy-grid/src/interface").Span;
|
|
459
|
+
required: boolean;
|
|
451
460
|
showRequireMark: boolean | undefined;
|
|
452
461
|
showFeedback: boolean | undefined;
|
|
453
462
|
showLabel: boolean | undefined;
|
|
@@ -4,11 +4,11 @@ import { FormSetupProps } from './Form';
|
|
|
4
4
|
export interface FormRules {
|
|
5
5
|
[path: string]: FormRules | FormItemRule | FormItemRule[];
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
7
|
+
type SetRule<T, R> = T extends (rule: any, ...args: infer K) => infer P ? (rule: R, ...args: K) => P : never;
|
|
8
|
+
export type FormItemRuleValidatorParams = Parameters<SetRule<NonNullable<RuleItem['validator']>, FormItemRule>>;
|
|
9
|
+
export type FormItemRuleValidator = (...args: FormItemRuleValidatorParams) => boolean | Error | Error[] | Promise<void> | undefined;
|
|
10
|
+
export type FormItemRuleAsyncValidator = (...args: FormItemRuleValidatorParams) => Promise<void> | undefined;
|
|
11
|
+
export type FormItemRule = Omit<RuleItem, 'validator' | 'asyncValidator'> & {
|
|
12
12
|
key?: string;
|
|
13
13
|
trigger?: ValidationTrigger | string | Array<ValidationTrigger | string>;
|
|
14
14
|
validator?: FormItemRuleValidator;
|
|
@@ -21,38 +21,38 @@ export interface FormItemValidateOptions {
|
|
|
21
21
|
shouldRuleBeApplied?: ShouldRuleBeApplied;
|
|
22
22
|
options?: ValidateOption;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type FormItemInternalValidate = (trigger: ValidationTrigger | string | null | undefined, shouldRuleBeApplied?: ShouldRuleBeApplied, options?: ValidateOption) => Promise<{
|
|
25
25
|
valid: boolean;
|
|
26
26
|
errors?: ValidateError[];
|
|
27
27
|
}>;
|
|
28
|
-
export
|
|
28
|
+
export type FormItemValidate = ((options: FormItemValidateOptions) => Promise<void>) & ((trigger?: string, callback?: ValidateCallback) => Promise<void>);
|
|
29
29
|
export interface FormItemInst {
|
|
30
30
|
validate: FormItemValidate;
|
|
31
31
|
restoreValidation: () => void;
|
|
32
32
|
path?: string;
|
|
33
33
|
internalValidate: FormItemInternalValidate;
|
|
34
34
|
}
|
|
35
|
-
export
|
|
36
|
-
export
|
|
35
|
+
export type FormItemColRef = FormItemInst;
|
|
36
|
+
export type FormItemRowRef = FormItemInst;
|
|
37
37
|
export interface FormInjection {
|
|
38
38
|
props: FormSetupProps;
|
|
39
39
|
maxChildLabelWidthRef: Ref<number | undefined>;
|
|
40
40
|
deriveMaxChildLabelWidth: (currentWidth: number) => void;
|
|
41
41
|
}
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
42
|
+
export type LabelAlign = 'left' | 'center' | 'right';
|
|
43
|
+
export type LabelPlacement = 'left' | 'top';
|
|
44
|
+
export type Size = 'small' | 'medium' | 'large';
|
|
45
|
+
export type ValidationTrigger = 'input' | 'change' | 'blur' | 'focus';
|
|
46
|
+
export type ShouldRuleBeApplied = (rule: FormItemRule) => boolean;
|
|
47
|
+
export type ValidateCallback = (errors?: ValidateError[]) => void;
|
|
48
|
+
export type FormValidateCallback = (errors?: ValidateError[][]) => void;
|
|
49
|
+
export type FormValidate = (callback?: FormValidateCallback, shouldRuleBeApplied?: ShouldRuleBeApplied) => Promise<void>;
|
|
50
|
+
export type FormValidationError = ValidateError[];
|
|
51
51
|
export interface FormInst {
|
|
52
52
|
validate: FormValidate;
|
|
53
53
|
restoreValidation: () => void;
|
|
54
54
|
}
|
|
55
|
-
export
|
|
55
|
+
export type FormValidationStatus = 'success' | 'error' | 'warning';
|
|
56
56
|
export interface FormValidateMessages extends ValidateMessages {
|
|
57
57
|
}
|
|
58
58
|
export {};
|
|
@@ -36,6 +36,7 @@ exports.default = (0, cssr_1.cB)('form-item', `
|
|
|
36
36
|
color: var(--n-label-text-color);
|
|
37
37
|
transition: color .3s var(--n-bezier);
|
|
38
38
|
box-sizing: border-box;
|
|
39
|
+
font-weight: var(--n-label-font-weight);
|
|
39
40
|
`, [(0, cssr_1.cE)('asterisk', `
|
|
40
41
|
white-space: nowrap;
|
|
41
42
|
user-select: none;
|
|
@@ -30,8 +30,9 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
30
30
|
labelPaddingHorizontal: string;
|
|
31
31
|
labelTextAlignVertical: string;
|
|
32
32
|
labelTextAlignHorizontal: string;
|
|
33
|
+
labelFontWeight: string;
|
|
33
34
|
};
|
|
34
|
-
export
|
|
35
|
+
export type FormThemeVars = ReturnType<typeof self>;
|
|
35
36
|
declare const formLight: Theme<'Form', FormThemeVars>;
|
|
36
37
|
export default formLight;
|
|
37
|
-
export
|
|
38
|
+
export type FormTheme = typeof formLight;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
|
|
3
|
+
type Gradient = string | {
|
|
4
4
|
deg?: string | number;
|
|
5
5
|
from: string;
|
|
6
6
|
to: string;
|
|
@@ -57,7 +57,7 @@ export declare const gradientTextProps: {
|
|
|
57
57
|
colorEndSuccess: string;
|
|
58
58
|
}, any>>>;
|
|
59
59
|
};
|
|
60
|
-
export
|
|
60
|
+
export type GradientTextProps = ExtractPublicPropTypes<typeof gradientTextProps>;
|
|
61
61
|
declare const _default: import("vue").DefineComponent<{
|
|
62
62
|
readonly size: PropType<string | number>;
|
|
63
63
|
readonly fontSize: PropType<string | number>;
|
|
@@ -14,7 +14,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
14
14
|
colorStartSuccess: string;
|
|
15
15
|
colorEndSuccess: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type GradientTextThemeVars = ReturnType<typeof self>;
|
|
18
18
|
declare const gradientTextLight: Theme<'GradientText', GradientTextThemeVars>;
|
|
19
19
|
export default gradientTextLight;
|
|
20
|
-
export
|
|
20
|
+
export type GradientTextTheme = typeof gradientTextLight;
|
package/lib/grid/src/Grid.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface NGridInjection {
|
|
|
34
34
|
overflowRef: Ref<boolean>;
|
|
35
35
|
layoutShiftDisabledRef: Ref<boolean>;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type GridProps = ExtractPublicPropTypes<typeof gridProps>;
|
|
38
38
|
declare const _default: import("vue").DefineComponent<{
|
|
39
39
|
readonly layoutShiftDisabled: BooleanConstructor;
|
|
40
40
|
readonly responsive: {
|
|
@@ -20,7 +20,7 @@ export declare const gridItemProps: {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export declare const gridItemPropKeys: ("offset" | "span" | "suffix" | "privateSpan" | "privateColStart" | "privateShow" | "privateOffset")[];
|
|
23
|
-
export
|
|
23
|
+
export type GridItemProps = ExtractPublicPropTypes<typeof gridItemProps>;
|
|
24
24
|
declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
readonly span: {
|
|
26
26
|
readonly type: PropType<string | number>;
|
package/lib/icon/src/Icon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
export
|
|
3
|
+
export type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
|
|
4
4
|
export declare const iconProps: {
|
|
5
5
|
readonly depth: PropType<Depth>;
|
|
6
6
|
readonly size: PropType<string | number>;
|
|
@@ -31,7 +31,7 @@ export declare const iconProps: {
|
|
|
31
31
|
opacity5Depth: string;
|
|
32
32
|
}, any>>>;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
|
|
35
35
|
export declare const NIcon: import("vue").DefineComponent<{
|
|
36
36
|
readonly depth: PropType<Depth>;
|
|
37
37
|
readonly size: PropType<string | number>;
|
|
@@ -8,7 +8,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
8
8
|
opacity4Depth: string;
|
|
9
9
|
opacity5Depth: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type IconThemeVars = ReturnType<typeof self>;
|
|
12
12
|
declare const iconLight: Theme<'Icon', IconThemeVars>;
|
|
13
13
|
export default iconLight;
|
|
14
|
-
export
|
|
14
|
+
export type IconTheme = typeof iconLight;
|
|
@@ -23,7 +23,7 @@ export declare const iconWrapperProps: {
|
|
|
23
23
|
iconColor: string;
|
|
24
24
|
}, any>>>;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type IconWrapperProps = ExtractPublicPropTypes<typeof iconWrapperProps>;
|
|
27
27
|
export declare const NIconWrapper: import("vue").DefineComponent<{
|
|
28
28
|
readonly size: {
|
|
29
29
|
readonly type: NumberConstructor;
|
|
@@ -4,7 +4,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
4
4
|
color: string;
|
|
5
5
|
iconColor: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type IconWrapperThemeVars = ReturnType<typeof self>;
|
|
8
8
|
declare const iconWrapperLight: Theme<'IconWrapper', IconWrapperThemeVars>;
|
|
9
9
|
export default iconWrapperLight;
|
|
10
|
-
export
|
|
10
|
+
export type IconWrapperTheme = typeof iconWrapperLight;
|
package/lib/image/src/Image.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export declare const imageProps: {
|
|
|
116
116
|
onError: PropType<(e: Event) => void>;
|
|
117
117
|
onLoad: PropType<(e: Event) => void>;
|
|
118
118
|
};
|
|
119
|
-
export
|
|
119
|
+
export type ImageProps = ExtractPublicPropTypes<typeof imageProps>;
|
|
120
120
|
declare const _default: import("vue").DefineComponent<{
|
|
121
121
|
showToolbar: {
|
|
122
122
|
type: BooleanConstructor;
|
package/lib/image/src/Image.js
CHANGED
|
@@ -106,7 +106,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
106
106
|
? this.fallbackSrc
|
|
107
107
|
: this.shouldStartLoading
|
|
108
108
|
? loadSrc
|
|
109
|
-
: undefined, alt: this.alt || imgProps.alt, 'aria-label': this.alt || imgProps.alt, onClick: this.mergedOnClick, onError: this.mergedOnError, onLoad: this.mergedOnLoad,
|
|
109
|
+
: undefined, alt: this.alt || imgProps.alt, 'aria-label': this.alt || imgProps.alt, onClick: this.mergedOnClick, onError: this.mergedOnError, onLoad: this.mergedOnLoad,
|
|
110
|
+
// If interseciton observer options is set, do not use native lazy
|
|
111
|
+
loading: is_native_lazy_load_1.isImageSupportNativeLazy && lazy && !this.intersectionObserverOptions
|
|
112
|
+
? 'lazy'
|
|
113
|
+
: 'eager', style: [
|
|
110
114
|
imgProps.style || '',
|
|
111
115
|
placeholderNode && !loaded
|
|
112
116
|
? { height: '0', width: '0', visibility: 'hidden' }
|
|
@@ -99,7 +99,7 @@ export declare const imageGroupProps: {
|
|
|
99
99
|
}>;
|
|
100
100
|
}>>>;
|
|
101
101
|
};
|
|
102
|
-
export
|
|
102
|
+
export type ImageGroupProps = ExtractPublicPropTypes<typeof imageGroupProps>;
|
|
103
103
|
declare const _default: import("vue").DefineComponent<{
|
|
104
104
|
showToolbar: {
|
|
105
105
|
type: BooleanConstructor;
|