antdv-next 1.8.1 → 1.8.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/_util/PurePanel.js +1 -1
- package/dist/_util/hooks/index.js +1 -1
- package/dist/_util/hooks/useClosable.d.ts +3 -3
- package/dist/_util/hooks/useClosable.js +9 -9
- package/dist/_util/hooks/useZIndex.js +14 -15
- package/dist/_util/vueNode.d.ts +6 -2
- package/dist/affix/index.js +27 -12
- package/dist/alert/Alert.d.ts +2 -2
- package/dist/alert/Alert.js +3 -3
- package/dist/alert/style/index.js +14 -8
- package/dist/anchor/Anchor.js +3 -1
- package/dist/antd-with-locales.esm.js +19634 -19203
- package/dist/antd-with-locales.js +112 -112
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +17697 -17268
- package/dist/antd.js +113 -113
- package/dist/app/App.js +2 -2
- package/dist/auto-complete/index.js +2 -2
- package/dist/avatar/Avatar.js +2 -2
- package/dist/avatar/AvatarGroup.js +1 -1
- package/dist/badge/Ribbon.js +1 -1
- package/dist/badge/index.d.ts +4 -1
- package/dist/badge/index.js +6 -6
- package/dist/border-beam/BorderBeam.js +1 -1
- package/dist/breadcrumb/Breadcrumb.js +2 -2
- package/dist/button/Button.js +1 -1
- package/dist/button/style/index.js +8 -2
- package/dist/calendar/generateCalendar.js +3 -3
- package/dist/card/Card.js +2 -2
- package/dist/card/CardGrid.js +1 -1
- package/dist/card/CardMeta.js +1 -1
- package/dist/card/style/index.js +2 -2
- package/dist/carousel/index.js +2 -2
- package/dist/cascader/Panel.js +1 -1
- package/dist/cascader/index.js +4 -4
- package/dist/checkbox/Checkbox.js +3 -2
- package/dist/checkbox/Group.js +1 -1
- package/dist/collapse/Collapse.js +2 -2
- package/dist/color-picker/ColorPicker.js +6 -2
- package/dist/color-picker/ColorPickerPanel.js +4 -0
- package/dist/color-picker/components/ColorSlider.js +12 -4
- package/dist/color-picker/components/PanelPicker/GradientColorBar.js +2 -0
- package/dist/components.d.ts +12 -8
- package/dist/components.js +3 -3
- package/dist/config-provider/context.d.ts +5 -3
- package/dist/config-provider/context.js +3 -3
- package/dist/config-provider/define.d.ts +5 -1
- package/dist/config-provider/index.js +38 -4
- package/dist/date-picker/generatePicker/generateRangePicker.js +3 -3
- package/dist/date-picker/generatePicker/generateSinglePicker.js +3 -3
- package/dist/date-picker/hooks/useMergedPickerSemantic.js +1 -1
- package/dist/date-picker/style/panel.js +3 -5
- package/dist/descriptions/hooks/useItems.d.ts +2 -2
- package/dist/descriptions/hooks/useRow.js +1 -1
- package/dist/descriptions/index.js +2 -2
- package/dist/divider/index.js +1 -1
- package/dist/drawer/DrawerPanel.js +1 -1
- package/dist/drawer/index.js +3 -3
- package/dist/dropdown/dropdown.js +3 -3
- package/dist/empty/index.js +2 -1
- package/dist/float-button/BackTop.js +2 -2
- package/dist/float-button/FloatButton.js +1 -1
- package/dist/float-button/FloatButtonGroup.js +2 -2
- package/dist/float-button/PurePanel.js +1 -1
- package/dist/form/ErrorList.js +1 -1
- package/dist/form/Form.d.ts +17 -44
- package/dist/form/Form.js +56 -7
- package/dist/form/FormItem/ItemHolder.js +3 -3
- package/dist/form/FormItem/index.d.ts +3 -3
- package/dist/form/FormItem/index.js +1 -1
- package/dist/form/FormItemLabel.js +1 -1
- package/dist/form/context.d.ts +3 -3
- package/dist/form/hooks/useForm.d.ts +4 -5
- package/dist/form/hooks/useVariant.js +1 -1
- package/dist/form/index.d.ts +29 -3
- package/dist/form/index.js +6 -6
- package/dist/form/types.d.ts +15 -7
- package/dist/grid/col.js +1 -1
- package/dist/grid/row.js +1 -1
- package/dist/image/PreviewGroup.js +2 -2
- package/dist/image/index.d.ts +5 -5
- package/dist/image/index.js +9 -5
- package/dist/index.d.ts +14 -7
- package/dist/index.js +2 -2
- package/dist/input/Group.js +2 -2
- package/dist/input/Input.js +2 -2
- package/dist/input/OTP/OTPInput.js +1 -1
- package/dist/input/OTP/index.js +2 -2
- package/dist/input/Password.js +1 -1
- package/dist/input/Search.js +2 -2
- package/dist/input/TextArea.js +2 -2
- package/dist/input-number/index.js +3 -3
- package/dist/input-number/style/index.js +3 -2
- package/dist/layout/Sider.js +2 -2
- package/dist/layout/layout.js +2 -3
- package/dist/listy/index.js +1 -1
- package/dist/locale/id_ID.js +8 -6
- package/dist/locale/uz_UZ.js +12 -12
- package/dist/masonry/Masonry.js +1 -1
- package/dist/mentions/index.js +5 -4
- package/dist/menu/MenuDivider.js +1 -1
- package/dist/menu/MenuItem.js +1 -1
- package/dist/menu/index.d.ts +2 -1
- package/dist/menu/index.js +29 -5
- package/dist/menu/menu.js +42 -18
- package/dist/message/PurePanel.js +2 -2
- package/dist/message/index.js +11 -9
- package/dist/message/useMessage.js +2 -2
- package/dist/modal/ConfirmDialog.js +2 -2
- package/dist/modal/Modal.js +4 -4
- package/dist/modal/PurePanel.js +1 -1
- package/dist/modal/confirm.js +6 -8
- package/dist/modal/index.d.ts +2 -2
- package/dist/modal/interface.d.ts +1 -1
- package/dist/modal/useModal/index.js +9 -4
- package/dist/notification/PurePanel.js +2 -2
- package/dist/notification/index.js +8 -13
- package/dist/notification/useNotification.js +2 -2
- package/dist/package.js +1 -1
- package/dist/package.json.d.ts +1 -0
- package/dist/pagination/Pagination.js +4 -4
- package/dist/popconfirm/index.js +2 -2
- package/dist/popover/PurePanel.js +2 -2
- package/dist/popover/index.js +1 -1
- package/dist/progress/progress.js +3 -3
- package/dist/qrcode/index.js +3 -3
- package/dist/radio/group.js +2 -2
- package/dist/radio/radio.js +2 -2
- package/dist/rate/index.js +2 -2
- package/dist/result/index.js +1 -1
- package/dist/segmented/index.js +1 -1
- package/dist/segmented/style/index.js +3 -2
- package/dist/select/index.d.ts +1 -0
- package/dist/select/index.js +5 -5
- package/dist/skeleton/Avatar.js +1 -1
- package/dist/skeleton/Button.js +1 -1
- package/dist/skeleton/Element.js +1 -1
- package/dist/skeleton/Input.js +1 -1
- package/dist/skeleton/Node.js +1 -1
- package/dist/skeleton/Skeleton.js +1 -1
- package/dist/skeleton/style/index.js +9 -13
- package/dist/slider/SliderTooltip.js +0 -1
- package/dist/slider/index.d.ts +2 -0
- package/dist/slider/index.js +5 -1
- package/dist/space/Addon.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/spin/index.js +2 -2
- package/dist/splitter/Splitter.js +2 -2
- package/dist/statistic/Statistic.js +1 -1
- package/dist/statistic/Timer.d.ts +2 -2
- package/dist/statistic/Timer.js +1 -1
- package/dist/steps/index.js +5 -4
- package/dist/switch/index.js +2 -2
- package/dist/table/InternalTable.js +10 -4
- package/dist/table/hooks/useFilter/FilterDropdown.js +2 -2
- package/dist/table/hooks/usePagination.d.ts +1 -2
- package/dist/table/hooks/usePagination.js +1 -3
- package/dist/table/hooks/useSelection.js +1 -1
- package/dist/table/hooks/useSorter.js +26 -19
- package/dist/table/style/index.js +1 -0
- package/dist/table/style/size.js +1 -0
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/index.js +3 -3
- package/dist/tabs/style/index.js +5 -1
- package/dist/tag/CheckableTag.js +1 -1
- package/dist/tag/CheckableTagGroup.d.ts +0 -1
- package/dist/tag/CheckableTagGroup.js +0 -4
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/theme/themes/dark/index.js +1 -1
- package/dist/theme/useToken.js +2 -2
- package/dist/timeline/Timeline.js +1 -1
- package/dist/timeline/useItems.js +1 -1
- package/dist/tooltip/PurePanel.js +1 -1
- package/dist/tooltip/index.js +2 -2
- package/dist/tour/index.js +5 -2
- package/dist/transfer/Section.js +1 -1
- package/dist/transfer/Transfer.js +3 -3
- package/dist/transfer/hooks/useSelection.js +2 -1
- package/dist/tree/DirectoryTree.js +6 -5
- package/dist/tree/Tree.js +4 -4
- package/dist/tree/utils/dictUtil.js +5 -8
- package/dist/tree-select/index.js +4 -4
- package/dist/typography/Base/index.js +5 -3
- package/dist/typography/Base/util.js +2 -1
- package/dist/typography/Editable.js +6 -2
- package/dist/typography/Typography.js +1 -1
- package/dist/upload/Upload.js +25 -16
- package/dist/upload/UploadList/ListItem.js +5 -1
- package/dist/upload/UploadList/index.js +19 -12
- package/dist/version/token.json +1 -1
- package/dist/watermark/index.d.ts +13 -4
- package/dist/watermark/index.js +11 -7
- package/dist/watermark/useRafDebounce.js +1 -2
- package/dist/watermark/utils.js +1 -1
- package/package.json +42 -41
- package/web-tags.json +22 -14
- package/web-types.json +46 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveStyleOrClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import useToken from "../theme/useToken.js";
|
|
4
|
-
import {
|
|
4
|
+
import { devUseWarning } from "../_util/warning.js";
|
|
5
5
|
import { toPropsRefs } from "../_util/tools.js";
|
|
6
6
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
7
7
|
import { isRenderable } from "../_util/is.js";
|
package/dist/package.js
CHANGED
package/dist/package.json.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
-
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
3
|
import useToken from "../theme/useToken.js";
|
|
5
|
-
import {
|
|
4
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
5
|
+
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
6
6
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
7
7
|
import useVariant from "../form/hooks/useVariant.js";
|
|
8
8
|
import useLocale from "../locale/useLocale.js";
|
|
@@ -13,8 +13,8 @@ import bordered_default from "./style/bordered.js";
|
|
|
13
13
|
import resolveShowSizeChanger from "./useShowSizeChanger.js";
|
|
14
14
|
import { Fragment, computed, createVNode, defineComponent, h, mergeProps } from "vue";
|
|
15
15
|
import { clsx } from "@v-c/util";
|
|
16
|
-
import { DoubleLeftOutlined, DoubleRightOutlined, EllipsisOutlined, LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
17
16
|
import { omit as omit$1 } from "es-toolkit";
|
|
17
|
+
import { DoubleLeftOutlined, DoubleRightOutlined, EllipsisOutlined, LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
18
18
|
import Pagination$1 from "@v-c/pagination/locale/en_US";
|
|
19
19
|
import VcPagination from "@v-c/pagination";
|
|
20
20
|
//#region src/pagination/Pagination.tsx
|
package/dist/popconfirm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1, useLiveListener } from "../_util/tools.js";
|
|
4
4
|
import useMergedArrow from "../tooltip/hooks/useMergedArrow.js";
|
|
5
5
|
import { cloneIfVNode } from "../_util/vueNode.js";
|
|
@@ -9,8 +9,8 @@ import PurePanel, { Overlay } from "./PurePanel.js";
|
|
|
9
9
|
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
|
|
10
10
|
import { clsx } from "@v-c/util";
|
|
11
11
|
import { removeUndefined } from "@v-c/util/dist/props-util";
|
|
12
|
-
import { ExclamationCircleFilled } from "@antdv-next/icons";
|
|
13
12
|
import { omit as omit$1 } from "es-toolkit";
|
|
13
|
+
import { ExclamationCircleFilled } from "@antdv-next/icons";
|
|
14
14
|
//#region src/popconfirm/index.tsx
|
|
15
15
|
const OMITTED_PROP_KEYS = [
|
|
16
16
|
"title",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
4
4
|
import { isRenderable } from "../_util/is.js";
|
|
5
5
|
import style_default from "./style/index.js";
|
|
6
6
|
import { Fragment, computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
7
7
|
import { clsx } from "@v-c/util";
|
|
8
8
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
9
|
-
import { Popup } from "@v-c/tooltip";
|
|
10
9
|
import { omit as omit$1 } from "es-toolkit";
|
|
10
|
+
import { Popup } from "@v-c/tooltip";
|
|
11
11
|
//#region src/popover/PurePanel.tsx
|
|
12
12
|
const Overlay = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
13
13
|
return () => {
|
package/dist/popover/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
4
4
|
import useMergedArrow from "../tooltip/hooks/useMergedArrow.js";
|
|
5
5
|
import InternalTooltip from "../tooltip/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
1
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
4
4
|
import { clsx, toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import { getSize, getSuccessPercent, validProgress } from "./utils.js";
|
|
6
6
|
import Circle from "./Circle.js";
|
|
@@ -8,8 +8,8 @@ import style_default from "./style/index.js";
|
|
|
8
8
|
import Line from "./Line.js";
|
|
9
9
|
import Steps from "./Steps.js";
|
|
10
10
|
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
11
|
-
import { CheckCircleFilled, CheckOutlined, CloseCircleFilled, CloseOutlined } from "@antdv-next/icons";
|
|
12
11
|
import { FastColor } from "@ant-design/fast-color";
|
|
12
|
+
import { CheckCircleFilled, CheckOutlined, CloseCircleFilled, CloseOutlined } from "@antdv-next/icons";
|
|
13
13
|
//#region src/progress/progress.tsx
|
|
14
14
|
const ProgressTypes = [
|
|
15
15
|
"line",
|
package/dist/qrcode/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
-
import useToken from "../theme/useToken.js";
|
|
4
1
|
import { normalizeStyle as normalizeStyle$1 } from "../_util/styleUtils.js";
|
|
5
2
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
|
+
import useToken from "../theme/useToken.js";
|
|
5
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
6
6
|
import { toPropsRefs } from "../_util/tools.js";
|
|
7
7
|
import useLocale from "../locale/useLocale.js";
|
|
8
8
|
import QRcodeStatus from "./QrcodeStatus.js";
|
package/dist/radio/group.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
3
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
|
+
import { useFormItemContext, useFormItemInputContext } from "../form/context.js";
|
|
4
5
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
5
|
-
import { getAttrStyleAndClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
6
6
|
import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
7
7
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
8
8
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
package/dist/radio/radio.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
1
3
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
4
|
import { useFormItemInputContext } from "../form/context.js";
|
|
3
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
6
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
7
7
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
package/dist/rate/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
|
-
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import InternalTooltip from "../tooltip/index.js";
|
|
5
5
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
6
6
|
import style_default from "./style/index.js";
|
|
7
7
|
import { createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef } from "vue";
|
|
8
8
|
import { clsx } from "@v-c/util";
|
|
9
|
-
import { StarFilled } from "@antdv-next/icons";
|
|
10
9
|
import { omit as omit$1 } from "es-toolkit";
|
|
10
|
+
import { StarFilled } from "@antdv-next/icons";
|
|
11
11
|
import VcRate from "@v-c/rate";
|
|
12
12
|
//#region src/rate/index.tsx
|
|
13
13
|
function _isSlot(s) {
|
package/dist/result/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { clsx as clsx$1, getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
4
4
|
import { isRenderable } from "../_util/is.js";
|
|
5
5
|
import NoFound from "./noFound.js";
|
package/dist/segmented/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
2
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
4
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
|
-
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
6
|
import InternalTooltip from "../tooltip/index.js";
|
|
7
7
|
import { isRenderable } from "../_util/is.js";
|
|
@@ -102,8 +102,9 @@ const genSegmentedStyle = (token) => {
|
|
|
102
102
|
...segmentedTextEllipsisCss
|
|
103
103
|
},
|
|
104
104
|
"&-icon + *": { marginInlineStart: token.calc(token.marginSM).div(2).equal() },
|
|
105
|
-
"&-icon
|
|
106
|
-
display: "inline-
|
|
105
|
+
"&-icon": {
|
|
106
|
+
display: "inline-flex",
|
|
107
|
+
alignItems: "center",
|
|
107
108
|
verticalAlign: "middle",
|
|
108
109
|
marginBlockEnd: "0.2em"
|
|
109
110
|
},
|
package/dist/select/index.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ interface SelectEmitsProps {
|
|
|
147
147
|
}
|
|
148
148
|
type OptionParams = Parameters<NonNullable<SelectProps$1['optionRender']>>;
|
|
149
149
|
interface SelectSlots {
|
|
150
|
+
default?: () => any;
|
|
150
151
|
suffix?: (info: SelectSuffixRenderInfo) => any;
|
|
151
152
|
/** @deprecated Please use `suffix` slot instead. */
|
|
152
153
|
suffixIcon?: () => any;
|
package/dist/select/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
|
|
3
|
+
import useToken from "../theme/useToken.js";
|
|
1
4
|
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
5
|
+
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
2
6
|
import { useFormItemInputContext } from "../form/context.js";
|
|
3
|
-
import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
|
|
4
7
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
5
|
-
import useToken from "../theme/useToken.js";
|
|
6
8
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
7
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
8
|
-
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
9
9
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
10
10
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
11
11
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
@@ -297,7 +297,7 @@ const Select = /* @__PURE__ */ defineComponent((props, { slots, emit, expose, at
|
|
|
297
297
|
"tagRender": isMultiple.value ? tagRender : void 0,
|
|
298
298
|
"popupRender": mergedPopupRender,
|
|
299
299
|
"onPopupVisibleChange": mergedOnOpenChange
|
|
300
|
-
}),
|
|
300
|
+
}), { default: slots?.default });
|
|
301
301
|
};
|
|
302
302
|
}, {
|
|
303
303
|
props: /*@__PURE__*/ mergeDefaults({
|
package/dist/skeleton/Avatar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
|
-
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import Element from "./Element.js";
|
|
5
5
|
import style_default from "./style/index.js";
|
|
6
6
|
import { createVNode, defineComponent, mergeDefaults, mergeProps, toRef } from "vue";
|
package/dist/skeleton/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
|
-
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import Element from "./Element.js";
|
|
5
5
|
import style_default from "./style/index.js";
|
|
6
6
|
import { createVNode, defineComponent, mergeDefaults, mergeProps, toRef } from "vue";
|
package/dist/skeleton/Element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
1
|
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
3
3
|
import { createVNode, defineComponent } from "vue";
|
|
4
4
|
import { classNames } from "@v-c/util";
|
|
5
5
|
//#region src/skeleton/Element.tsx
|
package/dist/skeleton/Input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
|
-
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import Element from "./Element.js";
|
|
5
5
|
import style_default from "./style/index.js";
|
|
6
6
|
import { createVNode, defineComponent, mergeDefaults, mergeProps, toRef } from "vue";
|
package/dist/skeleton/Node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import style_default from "./style/index.js";
|
|
4
4
|
import { createVNode, defineComponent, mergeProps } from "vue";
|
|
5
5
|
import { classNames } from "@v-c/util";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { toPropsRefs } from "../_util/tools.js";
|
|
4
4
|
import Element from "./Element.js";
|
|
5
5
|
import style_default from "./style/index.js";
|
|
@@ -78,19 +78,15 @@ const genSkeletonElementNode = (token) => {
|
|
|
78
78
|
};
|
|
79
79
|
const genSkeletonElementImage = (token) => {
|
|
80
80
|
const { skeletonImageCls, imageSizeBase, calc } = token;
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
[`${skeletonImageCls}-svg${skeletonImageCls}-svg-circle`]: { borderRadius: "50%" }
|
|
91
|
-
},
|
|
92
|
-
[`${skeletonImageCls}${skeletonImageCls}-circle`]: { borderRadius: "50%" }
|
|
93
|
-
};
|
|
81
|
+
return { [skeletonImageCls]: {
|
|
82
|
+
...genSkeletonElementShape(token),
|
|
83
|
+
[`${skeletonImageCls}-path`]: { fill: "#bfbfbf" },
|
|
84
|
+
[`${skeletonImageCls}-svg`]: {
|
|
85
|
+
...genSkeletonElementSize(imageSizeBase),
|
|
86
|
+
maxWidth: calc(imageSizeBase).mul(4).equal(),
|
|
87
|
+
maxHeight: calc(imageSizeBase).mul(4).equal()
|
|
88
|
+
}
|
|
89
|
+
} };
|
|
94
90
|
};
|
|
95
91
|
function genSkeletonElementButtonShape(token, size, buttonCls) {
|
|
96
92
|
const { skeletonButtonCls } = token;
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ interface SliderBaseProps {
|
|
|
75
75
|
}
|
|
76
76
|
interface SliderInternalProps extends SliderBaseProps, SliderEmitsProps {
|
|
77
77
|
range?: boolean | SliderRange;
|
|
78
|
+
/** The start value of the highlighted track in single mode. Defaults to `min` */
|
|
79
|
+
startPoint?: number;
|
|
78
80
|
value?: number | number[];
|
|
79
81
|
defaultValue?: number | number[];
|
|
80
82
|
/** @deprecated Please use `styles.handle` instead */
|
package/dist/slider/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
2
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
6
6
|
import { useSliderInternalContext } from "./Context.js";
|
|
@@ -188,6 +188,10 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose, sl
|
|
|
188
188
|
required: false,
|
|
189
189
|
default: void 0
|
|
190
190
|
},
|
|
191
|
+
startPoint: {
|
|
192
|
+
type: Number,
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
191
195
|
value: {
|
|
192
196
|
type: [Number, Array],
|
|
193
197
|
required: false
|
package/dist/space/Addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import { useCompactItemContext } from "./Compact.js";
|
|
3
|
-
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { getStatusClassNames } from "../_util/statusUtils.js";
|
|
5
5
|
import addon_default from "./style/addon.js";
|
|
6
6
|
import { createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
package/dist/space/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
2
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
4
|
import Compact from "./Compact.js";
|
|
4
|
-
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropFn, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
6
|
import { isPresetSize, isValidGapNumber } from "../_util/gapSize.js";
|
|
7
7
|
import SpaceAddon$1 from "./Addon.js";
|
package/dist/spin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useComponentBaseConfig, useComponentConfig } from "../config-provider/context.js";
|
|
3
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
3
4
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
6
6
|
import Indicator from "./Indicator/index.js";
|
|
7
7
|
import style_default from "./style/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
3
3
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
|
-
import {
|
|
4
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
5
5
|
import { toPropsRefs } from "../_util/tools.js";
|
|
6
6
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
7
7
|
import { InternalPanel } from "./Panel.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { clsx as clsx$1, getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
4
4
|
import { isFunction, isRenderable } from "../_util/is.js";
|
|
5
5
|
import skeleton_default from "../skeleton/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormatConfig
|
|
1
|
+
import { FormatConfig } from "./utils.js";
|
|
2
2
|
import { StatisticProps, StatisticSlots } from "./Statistic.js";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
//#region src/statistic/Timer.d.ts
|
|
@@ -12,7 +12,7 @@ interface StatisticTimeEmits {
|
|
|
12
12
|
* Only to be called when the type is `countdown`.
|
|
13
13
|
*/
|
|
14
14
|
finish: () => void;
|
|
15
|
-
change: (value
|
|
15
|
+
change: (value: number) => void;
|
|
16
16
|
}
|
|
17
17
|
interface InternalStatisticTimerProps extends StatisticTimerProps, StatisticTimeEmitsProps {}
|
|
18
18
|
interface StatisticTimeEmitsProps {
|
package/dist/statistic/Timer.js
CHANGED
|
@@ -2,8 +2,8 @@ import { cloneElement } from "../_util/vueNode.js";
|
|
|
2
2
|
import Statistic from "./Statistic.js";
|
|
3
3
|
import { formatCounter } from "./utils.js";
|
|
4
4
|
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps, onMounted, shallowRef, watch } from "vue";
|
|
5
|
-
import raf from "@v-c/util/dist/raf";
|
|
6
5
|
import { omit } from "es-toolkit";
|
|
6
|
+
import raf from "@v-c/util/dist/raf";
|
|
7
7
|
//#region src/statistic/Timer.tsx
|
|
8
8
|
function getTime(value) {
|
|
9
9
|
return new Date(value).getTime();
|
package/dist/steps/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
-
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
3
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
5
|
-
import {
|
|
4
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
5
|
+
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
6
6
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
7
7
|
import InternalTooltip from "../tooltip/index.js";
|
|
8
|
+
import { isRenderable } from "../_util/is.js";
|
|
8
9
|
import useVariant from "../form/hooks/useVariant.js";
|
|
9
10
|
import { TARGET_CLS } from "../_util/wave/interface.js";
|
|
10
11
|
import wave_default from "../_util/wave/index.js";
|
|
@@ -105,7 +106,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
|
|
|
105
106
|
const mappedIndex = originIndex !== void 0 && originIndex >= 0 ? mergedInitial.value + originIndex : index;
|
|
106
107
|
const { status, icon } = item;
|
|
107
108
|
let iconContent;
|
|
108
|
-
if (isDot.value || icon) iconContent = icon;
|
|
109
|
+
if (isDot.value || isRenderable(icon)) iconContent = icon;
|
|
109
110
|
else switch (status) {
|
|
110
111
|
case "finish":
|
|
111
112
|
iconContent = createVNode(CheckOutlined, { "class": `${itemIconCls.value}-finish` }, null);
|
package/dist/switch/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
3
4
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
6
6
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
7
7
|
import wave_default from "../_util/wave/index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getAttrStyleAndClass, mergeClassNames, mergeStyles, resolveStyleOrClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
|
|
3
|
-
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
4
3
|
import useToken from "../theme/useToken.js";
|
|
5
|
-
import {
|
|
4
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
5
|
+
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
6
6
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
7
7
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
8
8
|
import { TableMeasureRowContextProvider } from "./TableMeasureRowContext.js";
|
|
@@ -160,7 +160,13 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
|
|
|
160
160
|
if (changeInfo.pagination?.current) changeInfo.pagination.current = 1;
|
|
161
161
|
if (props.pagination && typeof props.pagination === "object") props.pagination.onChange?.(1, changeInfo.pagination?.pageSize);
|
|
162
162
|
}
|
|
163
|
-
if (mergedScroll.value && mergedScroll.value.scrollToFirstRowOnChange !== false && internalRefs.body?.value)
|
|
163
|
+
if (mergedScroll.value && mergedScroll.value.scrollToFirstRowOnChange !== false && internalRefs.body?.value) {
|
|
164
|
+
const prefersReducedMotion = window.matchMedia?.("(prefers-reduced-motion: reduce)");
|
|
165
|
+
scrollTo(0, {
|
|
166
|
+
getContainer: () => internalRefs.body.value,
|
|
167
|
+
duration: prefersReducedMotion?.matches ? 0 : void 0
|
|
168
|
+
});
|
|
169
|
+
}
|
|
164
170
|
emit("change", changeInfo.pagination, changeInfo.filters, changeInfo.sorter, {
|
|
165
171
|
currentDataSource: getFilterData(getSortData(rawData.value, changeInfo.sorterStates, childrenColumnName.value), changeInfo.filterStates, childrenColumnName.value),
|
|
166
172
|
action
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { devUseWarning, isDev } from "../../../_util/warning.js";
|
|
2
1
|
import { useConfig } from "../../../config-provider/context.js";
|
|
2
|
+
import { devUseWarning, isDev } from "../../../_util/warning.js";
|
|
3
3
|
import { toPropsRefs as toPropsRefs$1 } from "../../../_util/tools.js";
|
|
4
4
|
import { useTableMeasureRowContext } from "../../TableMeasureRowContext.js";
|
|
5
5
|
import button_default from "../../../button/index.js";
|
|
@@ -62,7 +62,7 @@ function renderFilterItems(options) {
|
|
|
62
62
|
label: createVNode(Fragment, null, [createVNode(Component, { "checked": checked }, null), createVNode("span", null, [filter.text])])
|
|
63
63
|
};
|
|
64
64
|
if (normalizedSearchValue) {
|
|
65
|
-
if (typeof filterSearch === "function") return filterSearch(
|
|
65
|
+
if (typeof filterSearch === "function") return filterSearch(searchValue, filter) ? item : null;
|
|
66
66
|
return searchValueMatched(normalizedSearchValue, filter.text) ? item : null;
|
|
67
67
|
}
|
|
68
68
|
return item;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { PaginationOnChangeInfo } from "../../pagination/index.js";
|
|
2
1
|
import { TablePaginationConfig } from "../interface.js";
|
|
3
2
|
import { Ref } from "vue";
|
|
4
3
|
//#region src/table/hooks/usePagination.d.ts
|
|
5
4
|
declare const DEFAULT_PAGE_SIZE = 10;
|
|
6
5
|
declare function getPaginationParam(mergedPagination: TablePaginationConfig, pagination?: TablePaginationConfig | boolean): any;
|
|
7
6
|
type MaybeRef<T> = T | Ref<T>;
|
|
8
|
-
declare function usePagination(total: MaybeRef<number>, onChange: (current: number, pageSize: number
|
|
7
|
+
declare function usePagination(total: MaybeRef<number>, onChange: (current: number, pageSize: number) => void, pagination?: MaybeRef<TablePaginationConfig | false>): readonly [import("vue").ComputedRef<TablePaginationConfig>, (current?: number, pageSize?: number) => void];
|
|
9
8
|
//#endregion
|
|
10
9
|
export { DEFAULT_PAGE_SIZE, usePagination as default, getPaginationParam };
|
|
@@ -40,9 +40,7 @@ function usePagination(total, onChange, pagination) {
|
|
|
40
40
|
if (paginationRef.value && typeof paginationRef.value === "object") if (info) paginationRef.value.onChange?.(current, pageSize, info);
|
|
41
41
|
else paginationRef.value.onChange?.(current, pageSize);
|
|
42
42
|
refreshPagination(current, pageSize);
|
|
43
|
-
|
|
44
|
-
if (info) onChange(current, mergedPageSize, info);
|
|
45
|
-
else onChange(current, mergedPageSize);
|
|
43
|
+
onChange(current, pageSize || mergedPagination.value.pageSize || 10);
|
|
46
44
|
};
|
|
47
45
|
return [computed(() => {
|
|
48
46
|
if (paginationRef.value === false) return {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { devUseWarning } from "../../_util/warning.js";
|
|
2
1
|
import { useMultipleSelect } from "../../_util/hooks/useMultipleSelect.js";
|
|
2
|
+
import { devUseWarning } from "../../_util/warning.js";
|
|
3
3
|
import Dropdown from "../../dropdown/index.js";
|
|
4
4
|
import radio_default from "../../radio/index.js";
|
|
5
5
|
import checkbox_default from "../../checkbox/index.js";
|