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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { 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 { ZIndexProvider } from "../_util/zindexContext.js";
|
|
6
6
|
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
7
7
|
import getPlacements from "../_util/placements.js";
|
|
@@ -14,8 +14,8 @@ import style_default from "./style/index.js";
|
|
|
14
14
|
import { computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, shallowRef, watch } from "vue";
|
|
15
15
|
import { clsx } from "@v-c/util";
|
|
16
16
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
17
|
-
import { LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
18
17
|
import { omit as omit$1 } from "es-toolkit";
|
|
18
|
+
import { LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
19
19
|
import VcDropdown from "@v-c/dropdown";
|
|
20
20
|
//#region src/dropdown/dropdown.tsx
|
|
21
21
|
function _isSlot(s) {
|
package/dist/empty/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig, useComponentConfig } from "../config-provider/context.js";
|
|
2
1
|
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig, useComponentConfig } 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 useLocale from "../locale/useLocale.js";
|
|
@@ -103,6 +103,7 @@ const Empty = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose })
|
|
|
103
103
|
image: void 0,
|
|
104
104
|
description: void 0
|
|
105
105
|
}),
|
|
106
|
+
inheritAttrs: false,
|
|
106
107
|
name: "AEmpty"
|
|
107
108
|
});
|
|
108
109
|
Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, pureAttrs } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
|
|
2
3
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
3
|
-
import { getAttrStyleAndClass, pureAttrs } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import scrollTo from "../_util/scrollTo.js";
|
|
6
6
|
import { cloneIfVNode } from "../_util/vueNode.js";
|
|
@@ -9,9 +9,9 @@ import FloatButton, { floatButtonPrefixCls } from "./FloatButton.js";
|
|
|
9
9
|
import useScroll from "./hooks/useScroll.js";
|
|
10
10
|
import { Transition, computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
|
|
11
11
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
12
|
+
import { omit } from "es-toolkit";
|
|
12
13
|
import { VerticalAlignTopOutlined } from "@antdv-next/icons";
|
|
13
14
|
import { getTransitionProps } from "@v-c/util/dist/utils/transition";
|
|
14
|
-
import { omit } from "es-toolkit";
|
|
15
15
|
//#region src/float-button/BackTop.tsx
|
|
16
16
|
/** @deprecated Please use `ComponentProps<typeof FloatButton.BackTop>` instead. */
|
|
17
17
|
const defaultIcon = createVNode(VerticalAlignTopOutlined, null, null);
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
4
4
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
4
4
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
@@ -12,9 +12,9 @@ import FloatButton, { floatButtonPrefixCls } from "./FloatButton.js";
|
|
|
12
12
|
import { Transition, computed, createVNode, defineComponent, isVNode, mergeDefaults, mergeProps, nextTick, onBeforeUnmount, onMounted, shallowRef, watch } from "vue";
|
|
13
13
|
import { classNames } from "@v-c/util";
|
|
14
14
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
15
|
+
import { omit as omit$1 } from "es-toolkit";
|
|
15
16
|
import { CloseOutlined, FileTextOutlined } from "@antdv-next/icons";
|
|
16
17
|
import { getTransitionProps } from "@v-c/util/dist/utils/transition";
|
|
17
|
-
import { omit as omit$1 } from "es-toolkit";
|
|
18
18
|
//#region src/float-button/FloatButtonGroup.tsx
|
|
19
19
|
function _isSlot(s) {
|
|
20
20
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useConfig } from "../config-provider/context.js";
|
|
2
1
|
import { pureAttrs } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useConfig } from "../config-provider/context.js";
|
|
3
3
|
import FloatButton, { floatButtonPrefixCls } from "./FloatButton.js";
|
|
4
4
|
import BackTopWithInstall from "./BackTop.js";
|
|
5
5
|
import FloatButtonGroup from "./FloatButtonGroup.js";
|
package/dist/form/ErrorList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFormItemPrefixContext } from "./context.js";
|
|
2
1
|
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useFormItemPrefixContext } from "./context.js";
|
|
3
3
|
import { getSlotPropsFnRun } from "../_util/tools.js";
|
|
4
4
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
5
|
import initCollapseMotion from "../_util/motion.js";
|
package/dist/form/Form.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
1
3
|
import warning, { devUseWarning, isDev } from "../_util/warning.js";
|
|
2
4
|
import { NoFormStyle, useFormContextProvider, useVariantContextProvider } from "./context.js";
|
|
3
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
5
|
import { useSizeProvider } from "../config-provider/SizeContext.js";
|
|
5
6
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
6
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
7
7
|
import { toPropsRefs } from "../_util/tools.js";
|
|
8
8
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
9
9
|
import { useDisabledContext, useDisabledContextProvider } from "../config-provider/DisabledContext.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NoStyleItemContextProvider, useFormContext } from "../context.js";
|
|
2
1
|
import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { NoStyleItemContextProvider, useFormContext } from "../context.js";
|
|
3
3
|
import isNonNullable from "../../_util/isNonNullable.js";
|
|
4
4
|
import { getStatus } from "../util.js";
|
|
5
5
|
import Row from "../../grid/row.js";
|
|
@@ -30,8 +30,8 @@ const ItemHolder = /* @__PURE__ */ defineComponent((props, { attrs, slots }) =>
|
|
|
30
30
|
const onErrorVisibleChanged = (visible) => {
|
|
31
31
|
if (!visible && !hasError.value) marginBottom.value = null;
|
|
32
32
|
};
|
|
33
|
-
function getValidateState(
|
|
34
|
-
return getStatus(
|
|
33
|
+
function getValidateState() {
|
|
34
|
+
return getStatus(props?.meta?.errors, props?.meta?.warnings, props?.meta, "", !!props?.hasFeedback, props?.validateStatus);
|
|
35
35
|
}
|
|
36
36
|
return () => {
|
|
37
37
|
const mergedValidateStatus = getValidateState();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useComponentBaseConfig } from "../../config-provider/context.js";
|
|
1
2
|
import { devUseWarning, isDev } from "../../_util/warning.js";
|
|
2
3
|
import { useFormContext, useFormItemProvider, useNoStyleItemContext } from "../context.js";
|
|
3
|
-
import { useComponentBaseConfig } from "../../config-provider/context.js";
|
|
4
4
|
import { getSlotPropsFnRun } 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 Col from "../grid/col.js";
|
|
|
8
8
|
import convertToTooltipProps from "../_util/convertToTooltipProps.js";
|
|
9
9
|
import { Fragment, createVNode, defineComponent, mergeProps } from "vue";
|
|
10
10
|
import { clsx } from "@v-c/util";
|
|
11
|
-
import { QuestionCircleOutlined } from "@antdv-next/icons";
|
|
12
11
|
import { omit as omit$1 } from "es-toolkit";
|
|
12
|
+
import { QuestionCircleOutlined } from "@antdv-next/icons";
|
|
13
13
|
//#region src/form/FormItemLabel.tsx
|
|
14
14
|
const FormItemLabel = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
15
15
|
const [formLocale] = useLocale("Form");
|
package/dist/form/context.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare function useFormItemPrefixContext(): Ref<{
|
|
|
71
71
|
prefixCls: string;
|
|
72
72
|
}>;
|
|
73
73
|
declare function useVariantContextProvider(variant: Ref<Variant | undefined>): void;
|
|
74
|
-
declare function useVariantContext(): Ref<"outlined" | "
|
|
74
|
+
declare function useVariantContext(): Ref<"outlined" | "borderless" | "filled" | "underlined" | undefined, "outlined" | "borderless" | "filled" | "underlined" | undefined>;
|
|
75
75
|
interface FormItemStatusContextProps {
|
|
76
76
|
isFormItemInput?: boolean;
|
|
77
77
|
status?: ValidateStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useVariantContext } from "../context.js";
|
|
2
1
|
import { Variants, useConfig } from "../../config-provider/context.js";
|
|
2
|
+
import { useVariantContext } from "../context.js";
|
|
3
3
|
import { isRef, toRef } from "vue";
|
|
4
4
|
//#region src/form/hooks/useVariant.ts
|
|
5
5
|
function isVariantOptions(val) {
|
package/dist/grid/col.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useConfig } from "../config-provider/context.js";
|
|
2
3
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
3
|
-
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { useColStyle } from "./style/index.js";
|
|
5
5
|
import { responsiveArrayReversed } from "../_util/responsiveObserver.js";
|
|
6
6
|
import { useRowContext } from "./RowContext.js";
|
package/dist/grid/row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useConfig } from "../config-provider/context.js";
|
|
2
1
|
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useConfig } from "../config-provider/context.js";
|
|
3
3
|
import { useRowStyle } from "./style/index.js";
|
|
4
4
|
import { responsiveArray } from "../_util/responsiveObserver.js";
|
|
5
5
|
import useBreakpoint from "./hooks/useBreakpoint.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { getAttrStyleAndClass, 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 useMergedPreviewConfig from "./hooks/useMergedPreviewConfig.js";
|
|
@@ -7,8 +7,8 @@ import usePreviewConfig from "./hooks/usePreviewConfig.js";
|
|
|
7
7
|
import style_default from "./style/index.js";
|
|
8
8
|
import { computed, createVNode, defineComponent, mergeProps } from "vue";
|
|
9
9
|
import { clsx } from "@v-c/util";
|
|
10
|
-
import { CloseOutlined, LeftOutlined, RightOutlined, RotateLeftOutlined, RotateRightOutlined, SwapOutlined, ZoomInOutlined, ZoomOutOutlined } from "@antdv-next/icons";
|
|
11
10
|
import { omit as omit$1 } from "es-toolkit";
|
|
11
|
+
import { CloseOutlined, LeftOutlined, RightOutlined, RotateLeftOutlined, RotateRightOutlined, SwapOutlined, ZoomInOutlined, ZoomOutOutlined } from "@antdv-next/icons";
|
|
12
12
|
import { PreviewGroup } from "@v-c/image";
|
|
13
13
|
//#region src/image/PreviewGroup.tsx
|
|
14
14
|
const icons = {
|
|
@@ -36,16 +36,16 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
|
|
|
36
36
|
image: import("@v-c/image").ImgInfo;
|
|
37
37
|
}) => import("@v-c/util").VueNode;
|
|
38
38
|
readonly onChange?: (current: number, prevCurrent: number) => void;
|
|
39
|
-
readonly wheel?: boolean;
|
|
40
|
-
readonly focusTrap?: boolean;
|
|
41
39
|
readonly afterOpenChange?: (open: boolean) => void;
|
|
42
|
-
readonly maskClosable?: boolean;
|
|
43
40
|
readonly zIndex?: number;
|
|
44
|
-
readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
|
|
45
41
|
readonly closeIcon?: import("@v-c/util").VueNode | boolean | null;
|
|
42
|
+
readonly focusTrap?: boolean;
|
|
43
|
+
readonly maskClosable?: boolean;
|
|
44
|
+
readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
|
|
46
45
|
readonly motionName?: string;
|
|
47
46
|
readonly src?: string;
|
|
48
47
|
readonly alt?: string;
|
|
48
|
+
readonly wheel?: boolean;
|
|
49
49
|
readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
|
|
50
50
|
readonly countRender?: (current: number, total: number) => import("@v-c/util").VueNode;
|
|
51
51
|
readonly scaleStep?: number;
|
package/dist/image/index.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 { 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 { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import useMergedPreviewConfig from "./hooks/useMergedPreviewConfig.js";
|
|
@@ -73,11 +73,15 @@ const Image = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) =>
|
|
|
73
73
|
emit("click", e);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
const mergedPreviewConfigValue = mergedPreviewConfig.value;
|
|
77
|
+
const mergedPreviewConfigWithSlots = mergedPreviewConfigValue ? {
|
|
78
|
+
...mergedPreviewConfigValue,
|
|
79
|
+
...slots?.imageRender ? { imageRender: slots.imageRender } : {},
|
|
80
|
+
...slots?.cover && (mergedPreviewConfigValue.mask || typeof mergedPreviewConfigValue.mask === "boolean") ? { cover: slots.cover() } : {}
|
|
81
|
+
} : mergedPreviewConfigValue;
|
|
78
82
|
return createVNode(VcImage, mergeProps(restAttrs, {
|
|
79
83
|
"prefixCls": prefixCls.value,
|
|
80
|
-
"preview":
|
|
84
|
+
"preview": mergedPreviewConfigWithSlots || false,
|
|
81
85
|
"rootClassName": mergedRootClassName.value,
|
|
82
86
|
"class": mergedClassName,
|
|
83
87
|
"style": mergedImageStyle,
|
package/dist/index.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ import Typography, { TypographyLink, TypographyParagraph, TypographyText, Typogr
|
|
|
161
161
|
import { DraggerProps } from "./upload/Dragger.js";
|
|
162
162
|
import { UploadRef } from "./upload/Upload.js";
|
|
163
163
|
import Upload, { UploadDragger, UploadProps } from "./upload/index.js";
|
|
164
|
-
import Watermark, { WatermarkProps, WatermarkRef } from "./watermark/index.js";
|
|
164
|
+
import Watermark, { WatermarkEmits, WatermarkProps, WatermarkRef, WatermarkSlots } from "./watermark/index.js";
|
|
165
165
|
import "./components.js";
|
|
166
166
|
import { App, Plugin } from "vue";
|
|
167
167
|
import { StyleProvider } from "@antdv-next/cssinjs";
|
|
@@ -170,4 +170,4 @@ declare function setPrefix(newPrefix: string): void;
|
|
|
170
170
|
declare function install(app: App): void;
|
|
171
171
|
declare const _default$18: Plugin;
|
|
172
172
|
//#endregion
|
|
173
|
-
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$8 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type GlobalToken, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$9 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$11 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$12 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, StyleProvider, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$15 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type FilterDropdownProps as TableFilterDropdownProps, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, type ThemeConfig, _default$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkProps, type WatermarkRef, type WeekPickerProps, _default$18 as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, _default$19 as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, useTree, _version2 as version };
|
|
173
|
+
export { Affix, type AffixEmits, type AffixProps, type AffixRef, Alert, type AlertEmits, type AlertProps, type AlertSemanticType, type AlertSlots, Anchor, type AnchorEmits, type AnchorLinkProps, type AnchorProps, type AnchorSlots, type AntTreeNode, type AntTreeNodeCheckedEvent, type AntTreeNodeExpandedEvent, type AntTreeNodeMouseEvent, type AntTreeNodeProps, type AntTreeNodeSelectedEvent, type AntdTreeNodeAttribute, _default as App, type AppProps, AutoComplete, type AutoCompleteClassNamesType, type AutoCompleteEmits, Option as AutoCompleteOption, type AutoCompleteProps, type AutoCompleteSlots, type AutoCompleteStylesType, Avatar, type AvatarEmits, AvatarGroup, type AvatarGroupProps, type AvatarGroupRef, type AvatarProps, type AvatarSlots, BackTopWithInstall as BackTop, Badge, type BadgeProps, BadgeRibbon, type RibbonProps as BadgeRibbonProps, type RibbonRef as BadgeRibbonRef, type BadgeSlots, type BasicDataNode, BorderBeam, type BorderBeamColor, type BorderBeamGradient, type BorderBeamProps, _default$1 as Breadcrumb, type BreadcrumbEmits, _default$2 as BreadcrumbItem, type BreadcrumbItemProps, type ItemType as BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbRef, _default$3 as BreadcrumbSeparator, type BreadcrumbSlots, Button, type ButtonColorType, type ButtonEmits, type ButtonHTMLType, type ButtonProps, type ButtonSemanticName, type ButtonShape, type SizeType as ButtonSize, type ButtonSlots, type ButtonType, type ButtonVariantType, _default$4 as Calendar, type CalendarMode, type CalendarProps, type CalendarRef, _default$5 as Card, type CardEmits, CardGrid, type CardGridProps, type CardGridRef, CardMeta, type CardMetaProps, type CardMetaRef, type CardProps, type CardSize, type CardSlots, type CardTabListType, Carousel, type CarouselEmits, type CarouselProps, type CarouselRef, type CarouselSlots, Cascader, type CascaderEmits, CascaderPanel, type CascaderPanelEmits, type CascaderPanelProps, type CascaderPanelSlots, type CascaderProps, type CascaderSlots, CheckableTag, CheckableTagGroup, type CheckableTagProps, InternalCheckbox as Checkbox, type CheckboxEmits, CheckboxGroup, type CheckboxGroupEmits, type CheckboxGroupProps, type CheckboxGroupSlots, type CheckboxOptionType, type CheckboxProps, type CheckboxSlots, Col, type ColProps, type ColSize, Collapse, CollapsePanel, type CollapsePanelProps, type CollapsePanelSlots, type CollapseProps, type AggregationColor as Color, ColorPicker, type ColorPickerEmits, type ColorPickerProps, type ColorPickerSlots, type ColorValueType, _default$6 as ConfigProvider, type ConfigProviderProps, type DataSourceItemObject, type DataSourceItemType, DateMonthPicker, _default$7 as DatePicker, type DatePickerEmits, type DatePickerProps, type DatePickerSlots, DateQuarterPicker, DateRangePicker, DateWeekPicker, DateYearPicker, Descriptions, DescriptionsItem, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsItemType, type DescriptionsProps, type DescriptionsRef, type DescriptionsSlots, DirectoryTree, type DirectoryTreeEmits, type ExpandAction as DirectoryTreeExpandAction, type DirectoryTreeProps, type DirectoryTreeSlots, Divider, type DividerProps, type DividerRef, Drawer, type DrawerEmits, type DrawerProps, type DrawerResizableConfig, type DrawerSlots, Dropdown, type DropdownArrowOptions, type DropdownEmits, type DropdownProps, type DropdownSlots, _default$8 as Empty, type EmptyProps, type EmptyRef, type EmptySlots, Flex, type FlexProps, type FlexSlots, FloatButton, FloatButtonGroup, type FloatButtonGroupProps, type FloatButtonGroupRef, type FloatButtonProps, type FloatButtonRef, InternalForm as Form, type FormEmits, type FormHookInstance, type FormInstance, InternalFormItem as FormItem, type FormItemEmits, type FormItemProps, type FormItemSlots, type FormProps, type FormSlots, type GlobalToken, _default_1 as Image, type ImageEmits, type PreviewConfig as ImagePreviewConfig, ImagePreviewGroup, type ImagePreviewGroupProps, type ImageProps, type ImageSlots, CompoundedInput as Input, type InputEmits, InputGroup, type InputGroupProps, InputNumber, type InputNumberEmits, type InputNumberProps, type VcInputNumberRef as InputNumberRef, type InputNumberStepContext, type ValueType as InputNumberValueType, InputOTP, type OTPEmits as InputOTPEmits, type OTPProps as InputOTPProps, type OTPSlots as InputOTPSlots, InputPassword, type PasswordProps as InputPasswordProps, type InputPasswordRef, type InputProps, type InputRef, InputSearch, type SearchProps as InputSearchProps, type InputSearchRef, type InputSlots, type InputTextAreaRef, type KeyWise, type KeyWiseTransferItem, Layout, LayoutContent, LayoutFooter, LayoutHeader, type BasicProps as LayoutProps, LayoutSider, type LegacyButtonType, type ListStyle, Listy, type ListyClassNames, type ListyProps, type ListyRef, type ListyScrollToConfig, type ListyStyles, _default$9 as Masonry, type MasonryEmits, type MasonryProps, type MasonryRef, type MasonrySlots, type MentionPlacement, Mentions, type MentionsClassNamesType, type MentionsEmits, Option$1 as MentionsOption, type MentionsOptionProps, type MentionsProps, type MentionsRef, type MentionsSlots, type MentionsStylesType, _default$10 as Menu, MenuDivider, type MenuEmits, type MenuInfo, MenuItem, MenuItemGroup, type MenuItemGroupProps, type MenuItemProps, type MenuItemType, type MenuProps, type MenuRef, type MenuSlots, _default$11 as Modal, type ModalEmits, type ModalProps, type ModalSlots, type MonthPickerProps, Pagination, type PaginationClassNamesType, type PaginationComponents, type PaginationConfig, type PaginationEmits, type PaginationLocale, type PaginationPosition, type PaginationProps, type PaginationSizeChangerProps, type PaginationSlots, type PaginationStylesType, Popconfirm, type PopconfirmEmits, type PopconfirmProps, type PopconfirmSlots, Popover, type PopoverEmits, type PopoverProps, type PopoverRef, type PopoverSlots, Progress, type ProgressProps, QRCode, type QRCodeEmits, type QRCodeProps, type QRCodeRef, InternalRadio as Radio, RadioButton, type RadioChangeEvent, type RadioEmits, RadioGroup, type RadioGroupEmits, type RadioGroupOptionType, type RadioGroupProps, type RadioGroupSlots, type RadioOptionType, type RadioProps, type RadioSlots, type RangePickerProps, Rate, type RateEmits, type RateProps, type RenderResult, type RenderResultObject, _default$12 as Result, type ResultProps, type ResultRef, type ResultSlots, type ResultStatusType, Row, type RowProps, type Rule, type RuleObject, type RuleRender, type RuleType, Segmented, type SegmentedEmits, type SegmentedOptions, type SegmentedProps, type SegmentedSlots, Select, type SelectAllLabel, type SelectEmits, type SelectInfo, SelectOptGroup, SelectOption, type SelectProps, type SelectSlots, type SelectValue, type SizeType, SkeletonWithSubComponents as Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, Slider, type SliderEmits, type SliderProps, type SliderRef, Space, SpaceAddon, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, type SpaceProps, type SpaceSize, type SpaceSlots, _default$13 as Spin, type SpinProps, type SpinRef, type SpinSlots, Splitter, type SplitterEmits, SplitterPanel, type SplitterProps, type SplitterRef, type SplitterSlots, _default$14 as Statistic, type StatisticProps, type StatisticRef, StatisticTimer, type StatisticTimerProps, type StepItem, Steps, type StepsEmits, type StepsProps, type StepsSlots, StyleProvider, SubMenu, type SubMenuProps, Switch, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, TabPane, type TabPaneProps, _default$15 as Table, type TableClassNamesType, Column as TableColumn, ColumnGroup as TableColumnGroup, type ColumnType as TableColumnType, type ColumnsType as TableColumnsType, type DataIndex as TableDataIndex, type TableEmits, type FilterDropdownProps as TableFilterDropdownProps, type TableLocale, type TablePaginationConfig, type TableProps, type TableRowSelection, type TableSlots, type SortOrder as TableSortOrder, type SorterResult as TableSorterResult, type TableStylesType, Summary as TableSummary, SummaryCell as TableSummaryCell, SummaryRow as TableSummaryRow, Tabs, type TabsEmits, type TabsProps, type TabsRef, type TabsSlots, Tag, type TagProps, type TagSlots, InternalTextArea as TextArea, type TextAreaProps, type TextAreaRef, type ThemeConfig, _default$16 as TimePicker, type TimePickerEmits, type TimePickerLocale, type TimePickerProps, type TimePickerSlots, TimeRangePicker, type TimeRangePickerEmits, type TimeRangePickerProps, type TimeRangePickerSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSlots, type TimelineItemType, type TimelineProps, _default$17 as Tooltip, type TooltipAlignConfig, type TooltipEmits, type TooltipPlacement, type TooltipProps, type TooltipRef, type TooltipSlots, Tour, type TourEmits, type TourLocale, type TourProps, type TourSlots, type TourStepItem, type TourStylesType, InternalTransfer as Transfer, type TransferClassNamesType, type TransferCustomListBodyProps, type TransferDirection, type TransferEmits, type TransferItem, type TransferKey, type TransferListBodyProps, type TransferListProps, type TransferLocale, type TransferOperationProps, type PaginationType as TransferPaginationType, type TransferProps, type TransferRef, type TransferRender, type TransferSearchEmits, type TransferSearchOption, type TransferSearchProps, type TransferSearchSlots, type TransferSlots, type TransferStylesType, Tree, type DataNode as TreeDataNode, type TreeEmits, type TreeInstance, type TreeProps, TreeSelect, type TreeSelectEmits, type TreeSelectNode, type TreeSelectProps, type TreeSelectSlots, type TreeSlots, type UseTreeConfig as TreeUseTreeConfig, Typography, type BlockProps as TypographyBaseProps, TypographyLink, type LinkProps as TypographyLinkProps, TypographyParagraph, type ParagraphProps as TypographyParagraphProps, TypographyText, type TextProps as TypographyTextProps, TypographyTitle, type TitleProps as TypographyTitleProps, UniqueProvider, Upload, type UploadChangeParam, UploadDragger, type DraggerProps as UploadDraggerProps, type UploadEmits, type UploadFile, type UploadProps, type UploadRef, type UploadSlots, Watermark, type WatermarkEmits, type WatermarkProps, type WatermarkRef, type WatermarkSlots, type WeekPickerProps, _default$18 as default, install, staticMethods as message, staticMethods$1 as notification, setPrefix, _default$19 as theme, useBreakpoint, useExportConfig as useConfig, useForm, useFormInstance, useLayoutSider, useMessage, useModal, useNotification, useResponsive, useTree, _version2 as version };
|
package/dist/input/Group.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { getAttrStyleAndClass } 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, useFormItemInputContextProvider } from "../form/context.js";
|
|
3
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
|
-
import { getAttrStyleAndClass } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import style_default, { useSharedStyle } from "./style/index.js";
|
|
7
7
|
import { SpaceCompact } from "../space/index.js";
|
package/dist/input/Input.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
5
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
5
6
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
6
7
|
import { ContextIsolator } from "../_util/ContextIsolator.js";
|
|
7
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
8
8
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
9
9
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
10
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
@@ -2,8 +2,8 @@ import { getAttrStyleAndClass } from "../../_util/hooks/useMergeSemantic.js";
|
|
|
2
2
|
import InternalInput from "../Input.js";
|
|
3
3
|
import { computed, createVNode, defineComponent, mergeProps, shallowRef } from "vue";
|
|
4
4
|
import { clsx } from "@v-c/util";
|
|
5
|
-
import raf from "@v-c/util/dist/raf";
|
|
6
5
|
import { omit as omit$1 } from "es-toolkit";
|
|
6
|
+
import raf from "@v-c/util/dist/raf";
|
|
7
7
|
//#region src/input/OTP/OTPInput.tsx
|
|
8
8
|
const DEFAULT_MASK_VALUE = "•";
|
|
9
9
|
const OTPInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots }) => {
|
package/dist/input/OTP/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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, useFormItemInputContextProvider } from "../../form/context.js";
|
|
3
|
-
import { useComponentBaseConfig } from "../../config-provider/context.js";
|
|
4
5
|
import { useSize } from "../../config-provider/hooks/useSize.js";
|
|
5
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../../_util/hooks/useMergeSemantic.js";
|
|
6
6
|
import { toPropsRefs } from "../../_util/tools.js";
|
|
7
7
|
import { isRenderable } from "../../_util/is.js";
|
|
8
8
|
import useVariant from "../../form/hooks/useVariant.js";
|
package/dist/input/Password.js
CHANGED
|
@@ -7,8 +7,8 @@ import useRemovePasswordTimeout from "./hooks/useRemovePasswordTimeout.js";
|
|
|
7
7
|
import InternalInput from "./Input.js";
|
|
8
8
|
import { Fragment, computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
|
9
9
|
import { clsx } from "@v-c/util";
|
|
10
|
-
import { EyeInvisibleOutlined, EyeOutlined } from "@antdv-next/icons";
|
|
11
10
|
import { omit as omit$1 } from "es-toolkit";
|
|
11
|
+
import { EyeInvisibleOutlined, EyeOutlined } from "@antdv-next/icons";
|
|
12
12
|
//#region src/input/Password.tsx
|
|
13
13
|
const defaultIconRender = (visible) => visible ? createVNode(EyeOutlined, null, null) : createVNode(EyeInvisibleOutlined, null, null);
|
|
14
14
|
const InternalPassword = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit, expose }) => {
|
package/dist/input/Search.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } 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
4
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
4
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
5
5
|
import fallbackProp from "../_util/fallbackProp.js";
|
|
6
6
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
7
7
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
@@ -12,8 +12,8 @@ import InternalInput from "./Input.js";
|
|
|
12
12
|
import search_default from "./style/search.js";
|
|
13
13
|
import { cloneVNode, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
|
|
14
14
|
import { clsx } from "@v-c/util";
|
|
15
|
-
import { SearchOutlined } from "@antdv-next/icons";
|
|
16
15
|
import { omit as omit$1 } from "es-toolkit";
|
|
16
|
+
import { SearchOutlined } from "@antdv-next/icons";
|
|
17
17
|
import pickAttrs from "@v-c/util/dist/pickAttrs";
|
|
18
18
|
//#region src/input/Search.tsx
|
|
19
19
|
function _isSlot(s) {
|
package/dist/input/TextArea.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
5
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
5
6
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
6
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
7
7
|
import { toPropsRefs } from "../_util/tools.js";
|
|
8
8
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
9
9
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
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
5
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
5
6
|
import { useCompactItemContext } from "../space/Compact.js";
|
|
6
7
|
import { ContextIsolator } from "../_util/ContextIsolator.js";
|
|
7
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
8
8
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
9
9
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
10
10
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
|
@@ -15,8 +15,8 @@ import { SpaceAddon, SpaceCompact } from "../space/index.js";
|
|
|
15
15
|
import style_default from "./style/index.js";
|
|
16
16
|
import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
|
|
17
17
|
import { clsx } from "@v-c/util";
|
|
18
|
-
import { DownOutlined, MinusOutlined, PlusOutlined, UpOutlined } from "@antdv-next/icons";
|
|
19
18
|
import { omit as omit$1 } from "es-toolkit";
|
|
19
|
+
import { DownOutlined, MinusOutlined, PlusOutlined, UpOutlined } from "@antdv-next/icons";
|
|
20
20
|
import VcInputNumber from "@v-c/input-number";
|
|
21
21
|
//#region src/input-number/index.tsx
|
|
22
22
|
function _isSlot(s) {
|
package/dist/layout/Sider.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
4
4
|
import { addMediaQueryListener, removeMediaQueryListener } from "../_util/mediaQueryUtil.js";
|
|
5
5
|
import { useLayoutCtx } from "./context.js";
|
|
6
6
|
import sider_default from "./style/sider.js";
|
|
7
7
|
import { computed, createVNode, defineComponent, inject, mergeDefaults, mergeProps, onBeforeUnmount, provide, ref, shallowRef, watch } from "vue";
|
|
8
8
|
import { classNames } from "@v-c/util";
|
|
9
|
-
import { BarsOutlined, LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
10
9
|
import { omit as omit$1 } from "es-toolkit";
|
|
10
|
+
import { BarsOutlined, LeftOutlined, RightOutlined } from "@antdv-next/icons";
|
|
11
11
|
import canUseDom from "@v-c/util/dist/Dom/canUseDom";
|
|
12
12
|
//#region src/layout/Sider.tsx
|
|
13
13
|
const dimensionMaxMap = {
|
package/dist/listy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import useToken from "../theme/useToken.js";
|
|
3
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
5
5
|
import style_default from "./style/index.js";
|
|
6
6
|
import { computed, createVNode, defineComponent, mergeProps, shallowRef, useAttrs } from "vue";
|
package/dist/locale/id_ID.js
CHANGED
|
@@ -3,7 +3,7 @@ import locale$1 from "../date-picker/locale/id_ID.js";
|
|
|
3
3
|
import id_ID_default from "../calendar/locale/id_ID.js";
|
|
4
4
|
import Pagination from "@v-c/pagination/locale/id_ID";
|
|
5
5
|
//#region src/locale/id_ID.ts
|
|
6
|
-
const typeTemplate = "${label}
|
|
6
|
+
const typeTemplate = "${label} bukan ${type} yang valid";
|
|
7
7
|
const localeValues = {
|
|
8
8
|
locale: "id",
|
|
9
9
|
Pagination,
|
|
@@ -11,11 +11,12 @@ const localeValues = {
|
|
|
11
11
|
TimePicker: locale,
|
|
12
12
|
Calendar: id_ID_default,
|
|
13
13
|
global: {
|
|
14
|
-
placeholder: "
|
|
14
|
+
placeholder: "Silakan pilih",
|
|
15
15
|
close: "Tutup",
|
|
16
16
|
sortable: "dapat diurutkan",
|
|
17
17
|
show: "Tampilkan",
|
|
18
|
-
hide: "Sembunyikan"
|
|
18
|
+
hide: "Sembunyikan",
|
|
19
|
+
clear: "Hapus"
|
|
19
20
|
},
|
|
20
21
|
Table: {
|
|
21
22
|
filterTitle: "Menu filter",
|
|
@@ -93,7 +94,7 @@ const localeValues = {
|
|
|
93
94
|
nextSlide: "Slide berikutnya"
|
|
94
95
|
},
|
|
95
96
|
Form: {
|
|
96
|
-
optional: "(
|
|
97
|
+
optional: "(opsional)",
|
|
97
98
|
defaultValidateMessages: {
|
|
98
99
|
default: "Kesalahan validasi untuk ${label}",
|
|
99
100
|
required: "Tolong masukkan ${label}",
|
|
@@ -123,7 +124,7 @@ const localeValues = {
|
|
|
123
124
|
len: "${label} harus berupa ${len} karakter",
|
|
124
125
|
min: "${label} harus minimal ${min} karakter",
|
|
125
126
|
max: "${label} harus maksimal ${max} karakter",
|
|
126
|
-
range: "${label} harus
|
|
127
|
+
range: "${label} harus di antara ${min}-${max} karakter"
|
|
127
128
|
},
|
|
128
129
|
number: {
|
|
129
130
|
len: "${label} harus sama dengan ${len}",
|
|
@@ -150,7 +151,8 @@ const localeValues = {
|
|
|
150
151
|
transparent: "Transparan",
|
|
151
152
|
singleColor: "Warna tunggal",
|
|
152
153
|
gradientColor: "Warna gradien"
|
|
153
|
-
}
|
|
154
|
+
},
|
|
155
|
+
Input: { otpCell: "Karakter ${index} dari ${total}" }
|
|
154
156
|
};
|
|
155
157
|
//#endregion
|
|
156
158
|
export { localeValues as default };
|
package/dist/locale/uz_UZ.js
CHANGED
|
@@ -33,16 +33,16 @@ const localeValues = {
|
|
|
33
33
|
selectedRow: "Qator tanlandi",
|
|
34
34
|
selectionMenu: "Tanlash menyusi",
|
|
35
35
|
sortTitle: "Tartiblash",
|
|
36
|
-
expand: "
|
|
37
|
-
collapse: "
|
|
38
|
-
expandAll: "Barcha
|
|
39
|
-
collapseAll: "Barcha
|
|
36
|
+
expand: "Qatorni yoyish",
|
|
37
|
+
collapse: "Qatorni yig'ish",
|
|
38
|
+
expandAll: "Barcha qatorlarni yoyish",
|
|
39
|
+
collapseAll: "Barcha qatorlarni yig'ish",
|
|
40
40
|
triggerDesc: "Kamayish tartibida tartiblash uchun bosing",
|
|
41
41
|
triggerAsc: "O'sish tartibida tartiblash uchun bosing",
|
|
42
|
-
cancelSort: "
|
|
42
|
+
cancelSort: "Tartiblashni bekor qilish uchun bosing"
|
|
43
43
|
},
|
|
44
44
|
Tour: {
|
|
45
|
-
Next: "
|
|
45
|
+
Next: "Keyingi",
|
|
46
46
|
Previous: "Ortga",
|
|
47
47
|
Finish: "Tugatish"
|
|
48
48
|
},
|
|
@@ -65,7 +65,7 @@ const localeValues = {
|
|
|
65
65
|
itemUnit: "elem.",
|
|
66
66
|
itemsUnit: "elem.",
|
|
67
67
|
remove: "Oʻchirish",
|
|
68
|
-
selectAll: "
|
|
68
|
+
selectAll: "Barcha ma'lumotlarni tanlash",
|
|
69
69
|
selectCurrent: "Joriy sahifani tanlash",
|
|
70
70
|
selectInvert: "Tanlovni aylantirish",
|
|
71
71
|
removeAll: "Barcha ma'lumotlarni o'chirish",
|
|
@@ -85,8 +85,8 @@ const localeValues = {
|
|
|
85
85
|
edit: "Tahrirlash",
|
|
86
86
|
copy: "Nusxalash",
|
|
87
87
|
copied: "Nusxalandi",
|
|
88
|
-
expand: "
|
|
89
|
-
collapse: "
|
|
88
|
+
expand: "Yoyish",
|
|
89
|
+
collapse: "Yigʻish"
|
|
90
90
|
},
|
|
91
91
|
Carousel: {
|
|
92
92
|
prevSlide: "Oldingi slayd",
|
|
@@ -102,7 +102,7 @@ const localeValues = {
|
|
|
102
102
|
date: {
|
|
103
103
|
format: "${label} toʻgʻri sana formatida emas",
|
|
104
104
|
parse: "${label} sanaga aylantirilmaydi",
|
|
105
|
-
invalid: "${label}
|
|
105
|
+
invalid: "${label} toʻgʻri sana emas"
|
|
106
106
|
},
|
|
107
107
|
types: {
|
|
108
108
|
string: typeTemplate,
|
|
@@ -121,8 +121,8 @@ const localeValues = {
|
|
|
121
121
|
},
|
|
122
122
|
string: {
|
|
123
123
|
len: "${label}, ${len} ta belgidan iborat boʻlishi kerak",
|
|
124
|
-
min: "${label}
|
|
125
|
-
max: "${label}
|
|
124
|
+
min: "${label} kamida ${min} ta belgidan iborat boʻlishi kerak",
|
|
125
|
+
max: "${label} koʻpi bilan ${max} ta belgidan iborat boʻlishi kerak",
|
|
126
126
|
range: "${label} uzunligi ${min}-${max} belgilar orasida boʻlishi kerak"
|
|
127
127
|
},
|
|
128
128
|
number: {
|
package/dist/masonry/Masonry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
1
2
|
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
2
3
|
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
3
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
4
4
|
import { toPropsRefs } from "../_util/tools.js";
|
|
5
5
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
6
6
|
import { responsiveArray } from "../_util/responsiveObserver.js";
|
package/dist/mentions/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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";
|
|
4
|
+
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
2
5
|
import { useFormItemInputContext } from "../form/context.js";
|
|
3
|
-
import { useComponentBaseConfig } from "../config-provider/context.js";
|
|
4
6
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
5
|
-
import { getAttrStyleAndClass, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
|
|
6
|
-
import { useZIndex } from "../_util/hooks/useZIndex.js";
|
|
7
7
|
import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
|
|
8
8
|
import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
|
|
9
9
|
import { useDisabledContext } from "../config-provider/DisabledContext.js";
|
package/dist/menu/MenuDivider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useBaseConfig } from "../config-provider/context.js";
|
|
2
1
|
import { pureAttrs } from "../_util/hooks/useMergeSemantic.js";
|
|
2
|
+
import { useBaseConfig } from "../config-provider/context.js";
|
|
3
3
|
import { createVNode, defineComponent, mergeProps } from "vue";
|
|
4
4
|
import { clsx } from "@v-c/util";
|
|
5
5
|
import { Divider } from "@v-c/menu";
|