antdv-next 1.8.1 → 1.8.2
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/useZIndex.js +14 -15
- package/dist/_util/vueNode.d.ts +6 -2
- package/dist/affix/index.js +25 -5
- 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 +14079 -13978
- package/dist/antd-with-locales.js +111 -111
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +13053 -12954
- package/dist/antd.js +112 -112
- 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.js +2 -2
- 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/buttonHelper.d.ts +1 -1
- package/dist/calendar/generateCalendar.js +2 -2
- 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 +2 -2
- package/dist/checkbox/Group.js +1 -1
- package/dist/collapse/Collapse.js +2 -2
- package/dist/color-picker/ColorPicker.js +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/config-provider/context.d.ts +2 -0
- 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 +4 -4
- 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.js +2 -2
- package/dist/form/FormItem/ItemHolder.js +3 -3
- package/dist/form/FormItem/index.js +1 -1
- package/dist/form/FormItemLabel.js +1 -1
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.js +1 -1
- package/dist/grid/col.js +1 -1
- package/dist/grid/row.js +1 -1
- package/dist/image/PreviewGroup.js +2 -2
- package/dist/image/hooks/usePreviewConfig.d.ts +4 -4
- package/dist/image/index.js +9 -5
- package/dist/index.d.ts +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/layout/Sider.js +2 -2
- 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 +3 -3
- package/dist/menu/MenuDivider.js +1 -1
- package/dist/menu/menu.js +3 -3
- package/dist/message/PurePanel.js +2 -2
- 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 +5 -6
- package/dist/notification/PurePanel.js +2 -2
- package/dist/notification/index.js +6 -7
- package/dist/notification/useNotification.js +2 -2
- package/dist/package.js +1 -1
- 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/select/index.js +4 -4
- 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/slider/index.js +1 -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.js +1 -1
- package/dist/steps/index.js +3 -3
- package/dist/switch/index.js +2 -2
- package/dist/table/InternalTable.js +10 -4
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/table/hooks/useSelection.js +1 -1
- package/dist/table/hooks/useSorter.js +22 -11
- package/dist/tabs/index.js +3 -3
- 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 +1 -1
- package/dist/transfer/Section.js +1 -1
- package/dist/transfer/Transfer.js +3 -3
- package/dist/tree/DirectoryTree.js +2 -2
- package/dist/tree/Tree.js +4 -4
- package/dist/tree-select/index.js +4 -4
- package/dist/typography/Base/index.js +2 -2
- package/dist/typography/Editable.js +6 -2
- package/dist/typography/Typography.js +1 -1
- package/dist/upload/Upload.js +11 -6
- package/dist/upload/UploadList/ListItem.js +1 -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/package.json +6 -6
- package/web-tags.json +7 -3
- package/web-types.json +15 -6
package/dist/menu/menu.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
1
|
import { 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 { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import initCollapseMotion from "../_util/motion.js";
|
|
@@ -13,8 +13,8 @@ import SubMenu$1 from "./SubMenu.js";
|
|
|
13
13
|
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef } from "vue";
|
|
14
14
|
import { clsx } from "@v-c/util";
|
|
15
15
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
16
|
-
import { EllipsisOutlined } from "@antdv-next/icons";
|
|
17
16
|
import { omit as omit$1 } from "es-toolkit";
|
|
17
|
+
import { EllipsisOutlined } from "@antdv-next/icons";
|
|
18
18
|
import VcMenu from "@v-c/menu";
|
|
19
19
|
//#region src/menu/menu.tsx
|
|
20
20
|
const omitPropKeys = [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { pureAttrs, useMergeSemantic, 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 useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
5
|
import { isRenderable } from "../_util/is.js";
|
|
6
6
|
import style_default from "./style/index.js";
|
|
7
7
|
import { Fragment, computed, createVNode, defineComponent, mergeProps } from "vue";
|
|
8
8
|
import { clsx } from "@v-c/util";
|
|
9
|
-
import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined } from "@antdv-next/icons";
|
|
10
9
|
import { omit as omit$1 } from "es-toolkit";
|
|
10
|
+
import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined } from "@antdv-next/icons";
|
|
11
11
|
import { Notification } from "@v-c/notification";
|
|
12
12
|
//#region src/message/PurePanel.tsx
|
|
13
13
|
const TypeIcon = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { devUseWarning } from "../_util/warning.js";
|
|
2
|
-
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
1
|
import { resolveStyleOrClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
+
import { devUseWarning } from "../_util/warning.js";
|
|
4
4
|
import { toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import style_default from "./style/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalizeMaskConfig } from "../_util/hooks/useMergedMask.js";
|
|
2
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import useToken from "../theme/useToken.js";
|
|
4
|
-
import {
|
|
4
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
5
5
|
import "../_util/hooks/useZIndex.js";
|
|
6
6
|
import fallbackProp from "../_util/fallbackProp.js";
|
|
7
7
|
import { getSlotPropsFnRun } from "../_util/tools.js";
|
package/dist/modal/Modal.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
|
-
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
|
-
import { ContextIsolator } from "../_util/ContextIsolator.js";
|
|
4
1
|
import { useMergedMask } from "../_util/hooks/useMergedMask.js";
|
|
5
2
|
import { normalizeStyle as normalizeStyle$1 } from "../_util/styleUtils.js";
|
|
6
3
|
import { getAttrStyleAndClass, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
|
+
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
5
|
+
import { devUseWarning, isDev } from "../_util/warning.js";
|
|
7
6
|
import { ZIndexProvider } from "../_util/zindexContext.js";
|
|
8
7
|
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
8
|
+
import { ContextIsolator } from "../_util/ContextIsolator.js";
|
|
9
9
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
10
10
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
11
11
|
import useClosable, { pickClosable } from "../_util/hooks/useClosable.js";
|
|
@@ -17,9 +17,9 @@ import { Footer, renderCloseIcon } from "./shared.js";
|
|
|
17
17
|
import style_default from "./style/index.js";
|
|
18
18
|
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
19
19
|
import { clsx } from "@v-c/util";
|
|
20
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
20
21
|
import { CloseOutlined } from "@antdv-next/icons";
|
|
21
22
|
import { getTransitionName } from "@v-c/util/dist/utils/transition";
|
|
22
|
-
import { omit as omit$1 } from "es-toolkit";
|
|
23
23
|
import Dialog from "@v-c/dialog";
|
|
24
24
|
//#region src/modal/Modal.tsx
|
|
25
25
|
let mousePosition;
|
package/dist/modal/PurePanel.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 { getSlotPropsFnRun } from "../_util/tools.js";
|
|
4
4
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
5
|
import { Footer, renderCloseIcon } from "./shared.js";
|
package/dist/modal/confirm.js
CHANGED
|
@@ -319,10 +319,12 @@ function confirm(config) {
|
|
|
319
319
|
close,
|
|
320
320
|
open: true
|
|
321
321
|
};
|
|
322
|
+
const stopThemeWatch = watch(() => global.theme.value, () => renderWithProps(currentConfig));
|
|
322
323
|
function destroy(...args) {
|
|
323
324
|
if (args.some((param) => param?.triggerCancel)) config.onCancel?.(() => {}, ...args.slice(1));
|
|
324
325
|
const index = destroyFns.indexOf(close);
|
|
325
326
|
if (index !== -1) destroyFns.splice(index, 1);
|
|
327
|
+
stopThemeWatch();
|
|
326
328
|
render(null, container);
|
|
327
329
|
container.parentNode?.removeChild(container);
|
|
328
330
|
}
|
|
@@ -345,12 +347,9 @@ function confirm(config) {
|
|
|
345
347
|
theme,
|
|
346
348
|
locale: global.locale
|
|
347
349
|
}, { default: () => holderNode });
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
vnode.component?.update?.();
|
|
352
|
-
});
|
|
353
|
-
render(vnode, container);
|
|
350
|
+
const nextVnode = global.holderRender ? global.holderRender(configHolderNode) : configHolderNode;
|
|
351
|
+
nextVnode.appContext = appContext;
|
|
352
|
+
render(nextVnode, container);
|
|
354
353
|
}
|
|
355
354
|
function close(...args) {
|
|
356
355
|
currentConfig = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { normalizeStyle as normalizeStyle$1 } from "../_util/styleUtils.js";
|
|
3
2
|
import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
3
|
+
import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
4
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import { isRenderable } from "../_util/is.js";
|
|
@@ -8,8 +8,8 @@ import style_default, { PurePanelStyle } from "./style/index.js";
|
|
|
8
8
|
import useClosable, { pickClosable } from "../_util/hooks/useClosable.js";
|
|
9
9
|
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
10
10
|
import { clsx } from "@v-c/util";
|
|
11
|
-
import { CheckCircleFilled, CloseCircleFilled, CloseOutlined, ExclamationCircleFilled, InfoCircleFilled } from "@antdv-next/icons";
|
|
12
11
|
import { omit as omit$1 } from "es-toolkit";
|
|
12
|
+
import { CheckCircleFilled, CloseCircleFilled, CloseOutlined, ExclamationCircleFilled, InfoCircleFilled } from "@antdv-next/icons";
|
|
13
13
|
import { Notification } from "@v-c/notification";
|
|
14
14
|
//#region src/notification/PurePanel.tsx
|
|
15
15
|
function getCloseIcon(prefixCls, closeIcon) {
|
|
@@ -4,7 +4,7 @@ import { useAppConfig } from "../app/context.js";
|
|
|
4
4
|
import PurePanel from "./PurePanel.js";
|
|
5
5
|
import PureList from "./PureList.js";
|
|
6
6
|
import useNotification, { useInternalNotification } from "./useNotification.js";
|
|
7
|
-
import { createVNode, defineComponent, getCurrentInstance, isVNode, onMounted, render, shallowRef, watch } from "vue";
|
|
7
|
+
import { computed, createVNode, defineComponent, getCurrentInstance, isVNode, onMounted, render, shallowRef, watch } from "vue";
|
|
8
8
|
//#region src/notification/index.tsx
|
|
9
9
|
function _isSlot(s) {
|
|
10
10
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -32,15 +32,14 @@ function getGlobalContext() {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
const GlobalHolder = /* @__PURE__ */ defineComponent((props, { expose }) => {
|
|
35
|
-
const {
|
|
35
|
+
const { sync } = props;
|
|
36
36
|
const { getPrefixCls } = useBaseConfig();
|
|
37
|
-
const prefixCls = defaultGlobalConfig?.prefixCls || getPrefixCls("notification");
|
|
38
37
|
const appConfig = useAppConfig();
|
|
39
|
-
const [api, holder] = useInternalNotification({
|
|
40
|
-
...notificationConfig,
|
|
41
|
-
prefixCls,
|
|
38
|
+
const [api, holder] = useInternalNotification(computed(() => ({
|
|
39
|
+
...props.notificationConfig,
|
|
40
|
+
prefixCls: defaultGlobalConfig?.prefixCls || getPrefixCls("notification"),
|
|
42
41
|
...appConfig.notification || {}
|
|
43
|
-
});
|
|
42
|
+
})));
|
|
44
43
|
onMounted(() => {
|
|
45
44
|
sync?.();
|
|
46
45
|
});
|
|
@@ -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
|
@@ -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";
|
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";
|
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";
|
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";
|
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";
|
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,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 { 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
8
|
import useVariant from "../form/hooks/useVariant.js";
|
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";
|
|
@@ -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";
|