antdv-next 1.4.1 → 1.4.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/hooks/useClosable.d.ts +5 -5
- package/dist/_util/vueNode.d.ts +2 -2
- package/dist/alert/Alert.d.ts +7 -7
- package/dist/antd-with-locales.esm.js +13320 -11032
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +11449 -10208
- package/dist/antd.js +74 -74
- package/dist/auto-complete/index.d.ts +4 -4
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/badge/Ribbon.d.ts +2 -2
- package/dist/badge/index.d.ts +3 -3
- package/dist/breadcrumb/Breadcrumb.d.ts +4 -4
- package/dist/breadcrumb/BreadcrumbItem.d.ts +4 -4
- package/dist/button/Button.d.ts +2 -2
- package/dist/button/style/index.js +13 -0
- package/dist/calendar/generateCalendar.d.ts +8 -8
- package/dist/card/Card.d.ts +9 -9
- package/dist/card/CardMeta.d.ts +4 -4
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.js +26 -2
- package/dist/cascader/index.d.ts +53 -21
- package/dist/cascader/index.js +33 -5
- package/dist/checkbox/Checkbox.d.ts +1 -1
- package/dist/checkbox/Checkbox.js +4 -4
- package/dist/checkbox/Group.d.ts +2 -2
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/collapse/CollapsePanel.d.ts +3 -3
- package/dist/color-picker/hooks/useModeColor.d.ts +2 -2
- package/dist/color-picker/interface.d.ts +2 -2
- package/dist/config-provider/context.d.ts +20 -14
- package/dist/config-provider/index.js +1 -1
- package/dist/date-picker/generatePicker/generateRangePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateRangePicker.js +112 -10
- package/dist/date-picker/generatePicker/generateSinglePicker.d.ts +2 -2
- package/dist/date-picker/generatePicker/generateSinglePicker.js +101 -11
- package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
- package/dist/date-picker/util.d.ts +10 -1
- package/dist/descriptions/Item.d.ts +3 -3
- package/dist/descriptions/hooks/useItems.d.ts +11 -11
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/descriptions/style/index.js +2 -3
- package/dist/drawer/DrawerPanel.d.ts +5 -5
- package/dist/empty/index.d.ts +3 -3
- package/dist/float-button/FloatButton.d.ts +5 -5
- package/dist/float-button/FloatButton.js +1 -1
- package/dist/float-button/FloatButtonGroup.d.ts +2 -2
- package/dist/form/ErrorList.d.ts +2 -2
- package/dist/image/index.d.ts +2 -2
- package/dist/input/Input.d.ts +5 -5
- package/dist/input/OTP/index.d.ts +2 -2
- package/dist/input/Password.d.ts +2 -2
- package/dist/input/Search.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/style/search.js +1 -0
- package/dist/input-number/index.d.ts +8 -8
- package/dist/input-number/index.js +0 -4
- package/dist/layout/layout.js +54 -48
- package/dist/locale/ar_EG.js +18 -4
- package/dist/locale/az_AZ.js +2 -1
- package/dist/locale/bg_BG.js +44 -3
- package/dist/locale/bn_BD.js +20 -4
- package/dist/locale/by_BY.js +17 -3
- package/dist/locale/ca_ES.js +22 -4
- package/dist/locale/cs_CZ.js +6 -3
- package/dist/locale/da_DK.js +34 -3
- package/dist/locale/de_DE.js +14 -4
- package/dist/locale/el_GR.js +4 -2
- package/dist/locale/en_GB.js +6 -3
- package/dist/locale/en_US.js +2 -1
- package/dist/locale/es_ES.js +17 -3
- package/dist/locale/et_EE.js +17 -3
- package/dist/locale/eu_ES.js +8 -4
- package/dist/locale/fa_IR.js +2 -1
- package/dist/locale/fi_FI.js +35 -4
- package/dist/locale/fr_BE.js +20 -3
- package/dist/locale/fr_CA.js +20 -3
- package/dist/locale/fr_FR.js +20 -3
- package/dist/locale/ga_IE.js +24 -5
- package/dist/locale/gl_ES.js +36 -5
- package/dist/locale/he_IL.js +30 -5
- package/dist/locale/hi_IN.js +20 -4
- package/dist/locale/hr_HR.js +21 -4
- package/dist/locale/hu_HU.js +43 -3
- package/dist/locale/hy_AM.js +33 -4
- package/dist/locale/id_ID.js +2 -1
- package/dist/locale/is_IS.js +44 -3
- package/dist/locale/it_IT.js +6 -3
- package/dist/locale/ja_JP.js +2 -1
- package/dist/locale/ka_GE.js +20 -4
- package/dist/locale/kk_KZ.js +22 -5
- package/dist/locale/km_KH.js +35 -4
- package/dist/locale/kmr_IQ.js +45 -4
- package/dist/locale/kn_IN.js +18 -3
- package/dist/locale/ko_KR.js +8 -4
- package/dist/locale/ku_IQ.js +45 -4
- package/dist/locale/lt_LT.js +8 -4
- package/dist/locale/lv_LV.js +45 -4
- package/dist/locale/mk_MK.js +36 -4
- package/dist/locale/ml_IN.js +20 -4
- package/dist/locale/mn_MN.js +17 -3
- package/dist/locale/mr_IN.js +13 -1
- package/dist/locale/ms_MY.js +8 -4
- package/dist/locale/my_MM.js +18 -5
- package/dist/locale/ne_NP.js +2 -1
- package/dist/locale/nl_BE.js +20 -4
- package/dist/locale/nl_NL.js +20 -4
- package/dist/locale/pl_PL.js +17 -3
- package/dist/locale/pt_BR.js +6 -3
- package/dist/locale/pt_PT.js +2 -1
- package/dist/locale/ro_RO.js +20 -4
- package/dist/locale/ru_RU.js +4 -2
- package/dist/locale/si_LK.js +17 -3
- package/dist/locale/sk_SK.js +17 -3
- package/dist/locale/sl_SI.js +45 -4
- package/dist/locale/sr_RS.js +20 -4
- package/dist/locale/sv_SE.js +14 -4
- package/dist/locale/ta_IN.js +23 -5
- package/dist/locale/th_TH.js +2 -1
- package/dist/locale/tk_TK.js +21 -5
- package/dist/locale/tr_TR.js +17 -2
- package/dist/locale/uk_UA.js +12 -3
- package/dist/locale/ur_PK.js +20 -4
- package/dist/locale/uz_UZ.js +14 -4
- package/dist/locale/vi_VN.js +2 -1
- package/dist/locale/zh_CN.js +2 -1
- package/dist/locale/zh_HK.js +4 -2
- package/dist/locale/zh_TW.js +4 -2
- package/dist/masonry/Masonry.d.ts +18 -10
- package/dist/masonry/MasonryItem.d.ts +2 -2
- package/dist/mentions/index.d.ts +4 -4
- package/dist/mentions/index.js +62 -1
- package/dist/menu/MenuItem.d.ts +3 -3
- package/dist/menu/MenuItem.js +1 -1
- package/dist/menu/MenuItemGroup.d.ts +2 -2
- package/dist/menu/OverrideContext.d.ts +2 -2
- package/dist/menu/SubMenu.d.ts +2 -2
- package/dist/message/PureList.d.ts +3 -1
- package/dist/message/PureList.js +4 -0
- package/dist/message/interface.d.ts +3 -3
- package/dist/modal/ConfirmDialog.d.ts +5 -1
- package/dist/modal/ConfirmDialog.js +40 -19
- package/dist/modal/Modal.d.ts +12 -3
- package/dist/modal/Modal.js +24 -7
- package/dist/modal/interface.d.ts +14 -14
- package/dist/notification/PureList.d.ts +3 -1
- package/dist/notification/PureList.js +4 -0
- package/dist/notification/interface.d.ts +8 -8
- package/dist/notification/util.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/interface.d.ts +7 -7
- package/dist/pagination/style/index.js +1 -1
- package/dist/popconfirm/index.d.ts +6 -6
- package/dist/popover/index.d.ts +4 -4
- package/dist/radio/radio.js +4 -4
- package/dist/radio/radioButton.js +4 -4
- package/dist/result/index.d.ts +5 -5
- package/dist/segmented/index.d.ts +38 -20
- package/dist/segmented/index.js +5 -10
- package/dist/select/index.d.ts +4 -4
- package/dist/select/style/select-input-customize.js +1 -0
- package/dist/slider/index.js +1 -1
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/index.d.ts +2 -2
- package/dist/spin/index.d.ts +5 -5
- package/dist/splitter/SplitBar.js +12 -1
- package/dist/splitter/interface.d.ts +6 -6
- package/dist/statistic/Statistic.d.ts +4 -4
- package/dist/steps/index.d.ts +6 -6
- package/dist/style/motion/util.js +2 -2
- package/dist/switch/index.d.ts +4 -4
- package/dist/switch/index.js +7 -7
- package/dist/switch/style/index.js +3 -1
- package/dist/table/InternalTable.js +8 -25
- package/dist/table/Table.d.ts +20 -9
- package/dist/table/hooks/useColumnTitleProps.d.ts +8 -0
- package/dist/table/hooks/useColumnTitleProps.js +16 -0
- package/dist/table/hooks/useFilter/FilterDropdown.js +2 -1
- package/dist/table/hooks/useSpinProps.d.ts +7 -0
- package/dist/table/hooks/useSpinProps.js +14 -0
- package/dist/table/util.d.ts +5 -2
- package/dist/table/util.js +10 -1
- package/dist/tabs/index.d.ts +5 -5
- package/dist/tag/CheckableTag.d.ts +2 -2
- package/dist/tag/index.d.ts +3 -3
- package/dist/time-picker/index.d.ts +2 -2
- package/dist/time-picker/index.js +211 -19
- package/dist/timeline/Timeline.d.ts +9 -9
- package/dist/tooltip/PurePanel.js +1 -1
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tour/interface.d.ts +4 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +2 -2
- package/dist/transfer/index.d.ts +27 -6
- package/dist/transfer/interface.d.ts +17 -17
- package/dist/transfer/search.d.ts +2 -2
- package/dist/tree/Tree.d.ts +6 -6
- package/dist/tree-select/index.d.ts +57 -28
- package/dist/tree-select/index.js +4 -3
- package/dist/typography/Base/Ellipsis.d.ts +2 -2
- package/dist/typography/Editable.d.ts +2 -2
- package/dist/typography/interface.d.ts +8 -8
- package/dist/upload/UploadList/index.js +1 -1
- package/package.json +10 -10
- package/web-tags.json +1674 -1662
- package/web-types.json +4801 -4762
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
4
4
|
import { InternalSelectProps, SearchConfig, SelectPopupSemanticClassNames, SelectPopupSemanticStyles, SelectSlots } from "../select/index.js";
|
|
@@ -26,7 +26,7 @@ interface DataSourceItemObject {
|
|
|
26
26
|
value: string;
|
|
27
27
|
text: string;
|
|
28
28
|
}
|
|
29
|
-
type DataSourceItemType = DataSourceItemObject | VueNode
|
|
29
|
+
type DataSourceItemType = DataSourceItemObject | VueNode;
|
|
30
30
|
type AutoCompleteClassNamesType = SemanticClassNamesType<AutoCompleteProps, AutoCompleteSemanticClassNames, {
|
|
31
31
|
popup?: SelectPopupSemanticClassNames;
|
|
32
32
|
}>;
|
|
@@ -48,8 +48,8 @@ interface AutoCompleteProps extends Omit<InternalSelectProps, 'loading' | 'mode'
|
|
|
48
48
|
styles?: AutoCompleteStylesType;
|
|
49
49
|
classes?: AutoCompleteClassNamesType;
|
|
50
50
|
/** @deprecated Please use `popupRender` instead */
|
|
51
|
-
dropdownRender?: (menu: VueNode
|
|
52
|
-
popupRender?: (menu: VueNode
|
|
51
|
+
dropdownRender?: (menu: VueNode) => any;
|
|
52
|
+
popupRender?: (menu: VueNode) => any;
|
|
53
53
|
/** @deprecated Please use `styles.popup.root` instead */
|
|
54
54
|
dropdownStyle?: CSSProperties;
|
|
55
55
|
showSearch?: boolean | Pick<SearchConfig, 'filterOption' | 'onSearch'>;
|
package/dist/avatar/Avatar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { AvatarSize } from "./AvatarContext.js";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
@@ -14,12 +14,12 @@ interface AvatarProps extends ComponentBaseProps, AvatarEmitsProps {
|
|
|
14
14
|
size?: AvatarSize;
|
|
15
15
|
gap?: number;
|
|
16
16
|
/** Src of image avatar */
|
|
17
|
-
src?: VueNode
|
|
17
|
+
src?: VueNode;
|
|
18
18
|
/** Srcset of image avatar */
|
|
19
19
|
srcSet?: string;
|
|
20
20
|
draggable?: boolean | 'true' | 'false';
|
|
21
21
|
/** Icon to be used in avatar */
|
|
22
|
-
icon?: VueNode
|
|
22
|
+
icon?: VueNode;
|
|
23
23
|
alt?: string;
|
|
24
24
|
crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
|
25
25
|
onError?: () => boolean;
|
package/dist/badge/Ribbon.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode
|
|
1
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { PresetColorType } from "../_util/colors.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
@@ -21,7 +21,7 @@ interface RibbonSemanticStyles {
|
|
|
21
21
|
type RibbonClassNamesType = SemanticClassNamesType<RibbonProps, RibbonSemanticClassNames>;
|
|
22
22
|
type RibbonStylesType = SemanticStylesType<RibbonProps, RibbonSemanticStyles>;
|
|
23
23
|
interface RibbonProps extends ComponentBaseProps {
|
|
24
|
-
text?: VueNode
|
|
24
|
+
text?: VueNode;
|
|
25
25
|
color?: LiteralUnion<PresetColorType>;
|
|
26
26
|
placement?: RibbonPlacement;
|
|
27
27
|
classes?: RibbonClassNamesType;
|
package/dist/badge/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode
|
|
1
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { PresetColorKey } from "../theme/interface/presetColors.js";
|
|
4
4
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
@@ -22,7 +22,7 @@ type BadgeClassNamesType = SemanticClassNamesType<BadgeProps, BadgeSemanticClass
|
|
|
22
22
|
type BadgeStylesType = SemanticStylesType<BadgeProps, BadgeSemanticStyles>;
|
|
23
23
|
interface BadgeProps extends ComponentBaseProps {
|
|
24
24
|
/** Number to show in badge */
|
|
25
|
-
count?: VueNode
|
|
25
|
+
count?: VueNode;
|
|
26
26
|
showZero?: boolean;
|
|
27
27
|
/** Max count to show */
|
|
28
28
|
overflowCount?: number;
|
|
@@ -31,7 +31,7 @@ interface BadgeProps extends ComponentBaseProps {
|
|
|
31
31
|
scrollNumberPrefixCls?: string;
|
|
32
32
|
status?: PresetStatusColorType;
|
|
33
33
|
color?: LiteralUnion<PresetColorKey>;
|
|
34
|
-
text?: VueNode
|
|
34
|
+
text?: VueNode;
|
|
35
35
|
size?: Exclude<SizeType, 'large'> | 'default';
|
|
36
36
|
offset?: [number | string, number | string];
|
|
37
37
|
/** Set `null` or `false` to remove the native tooltip title. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, VueNode
|
|
1
|
+
import { AnyObject, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { DropdownProps } from "../dropdown/dropdown.js";
|
|
4
4
|
import _default, { BreadcrumbItemProps, MenuItem } from "./BreadcrumbItem.js";
|
|
@@ -17,7 +17,7 @@ interface BreadcrumbItemType {
|
|
|
17
17
|
* Different with `href`. It will concat all prev `path` to the current one.
|
|
18
18
|
*/
|
|
19
19
|
path?: string;
|
|
20
|
-
title?: VueNode
|
|
20
|
+
title?: VueNode;
|
|
21
21
|
menu?: BreadcrumbItemProps['menu'];
|
|
22
22
|
class?: string;
|
|
23
23
|
style?: CSSProperties;
|
|
@@ -27,7 +27,7 @@ interface BreadcrumbItemType {
|
|
|
27
27
|
}
|
|
28
28
|
interface BreadcrumbSeparatorType {
|
|
29
29
|
type: 'separator';
|
|
30
|
-
separator?: VueNode
|
|
30
|
+
separator?: VueNode;
|
|
31
31
|
}
|
|
32
32
|
type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
33
33
|
type InternalRouteType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
@@ -58,7 +58,7 @@ interface BreadcrumbProps<T extends AnyObject = AnyObject> extends BreadcrumbEmi
|
|
|
58
58
|
items?: ItemType[];
|
|
59
59
|
classes?: BreadcrumbClassNamesType<T>;
|
|
60
60
|
styles?: BreadcrumbStylesType<T>;
|
|
61
|
-
dropdownIcon?: VueNode
|
|
61
|
+
dropdownIcon?: VueNode;
|
|
62
62
|
itemRender?: (route: ItemType, params: T, routes: ItemType[], paths: string[]) => any;
|
|
63
63
|
titleRender?: (params: {
|
|
64
64
|
item: ItemType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { DropdownProps } from "../dropdown/dropdown.js";
|
|
3
3
|
import { CSSProperties } from "vue";
|
|
4
4
|
import { Key } from "@v-c/util/dist/type";
|
|
@@ -11,8 +11,8 @@ interface SeparatorType {
|
|
|
11
11
|
type MenuType = NonNullable<DropdownProps['menu']>;
|
|
12
12
|
interface MenuItem {
|
|
13
13
|
key?: Key;
|
|
14
|
-
title?: VueNode
|
|
15
|
-
label?: VueNode
|
|
14
|
+
title?: VueNode;
|
|
15
|
+
label?: VueNode;
|
|
16
16
|
path?: string;
|
|
17
17
|
href?: string;
|
|
18
18
|
}
|
|
@@ -23,7 +23,7 @@ interface BreadcrumbItemProps extends SeparatorType {
|
|
|
23
23
|
items?: MenuItem[];
|
|
24
24
|
};
|
|
25
25
|
dropdownProps?: DropdownProps;
|
|
26
|
-
dropdownIcon?: VueNode
|
|
26
|
+
dropdownIcon?: VueNode;
|
|
27
27
|
onClick?: (event: MouseEvent) => void;
|
|
28
28
|
class?: string;
|
|
29
29
|
style?: CSSProperties;
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RenderNodeFn, VueNode
|
|
1
|
+
import { RenderNodeFn, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
@@ -24,7 +24,7 @@ interface BaseButtonProps extends ComponentBaseProps {
|
|
|
24
24
|
type?: ButtonType;
|
|
25
25
|
color?: ButtonColorType;
|
|
26
26
|
variant?: ButtonVariantType;
|
|
27
|
-
icon?: VueNode
|
|
27
|
+
icon?: VueNode;
|
|
28
28
|
iconPlacement?: 'start' | 'end';
|
|
29
29
|
shape?: ButtonShape;
|
|
30
30
|
size?: SizeType;
|
|
@@ -27,6 +27,19 @@ const genSharedButtonStyle = (token) => {
|
|
|
27
27
|
...genNoMotionStyle(),
|
|
28
28
|
"&:disabled > *": { pointerEvents: "none" },
|
|
29
29
|
[`${componentCls}-icon > svg`]: resetIcon(),
|
|
30
|
+
[`${componentCls}-icon`]: {
|
|
31
|
+
display: "inline-flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
[iconCls]: {
|
|
35
|
+
verticalAlign: "middle",
|
|
36
|
+
"&:before": {
|
|
37
|
+
content: "\"\\a0\"",
|
|
38
|
+
display: "inline-block",
|
|
39
|
+
width: 0
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
30
43
|
"> a": { color: "currentColor" },
|
|
31
44
|
"&:not(:disabled)": genFocusStyle(token),
|
|
32
45
|
[`&${componentCls}-two-chinese-chars::first-letter`]: { letterSpacing: "0.34em" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, VueNode
|
|
1
|
+
import { AnyObject, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import locale from "../date-picker/locale/en_US.js";
|
|
4
4
|
import { CSSProperties, SlotsType } from "vue";
|
|
@@ -11,7 +11,7 @@ type HeaderRender<DateType> = (config: {
|
|
|
11
11
|
type: CalendarMode;
|
|
12
12
|
onChange: (date: DateType) => void;
|
|
13
13
|
onTypeChange: (type: CalendarMode) => void;
|
|
14
|
-
}) => VueNode
|
|
14
|
+
}) => VueNode;
|
|
15
15
|
interface SelectInfo {
|
|
16
16
|
source: 'year' | 'month' | 'date' | 'customize';
|
|
17
17
|
}
|
|
@@ -43,15 +43,15 @@ interface CalendarProps<DateType> extends CalendarEmitsProps<DateType> {
|
|
|
43
43
|
validRange?: [DateType, DateType];
|
|
44
44
|
disabledDate?: (date: DateType) => boolean;
|
|
45
45
|
/** @deprecated Please use fullCellRender instead. */
|
|
46
|
-
dateFullCellRender?: (date: DateType) => VueNode
|
|
46
|
+
dateFullCellRender?: (date: DateType) => VueNode;
|
|
47
47
|
/** @deprecated Please use cellRender instead. */
|
|
48
|
-
dateCellRender?: (date: DateType) => VueNode
|
|
48
|
+
dateCellRender?: (date: DateType) => VueNode;
|
|
49
49
|
/** @deprecated Please use fullCellRender instead. */
|
|
50
|
-
monthFullCellRender?: (date: DateType) => VueNode
|
|
50
|
+
monthFullCellRender?: (date: DateType) => VueNode;
|
|
51
51
|
/** @deprecated Please use cellRender instead. */
|
|
52
|
-
monthCellRender?: (date: DateType) => VueNode
|
|
53
|
-
cellRender?: (date: DateType, info: any) => VueNode
|
|
54
|
-
fullCellRender?: (date: DateType, info: any) => VueNode
|
|
52
|
+
monthCellRender?: (date: DateType) => VueNode;
|
|
53
|
+
cellRender?: (date: DateType, info: any) => VueNode;
|
|
54
|
+
fullCellRender?: (date: DateType, info: any) => VueNode;
|
|
55
55
|
headerRender?: HeaderRender<DateType>;
|
|
56
56
|
value?: DateType;
|
|
57
57
|
defaultValue?: DateType;
|
package/dist/card/Card.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { Tab, TabsSlots } from "../tabs/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
@@ -10,8 +10,8 @@ type CardSize = 'small' | 'medium' | 'middle' | 'default';
|
|
|
10
10
|
interface CardTabListType extends Omit<Tab, 'label'> {
|
|
11
11
|
key: string;
|
|
12
12
|
/** @deprecated Please use `label` instead */
|
|
13
|
-
tab?: VueNode
|
|
14
|
-
label?: VueNode
|
|
13
|
+
tab?: VueNode;
|
|
14
|
+
label?: VueNode;
|
|
15
15
|
}
|
|
16
16
|
type CardSemanticName = keyof CardSemanticClassNames & keyof CardSemanticStyles;
|
|
17
17
|
interface CardSemanticClassNames {
|
|
@@ -35,8 +35,8 @@ interface CardSemanticStyles {
|
|
|
35
35
|
type CardClassNamesType = SemanticClassNamesType<CardProps, CardSemanticClassNames>;
|
|
36
36
|
type CardStylesType = SemanticStylesType<CardProps, CardSemanticStyles>;
|
|
37
37
|
interface CardProps extends ComponentBaseProps, CardEmitsProps {
|
|
38
|
-
title?: VueNode
|
|
39
|
-
extra?: VueNode
|
|
38
|
+
title?: VueNode;
|
|
39
|
+
extra?: VueNode;
|
|
40
40
|
/** @deprecated Please use `variant` instead */
|
|
41
41
|
bordered?: boolean;
|
|
42
42
|
/** @deprecated Please use `styles.header` instead */
|
|
@@ -48,11 +48,11 @@ interface CardProps extends ComponentBaseProps, CardEmitsProps {
|
|
|
48
48
|
id?: string;
|
|
49
49
|
size?: CardSize;
|
|
50
50
|
type?: CardType;
|
|
51
|
-
cover?: VueNode
|
|
52
|
-
actions?: VueNode
|
|
51
|
+
cover?: VueNode;
|
|
52
|
+
actions?: VueNode[];
|
|
53
53
|
tabList?: CardTabListType[];
|
|
54
|
-
tabBarExtraContent?: VueNode
|
|
55
|
-
[key: string]: VueNode
|
|
54
|
+
tabBarExtraContent?: VueNode | {
|
|
55
|
+
[key: string]: VueNode;
|
|
56
56
|
};
|
|
57
57
|
activeTabKey?: string;
|
|
58
58
|
defaultActiveTabKey?: string;
|
package/dist/card/CardMeta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode
|
|
1
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
4
4
|
|
|
@@ -22,9 +22,9 @@ type CardMetaClassNamesType = SemanticClassNamesType<CardMetaProps, CardMetaSema
|
|
|
22
22
|
type CardMetaStylesType = SemanticStylesType<CardMetaProps, CardMetaSemanticStyles>;
|
|
23
23
|
interface CardMetaProps {
|
|
24
24
|
prefixCls?: string;
|
|
25
|
-
avatar?: VueNode
|
|
26
|
-
title?: VueNode
|
|
27
|
-
description?: VueNode
|
|
25
|
+
avatar?: VueNode;
|
|
26
|
+
title?: VueNode;
|
|
27
|
+
description?: VueNode;
|
|
28
28
|
classes?: CardMetaClassNamesType;
|
|
29
29
|
styles?: CardMetaStylesType;
|
|
30
30
|
}
|
package/dist/carousel/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
import { SlickProps } from "@v-c/slick";
|
|
@@ -20,8 +20,8 @@ interface CarouselProps extends Omit<SlickProps, 'prevArrow' | 'nextArrow' | 'do
|
|
|
20
20
|
autoplay?: boolean | {
|
|
21
21
|
dotDuration?: boolean;
|
|
22
22
|
};
|
|
23
|
-
prevArrow?: VueNode
|
|
24
|
-
nextArrow?: VueNode
|
|
23
|
+
prevArrow?: VueNode;
|
|
24
|
+
nextArrow?: VueNode;
|
|
25
25
|
}
|
|
26
26
|
interface CarouselSlots {
|
|
27
27
|
default: () => any;
|
package/dist/cascader/Panel.js
CHANGED
|
@@ -87,8 +87,32 @@ const CascaderPanel = /* @__PURE__ */ defineComponent((props, { attrs, emit, slo
|
|
|
87
87
|
type: String,
|
|
88
88
|
required: false
|
|
89
89
|
},
|
|
90
|
-
expandIcon: {
|
|
91
|
-
|
|
90
|
+
expandIcon: {
|
|
91
|
+
type: [
|
|
92
|
+
Object,
|
|
93
|
+
Function,
|
|
94
|
+
String,
|
|
95
|
+
Number,
|
|
96
|
+
null,
|
|
97
|
+
Boolean,
|
|
98
|
+
Array
|
|
99
|
+
],
|
|
100
|
+
required: false,
|
|
101
|
+
default: void 0
|
|
102
|
+
},
|
|
103
|
+
loadingIcon: {
|
|
104
|
+
type: [
|
|
105
|
+
Object,
|
|
106
|
+
Function,
|
|
107
|
+
String,
|
|
108
|
+
Number,
|
|
109
|
+
null,
|
|
110
|
+
Boolean,
|
|
111
|
+
Array
|
|
112
|
+
],
|
|
113
|
+
required: false,
|
|
114
|
+
default: void 0
|
|
115
|
+
},
|
|
92
116
|
direction: {
|
|
93
117
|
type: String,
|
|
94
118
|
required: false
|
package/dist/cascader/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
4
4
|
import { InputStatus } from "../_util/statusUtils.js";
|
|
@@ -6,7 +6,7 @@ import { SelectCommonPlacement } from "../_util/motion.js";
|
|
|
6
6
|
import { SelectPopupSemanticClassNames, SelectPopupSemanticStyles } from "../select/index.js";
|
|
7
7
|
import CascaderPanel from "./Panel.js";
|
|
8
8
|
import { Variant } from "../config-provider/context.js";
|
|
9
|
-
import { App, CSSProperties,
|
|
9
|
+
import { App, CSSProperties, PublicProps } from "vue";
|
|
10
10
|
import { CascaderProps as CascaderProps$1, DefaultOptionType, FieldNames, SHOW_CHILD, SHOW_PARENT } from "@v-c/cascader";
|
|
11
11
|
|
|
12
12
|
//#region src/cascader/index.d.ts
|
|
@@ -41,7 +41,7 @@ type CascaderClassNamesType = SemanticClassNamesType<CascaderProps, CascaderSema
|
|
|
41
41
|
type CascaderStylesType = SemanticStylesType<CascaderProps, CascaderSemanticStyles, {
|
|
42
42
|
popup?: SelectPopupSemanticStyles;
|
|
43
43
|
}>;
|
|
44
|
-
interface CascaderProps<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> extends Omit<CascaderProps$1<OptionType, ValueField, Multiple>, 'checkable' | 'className' | 'style' | 'classNames' | 'styles' | 'onChange' | 'onSearch' | 'onPopupVisibleChange' | 'multiple' | 'value'>, CascaderEmitsProps {
|
|
44
|
+
interface CascaderProps<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> extends Omit<CascaderProps$1<OptionType, ValueField, Multiple>, 'checkable' | 'className' | 'style' | 'classNames' | 'styles' | 'onChange' | 'onSearch' | 'onPopupVisibleChange' | 'multiple' | 'value'>, CascaderEmitsProps<OptionType, ValueField, Multiple> {
|
|
45
45
|
value?: any;
|
|
46
46
|
multiple?: boolean;
|
|
47
47
|
size?: SizeType;
|
|
@@ -54,7 +54,7 @@ interface CascaderProps<OptionType extends DefaultOptionType = DefaultOptionType
|
|
|
54
54
|
/** @deprecated Use `variant` instead. */
|
|
55
55
|
bordered?: boolean;
|
|
56
56
|
placement?: SelectCommonPlacement;
|
|
57
|
-
suffixIcon?: VueNode
|
|
57
|
+
suffixIcon?: VueNode;
|
|
58
58
|
options?: OptionType[];
|
|
59
59
|
status?: InputStatus;
|
|
60
60
|
rootClass?: string;
|
|
@@ -78,41 +78,73 @@ interface CascaderProps<OptionType extends DefaultOptionType = DefaultOptionType
|
|
|
78
78
|
classes?: CascaderClassNamesType;
|
|
79
79
|
styles?: CascaderStylesType;
|
|
80
80
|
}
|
|
81
|
-
interface CascaderSlots {
|
|
81
|
+
interface CascaderSlots<OptionType extends DefaultOptionType = DefaultOptionType> {
|
|
82
82
|
suffixIcon?: () => any;
|
|
83
83
|
notFoundContent?: () => any;
|
|
84
84
|
popupRender?: (menu: any) => any;
|
|
85
85
|
displayRender?: (data: {
|
|
86
86
|
labels: string[];
|
|
87
|
-
selectedOptions?:
|
|
87
|
+
selectedOptions?: OptionType[];
|
|
88
88
|
}) => any;
|
|
89
|
-
optionRender?: (option:
|
|
89
|
+
optionRender?: (option: OptionType) => any;
|
|
90
90
|
expandIcon?: () => any;
|
|
91
91
|
default?: () => any;
|
|
92
92
|
}
|
|
93
|
-
interface CascaderEmits {
|
|
93
|
+
interface CascaderEmits<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> {
|
|
94
94
|
'openChange': (visible: boolean) => void;
|
|
95
95
|
'dropdownVisibleChange': (visible: boolean) => void;
|
|
96
96
|
'popupVisibleChange': (visible: boolean) => void;
|
|
97
|
-
'change': NonNullable<CascaderProps$1['onChange']>;
|
|
97
|
+
'change': NonNullable<CascaderProps$1<OptionType, ValueField, Multiple>['onChange']>;
|
|
98
98
|
'update:value': (value: any) => void;
|
|
99
|
-
'search': NonNullable<CascaderProps$1['onSearch']>;
|
|
99
|
+
'search': NonNullable<CascaderProps$1<OptionType, ValueField, Multiple>['onSearch']>;
|
|
100
100
|
}
|
|
101
|
-
interface CascaderEmitsProps {
|
|
102
|
-
onOpenChange?: CascaderEmits['openChange'];
|
|
103
|
-
onDropdownVisibleChange?: CascaderEmits['dropdownVisibleChange'];
|
|
104
|
-
onPopupVisibleChange?: CascaderEmits['popupVisibleChange'];
|
|
105
|
-
onChange?: CascaderEmits['change'];
|
|
106
|
-
'onUpdate:value'?: CascaderEmits['update:value'];
|
|
107
|
-
onSearch?: CascaderEmits['search'];
|
|
101
|
+
interface CascaderEmitsProps<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> {
|
|
102
|
+
onOpenChange?: CascaderEmits<OptionType, ValueField, Multiple>['openChange'];
|
|
103
|
+
onDropdownVisibleChange?: CascaderEmits<OptionType, ValueField, Multiple>['dropdownVisibleChange'];
|
|
104
|
+
onPopupVisibleChange?: CascaderEmits<OptionType, ValueField, Multiple>['popupVisibleChange'];
|
|
105
|
+
onChange?: CascaderEmits<OptionType, ValueField, Multiple>['change'];
|
|
106
|
+
'onUpdate:value'?: CascaderEmits<OptionType, ValueField, Multiple>['update:value'];
|
|
107
|
+
onSearch?: CascaderEmits<OptionType, ValueField, Multiple>['search'];
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
interface CascaderInstance<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> {
|
|
110
|
+
$props: CascaderProps<OptionType, ValueField, Multiple> & PublicProps;
|
|
111
|
+
$emit: {
|
|
112
|
+
(event: 'openChange', ...args: Parameters<CascaderEmits['openChange']>): void;
|
|
113
|
+
(event: 'dropdownVisibleChange', ...args: Parameters<CascaderEmits['dropdownVisibleChange']>): void;
|
|
114
|
+
(event: 'popupVisibleChange', ...args: Parameters<CascaderEmits['popupVisibleChange']>): void;
|
|
115
|
+
(event: 'change', ...args: Parameters<CascaderEmits<OptionType, ValueField, Multiple>['change']>): void;
|
|
116
|
+
(event: 'update:value', ...args: Parameters<CascaderEmits['update:value']>): void;
|
|
117
|
+
(event: 'search', ...args: Parameters<CascaderEmits<OptionType, ValueField, Multiple>['search']>): void;
|
|
118
|
+
};
|
|
119
|
+
$slots: CascaderSlots<OptionType>;
|
|
120
|
+
focus: () => void;
|
|
121
|
+
blur: () => void;
|
|
122
|
+
}
|
|
123
|
+
type CascaderLooseProps = Omit<CascaderProps<any, any, any>, 'showSearch'> & {
|
|
124
|
+
showSearch?: boolean | Record<string, any>;
|
|
125
|
+
};
|
|
126
|
+
interface CascaderConstructor {
|
|
127
|
+
new <OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean>(props: CascaderProps<OptionType, ValueField, Multiple>): CascaderInstance<OptionType, ValueField, Multiple>;
|
|
128
|
+
/**
|
|
129
|
+
* Non-generic fallback signature. TypeScript infers from the last overload,
|
|
130
|
+
* so this keeps render-function usage like `h(Cascader, props)` resolvable
|
|
131
|
+
* against Vue's `Constructor<P>` overload of `h` (see #634), while the
|
|
132
|
+
* generic signature above still drives template/Volar inference.
|
|
133
|
+
* Only `showSearch` is loosened: `ValueField extends keyof OptionType` makes
|
|
134
|
+
* every concrete instantiation fail contravariant checks on
|
|
135
|
+
* `showSearch.filter`'s `FieldNames` parameter. Every other field keeps its
|
|
136
|
+
* `any`-instantiated type so callbacks like `displayRender` still get
|
|
137
|
+
* contextual parameter types inside `h()`.
|
|
138
|
+
*/
|
|
139
|
+
new (props: CascaderLooseProps): Omit<CascaderInstance<any, any, any>, '$props'> & {
|
|
140
|
+
$props: CascaderLooseProps;
|
|
141
|
+
};
|
|
111
142
|
install: (app: App) => void;
|
|
112
143
|
Panel: typeof CascaderPanel;
|
|
113
144
|
SHOW_PARENT: typeof SHOW_PARENT;
|
|
114
145
|
SHOW_CHILD: typeof SHOW_CHILD;
|
|
115
146
|
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
116
|
-
}
|
|
147
|
+
}
|
|
148
|
+
declare const Cascader: CascaderConstructor;
|
|
117
149
|
//#endregion
|
|
118
|
-
export { CascaderClassNamesType, CascaderEmits, CascaderEmitsProps, CascaderPanel, CascaderProps, CascaderSemanticClassNames, CascaderSemanticName, CascaderSemanticStyles, CascaderSlots, CascaderStylesType, FieldNamesType, FilledFieldNamesType, SHOW_CHILD, SHOW_PARENT, Cascader as default };
|
|
150
|
+
export { CascaderClassNamesType, CascaderConstructor, CascaderEmits, CascaderEmitsProps, CascaderPanel, CascaderProps, CascaderSemanticClassNames, CascaderSemanticName, CascaderSemanticStyles, CascaderSlots, CascaderStylesType, FieldNamesType, FilledFieldNamesType, SHOW_CHILD, SHOW_PARENT, Cascader as default };
|
package/dist/cascader/index.js
CHANGED
|
@@ -65,7 +65,7 @@ const defaultSearchRender = (inputValue, path, prefixCls, fieldNames) => {
|
|
|
65
65
|
});
|
|
66
66
|
return optionList;
|
|
67
67
|
};
|
|
68
|
-
const
|
|
68
|
+
const InternalCascader = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots, expose }) => {
|
|
69
69
|
const { getPopupContainer: getContextPopupContainer, popupOverflow, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles, getPrefixCls, expandIcon: contextExpandIcon, loadingIcon: contextLoadingIcon, searchIcon: _contextSearchIcon, clearIcon: contextClearIcon, removeIcon: contextRemoveIcon, suffixIcon: contextSuffixIcon } = useComponentBaseConfig("cascader", props, [
|
|
70
70
|
"expandIcon",
|
|
71
71
|
"loadingIcon",
|
|
@@ -395,9 +395,36 @@ const Cascader = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots, e
|
|
|
395
395
|
type: Function,
|
|
396
396
|
required: false
|
|
397
397
|
},
|
|
398
|
-
builtinPlacements: {
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
builtinPlacements: {
|
|
399
|
+
type: Object,
|
|
400
|
+
required: false
|
|
401
|
+
},
|
|
402
|
+
expandIcon: {
|
|
403
|
+
type: [
|
|
404
|
+
Object,
|
|
405
|
+
Function,
|
|
406
|
+
String,
|
|
407
|
+
Number,
|
|
408
|
+
null,
|
|
409
|
+
Boolean,
|
|
410
|
+
Array
|
|
411
|
+
],
|
|
412
|
+
required: false,
|
|
413
|
+
default: void 0
|
|
414
|
+
},
|
|
415
|
+
loadingIcon: {
|
|
416
|
+
type: [
|
|
417
|
+
Object,
|
|
418
|
+
Function,
|
|
419
|
+
String,
|
|
420
|
+
Number,
|
|
421
|
+
null,
|
|
422
|
+
Boolean,
|
|
423
|
+
Array
|
|
424
|
+
],
|
|
425
|
+
required: false,
|
|
426
|
+
default: void 0
|
|
427
|
+
},
|
|
401
428
|
tagRender: {
|
|
402
429
|
type: Function,
|
|
403
430
|
required: false
|
|
@@ -652,11 +679,12 @@ const Cascader = /* @__PURE__ */ defineComponent((props, { attrs, emit, slots, e
|
|
|
652
679
|
name: "ACascader",
|
|
653
680
|
inheritAttrs: false
|
|
654
681
|
});
|
|
682
|
+
const Cascader = InternalCascader;
|
|
655
683
|
Cascader.Panel = CascaderPanel;
|
|
656
684
|
Cascader.SHOW_PARENT = SHOW_PARENT;
|
|
657
685
|
Cascader.SHOW_CHILD = SHOW_CHILD;
|
|
658
686
|
Cascader.install = (app) => {
|
|
659
|
-
app.component(
|
|
687
|
+
app.component(InternalCascader.name, Cascader);
|
|
660
688
|
app.component(CascaderPanel.name, CascaderPanel);
|
|
661
689
|
};
|
|
662
690
|
Cascader._InternalPanelDoNotUseOrYouWillBeFired = genPurePanel(Cascader, "popupAlign", (props) => omit(props, ["visible"]));
|
|
@@ -4,7 +4,7 @@ import { CSSProperties, SlotsType } from "vue";
|
|
|
4
4
|
import { CheckboxChangeEvent } from "@v-c/checkbox";
|
|
5
5
|
|
|
6
6
|
//#region src/checkbox/Checkbox.d.ts
|
|
7
|
-
type CheckedValueType =
|
|
7
|
+
type CheckedValueType = boolean | string | number | object;
|
|
8
8
|
interface AbstractCheckboxProps extends ComponentBaseProps {
|
|
9
9
|
defaultChecked?: CheckedValueType;
|
|
10
10
|
checked?: CheckedValueType;
|
|
@@ -172,9 +172,9 @@ const InternalCheckbox = /* @__PURE__ */ defineComponent((props, { slots, emit,
|
|
|
172
172
|
},
|
|
173
173
|
defaultChecked: {
|
|
174
174
|
type: [
|
|
175
|
+
Boolean,
|
|
175
176
|
String,
|
|
176
177
|
Number,
|
|
177
|
-
Boolean,
|
|
178
178
|
Object
|
|
179
179
|
],
|
|
180
180
|
required: false,
|
|
@@ -182,9 +182,9 @@ const InternalCheckbox = /* @__PURE__ */ defineComponent((props, { slots, emit,
|
|
|
182
182
|
},
|
|
183
183
|
checked: {
|
|
184
184
|
type: [
|
|
185
|
+
Boolean,
|
|
185
186
|
String,
|
|
186
187
|
Number,
|
|
187
|
-
Boolean,
|
|
188
188
|
Object
|
|
189
189
|
],
|
|
190
190
|
required: false,
|
|
@@ -233,9 +233,9 @@ const InternalCheckbox = /* @__PURE__ */ defineComponent((props, { slots, emit,
|
|
|
233
233
|
},
|
|
234
234
|
checkedValue: {
|
|
235
235
|
type: [
|
|
236
|
+
Boolean,
|
|
236
237
|
String,
|
|
237
238
|
Number,
|
|
238
|
-
Boolean,
|
|
239
239
|
Object
|
|
240
240
|
],
|
|
241
241
|
required: false,
|
|
@@ -243,9 +243,9 @@ const InternalCheckbox = /* @__PURE__ */ defineComponent((props, { slots, emit,
|
|
|
243
243
|
},
|
|
244
244
|
unCheckedValue: {
|
|
245
245
|
type: [
|
|
246
|
+
Boolean,
|
|
246
247
|
String,
|
|
247
248
|
Number,
|
|
248
|
-
Boolean,
|
|
249
249
|
Object
|
|
250
250
|
],
|
|
251
251
|
required: false,
|
package/dist/checkbox/Group.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
3
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
4
4
|
import { CheckboxChangeEvent } from "@v-c/checkbox";
|
|
5
5
|
|
|
6
6
|
//#region src/checkbox/Group.d.ts
|
|
7
7
|
interface CheckboxOptionType {
|
|
8
|
-
label: VueNode
|
|
8
|
+
label: VueNode;
|
|
9
9
|
value: any;
|
|
10
10
|
style?: CSSProperties;
|
|
11
11
|
class?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../_util/type.js";
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import { SizeType } from "../config-provider/SizeContext.js";
|
|
4
4
|
import { CollapsibleType } from "./CollapsePanel.js";
|
|
@@ -65,12 +65,12 @@ interface CollapseEmitsProps {
|
|
|
65
65
|
}
|
|
66
66
|
interface PanelProps {
|
|
67
67
|
isActive?: boolean;
|
|
68
|
-
header?: VueNode
|
|
68
|
+
header?: VueNode;
|
|
69
69
|
className?: string;
|
|
70
70
|
style?: CSSProperties;
|
|
71
71
|
showArrow?: boolean;
|
|
72
72
|
forceRender?: boolean;
|
|
73
|
-
extra?: VueNode
|
|
73
|
+
extra?: VueNode;
|
|
74
74
|
collapsible?: CollapsibleType;
|
|
75
75
|
}
|
|
76
76
|
interface CollapseSlots {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmptyEmit, VueNode
|
|
1
|
+
import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
2
2
|
import { CollapseSemanticClassNames, CollapseSemanticStyles } from "./Collapse.js";
|
|
3
3
|
import { CSSProperties, SlotsType } from "vue";
|
|
4
4
|
|
|
@@ -9,12 +9,12 @@ interface CollapsePanelProps {
|
|
|
9
9
|
key: string | number;
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: CSSProperties;
|
|
12
|
-
header?: VueNode
|
|
12
|
+
header?: VueNode;
|
|
13
13
|
showArrow?: boolean;
|
|
14
14
|
prefixCls?: string;
|
|
15
15
|
forceRender?: boolean;
|
|
16
16
|
id?: string;
|
|
17
|
-
extra?: VueNode
|
|
17
|
+
extra?: VueNode;
|
|
18
18
|
collapsible?: CollapsibleType;
|
|
19
19
|
classes?: Partial<CollapseSemanticClassNames>;
|
|
20
20
|
styles?: Partial<CollapseSemanticStyles>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VueNode
|
|
1
|
+
import { VueNode } from "../../_util/type.js";
|
|
2
2
|
import { AggregationColor } from "../color.js";
|
|
3
3
|
import { ColorPickerProps, ColorValueType, ModeType } from "../interface.js";
|
|
4
4
|
import { Ref } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/color-picker/hooks/useModeColor.d.ts
|
|
7
7
|
type ModeOptions = {
|
|
8
|
-
label: VueNode
|
|
8
|
+
label: VueNode;
|
|
9
9
|
value: ModeType;
|
|
10
10
|
}[];
|
|
11
11
|
declare function useModeColor(value: Ref<ColorValueType>, mode: Ref<ColorPickerProps['mode']>, defaultValue?: ColorValueType): readonly [import("vue").ComputedRef<AggregationColor>, (nextColor: AggregationColor) => void, import("vue").ComputedRef<ModeType | undefined>, (nextMode: ModeType) => void, import("vue").ComputedRef<ModeOptions>];
|