antdv-next 1.0.0-beta.3 → 1.0.0-rc.1
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.mjs +4 -4
- package/dist/_util/hooks/useClosable.d.mts +0 -1
- package/dist/_util/hooks/useClosable.mjs +1 -1
- package/dist/_util/hooks/useMergeSemantic.d.mts +2 -3
- package/dist/_util/hooks/useMergeSemantic.mjs +9 -9
- package/dist/_util/tools.mjs +1 -1
- package/dist/_util/warning.d.mts +0 -1
- package/dist/affix/index.d.mts +3 -3
- package/dist/alert/Alert.d.mts +24 -7
- package/dist/alert/Alert.mjs +91 -28
- package/dist/anchor/Anchor.d.mts +18 -7
- package/dist/antd.css +1 -1
- package/dist/antd.js +101 -112
- package/dist/app/App.d.mts +2 -2
- package/dist/app/App.mjs +2 -2
- package/dist/auto-complete/index.d.mts +23 -11
- package/dist/auto-complete/index.mjs +1 -1
- package/dist/avatar/Avatar.d.mts +3 -3
- package/dist/avatar/AvatarGroup.d.mts +2 -2
- package/dist/avatar/style/index.mjs +2 -2
- package/dist/badge/Ribbon.d.mts +21 -5
- package/dist/badge/Ribbon.mjs +44 -23
- package/dist/badge/SingleNumber.mjs +2 -1
- package/dist/badge/index.d.mts +14 -7
- package/dist/badge/style/ribbon.mjs +1 -1
- package/dist/breadcrumb/Breadcrumb.d.mts +17 -6
- package/dist/breadcrumb/Breadcrumb.mjs +18 -3
- package/dist/breadcrumb/BreadcrumbItem.d.mts +1 -0
- package/dist/breadcrumb/BreadcrumbItem.mjs +29 -4
- package/dist/breadcrumb/style/index.mjs +5 -5
- package/dist/button/Button.d.mts +18 -10
- package/dist/button/buttonHelper.d.mts +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/style/compact.mjs +28 -19
- package/dist/button/style/token.d.mts +0 -5
- package/dist/button/style/variant.mjs +27 -3
- package/dist/calendar/generateCalendar.d.mts +20 -7
- package/dist/calendar/generateCalendar.mjs +1 -1
- package/dist/calendar/index.d.mts +3 -3
- package/dist/card/Card.d.mts +23 -6
- package/dist/card/CardGrid.d.mts +2 -2
- package/dist/card/CardMeta.d.mts +20 -7
- package/dist/carousel/index.d.mts +3 -3
- package/dist/cascader/Panel.d.mts +3 -3
- package/dist/cascader/index.d.mts +31 -10
- package/dist/checkbox/Checkbox.d.mts +16 -7
- package/dist/checkbox/Checkbox.mjs +1 -1
- package/dist/checkbox/Group.d.mts +4 -3
- package/dist/checkbox/Group.mjs +11 -2
- package/dist/collapse/Collapse.d.mts +19 -6
- package/dist/collapse/Collapse.mjs +1 -1
- package/dist/color-picker/ColorPicker.d.mts +3 -3
- package/dist/color-picker/interface.d.mts +15 -7
- package/dist/color-picker/style/input.mjs +2 -0
- package/dist/components.d.mts +2 -3
- package/dist/config-provider/context.d.mts +58 -12
- package/dist/config-provider/context.mjs +3 -3
- package/dist/config-provider/define.d.mts +7 -1
- package/dist/config-provider/index.d.mts +3 -4
- package/dist/config-provider/index.mjs +82 -8
- package/dist/date-picker/generatePicker/index.d.mts +15 -15
- package/dist/date-picker/generatePicker/interface.d.mts +37 -10
- package/dist/date-picker/hooks/useMergedPickerSemantic.mjs +2 -2
- package/dist/date-picker/index.d.mts +25 -25
- package/dist/descriptions/Cell.mjs +5 -5
- package/dist/descriptions/DescriptionsContext.d.mts +13 -0
- package/dist/descriptions/Item.d.mts +3 -3
- package/dist/descriptions/hooks/useRow.mjs +7 -7
- package/dist/descriptions/index.d.mts +22 -7
- package/dist/divider/index.d.mts +15 -5
- package/dist/drawer/DrawerPanel.d.mts +28 -3
- package/dist/drawer/DrawerPanel.mjs +3 -3
- package/dist/drawer/index.d.mts +4 -4
- package/dist/drawer/index.mjs +4 -0
- package/dist/drawer/style/index.mjs +9 -2
- package/dist/dropdown/dropdown.d.mts +20 -7
- package/dist/empty/index.d.mts +18 -7
- package/dist/flex/index.d.mts +3 -3
- package/dist/float-button/BackTop.d.mts +3 -3
- package/dist/float-button/FloatButton.d.mts +6 -7
- package/dist/float-button/FloatButtonGroup.d.mts +25 -6
- package/dist/form/Form.d.mts +16 -7
- package/dist/form/FormItem/index.d.mts +3 -3
- package/dist/form/FormItem/index.mjs +1 -1
- package/dist/form/FormItemInput.d.mts +0 -1
- package/dist/grid/index.d.mts +2 -2
- package/dist/grid/row.d.mts +2 -2
- package/dist/image/PreviewGroup.d.mts +3 -5
- package/dist/image/index.d.mts +34 -14
- package/dist/index.d.mts +3 -4
- package/dist/input/Input.d.mts +17 -4
- package/dist/input/Input.mjs +2 -2
- package/dist/input/OTP/index.d.mts +13 -4
- package/dist/input/Password.mjs +3 -3
- package/dist/input/Search.d.mts +21 -9
- package/dist/input/TextArea.d.mts +16 -7
- package/dist/input/TextArea.mjs +2 -2
- package/dist/input/index.d.mts +11 -11
- package/dist/input/style/index.mjs +5 -2
- package/dist/input/style/variants.mjs +2 -1
- package/dist/input-number/index.d.mts +20 -7
- package/dist/layout/index.d.mts +6 -6
- package/dist/layout/layout.d.mts +2 -3
- package/dist/locale/index.d.mts +0 -1
- package/dist/masonry/Masonry.d.mts +14 -7
- package/dist/masonry/MasonryItem.mjs +2 -2
- package/dist/mentions/index.d.mts +18 -7
- package/dist/mentions/index.mjs +2 -2
- package/dist/mentions/style/index.mjs +2 -2
- package/dist/menu/MenuContext.d.mts +0 -1
- package/dist/menu/MenuDivider.d.mts +2 -2
- package/dist/menu/MenuItem.d.mts +3 -3
- package/dist/menu/MenuItem.mjs +4 -3
- package/dist/menu/SubMenu.d.mts +3 -3
- package/dist/menu/SubMenu.mjs +5 -0
- package/dist/menu/index.d.mts +5 -5
- package/dist/menu/menu.d.mts +42 -10
- package/dist/menu/menu.mjs +2 -2
- package/dist/menu/style/index.d.mts +1 -1
- package/dist/menu/style/vertical.mjs +1 -1
- package/dist/message/PurePanel.d.mts +5 -7
- package/dist/message/index.mjs +2 -2
- package/dist/message/interface.d.mts +20 -4
- package/dist/message/useMessage.d.mts +0 -1
- package/dist/modal/Modal.d.mts +3 -3
- package/dist/modal/confirm.mjs +8 -4
- package/dist/modal/interface.d.mts +22 -3
- package/dist/modal/style/index.mjs +11 -8
- package/dist/notification/PurePanel.d.mts +8 -8
- package/dist/notification/index.mjs +2 -2
- package/dist/notification/interface.d.mts +18 -5
- package/dist/notification/style/index.mjs +8 -8
- package/dist/notification/useNotification.d.mts +2 -3
- package/dist/package.d.mts +4 -0
- package/dist/package.mjs +1 -1
- package/dist/pagination/Pagination.d.mts +3 -3
- package/dist/pagination/Pagination.mjs +11 -10
- package/dist/pagination/interface.d.mts +14 -5
- package/dist/pagination/style/bordered.mjs +2 -2
- package/dist/pagination/style/index.d.mts +10 -5
- package/dist/pagination/style/index.mjs +52 -103
- package/dist/popconfirm/PurePanel.d.mts +5 -7
- package/dist/popconfirm/index.d.mts +8 -6
- package/dist/popconfirm/index.mjs +7 -3
- package/dist/popover/index.d.mts +16 -9
- package/dist/popover/index.mjs +8 -5
- package/dist/progress/Line.mjs +3 -3
- package/dist/progress/progress.d.mts +20 -7
- package/dist/qrcode/index.d.mts +3 -3
- package/dist/qrcode/index.mjs +2 -1
- package/dist/qrcode/interface.d.mts +11 -3
- package/dist/radio/group.mjs +3 -3
- package/dist/radio/index.d.mts +5 -5
- package/dist/radio/interface.d.mts +13 -3
- package/dist/radio/radio.d.mts +3 -3
- package/dist/radio/radio.mjs +1 -1
- package/dist/rate/index.d.mts +3 -3
- package/dist/result/index.d.mts +22 -7
- package/dist/result/index.mjs +11 -6
- package/dist/result/noFound.d.mts +2 -2
- package/dist/result/serverError.d.mts +2 -2
- package/dist/result/unauthorized.d.mts +2 -2
- package/dist/segmented/index.d.mts +18 -7
- package/dist/select/index.d.mts +48 -20
- package/dist/skeleton/Avatar.d.mts +2 -2
- package/dist/skeleton/Button.d.mts +2 -2
- package/dist/skeleton/Image.d.mts +2 -2
- package/dist/skeleton/Input.d.mts +2 -2
- package/dist/skeleton/Node.d.mts +3 -3
- package/dist/skeleton/Skeleton.d.mts +22 -7
- package/dist/slider/index.d.mts +19 -6
- package/dist/slider/index.mjs +4 -4
- package/dist/space/index.d.mts +18 -9
- package/dist/spin/Indicator/Progress.mjs +3 -3
- package/dist/spin/index.d.mts +19 -6
- package/dist/splitter/SplitBar.mjs +12 -12
- package/dist/splitter/Splitter.d.mts +3 -3
- package/dist/splitter/Splitter.mjs +1 -1
- package/dist/splitter/hooks/useItems.mjs +2 -2
- package/dist/splitter/hooks/useResizable.mjs +5 -5
- package/dist/splitter/hooks/useResize.mjs +2 -2
- package/dist/splitter/index.d.mts +2 -2
- package/dist/splitter/interface.d.mts +21 -7
- package/dist/splitter/style/index.mjs +2 -28
- package/dist/statistic/Statistic.d.mts +21 -6
- package/dist/statistic/Statistic.mjs +1 -1
- package/dist/statistic/Timer.d.mts +5 -5
- package/dist/statistic/index.d.mts +5 -5
- package/dist/steps/context.mjs +5 -2
- package/dist/steps/index.d.mts +31 -9
- package/dist/steps/index.mjs +3 -3
- package/dist/style/motion/fade.mjs +25 -0
- package/dist/switch/index.d.mts +14 -7
- package/dist/switch/index.mjs +2 -2
- package/dist/table/Column.d.mts +3 -3
- package/dist/table/ColumnGroup.d.mts +3 -3
- package/dist/table/InternalTable.d.mts +35 -13
- package/dist/table/InternalTable.mjs +12 -6
- package/dist/table/Table.d.mts +3 -3
- package/dist/table/TableMeasureRowContext.mjs +20 -0
- package/dist/table/hooks/useFilter/FilterDropdown.mjs +17 -12
- package/dist/table/hooks/useSelection.mjs +1 -1
- package/dist/table/interface.d.mts +1 -2
- package/dist/table/style/virtual.mjs +1 -1
- package/dist/tabs/TabPane.d.mts +3 -3
- package/dist/tabs/index.d.mts +27 -11
- package/dist/tabs/index.mjs +5 -5
- package/dist/tag/CheckableTag.d.mts +3 -3
- package/dist/tag/CheckableTagGroup.d.mts +3 -3
- package/dist/tag/index.d.mts +16 -7
- package/dist/tag/index.mjs +1 -1
- package/dist/tag/style/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -2
- package/dist/theme/interface/maps/index.d.mts +0 -1
- package/dist/theme/useToken.mjs +3 -3
- package/dist/theme/util/genStyleUtils.mjs +3 -2
- package/dist/time-picker/index.d.mts +38 -14
- package/dist/time-picker/index.mjs +1 -1
- package/dist/timeline/Timeline.d.mts +49 -14
- package/dist/timeline/Timeline.mjs +82 -11
- package/dist/timeline/index.d.mts +1 -2
- package/dist/timeline/style/horizontal.mjs +73 -0
- package/dist/timeline/style/index.d.mts +10 -5
- package/dist/timeline/style/index.mjs +93 -137
- package/dist/timeline/useItems.mjs +52 -0
- package/dist/tooltip/PurePanel.d.mts +2 -2
- package/dist/tooltip/UniqueProvider/index.d.mts +2 -2
- package/dist/tooltip/index.d.mts +17 -8
- package/dist/tooltip/index.mjs +11 -3
- package/dist/tooltip/style/index.d.mts +7 -1
- package/dist/tooltip/style/index.mjs +3 -2
- package/dist/tour/index.d.mts +3 -3
- package/dist/tour/index.mjs +1 -1
- package/dist/tour/interface.d.mts +29 -3
- package/dist/transfer/Actions.d.mts +2 -2
- package/dist/transfer/ListItem.mjs +4 -4
- package/dist/transfer/Section.d.mts +2 -2
- package/dist/transfer/Transfer.d.mts +3 -3
- package/dist/transfer/Transfer.mjs +4 -4
- package/dist/transfer/index.d.mts +1 -1
- package/dist/transfer/interface.d.mts +32 -7
- package/dist/transfer/search.d.mts +3 -3
- package/dist/tree/DirectoryTree.d.mts +3 -3
- package/dist/tree/Tree.d.mts +18 -7
- package/dist/tree/index.d.mts +0 -1
- package/dist/tree-select/index.d.mts +41 -12
- package/dist/tree-select/style/index.d.mts +1 -1
- package/dist/typography/Editable.mjs +4 -4
- package/dist/typography/Link.d.mts +3 -3
- package/dist/typography/Paragraph.d.mts +3 -3
- package/dist/typography/Text.d.mts +3 -3
- package/dist/typography/Title.d.mts +3 -3
- package/dist/typography/Typography.d.mts +3 -3
- package/dist/typography/Typography.mjs +2 -12
- package/dist/typography/index.d.mts +9 -10
- package/dist/typography/interface.d.mts +0 -2
- package/dist/typography/style/mixins.mjs +3 -3
- package/dist/upload/Dragger.d.mts +3 -3
- package/dist/upload/Upload.d.mts +3 -4
- package/dist/upload/index.d.mts +3 -3
- package/dist/upload/interface.d.mts +13 -4
- package/dist/watermark/index.d.mts +2 -2
- package/dist/watermark/index.mjs +3 -3
- package/package.json +45 -41
- package/web-tags.json +1918 -1873
- package/web-types.json +6815 -7198
- package/dist/timeline/TimelineItem.d.mts +0 -20
- package/dist/timeline/TimelineItem.mjs +0 -115
- package/dist/timeline/TimelineItemList.mjs +0 -158
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../_util/hooks/index.mjs";
|
|
3
|
-
import { PopoverSemanticName } from "../popover/index.mjs";
|
|
1
|
+
import { PopoverSemanticClassNames, PopoverSemanticStyles } from "../popover/index.mjs";
|
|
4
2
|
import { PopconfirmProps } from "./index.mjs";
|
|
5
|
-
import * as
|
|
3
|
+
import * as vue19 from "vue";
|
|
6
4
|
import { CSSProperties } from "vue";
|
|
7
5
|
|
|
8
6
|
//#region src/popconfirm/PurePanel.d.ts
|
|
@@ -16,13 +14,13 @@ interface OverlayProps extends Pick<PopconfirmProps, 'icon' | 'okButtonProps' |
|
|
|
16
14
|
onConfirm?: (e?: MouseEvent) => void;
|
|
17
15
|
onCancel?: (e?: MouseEvent) => void;
|
|
18
16
|
onPopupClick?: (e: MouseEvent) => void;
|
|
19
|
-
classes?:
|
|
20
|
-
styles?:
|
|
17
|
+
classes?: PopoverSemanticClassNames;
|
|
18
|
+
styles?: PopoverSemanticStyles;
|
|
21
19
|
}
|
|
22
20
|
interface PurePanelProps extends Omit<OverlayProps, 'prefixCls'>, Pick<PopconfirmProps, 'placement'> {
|
|
23
21
|
class?: string;
|
|
24
22
|
style?: CSSProperties;
|
|
25
23
|
}
|
|
26
|
-
declare const PurePanel:
|
|
24
|
+
declare const PurePanel: vue19.DefineSetupFnComponent<PurePanelProps, {}, {}, PurePanelProps & {}, vue19.PublicProps>;
|
|
27
25
|
//#endregion
|
|
28
26
|
export { PopconfirmLocale, PurePanel };
|
|
@@ -4,14 +4,16 @@ import "../_util/hooks/index.mjs";
|
|
|
4
4
|
import { TooltipEmits } from "../tooltip/index.mjs";
|
|
5
5
|
import { ButtonProps, LegacyButtonType } from "../button/Button.mjs";
|
|
6
6
|
import "../button/index.mjs";
|
|
7
|
-
import { PopoverProps,
|
|
7
|
+
import { PopoverProps, PopoverSemanticClassNames, PopoverSemanticStyles } from "../popover/index.mjs";
|
|
8
8
|
import { PurePanel } from "./PurePanel.mjs";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue129 from "vue";
|
|
10
10
|
import { App, SlotsType } from "vue";
|
|
11
11
|
|
|
12
12
|
//#region src/popconfirm/index.d.ts
|
|
13
|
-
type
|
|
14
|
-
type
|
|
13
|
+
type PopconfirmSemanticClassNames = PopoverSemanticClassNames;
|
|
14
|
+
type PopconfirmSemanticStyles = PopoverSemanticStyles;
|
|
15
|
+
type PopconfirmClassNamesType = SemanticClassNamesType<PopconfirmProps, PopconfirmSemanticClassNames>;
|
|
16
|
+
type PopconfirmStylesType = SemanticStylesType<PopconfirmProps, PopconfirmSemanticStyles>;
|
|
15
17
|
interface PopconfirmProps extends Omit<PopoverProps, 'title' | 'content' | 'classes' | 'styles'> {
|
|
16
18
|
title?: VueNode;
|
|
17
19
|
description?: VueNode;
|
|
@@ -40,9 +42,9 @@ interface PopconfirmSlots {
|
|
|
40
42
|
okText?: () => any;
|
|
41
43
|
cancelText?: () => any;
|
|
42
44
|
}
|
|
43
|
-
declare const InternalPopconfirm:
|
|
45
|
+
declare const InternalPopconfirm: vue129.DefineSetupFnComponent<PopconfirmProps, PopconfirmEmits, SlotsType<PopconfirmSlots>, PopconfirmProps & {
|
|
44
46
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
45
|
-
},
|
|
47
|
+
}, vue129.PublicProps>;
|
|
46
48
|
type PopconfirmType = typeof InternalPopconfirm & {
|
|
47
49
|
install: (app: App) => void;
|
|
48
50
|
_InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
|
|
@@ -31,10 +31,11 @@ const OMITTED_PROP_KEYS = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultIcon = createVNode(ExclamationCircleFilled, null, null);
|
|
33
33
|
const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose, emit }) => {
|
|
34
|
-
const { class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, prefixCls } = useComponentBaseConfig("popconfirm", props, ["arrow"]);
|
|
34
|
+
const { class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, trigger: contextTrigger, prefixCls } = useComponentBaseConfig("popconfirm", props, ["arrow", "trigger"]);
|
|
35
35
|
const { arrow: arrowProp, classes, styles } = toPropsRefs(props, "arrow", "classes", "styles");
|
|
36
36
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
37
37
|
const mergedArrow = useMergedArrow_default(arrowProp, contextArrow);
|
|
38
|
+
const mergedTrigger = computed(() => props?.trigger ?? contextTrigger.value ?? "click");
|
|
38
39
|
const popoverRef = shallowRef();
|
|
39
40
|
const open = shallowRef(props.open ?? props.defaultOpen ?? false);
|
|
40
41
|
watchEffect(() => {
|
|
@@ -67,7 +68,10 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
67
68
|
nativeElement: computed(() => popoverRef.value?.nativeElement),
|
|
68
69
|
popupElement: computed(() => popoverRef.value?.popupElement)
|
|
69
70
|
});
|
|
70
|
-
const mergedProps = computed(() => ({
|
|
71
|
+
const mergedProps = computed(() => ({
|
|
72
|
+
...props,
|
|
73
|
+
trigger: mergedTrigger.value
|
|
74
|
+
}));
|
|
71
75
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
72
76
|
const rootClassNames = computed(() => clsx(prefixCls.value, hashId.value, cssVarCls.value, contextClassName.value, mergedClassNames.value.root));
|
|
73
77
|
return () => {
|
|
@@ -96,6 +100,7 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
96
100
|
"styles": mergedStyles.value
|
|
97
101
|
}, null);
|
|
98
102
|
return createVNode(popover_default, mergeProps(attrs, removeUndefined(restProps), {
|
|
103
|
+
"trigger": mergedTrigger.value,
|
|
99
104
|
"ref": popoverRef,
|
|
100
105
|
"open": open.value,
|
|
101
106
|
"arrow": mergedArrow.value,
|
|
@@ -341,7 +346,6 @@ const Popconfirm = /* @__PURE__ */ defineComponent((props, { slots, attrs, expos
|
|
|
341
346
|
}
|
|
342
347
|
}, {
|
|
343
348
|
placement: "top",
|
|
344
|
-
trigger: "click",
|
|
345
349
|
okType: "primary"
|
|
346
350
|
}),
|
|
347
351
|
name: "APopconfirm",
|
package/dist/popover/index.d.mts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { VueNode } from "../_util/type.mjs";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
import { App, SlotsType } from "vue";
|
|
4
|
+
import { TooltipEmits, TooltipProps, TooltipSemanticClassNames, TooltipSemanticStyles } from "../tooltip/index.mjs";
|
|
5
|
+
import * as vue131 from "vue";
|
|
6
|
+
import { App, CSSProperties, SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/popover/index.d.ts
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
type PopoverSemanticClassNames = TooltipSemanticClassNames & {
|
|
10
|
+
title?: string;
|
|
11
|
+
content?: string;
|
|
12
|
+
};
|
|
13
|
+
type PopoverSemanticStyles = TooltipSemanticStyles & {
|
|
14
|
+
title?: CSSProperties;
|
|
15
|
+
content?: CSSProperties;
|
|
16
|
+
};
|
|
17
|
+
type PopoverClassNamesType = SemanticClassNamesType<PopoverProps, PopoverSemanticClassNames>;
|
|
18
|
+
type PopoverStylesType = SemanticStylesType<PopoverProps, PopoverSemanticStyles>;
|
|
12
19
|
interface PopoverProps extends TooltipProps {
|
|
13
20
|
title?: VueNode;
|
|
14
21
|
content?: VueNode;
|
|
@@ -23,12 +30,12 @@ interface PopoverSlots {
|
|
|
23
30
|
content: () => any;
|
|
24
31
|
default: () => any;
|
|
25
32
|
}
|
|
26
|
-
declare const InternalPopover:
|
|
33
|
+
declare const InternalPopover: vue131.DefineSetupFnComponent<PopoverProps, PopoverEmits, SlotsType<PopoverSlots>, PopoverProps & {
|
|
27
34
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
28
|
-
},
|
|
35
|
+
}, vue131.PublicProps>;
|
|
29
36
|
declare const Popover: typeof InternalPopover & {
|
|
30
37
|
install: (app: App) => void;
|
|
31
38
|
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
32
39
|
};
|
|
33
40
|
//#endregion
|
|
34
|
-
export { Popover, PopoverProps,
|
|
41
|
+
export { Popover, PopoverProps, PopoverSemanticClassNames, PopoverSemanticStyles };
|
package/dist/popover/index.mjs
CHANGED
|
@@ -17,11 +17,12 @@ function _isSlot(s) {
|
|
|
17
17
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
18
18
|
}
|
|
19
19
|
const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose, emit }) => {
|
|
20
|
-
const { getPrefixCls, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, prefixCls } = useComponentBaseConfig("popover", props, ["arrow"]);
|
|
20
|
+
const { getPrefixCls, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, arrow: contextArrow, trigger: contextTrigger, prefixCls } = useComponentBaseConfig("popover", props, ["arrow", "trigger"]);
|
|
21
21
|
const { arrow: popoverArrow, classes, styles } = toPropsRefs(props, "arrow", "classes", "styles");
|
|
22
22
|
const rootCls = computed(() => getPrefixCls());
|
|
23
23
|
const [hashId, cssVarCls] = style_default(prefixCls);
|
|
24
24
|
const mergedArrow = useMergedArrow_default(popoverArrow, contextArrow);
|
|
25
|
+
const mergedTrigger = computed(() => props?.trigger ?? contextTrigger.value ?? "hover");
|
|
25
26
|
const popoverRef = shallowRef();
|
|
26
27
|
const forceAlign = () => {
|
|
27
28
|
popoverRef.value?.forceAlign?.();
|
|
@@ -31,7 +32,10 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
31
32
|
nativeElement: computed(() => popoverRef.value?.nativeElement),
|
|
32
33
|
popupElement: computed(() => popoverRef.value?.popupElement)
|
|
33
34
|
});
|
|
34
|
-
const mergedProps = computed(() => ({
|
|
35
|
+
const mergedProps = computed(() => ({
|
|
36
|
+
...props,
|
|
37
|
+
trigger: mergedTrigger.value
|
|
38
|
+
}));
|
|
35
39
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
36
40
|
const open = shallowRef(props?.open ?? props?.defaultOpen ?? false);
|
|
37
41
|
watchEffect(() => {
|
|
@@ -51,7 +55,7 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
51
55
|
return () => {
|
|
52
56
|
let _slot;
|
|
53
57
|
const children = filterEmpty(slots?.default?.() ?? [])?.[0];
|
|
54
|
-
const { placement,
|
|
58
|
+
const { placement, mouseLeaveDelay, mouseEnterDelay, motion, ...restProps } = props;
|
|
55
59
|
const titleNode = getSlotPropsFnRun(slots, props, "title");
|
|
56
60
|
const contentNode = getSlotPropsFnRun(slots, props, "content");
|
|
57
61
|
const rootClassNames = clsx(hashId.value, cssVarCls.value, contextClassName.value, mergedClassNames.value.root);
|
|
@@ -59,7 +63,7 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
59
63
|
"unique": false,
|
|
60
64
|
"arrow": mergedArrow.value,
|
|
61
65
|
"placement": placement,
|
|
62
|
-
"trigger":
|
|
66
|
+
"trigger": mergedTrigger.value,
|
|
63
67
|
"mouseLeaveDelay": mouseLeaveDelay,
|
|
64
68
|
"mouseEnterDelay": mouseEnterDelay
|
|
65
69
|
}, removeUndefined(restProps), {
|
|
@@ -249,7 +253,6 @@ const Popover = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose,
|
|
|
249
253
|
}
|
|
250
254
|
}, {
|
|
251
255
|
placement: "top",
|
|
252
|
-
trigger: "hover",
|
|
253
256
|
mouseEnterDelay: .1,
|
|
254
257
|
mouseLeaveDelay: .1
|
|
255
258
|
}),
|
package/dist/progress/Line.mjs
CHANGED
|
@@ -44,10 +44,10 @@ function sortGradient(gradients) {
|
|
|
44
44
|
function handleGradient(strokeColor, directionConfig) {
|
|
45
45
|
const { from = presetPrimaryColors.blue, to = presetPrimaryColors.blue, direction = directionConfig === "rtl" ? "to left" : "to right", ...rest } = strokeColor;
|
|
46
46
|
if (Object.keys(rest).length !== 0) {
|
|
47
|
-
const background
|
|
47
|
+
const background = `linear-gradient(${direction}, ${sortGradient(rest)})`;
|
|
48
48
|
return {
|
|
49
|
-
background
|
|
50
|
-
[LineStrokeColorVar]: background
|
|
49
|
+
background,
|
|
50
|
+
[LineStrokeColorVar]: background
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
const background = `linear-gradient(${direction}, ${from}, ${to})`;
|
|
@@ -2,13 +2,26 @@ import { EmptyEmit } from "../_util/type.mjs";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.mjs";
|
|
3
3
|
import "../_util/hooks/index.mjs";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
5
|
-
import * as
|
|
6
|
-
import { AriaAttributes, SlotsType } from "vue";
|
|
5
|
+
import * as vue133 from "vue";
|
|
6
|
+
import { AriaAttributes, CSSProperties, SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/progress/progress.d.ts
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
interface ProgressSemanticClassNames {
|
|
10
|
+
root?: string;
|
|
11
|
+
body?: string;
|
|
12
|
+
rail?: string;
|
|
13
|
+
track?: string;
|
|
14
|
+
indicator?: string;
|
|
15
|
+
}
|
|
16
|
+
interface ProgressSemanticStyles {
|
|
17
|
+
root?: CSSProperties;
|
|
18
|
+
body?: CSSProperties;
|
|
19
|
+
rail?: CSSProperties;
|
|
20
|
+
track?: CSSProperties;
|
|
21
|
+
indicator?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
type ProgressClassNamesType = SemanticClassNamesType<ProgressProps, ProgressSemanticClassNames>;
|
|
24
|
+
type ProgressStylesType = SemanticStylesType<ProgressProps, ProgressSemanticStyles>;
|
|
12
25
|
declare const ProgressTypes: readonly ["line", "circle", "dashboard"];
|
|
13
26
|
type ProgressType = (typeof ProgressTypes)[number];
|
|
14
27
|
declare const ProgressStatuses: readonly ["normal", "exception", "active", "success"];
|
|
@@ -67,8 +80,8 @@ interface ProgressProps extends ComponentBaseProps, ProgressAriaProps {
|
|
|
67
80
|
interface ProgressSlots {
|
|
68
81
|
default?: () => any;
|
|
69
82
|
}
|
|
70
|
-
declare const Progress:
|
|
83
|
+
declare const Progress: vue133.DefineSetupFnComponent<ProgressProps, EmptyEmit, SlotsType<ProgressSlots>, ProgressProps & {
|
|
71
84
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
72
|
-
},
|
|
85
|
+
}, vue133.PublicProps>;
|
|
73
86
|
//#endregion
|
|
74
87
|
export { Progress, ProgressAriaProps, ProgressProps };
|
package/dist/qrcode/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { QRCodeEmits, QRCodeProps, QRCodeSlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue135 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/qrcode/index.d.ts
|
|
6
|
-
declare const QRCode:
|
|
6
|
+
declare const QRCode: vue135.DefineSetupFnComponent<QRCodeProps, QRCodeEmits, SlotsType<QRCodeSlots>, QRCodeProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: (() => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue135.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { QRCode };
|
package/dist/qrcode/index.mjs
CHANGED
|
@@ -39,7 +39,7 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots }) =
|
|
|
39
39
|
});
|
|
40
40
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
41
41
|
return () => {
|
|
42
|
-
const { type, value, size, errorLevel, bgColor, icon, boostLevel, bordered, rootClass, status } = props;
|
|
42
|
+
const { type, value, size, errorLevel, bgColor, icon, boostLevel, bordered, rootClass, status, marginSize } = props;
|
|
43
43
|
const statusRender = slots?.statusRender ?? props?.statusRender;
|
|
44
44
|
const a11yProps = pickAttrs(attrs, true);
|
|
45
45
|
const restProps = omit(attrs, Object.keys(a11yProps));
|
|
@@ -57,6 +57,7 @@ const QRCode = /* @__PURE__ */ defineComponent((props, { emit, attrs, slots }) =
|
|
|
57
57
|
},
|
|
58
58
|
imageSettings: icon ? imageSettings.value : void 0,
|
|
59
59
|
boostLevel,
|
|
60
|
+
marginSize,
|
|
60
61
|
...a11yProps
|
|
61
62
|
};
|
|
62
63
|
if (isDev) {
|
|
@@ -2,6 +2,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
2
2
|
import "../_util/hooks/index.mjs";
|
|
3
3
|
import { Locale } from "../locale/index.mjs";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
5
|
+
import { CSSProperties } from "vue";
|
|
5
6
|
import { QRProps } from "@v-c/qrcode";
|
|
6
7
|
|
|
7
8
|
//#region src/qrcode/interface.d.ts
|
|
@@ -11,9 +12,16 @@ interface StatusRenderInfo {
|
|
|
11
12
|
locale: Locale['QRCode'];
|
|
12
13
|
onRefresh?: () => void;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
interface QRCodeSemanticClassNames {
|
|
16
|
+
root?: string;
|
|
17
|
+
cover?: string;
|
|
18
|
+
}
|
|
19
|
+
interface QRCodeSemanticStyles {
|
|
20
|
+
root?: CSSProperties;
|
|
21
|
+
cover?: CSSProperties;
|
|
22
|
+
}
|
|
23
|
+
type QRCodeClassNamesType = SemanticClassNamesType<QRCodeProps, QRCodeSemanticClassNames>;
|
|
24
|
+
type QRCodeStylesType = SemanticStylesType<QRCodeProps, QRCodeSemanticStyles>;
|
|
17
25
|
interface QRCodeProps extends QRProps, ComponentBaseProps {
|
|
18
26
|
type?: 'canvas' | 'svg';
|
|
19
27
|
icon?: string;
|
package/dist/radio/group.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import { getAttrStyleAndClass as getAttrStyleAndClass$1 } from "../_util/hooks/u
|
|
|
3
3
|
import { useOrientation } from "../_util/hooks/useOrientation.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { toPropsRefs } from "../_util/tools.mjs";
|
|
6
|
-
import { checkRenderNode } from "../_util/vueNode.mjs";
|
|
7
6
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.mjs";
|
|
8
7
|
import { useSize } from "../config-provider/hooks/useSize.mjs";
|
|
8
|
+
import { checkRenderNode } from "../_util/vueNode.mjs";
|
|
9
9
|
import { useFormItemContext, useFormItemInputContext } from "../form/context.mjs";
|
|
10
10
|
import { toNamePathStr } from "../form/hooks/useForm.mjs";
|
|
11
11
|
import { useRadioGroupContextProvider } from "./context.mjs";
|
|
@@ -68,7 +68,7 @@ const RadioGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
68
68
|
const labelRender = slots?.labelRender ?? props?.labelRender;
|
|
69
69
|
if (options && options.length) childrenToRender = options.map((option, index) => {
|
|
70
70
|
if (typeof option === "string" || typeof option === "number") {
|
|
71
|
-
const _label
|
|
71
|
+
const _label = labelRender ? labelRender({
|
|
72
72
|
item: {
|
|
73
73
|
label: option,
|
|
74
74
|
value: option
|
|
@@ -81,7 +81,7 @@ const RadioGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
|
|
|
81
81
|
"disabled": disabled,
|
|
82
82
|
"value": option,
|
|
83
83
|
"checked": value.value === option
|
|
84
|
-
}, _isSlot(_label
|
|
84
|
+
}, _isSlot(_label) ? _label : { default: () => [_label] });
|
|
85
85
|
}
|
|
86
86
|
const _label = labelRender ? labelRender({
|
|
87
87
|
item: option,
|
package/dist/radio/index.d.mts
CHANGED
|
@@ -4,15 +4,15 @@ import "../checkbox/index.mjs";
|
|
|
4
4
|
import { RadioChangeEvent, RadioEmits, RadioGroupEmits, RadioGroupOptionType, RadioGroupProps, RadioGroupSlots, RadioProps, RadioSlots } from "./interface.mjs";
|
|
5
5
|
import { InternalRadio } from "./radio.mjs";
|
|
6
6
|
import "../index.mjs";
|
|
7
|
-
import * as
|
|
7
|
+
import * as vue139 from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/radio/index.d.ts
|
|
10
10
|
type RadioOptionType = CheckboxOptionType;
|
|
11
|
-
declare const RadioGroup:
|
|
11
|
+
declare const RadioGroup: vue139.DefineSetupFnComponent<RadioGroupProps, RadioGroupEmits, vue139.SlotsType<RadioGroupSlots>, RadioGroupProps & {
|
|
12
12
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
13
|
-
},
|
|
14
|
-
declare const RadioButton:
|
|
13
|
+
}, vue139.PublicProps>;
|
|
14
|
+
declare const RadioButton: vue139.DefineSetupFnComponent<AbstractCheckboxProps, CheckboxEmits, vue139.SlotsType<CheckboxSlots>, AbstractCheckboxProps & {
|
|
15
15
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
16
|
-
},
|
|
16
|
+
}, vue139.PublicProps>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { RadioButton, RadioGroup, RadioOptionType };
|
|
@@ -4,6 +4,7 @@ import { Orientation } from "../_util/hooks/useOrientation.mjs";
|
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { AbstractCheckboxProps, CheckboxEmits } from "../checkbox/Checkbox.mjs";
|
|
6
6
|
import { AbstractCheckboxGroupProps, CheckboxOptionType } from "../checkbox/Group.mjs";
|
|
7
|
+
import { CSSProperties } from "vue";
|
|
7
8
|
|
|
8
9
|
//#region src/radio/interface.d.ts
|
|
9
10
|
type RadioGroupButtonStyle = 'outline' | 'solid';
|
|
@@ -41,9 +42,18 @@ interface RadioGroupSlots {
|
|
|
41
42
|
index: number;
|
|
42
43
|
}) => any;
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
interface RadioSemanticClassNames {
|
|
46
|
+
root?: string;
|
|
47
|
+
icon?: string;
|
|
48
|
+
label?: string;
|
|
49
|
+
}
|
|
50
|
+
interface RadioSemanticStyles {
|
|
51
|
+
root?: CSSProperties;
|
|
52
|
+
icon?: CSSProperties;
|
|
53
|
+
label?: CSSProperties;
|
|
54
|
+
}
|
|
55
|
+
type RadioClassNamesType = SemanticClassNamesType<RadioProps, RadioSemanticClassNames>;
|
|
56
|
+
type RadioStylesType = SemanticStylesType<RadioProps, RadioSemanticStyles>;
|
|
47
57
|
interface RadioProps extends AbstractCheckboxProps {
|
|
48
58
|
/**
|
|
49
59
|
* Control the appearance for Radio to display as button or not
|
package/dist/radio/radio.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RadioEmits, RadioProps, RadioSlots } from "./interface.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue403 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/radio/radio.d.ts
|
|
6
|
-
declare const InternalRadio:
|
|
6
|
+
declare const InternalRadio: vue403.DefineSetupFnComponent<RadioProps, RadioEmits, SlotsType<RadioSlots>, RadioProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue403.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { InternalRadio };
|
package/dist/radio/radio.mjs
CHANGED
|
@@ -3,11 +3,11 @@ import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useTo
|
|
|
3
3
|
import { devUseWarning, isDev } from "../_util/warning.mjs";
|
|
4
4
|
import "../_util/hooks/index.mjs";
|
|
5
5
|
import { toPropsRefs } from "../_util/tools.mjs";
|
|
6
|
-
import { checkRenderNode } from "../_util/vueNode.mjs";
|
|
7
6
|
import useCSSVarCls_default from "../config-provider/hooks/useCSSVarCls.mjs";
|
|
8
7
|
import { useDisabledContext } from "../config-provider/DisabledContext.mjs";
|
|
9
8
|
import { TARGET_CLS } from "../_util/wave/interface.mjs";
|
|
10
9
|
import wave_default from "../_util/wave/index.mjs";
|
|
10
|
+
import { checkRenderNode } from "../_util/vueNode.mjs";
|
|
11
11
|
import { useFormItemInputContext } from "../form/context.mjs";
|
|
12
12
|
import { useRadioGroupContext, useRadioOptionTypeContext } from "./context.mjs";
|
|
13
13
|
import useBubbleLock from "../checkbox/useBubbleLock.mjs";
|
package/dist/rate/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from "../tooltip/index.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue137 from "vue";
|
|
3
3
|
import { RateProps } from "@v-c/rate";
|
|
4
4
|
|
|
5
5
|
//#region src/rate/index.d.ts
|
|
@@ -18,8 +18,8 @@ interface RateEmits {
|
|
|
18
18
|
'mouseleave': (e: FocusEvent) => void;
|
|
19
19
|
[key: string]: (...args: any[]) => void;
|
|
20
20
|
}
|
|
21
|
-
declare const Rate:
|
|
21
|
+
declare const Rate: vue137.DefineSetupFnComponent<RateProps$1, RateEmits, {}, RateProps$1 & {
|
|
22
22
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
23
|
-
},
|
|
23
|
+
}, vue137.PublicProps>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { Rate, RateEmits, RateProps$1 as RateProps };
|
package/dist/result/index.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ import { NoFound } from "./noFound.mjs";
|
|
|
5
5
|
import { ServerError } from "./serverError.mjs";
|
|
6
6
|
import { Unauthorized } from "./unauthorized.mjs";
|
|
7
7
|
import { ComponentBaseProps } from "../config-provider/context.mjs";
|
|
8
|
-
import * as
|
|
9
|
-
import { SlotsType } from "vue";
|
|
8
|
+
import * as vue151 from "vue";
|
|
9
|
+
import { CSSProperties, SlotsType } from "vue";
|
|
10
10
|
|
|
11
11
|
//#region src/result/index.d.ts
|
|
12
12
|
declare const IconMap: Record<string, any>;
|
|
@@ -17,9 +17,24 @@ declare const ExceptionMap: {
|
|
|
17
17
|
};
|
|
18
18
|
type ExceptionStatusType = 403 | 404 | 500 | '403' | '404' | '500';
|
|
19
19
|
type ResultStatusType = ExceptionStatusType | keyof typeof IconMap;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
interface ResultSemanticClassNames {
|
|
21
|
+
root?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
subTitle?: string;
|
|
24
|
+
body?: string;
|
|
25
|
+
extra?: string;
|
|
26
|
+
icon?: string;
|
|
27
|
+
}
|
|
28
|
+
interface ResultSemanticStyles {
|
|
29
|
+
root?: CSSProperties;
|
|
30
|
+
title?: CSSProperties;
|
|
31
|
+
subTitle?: CSSProperties;
|
|
32
|
+
body?: CSSProperties;
|
|
33
|
+
extra?: CSSProperties;
|
|
34
|
+
icon?: CSSProperties;
|
|
35
|
+
}
|
|
36
|
+
type ResultClassNamesType = SemanticClassNamesType<ResultProps, ResultSemanticClassNames>;
|
|
37
|
+
type ResultStylesType = SemanticStylesType<ResultProps, ResultSemanticStyles>;
|
|
23
38
|
interface ResultProps extends ComponentBaseProps {
|
|
24
39
|
icon?: VueNode;
|
|
25
40
|
status?: ResultStatusType;
|
|
@@ -36,9 +51,9 @@ interface ResultSlots {
|
|
|
36
51
|
extra?: () => any;
|
|
37
52
|
default?: () => any;
|
|
38
53
|
}
|
|
39
|
-
declare const Result:
|
|
54
|
+
declare const Result: vue151.DefineSetupFnComponent<ResultProps, EmptyEmit, SlotsType<ResultSlots>, ResultProps & {
|
|
40
55
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
41
|
-
},
|
|
56
|
+
}, vue151.PublicProps>;
|
|
42
57
|
declare const _default: typeof Result & {
|
|
43
58
|
PRESENTED_IMAGE_403: (typeof ExceptionMap)["403"];
|
|
44
59
|
PRESENTED_IMAGE_404: (typeof ExceptionMap)["404"];
|
package/dist/result/index.mjs
CHANGED
|
@@ -6,10 +6,11 @@ import noFound_default from "./noFound.mjs";
|
|
|
6
6
|
import serverError_default from "./serverError.mjs";
|
|
7
7
|
import style_default from "./style/index.mjs";
|
|
8
8
|
import unauthorized_default from "./unauthorized.mjs";
|
|
9
|
-
import { computed, createVNode, defineComponent, mergeDefaults } from "vue";
|
|
9
|
+
import { computed, createVNode, defineComponent, mergeDefaults, mergeProps } from "vue";
|
|
10
10
|
import { classNames } from "@v-c/util";
|
|
11
|
-
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
11
|
+
import { filterEmpty, getAttrStyleAndClass } from "@v-c/util/dist/props-util";
|
|
12
12
|
import { CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, WarningFilled } from "@antdv-next/icons";
|
|
13
|
+
import pickAttrs from "@v-c/util/dist/pickAttrs";
|
|
13
14
|
|
|
14
15
|
//#region src/result/index.tsx
|
|
15
16
|
const IconMap = {
|
|
@@ -86,7 +87,8 @@ const Result = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
86
87
|
const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
|
|
87
88
|
return () => {
|
|
88
89
|
const { status, rootClass } = props;
|
|
89
|
-
const
|
|
90
|
+
const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
|
|
91
|
+
const rootClassNames = classNames(prefixCls.value, `${prefixCls.value}-${status}`, className, contextClassName.value, rootClass, { [`${prefixCls.value}-rtl`]: direction.value === "rtl" }, hashId.value, cssVarCls.value, mergedClassNames.value.root);
|
|
90
92
|
const subTitle = getSlotPropsFnRun(slots, props, "subTitle");
|
|
91
93
|
const title = getSlotPropsFnRun(slots, props, "title");
|
|
92
94
|
const extra = getSlotPropsFnRun(slots, props, "extra");
|
|
@@ -95,17 +97,20 @@ const Result = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
95
97
|
const rootStyles = [
|
|
96
98
|
mergedStyles.value.root,
|
|
97
99
|
contextStyle.value,
|
|
98
|
-
|
|
100
|
+
style
|
|
99
101
|
];
|
|
100
102
|
const titleClassNames = clsx$1(`${prefixCls.value}-title`, mergedClassNames.value.title);
|
|
101
103
|
const subTitleClassNames = clsx$1(`${prefixCls.value}-subtitle`, mergedClassNames.value.subTitle);
|
|
102
104
|
const extraClassNames = clsx$1(`${prefixCls.value}-extra`, mergedClassNames.value.extra);
|
|
103
105
|
const bodyClassNames = clsx$1(`${prefixCls.value}-body`, mergedClassNames.value.body);
|
|
104
106
|
const iconClassNames = clsx$1(`${prefixCls.value}-icon`, { [`${prefixCls.value}-image`]: ExceptionStatus.includes(`${status}`) }, mergedClassNames.value.icon);
|
|
105
|
-
return createVNode("div", {
|
|
107
|
+
return createVNode("div", mergeProps(pickAttrs(restAttrs, {
|
|
108
|
+
aria: true,
|
|
109
|
+
data: true
|
|
110
|
+
}), {
|
|
106
111
|
"class": rootClassNames,
|
|
107
112
|
"style": rootStyles
|
|
108
|
-
}, [
|
|
113
|
+
}), [
|
|
109
114
|
createVNode(Icon, {
|
|
110
115
|
"class": iconClassNames,
|
|
111
116
|
"status": status,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue_jsx_runtime3 from "vue/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/result/noFound.d.ts
|
|
4
|
-
declare function NoFound():
|
|
4
|
+
declare function NoFound(): vue_jsx_runtime3.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { NoFound };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue_jsx_runtime2 from "vue/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/result/serverError.d.ts
|
|
4
|
-
declare function ServerError():
|
|
4
|
+
declare function ServerError(): vue_jsx_runtime2.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ServerError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue_jsx_runtime1 from "vue/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/result/unauthorized.d.ts
|
|
4
|
-
declare function Unauthorized():
|
|
4
|
+
declare function Unauthorized(): vue_jsx_runtime1.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Unauthorized };
|
|
@@ -4,12 +4,23 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
4
4
|
import { Orientation } from "../_util/hooks/useOrientation.mjs";
|
|
5
5
|
import "../_util/hooks/index.mjs";
|
|
6
6
|
import { TooltipProps } from "../tooltip/index.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import { App, SlotsType } from "vue";
|
|
7
|
+
import * as vue145 from "vue";
|
|
8
|
+
import { App, CSSProperties, SlotsType } from "vue";
|
|
9
9
|
import { SegmentedLabeledOption, SegmentedProps, SegmentedRawOption, SegmentedValue } from "@v-c/segmented";
|
|
10
10
|
|
|
11
11
|
//#region src/segmented/index.d.ts
|
|
12
|
-
|
|
12
|
+
interface SegmentedSemanticClassNames {
|
|
13
|
+
root?: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
item?: string;
|
|
17
|
+
}
|
|
18
|
+
interface SegmentedSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
icon?: CSSProperties;
|
|
21
|
+
label?: CSSProperties;
|
|
22
|
+
item?: CSSProperties;
|
|
23
|
+
}
|
|
13
24
|
interface SegmentedLabeledOptionWithoutIcon<ValueType = SegmentedValue> extends SegmentedLabeledOption<ValueType> {
|
|
14
25
|
label: SegmentedLabeledOption['label'];
|
|
15
26
|
tooltip?: string | TooltipProps;
|
|
@@ -22,8 +33,8 @@ interface SegmentedLabeledOptionWithIcon<ValueType = SegmentedValue> extends Omi
|
|
|
22
33
|
}
|
|
23
34
|
type SegmentedLabeledOption$1<ValueType = SegmentedValue> = SegmentedLabeledOptionWithIcon<ValueType> | SegmentedLabeledOptionWithoutIcon<ValueType>;
|
|
24
35
|
type SegmentedOptions<T = SegmentedRawOption> = (T | SegmentedLabeledOption$1<T>)[];
|
|
25
|
-
type SegmentedClassNamesType = SemanticClassNamesType<SegmentedProps$1,
|
|
26
|
-
type SegmentedStylesType = SemanticStylesType<SegmentedProps$1,
|
|
36
|
+
type SegmentedClassNamesType = SemanticClassNamesType<SegmentedProps$1, SegmentedSemanticClassNames>;
|
|
37
|
+
type SegmentedStylesType = SemanticStylesType<SegmentedProps$1, SegmentedSemanticStyles>;
|
|
27
38
|
interface SegmentedProps$1 extends Omit<SegmentedProps, 'size' | 'options' | 'itemRender' | 'styles' | 'classNames' | 'onChange'> {
|
|
28
39
|
options: SegmentedOptions;
|
|
29
40
|
rootClass?: string;
|
|
@@ -48,9 +59,9 @@ interface SegmentedSlots {
|
|
|
48
59
|
iconRender: (option: SegmentedLabeledOption$1) => any;
|
|
49
60
|
labelRender: (option: SegmentedLabeledOption$1) => any;
|
|
50
61
|
}
|
|
51
|
-
declare const InternalSegmented:
|
|
62
|
+
declare const InternalSegmented: vue145.DefineSetupFnComponent<SegmentedProps$1, SegmentedEmits, SlotsType<SegmentedSlots>, SegmentedProps$1 & {
|
|
52
63
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
53
|
-
},
|
|
64
|
+
}, vue145.PublicProps>;
|
|
54
65
|
declare const Segmented: typeof InternalSegmented & {
|
|
55
66
|
install: (app: App) => void;
|
|
56
67
|
};
|