antdv-next 1.0.0-alpha.4 → 1.0.0-alpha.5
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/tools.js +2 -1
- package/dist/_util/wave/WaveEffect.js +6 -1
- package/dist/_util/wave/style.js +4 -3
- package/dist/affix/index.d.ts +3 -3
- package/dist/alert/Alert.d.ts +4 -3
- package/dist/alert/Alert.js +1 -1
- package/dist/anchor/Anchor.d.ts +5 -5
- package/dist/anchor/AnchorLink.js +2 -2
- package/dist/anchor/index.d.ts +1 -1
- package/dist/antd.js +76 -76
- package/dist/app/App.d.ts +2 -2
- package/dist/auto-complete/index.d.ts +77 -0
- package/dist/auto-complete/index.js +627 -0
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/AvatarGroup.d.ts +2 -2
- package/dist/badge/Ribbon.d.ts +3 -3
- package/dist/badge/index.d.ts +3 -3
- package/dist/breadcrumb/Breadcrumb.d.ts +5 -5
- package/dist/breadcrumb/Breadcrumb.js +0 -8
- package/dist/breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.js +1 -17
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/button/Button.d.ts +3 -3
- package/dist/button/style/variant.js +116 -104
- package/dist/calendar/Header.js +1 -1
- package/dist/calendar/generateCalendar.d.ts +3 -3
- package/dist/calendar/index.d.ts +3 -3
- package/dist/card/Card.d.ts +3 -3
- package/dist/card/CardGrid.d.ts +2 -2
- package/dist/card/CardMeta.d.ts +3 -3
- package/dist/carousel/index.d.ts +3 -3
- package/dist/cascader/Panel.d.ts +3 -3
- package/dist/cascader/index.d.ts +3 -3
- package/dist/cascader/index.js +1 -1
- package/dist/checkbox/Checkbox.d.ts +3 -3
- package/dist/checkbox/Group.d.ts +3 -3
- package/dist/collapse/Collapse.d.ts +3 -3
- package/dist/color-picker/ColorPicker.d.ts +4 -4
- package/dist/color-picker/ColorPicker.js +2 -2
- package/dist/components.d.ts +3 -2
- package/dist/components.js +7 -4
- package/dist/config-provider/context.js +2 -2
- package/dist/config-provider/index.d.ts +3 -3
- package/dist/date-picker/generatePicker/generateRangePicker.js +1 -1
- package/dist/date-picker/generatePicker/generateSinglePicker.js +1 -1
- package/dist/date-picker/generatePicker/index.d.ts +15 -15
- package/dist/date-picker/index.d.ts +25 -25
- package/dist/descriptions/index.d.ts +3 -3
- package/dist/divider/index.d.ts +2 -2
- package/dist/drawer/index.d.ts +3 -3
- package/dist/dropdown/dropdown.d.ts +4 -4
- package/dist/dropdown/dropdown.js +5 -3
- package/dist/empty/index.d.ts +3 -3
- package/dist/flex/index.d.ts +3 -3
- package/dist/float-button/BackTop.d.ts +3 -3
- package/dist/float-button/FloatButton.d.ts +3 -3
- package/dist/float-button/FloatButtonGroup.d.ts +3 -3
- package/dist/float-button/style/button.js +4 -4
- package/dist/float-button/style/group.js +12 -12
- package/dist/form/Form.d.ts +3 -3
- package/dist/form/FormItem/index.d.ts +3 -3
- package/dist/form/style/index.js +3 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/grid/style/index.js +5 -4
- package/dist/image/PreviewGroup.d.ts +2 -2
- package/dist/image/index.d.ts +4 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +5 -4
- package/dist/input/Input.js +1 -1
- package/dist/input/OTP/index.js +1 -1
- package/dist/input/TextArea.d.ts +3 -3
- package/dist/input/TextArea.js +1 -1
- package/dist/input/index.d.ts +11 -11
- package/dist/input-number/index.d.ts +3 -3
- package/dist/input-number/index.js +1 -1
- package/dist/input-number/style/index.js +18 -17
- package/dist/layout/index.d.ts +6 -6
- package/dist/layout/layout.d.ts +2 -2
- package/dist/masonry/Masonry.d.ts +3 -3
- package/dist/masonry/Masonry.js +8 -6
- package/dist/mentions/index.d.ts +3 -3
- package/dist/mentions/index.js +1 -1
- package/dist/mentions/style/index.js +18 -17
- package/dist/menu/MenuDivider.d.ts +2 -2
- package/dist/menu/SubMenu.d.ts +3 -3
- package/dist/menu/index.d.ts +5 -5
- package/dist/message/PurePanel.d.ts +2 -2
- package/dist/modal/Modal.d.ts +3 -3
- package/dist/notification/PurePanel.d.ts +2 -2
- package/dist/notification/useNotification.d.ts +2 -2
- package/dist/package.d.ts +109 -3
- package/dist/package.js +1 -1
- package/dist/pagination/Pagination.d.ts +3 -3
- package/dist/pagination/Pagination.js +1 -1
- package/dist/pagination/style/index.js +61 -50
- package/dist/popconfirm/PurePanel.d.ts +2 -2
- package/dist/popconfirm/index.d.ts +3 -3
- package/dist/popover/index.d.ts +3 -3
- package/dist/popover/style/index.js +11 -8
- package/dist/progress/progress.d.ts +3 -3
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/radio/index.d.ts +5 -5
- package/dist/radio/radio.d.ts +3 -3
- package/dist/rate/index.d.ts +3 -3
- package/dist/result/index.d.ts +3 -3
- package/dist/result/noFound.d.ts +2 -2
- package/dist/result/serverError.d.ts +2 -2
- package/dist/segmented/index.d.ts +3 -3
- package/dist/select/index.d.ts +6 -6
- package/dist/select/index.js +2 -2
- package/dist/select/style/select-input-multiple.js +31 -29
- package/dist/select/style/select-input.js +50 -44
- package/dist/skeleton/Button.d.ts +2 -2
- package/dist/skeleton/Input.d.ts +2 -2
- package/dist/skeleton/Node.d.ts +3 -3
- package/dist/skeleton/Skeleton.d.ts +3 -3
- package/dist/slider/index.d.ts +3 -3
- package/dist/space/Compact.d.ts +2 -0
- package/dist/space/Compact.js +17 -4
- package/dist/space/index.d.ts +5 -5
- package/dist/space/style/addon.js +20 -19
- package/dist/spin/index.d.ts +3 -3
- package/dist/splitter/SplitBar.js +9 -2
- package/dist/splitter/Splitter.d.ts +3 -3
- package/dist/splitter/Splitter.js +2 -1
- package/dist/splitter/index.d.ts +2 -2
- package/dist/splitter/style/index.js +6 -6
- package/dist/statistic/Statistic.d.ts +3 -3
- package/dist/statistic/Timer.d.ts +5 -5
- package/dist/statistic/index.d.ts +5 -5
- package/dist/steps/ProgressIcon.js +9 -2
- package/dist/steps/index.d.ts +3 -3
- package/dist/steps/index.js +7 -4
- package/dist/steps/style/horizontal.js +13 -10
- package/dist/steps/style/icon.js +11 -8
- package/dist/steps/style/index.js +19 -18
- package/dist/steps/style/inline.js +19 -16
- package/dist/steps/style/label-placement.js +22 -20
- package/dist/steps/style/nav.js +7 -5
- package/dist/steps/style/panel.js +34 -32
- package/dist/steps/style/progress-dot.js +10 -8
- package/dist/steps/style/progress.js +29 -58
- package/dist/steps/style/rtl.js +6 -4
- package/dist/steps/style/small.js +10 -8
- package/dist/steps/style/status.js +124 -121
- package/dist/steps/style/util.js +7 -4
- package/dist/steps/style/vertical.js +17 -14
- package/dist/style/placementArrow.js +7 -5
- package/dist/switch/index.d.ts +3 -3
- package/dist/table/Column.d.ts +3 -3
- package/dist/table/ColumnGroup.d.ts +3 -3
- package/dist/table/InternalTable.js +1 -1
- package/dist/table/Table.d.ts +3 -3
- package/dist/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/tabs/TabPane.d.ts +3 -3
- package/dist/tabs/index.d.ts +3 -3
- package/dist/tag/CheckableTag.d.ts +3 -3
- package/dist/tag/CheckableTagGroup.d.ts +3 -3
- package/dist/tag/index.d.ts +3 -3
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/util/genStyleUtils.js +8 -5
- package/dist/time-picker/index.d.ts +7 -7
- package/dist/timeline/Timeline.d.ts +3 -3
- package/dist/tooltip/PurePanel.d.ts +2 -2
- package/dist/tooltip/PurePanel.js +3 -3
- package/dist/tooltip/UniqueProvider/index.d.ts +2 -2
- package/dist/tooltip/index.d.ts +3 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/style/index.js +10 -8
- package/dist/tooltip/util.js +5 -3
- package/dist/tour/index.d.ts +3 -3
- package/dist/tour/style/index.js +5 -4
- package/dist/transfer/Actions.d.ts +2 -2
- package/dist/transfer/Section.d.ts +2 -2
- package/dist/transfer/Transfer.d.ts +3 -3
- package/dist/transfer/Transfer.js +1 -1
- package/dist/transfer/search.d.ts +3 -3
- package/dist/tree/DirectoryTree.d.ts +3 -3
- package/dist/tree/Tree.d.ts +3 -3
- package/dist/tree-select/index.d.ts +4 -4
- package/dist/tree-select/index.js +1 -1
- package/dist/typography/Link.d.ts +3 -3
- package/dist/typography/Paragraph.d.ts +3 -3
- package/dist/typography/Text.d.ts +3 -3
- package/dist/typography/Title.d.ts +3 -3
- package/dist/typography/Typography.d.ts +3 -3
- package/dist/typography/index.d.ts +9 -9
- package/dist/upload/Dragger.d.ts +6 -3
- package/dist/upload/Upload.d.ts +3 -3
- package/dist/upload/index.d.ts +6 -3
- package/dist/watermark/index.d.ts +2 -2
- package/global.d.ts +2 -0
- package/package.json +22 -4
- package/web-tags.json +4524 -0
- package/web-types.json +12779 -0
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { resetIcon, textEllipsis } from "../../style/index.js";
|
|
2
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
3
|
|
|
3
4
|
//#region src/select/style/select-input-multiple.ts
|
|
4
5
|
const FIXED_INPUT_MIN_WIDTH = 4;
|
|
5
6
|
const genSelectInputMultipleStyle = (token) => {
|
|
6
|
-
const { componentCls, calc, iconCls, paddingXS, paddingXXS, INTERNAL_FIXED_ITEM_MARGIN, lineWidth, colorIcon, colorIconHover, inputPaddingHorizontalBase } = token;
|
|
7
|
+
const { componentCls, calc, iconCls, paddingXS, paddingXXS, INTERNAL_FIXED_ITEM_MARGIN, lineWidth, colorIcon, colorIconHover, inputPaddingHorizontalBase, antCls } = token;
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "select");
|
|
7
9
|
return { "&-multiple": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[`${componentCls}-prefix`]: { marginInlineStart: "
|
|
10
|
+
[varName("multi-item-background")]: token.multipleItemBg,
|
|
11
|
+
[varName("multi-item-border-color")]: "transparent",
|
|
12
|
+
[varName("multi-item-border-radius")]: token.borderRadiusSM,
|
|
13
|
+
[varName("multi-item-height")]: token.multipleItemHeight,
|
|
14
|
+
[varName("multi-padding-base")]: `calc((${varRef("height")} - ${varRef("multi-item-height")}) / 2)`,
|
|
15
|
+
[varName("multi-padding-vertical")]: `calc(${varRef("multi-padding-base")} - ${INTERNAL_FIXED_ITEM_MARGIN} - ${lineWidth})`,
|
|
16
|
+
[varName("multi-item-padding-horizontal")]: `calc(${inputPaddingHorizontalBase} - ${varRef("multi-padding-vertical")} - ${lineWidth} * 2)`,
|
|
17
|
+
paddingBlock: varRef("multi-padding-vertical"),
|
|
18
|
+
paddingInlineStart: `calc(${varRef("multi-padding-base")} - ${lineWidth})`,
|
|
19
|
+
[`${componentCls}-prefix`]: { marginInlineStart: varRef("multi-item-padding-horizontal") },
|
|
18
20
|
[`${componentCls}-prefix + ${componentCls}-content`]: {
|
|
19
21
|
[`${componentCls}-placeholder`]: { insetInlineStart: 0 },
|
|
20
22
|
[`${componentCls}-content-item${componentCls}-content-item-suffix`]: { marginInlineStart: 0 }
|
|
21
23
|
},
|
|
22
24
|
[`${componentCls}-placeholder`]: {
|
|
23
25
|
position: "absolute",
|
|
24
|
-
lineHeight: "
|
|
25
|
-
insetInlineStart: "
|
|
26
|
-
width:
|
|
26
|
+
lineHeight: varRef("line-height"),
|
|
27
|
+
insetInlineStart: varRef("multi-item-padding-horizontal"),
|
|
28
|
+
width: `calc(100% - ${varRef("multi-item-padding-horizontal")})`,
|
|
27
29
|
top: "50%",
|
|
28
30
|
transform: "translateY(-50%)"
|
|
29
31
|
},
|
|
@@ -31,21 +33,21 @@ const genSelectInputMultipleStyle = (token) => {
|
|
|
31
33
|
"flexWrap": "wrap",
|
|
32
34
|
"alignItems": "center",
|
|
33
35
|
"lineHeight": 1,
|
|
34
|
-
"&-item-prefix": { height: "
|
|
36
|
+
"&-item-prefix": { height: varRef("font-size") },
|
|
35
37
|
"&-item": {
|
|
36
38
|
lineHeight: 1,
|
|
37
39
|
maxWidth: `calc(100% - ${FIXED_INPUT_MIN_WIDTH}px)`
|
|
38
40
|
},
|
|
39
41
|
[`${componentCls}-content-item-prefix + ${componentCls}-content-item-suffix,
|
|
40
|
-
${componentCls}-content-item-suffix:first-child`]: { marginInlineStart: "
|
|
42
|
+
${componentCls}-content-item-suffix:first-child`]: { marginInlineStart: varRef("multi-item-padding-horizontal") },
|
|
41
43
|
[`${componentCls}-selection-item`]: {
|
|
42
|
-
"lineHeight": `calc(
|
|
43
|
-
"border": `${lineWidth} solid
|
|
44
|
+
"lineHeight": `calc(${varRef("multi-item-height")} - ${lineWidth} * 2)`,
|
|
45
|
+
"border": `${lineWidth} solid ${varRef("multi-item-border-color")}`,
|
|
44
46
|
"display": "flex",
|
|
45
47
|
"marginBlock": INTERNAL_FIXED_ITEM_MARGIN,
|
|
46
48
|
"marginInlineEnd": calc(INTERNAL_FIXED_ITEM_MARGIN).mul(2).equal(),
|
|
47
|
-
"background":
|
|
48
|
-
"borderRadius":
|
|
49
|
+
"background": varRef("multi-item-background"),
|
|
50
|
+
"borderRadius": varRef("multi-item-border-radius"),
|
|
49
51
|
"paddingInlineStart": paddingXS,
|
|
50
52
|
"paddingInlineEnd": paddingXXS,
|
|
51
53
|
"transition": [
|
|
@@ -71,25 +73,25 @@ const genSelectInputMultipleStyle = (token) => {
|
|
|
71
73
|
}
|
|
72
74
|
},
|
|
73
75
|
[`${componentCls}-input`]: {
|
|
74
|
-
lineHeight: calc(INTERNAL_FIXED_ITEM_MARGIN).mul(2).add("
|
|
75
|
-
width:
|
|
76
|
+
lineHeight: calc(INTERNAL_FIXED_ITEM_MARGIN).mul(2).add(varRef("multi-item-height")).equal(),
|
|
77
|
+
width: `calc(var(--select-input-width, 0) * 1px)`,
|
|
76
78
|
minWidth: FIXED_INPUT_MIN_WIDTH,
|
|
77
79
|
maxWidth: "100%",
|
|
78
80
|
transition: `line-height ${token.motionDurationSlow}`
|
|
79
81
|
}
|
|
80
82
|
},
|
|
81
83
|
[`&${componentCls}-sm`]: {
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
+
[varName("multi-item-height")]: token.multipleItemHeightSM,
|
|
85
|
+
[varName("multi-item-border-radius")]: token.borderRadiusXS
|
|
84
86
|
},
|
|
85
87
|
[`&${componentCls}-lg`]: {
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
+
[varName("multi-item-height")]: token.multipleItemHeightLG,
|
|
89
|
+
[varName("multi-item-border-radius")]: token.borderRadius
|
|
88
90
|
},
|
|
89
91
|
[`&${componentCls}-filled`]: {
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
[`&${componentCls}-disabled`]: { "
|
|
92
|
+
[varName("multi-item-border-color")]: token.colorSplit,
|
|
93
|
+
[varName("multi-item-background")]: token.colorBgContainer,
|
|
94
|
+
[`&${componentCls}-disabled`]: { [varName("multi-item-border-color")]: "transparent" }
|
|
93
95
|
}
|
|
94
96
|
} };
|
|
95
97
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { resetComponent, textEllipsis } from "../../style/index.js";
|
|
2
|
+
import { genCssVar } from "../../theme/util/genStyleUtils.js";
|
|
2
3
|
import select_input_customize_default from "./select-input-customize.js";
|
|
3
4
|
import select_input_multiple_default from "./select-input-multiple.js";
|
|
4
5
|
import { unit } from "@antdv-next/cssinjs";
|
|
@@ -6,27 +7,28 @@ import { unit } from "@antdv-next/cssinjs";
|
|
|
6
7
|
//#region src/select/style/select-input.ts
|
|
7
8
|
/** Set CSS variables and hover/focus styles for a Select input based on provided colors. */
|
|
8
9
|
function genSelectInputVariableStyle(token, colors) {
|
|
9
|
-
const { componentCls } = token;
|
|
10
|
+
const { componentCls, antCls } = token;
|
|
11
|
+
const [varName] = genCssVar(antCls, "select");
|
|
10
12
|
const { border, borderHover, borderActive, borderOutline } = colors;
|
|
11
|
-
const baseBG = colors.background || token.colorBgContainer;
|
|
13
|
+
const baseBG = colors.background || token.selectorBg || token.colorBgContainer;
|
|
12
14
|
return {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
15
|
+
[varName("border-color")]: border,
|
|
16
|
+
[varName("background-color")]: baseBG,
|
|
17
|
+
[varName("color")]: colors.color || token.colorText,
|
|
16
18
|
[`&:not(${componentCls}-disabled)`]: {
|
|
17
19
|
"&:hover": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
+
[varName("border-color")]: borderHover,
|
|
21
|
+
[varName("background-color")]: colors.backgroundHover || baseBG
|
|
20
22
|
},
|
|
21
23
|
[`&${componentCls}-focused`]: {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
24
|
+
[varName("border-color")]: borderActive,
|
|
25
|
+
[varName("background-color")]: colors.backgroundActive || baseBG,
|
|
26
|
+
boxShadow: `0 0 0 ${unit(token.controlOutlineWidth)} ${borderOutline}`
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
[`&${componentCls}-disabled`]: {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
+
[varName("border-color")]: colors.borderDisabled || colors.border,
|
|
31
|
+
[varName("background-color")]: colors.backgroundDisabled || colors.background
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
34
|
}
|
|
@@ -51,20 +53,21 @@ function genSelectInputVariantStyle(token, variant, colors, errorColors = {}, wa
|
|
|
51
53
|
] };
|
|
52
54
|
}
|
|
53
55
|
const genSelectInputStyle = (token) => {
|
|
54
|
-
const { componentCls,
|
|
56
|
+
const { componentCls, fontHeight, controlHeight, iconCls, antCls, calc } = token;
|
|
57
|
+
const [varName, varRef] = genCssVar(antCls, "select");
|
|
55
58
|
return { [componentCls]: [
|
|
56
59
|
{
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
60
|
+
[varName("border-radius")]: token.borderRadius,
|
|
61
|
+
[varName("border-color")]: "#000",
|
|
62
|
+
[varName("border-size")]: token.lineWidth,
|
|
63
|
+
[varName("background-color")]: token.colorBgContainer,
|
|
64
|
+
[varName("font-size")]: token.fontSize,
|
|
65
|
+
[varName("line-height")]: token.lineHeight,
|
|
66
|
+
[varName("font-height")]: fontHeight,
|
|
67
|
+
[varName("color")]: token.colorText,
|
|
68
|
+
[varName("height")]: controlHeight,
|
|
69
|
+
[varName("padding-horizontal")]: calc(token.paddingSM).sub(token.lineWidth).equal(),
|
|
70
|
+
[varName("padding-vertical")]: `calc((${varRef("height")} - ${varRef("font-height")}) / 2 - ${varRef("border-size")})`,
|
|
68
71
|
...resetComponent(token, true),
|
|
69
72
|
"display": "inline-flex",
|
|
70
73
|
"flexWrap": "nowrap",
|
|
@@ -73,16 +76,16 @@ const genSelectInputStyle = (token) => {
|
|
|
73
76
|
"alignItems": "flex-start",
|
|
74
77
|
"outline": 0,
|
|
75
78
|
"cursor": "pointer",
|
|
76
|
-
"borderRadius": "
|
|
77
|
-
"borderWidth": "
|
|
79
|
+
"borderRadius": varRef("border-radius"),
|
|
80
|
+
"borderWidth": varRef("border-size"),
|
|
78
81
|
"borderStyle": token.lineType,
|
|
79
|
-
"borderColor": "
|
|
80
|
-
"background": "
|
|
81
|
-
"fontSize": "
|
|
82
|
-
"lineHeight": "
|
|
83
|
-
"color": "
|
|
84
|
-
"paddingInline": "
|
|
85
|
-
"paddingBlock": "
|
|
82
|
+
"borderColor": varRef("border-color"),
|
|
83
|
+
"background": varRef("background-color"),
|
|
84
|
+
"fontSize": varRef("font-size"),
|
|
85
|
+
"lineHeight": varRef("line-height"),
|
|
86
|
+
"color": varRef("color"),
|
|
87
|
+
"paddingInline": varRef("padding-horizontal"),
|
|
88
|
+
"paddingBlock": varRef("padding-vertical"),
|
|
86
89
|
[`${componentCls}-prefix`]: {
|
|
87
90
|
flex: "none",
|
|
88
91
|
lineHeight: 1
|
|
@@ -129,19 +132,21 @@ const genSelectInputStyle = (token) => {
|
|
|
129
132
|
"&-disabled": {
|
|
130
133
|
background: token.colorBgContainerDisabled,
|
|
131
134
|
color: token.colorTextDisabled,
|
|
132
|
-
cursor: "not-allowed"
|
|
135
|
+
cursor: "not-allowed",
|
|
136
|
+
input: { cursor: "not-allowed" }
|
|
133
137
|
},
|
|
134
138
|
"&-sm": {
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
139
|
+
[varName("height")]: token.controlHeightSM,
|
|
140
|
+
[varName("padding-horizontal")]: calc(token.paddingXS).sub(token.lineWidth).equal(),
|
|
141
|
+
[varName("border-radius")]: token.borderRadiusSM,
|
|
142
|
+
[`${componentCls}-clear`]: { insetInlineEnd: varRef("padding-horizontal") }
|
|
138
143
|
},
|
|
139
144
|
"&-lg": {
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
+
[varName("height")]: token.controlHeightLG,
|
|
146
|
+
[varName("font-size")]: token.fontSizeLG,
|
|
147
|
+
[varName("line-height")]: token.lineHeightLG,
|
|
148
|
+
[varName("font-height")]: token.fontHeightLG,
|
|
149
|
+
[varName("border-radius")]: token.borderRadiusLG
|
|
145
150
|
}
|
|
146
151
|
},
|
|
147
152
|
{ [`&:not(${componentCls}-customize)`]: { [`${componentCls}-input`]: {
|
|
@@ -161,11 +166,12 @@ const genSelectInputStyle = (token) => {
|
|
|
161
166
|
[`${componentCls}-input`]: {
|
|
162
167
|
position: "absolute",
|
|
163
168
|
insetInline: 0,
|
|
164
|
-
insetBlock:
|
|
165
|
-
lineHeight:
|
|
169
|
+
insetBlock: `calc(${varRef("padding-vertical")} * -1)`,
|
|
170
|
+
lineHeight: `calc(${varRef("font-height")} + ${varRef("padding-vertical")} * 2)`
|
|
166
171
|
},
|
|
167
172
|
[`${componentCls}-content`]: { alignSelf: "center" }
|
|
168
173
|
} },
|
|
174
|
+
{ [`&-show-search:not(${componentCls}-customize-input):not(${componentCls}-disabled)`]: { cursor: "text" } },
|
|
169
175
|
select_input_multiple_default(token),
|
|
170
176
|
genSelectInputVariantStyle(token, "outlined", {
|
|
171
177
|
border: token.colorBorder,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue430 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Button.d.ts
|
|
5
5
|
interface SkeletonButtonProps extends Omit<SkeletonElementProps, 'size'> {
|
|
6
6
|
size?: 'large' | 'small' | 'default';
|
|
7
7
|
block?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const SkeletonButton:
|
|
9
|
+
declare const SkeletonButton: vue430.DefineSetupFnComponent<SkeletonButtonProps, {}, {}, SkeletonButtonProps & {}, vue430.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SkeletonButton };
|
package/dist/skeleton/Input.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SkeletonElementProps } from "./Element.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue438 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/skeleton/Input.d.ts
|
|
5
5
|
interface SkeletonInputProps extends Omit<SkeletonElementProps, 'size' | 'shape'> {
|
|
6
6
|
size?: 'large' | 'small' | 'default';
|
|
7
7
|
block?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const SkeletonInput:
|
|
9
|
+
declare const SkeletonInput: vue438.DefineSetupFnComponent<SkeletonInputProps, {}, {}, SkeletonInputProps & {}, vue438.PublicProps>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SkeletonInput };
|
package/dist/skeleton/Node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyEmit } from "../_util/type.js";
|
|
2
2
|
import { SkeletonElementProps } from "./Element.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue428 from "vue";
|
|
4
4
|
import { SlotsType } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/skeleton/Node.d.ts
|
|
@@ -10,8 +10,8 @@ interface SkeletonNodeProps extends Omit<SkeletonElementProps, 'size' | 'shape'>
|
|
|
10
10
|
interface SkeletonNodeSlots {
|
|
11
11
|
default?: () => any;
|
|
12
12
|
}
|
|
13
|
-
declare const SkeletonNode:
|
|
13
|
+
declare const SkeletonNode: vue428.DefineSetupFnComponent<SkeletonNodeProps, EmptyEmit, SlotsType<SkeletonNodeSlots>, SkeletonNodeProps & {
|
|
14
14
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
15
|
-
},
|
|
15
|
+
}, vue428.PublicProps>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { SkeletonNode };
|
|
@@ -9,7 +9,7 @@ import { SkeletonImage } from "./Image.js";
|
|
|
9
9
|
import { SkeletonInput } from "./Input.js";
|
|
10
10
|
import { SkeletonNode } from "./Node.js";
|
|
11
11
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
12
|
-
import * as
|
|
12
|
+
import * as vue282 from "vue";
|
|
13
13
|
import { SlotsType } from "vue";
|
|
14
14
|
|
|
15
15
|
//#region src/skeleton/Skeleton.d.ts
|
|
@@ -30,9 +30,9 @@ interface SkeletonProps extends ComponentBaseProps {
|
|
|
30
30
|
interface SkeletonSlots {
|
|
31
31
|
default?: () => any;
|
|
32
32
|
}
|
|
33
|
-
declare const Skeleton:
|
|
33
|
+
declare const Skeleton: vue282.DefineSetupFnComponent<SkeletonProps, EmptyEmit, SlotsType<SkeletonSlots>, SkeletonProps & {
|
|
34
34
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
35
|
-
},
|
|
35
|
+
}, vue282.PublicProps>;
|
|
36
36
|
type SkeletonType = typeof Skeleton & {
|
|
37
37
|
Button: typeof SkeletonButton;
|
|
38
38
|
Avatar: typeof SkeletonAvatar;
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
|
|
|
2
2
|
import { Orientation } from "../_util/hooks/useOrientation.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { TooltipPlacement, TriggerCommonApi } from "../tooltip/index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue169 from "vue";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
import { SliderProps } from "@v-c/slider";
|
|
8
8
|
|
|
@@ -69,8 +69,8 @@ interface SliderEmits {
|
|
|
69
69
|
}
|
|
70
70
|
interface SliderSlots {}
|
|
71
71
|
type SliderRange = SliderProps['range'];
|
|
72
|
-
declare const Slider:
|
|
72
|
+
declare const Slider: vue169.DefineSetupFnComponent<SliderInternalProps, SliderEmits, SlotsType<SliderSlots>, SliderInternalProps & {
|
|
73
73
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
74
|
-
},
|
|
74
|
+
}, vue169.PublicProps>;
|
|
75
75
|
//#endregion
|
|
76
76
|
export { Slider, SliderEmits, SliderProps$1 as SliderProps };
|
package/dist/space/Compact.d.ts
CHANGED
package/dist/space/Compact.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useConfig } from "../config-provider/context.js";
|
|
2
|
+
import { useOrientation } from "../_util/hooks/useOrientation.js";
|
|
2
3
|
import { useSize } from "../config-provider/hooks/useSize.js";
|
|
3
4
|
import compact_default from "./style/compact.js";
|
|
4
|
-
import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref } from "vue";
|
|
5
|
+
import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref, toRefs } from "vue";
|
|
5
6
|
import { classNames } from "@v-c/util";
|
|
6
7
|
import { filterEmpty } from "@v-c/util/dist/props-util";
|
|
7
8
|
|
|
@@ -73,20 +74,22 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
73
74
|
const prefixCls = computed(() => configContext.value?.getPrefixCls?.("space-compact", props.prefixCls));
|
|
74
75
|
const [hashId, cssVarCls] = compact_default(prefixCls);
|
|
75
76
|
const compactItemContext = useSpaceCompactItemContext();
|
|
77
|
+
const { direction, vertical, orientation } = toRefs(props);
|
|
78
|
+
const [mergedOrientation, mergedVertical] = useOrientation(orientation, vertical, direction);
|
|
76
79
|
return () => {
|
|
77
|
-
const { rootClass,
|
|
80
|
+
const { rootClass, block } = props;
|
|
78
81
|
const directionConfig = configContext.value?.direction;
|
|
79
82
|
const clx = classNames(prefixCls.value, hashId.value, cssVarCls.value, {
|
|
80
83
|
[`${prefixCls.value}-rtl`]: directionConfig === "rtl",
|
|
81
84
|
[`${prefixCls.value}-block`]: block,
|
|
82
|
-
[`${prefixCls.value}-vertical`]:
|
|
85
|
+
[`${prefixCls.value}-vertical`]: mergedVertical.value
|
|
83
86
|
}, rootClass);
|
|
84
87
|
const childNodes = filterEmpty(slots?.default?.());
|
|
85
88
|
const nodes = childNodes.map((child, i) => {
|
|
86
89
|
const key = child?.key || `${prefixCls.value}-item-${i}`;
|
|
87
90
|
return createVNode(CompactItem, {
|
|
88
91
|
"compactSize": mergedSize.value,
|
|
89
|
-
"compactDirection":
|
|
92
|
+
"compactDirection": mergedOrientation.value,
|
|
90
93
|
"isFirstItem": i === 0 && (!compactItemContext.value || compactItemContext.value?.isFirstItem),
|
|
91
94
|
"key": key,
|
|
92
95
|
"isLastItem": i === childNodes.length - 1 && (!compactItemContext.value || compactItemContext.value?.isLastItem)
|
|
@@ -112,6 +115,16 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
112
115
|
required: false,
|
|
113
116
|
default: void 0
|
|
114
117
|
},
|
|
118
|
+
orientation: {
|
|
119
|
+
type: String,
|
|
120
|
+
required: false,
|
|
121
|
+
default: void 0
|
|
122
|
+
},
|
|
123
|
+
vertical: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
required: false,
|
|
126
|
+
default: void 0
|
|
127
|
+
},
|
|
115
128
|
rootClass: {
|
|
116
129
|
type: String,
|
|
117
130
|
required: false,
|
package/dist/space/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import "../_util/hooks/index.js";
|
|
|
6
6
|
import { SpaceCompactProps } from "./Compact.js";
|
|
7
7
|
import { SpaceCompactCellProps } from "./Addon.js";
|
|
8
8
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
9
|
-
import * as
|
|
9
|
+
import * as vue80 from "vue";
|
|
10
10
|
import { SlotsType } from "vue";
|
|
11
11
|
|
|
12
12
|
//#region src/space/index.d.ts
|
|
@@ -30,10 +30,10 @@ interface SpaceSlots {
|
|
|
30
30
|
default?: () => any;
|
|
31
31
|
separator?: () => any;
|
|
32
32
|
}
|
|
33
|
-
declare const Space:
|
|
33
|
+
declare const Space: vue80.DefineSetupFnComponent<SpaceProps, EmptyEmit, SlotsType<SpaceSlots>, SpaceProps & {
|
|
34
34
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
35
|
-
},
|
|
36
|
-
declare const SpaceCompact:
|
|
37
|
-
declare const SpaceAddon:
|
|
35
|
+
}, vue80.PublicProps>;
|
|
36
|
+
declare const SpaceCompact: vue80.DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, vue80.PublicProps>;
|
|
37
|
+
declare const SpaceAddon: vue80.DefineSetupFnComponent<SpaceCompactCellProps, {}, {}, SpaceCompactCellProps & {}, vue80.PublicProps>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Space, SpaceAddon, SpaceCompact, SpaceProps, SpaceSize, SpaceSlots };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
1
|
+
import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
|
|
2
2
|
import "../../theme/internal.js";
|
|
3
3
|
import { genCompactItemStyle } from "../../style/compact-item.js";
|
|
4
4
|
|
|
5
5
|
//#region src/space/style/addon.ts
|
|
6
6
|
const genSpaceAddonStyle = (token) => {
|
|
7
|
-
const { componentCls, borderRadius, paddingSM, colorBorder, paddingXS, fontSizeLG, fontSizeSM, borderRadiusLG, borderRadiusSM, colorBgContainerDisabled, lineWidth } = token;
|
|
7
|
+
const { componentCls, borderRadius, paddingSM, colorBorder, paddingXS, fontSizeLG, fontSizeSM, borderRadiusLG, borderRadiusSM, colorBgContainerDisabled, lineWidth, antCls } = token;
|
|
8
|
+
const [varName, varRef] = genCssVar(antCls, "space");
|
|
8
9
|
return { [componentCls]: [
|
|
9
10
|
{
|
|
10
11
|
"display": "inline-flex",
|
|
@@ -39,19 +40,19 @@ const genSpaceAddonStyle = (token) => {
|
|
|
39
40
|
"&-compact-item:not(:first-child)": { borderInlineStartWidth: 0 }
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"borderColor": "
|
|
47
|
-
"background": "
|
|
48
|
-
"&-variant-outlined": { "
|
|
43
|
+
[varName("addon-border-color")]: colorBorder,
|
|
44
|
+
[varName("addon-background")]: colorBgContainerDisabled,
|
|
45
|
+
[varName("addon-border-color-outlined")]: colorBorder,
|
|
46
|
+
[varName("addon-background-filled")]: colorBgContainerDisabled,
|
|
47
|
+
"borderColor": varRef("addon-border-color"),
|
|
48
|
+
"background": varRef("addon-background"),
|
|
49
|
+
"&-variant-outlined": { [varName("addon-border-color")]: varRef("addon-border-color-outlined") },
|
|
49
50
|
"&-variant-filled": {
|
|
50
|
-
"
|
|
51
|
-
"
|
|
51
|
+
[varName("addon-border-color")]: "transparent",
|
|
52
|
+
[varName("addon-background")]: varRef("addon-background-filled"),
|
|
52
53
|
[`&${componentCls}-disabled`]: {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
54
|
+
[varName("addon-border-color")]: colorBorder,
|
|
55
|
+
[varName("addon-background")]: colorBgContainerDisabled
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
"&-variant-borderless": {
|
|
@@ -65,14 +66,14 @@ const genSpaceAddonStyle = (token) => {
|
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"&-status-error": {
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
69
|
+
[varName("addon-border-color-outlined")]: token.colorError,
|
|
70
|
+
[varName("addon-background-filled")]: token.colorErrorBg,
|
|
71
|
+
color: token.colorError
|
|
71
72
|
},
|
|
72
73
|
"&-status-warning": {
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
74
|
+
[varName("addon-border-color-outlined")]: token.colorWarning,
|
|
75
|
+
[varName("addon-background-filled")]: token.colorWarningBg,
|
|
76
|
+
color: token.colorWarning
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
] };
|
package/dist/spin/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EmptyEmit, VueNode } from "../_util/type.js";
|
|
|
2
2
|
import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMergeSemantic.js";
|
|
3
3
|
import "../_util/hooks/index.js";
|
|
4
4
|
import { ComponentBaseProps } from "../config-provider/context.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue104 from "vue";
|
|
6
6
|
import { CSSProperties, SlotsType } from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/spin/index.d.ts
|
|
@@ -37,9 +37,9 @@ interface SpinSlots {
|
|
|
37
37
|
tip?: () => any;
|
|
38
38
|
default?: () => any;
|
|
39
39
|
}
|
|
40
|
-
declare const Spin:
|
|
40
|
+
declare const Spin: vue104.DefineSetupFnComponent<SpinProps, EmptyEmit, SlotsType<SpinSlots>, SpinProps & {
|
|
41
41
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
42
|
-
},
|
|
42
|
+
}, vue104.PublicProps>;
|
|
43
43
|
declare const _default: typeof Spin & {
|
|
44
44
|
setDefaultIndicator: (indicator: VueNode) => void;
|
|
45
45
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { genCssVar } from "../theme/util/genStyleUtils.js";
|
|
1
2
|
import { getSlotPropsFnRun, toPropsRefs } from "../_util/tools.js";
|
|
2
3
|
import { computed, createVNode, defineComponent, mergeProps, shallowRef, watch } from "vue";
|
|
3
4
|
import { clsx } from "@v-c/util";
|
|
@@ -8,8 +9,9 @@ function getValidNumber(num) {
|
|
|
8
9
|
return typeof num === "number" && !Number.isNaN(num) && Number.isFinite(num) ? Math.round(num) : 0;
|
|
9
10
|
}
|
|
10
11
|
const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
11
|
-
const { vertical, resizable, index, containerSize, ariaNow, ariaMin, ariaMax, prefixCls, lazy } = toPropsRefs(props, "vertical", "resizable", "index", "containerSize", "ariaNow", "ariaMin", "ariaMax", "prefixCls", "lazy");
|
|
12
|
+
const { vertical, resizable, index, containerSize, ariaNow, ariaMin, ariaMax, prefixCls, rootPrefixCls, lazy } = toPropsRefs(props, "vertical", "resizable", "index", "containerSize", "ariaNow", "ariaMin", "ariaMax", "prefixCls", "rootPrefixCls", "lazy");
|
|
12
13
|
const splitBarPrefixCls = computed(() => `${prefixCls.value}-bar`);
|
|
14
|
+
const barVarName = computed(() => genCssVar(rootPrefixCls.value, "splitter")[0]);
|
|
13
15
|
const startPos = shallowRef();
|
|
14
16
|
const constrainedOffset = shallowRef(0);
|
|
15
17
|
const constrainedOffsetX = computed(() => vertical.value ? 0 : constrainedOffset.value);
|
|
@@ -97,7 +99,7 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
97
99
|
});
|
|
98
100
|
return () => {
|
|
99
101
|
const { collapsibleIcon, draggerClassName, draggerStyle, active, startCollapsible, showStartCollapsibleIcon, onCollapse, endCollapsible, showEndCollapsibleIcon } = props;
|
|
100
|
-
const transformStyle = { [
|
|
102
|
+
const transformStyle = { [barVarName.value("bar-preview-offset")]: `${constrainedOffset.value}px` };
|
|
101
103
|
const propCollapsibleIconStart = collapsibleIcon?.start;
|
|
102
104
|
const propCollapsibleIconEnd = collapsibleIcon?.end;
|
|
103
105
|
const collapsibleIconStart = getSlotPropsFnRun(slots, { collapsibleIconStart: propCollapsibleIconStart }, "collapsibleIconStart", false);
|
|
@@ -181,6 +183,11 @@ const SplitBar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
181
183
|
required: true,
|
|
182
184
|
default: void 0
|
|
183
185
|
},
|
|
186
|
+
rootPrefixCls: {
|
|
187
|
+
type: String,
|
|
188
|
+
required: true,
|
|
189
|
+
default: void 0
|
|
190
|
+
},
|
|
184
191
|
resizable: {
|
|
185
192
|
type: Boolean,
|
|
186
193
|
required: true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SplitterEmits, SplitterProps, SplitterSlots } from "./interface.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue394 from "vue";
|
|
3
3
|
import { SlotsType } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/splitter/Splitter.d.ts
|
|
6
|
-
declare const Splitter:
|
|
6
|
+
declare const Splitter: vue394.DefineSetupFnComponent<SplitterProps, SplitterEmits, SlotsType<SplitterSlots>, SplitterProps & {
|
|
7
7
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
8
|
-
},
|
|
8
|
+
}, vue394.PublicProps>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Splitter };
|
|
@@ -19,7 +19,7 @@ import ResizeObserver from "@v-c/resize-observer";
|
|
|
19
19
|
|
|
20
20
|
//#region src/splitter/Splitter.tsx
|
|
21
21
|
const Splitter = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs }) => {
|
|
22
|
-
const { prefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
|
|
22
|
+
const { prefixCls, rootPrefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
|
|
23
23
|
const { classes, styles, orientation, layout, vertical } = toPropsRefs(props, "classes", "styles", "orientation", "layout", "vertical");
|
|
24
24
|
const rootCls = useCSSVarCls_default(prefixCls);
|
|
25
25
|
const [hashId, cssVarCls] = style_default(prefixCls, rootCls);
|
|
@@ -121,6 +121,7 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
|
|
|
121
121
|
"index": idx,
|
|
122
122
|
"active": movingIndex.value === idx,
|
|
123
123
|
"prefixCls": prefixCls.value,
|
|
124
|
+
"rootPrefixCls": rootPrefixCls.value,
|
|
124
125
|
"vertical": isVertical.value,
|
|
125
126
|
"resizable": resizableInfo.resizable,
|
|
126
127
|
"draggerStyle": mergedStyles.value.dragger,
|
package/dist/splitter/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InternalPanelProps, SplitterEmits, SplitterProps, SplitterSlots } from "./interface.js";
|
|
2
2
|
import { Splitter } from "./Splitter.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue110 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/splitter/index.d.ts
|
|
6
|
-
declare const SplitterPanel:
|
|
6
|
+
declare const SplitterPanel: vue110.DefineSetupFnComponent<InternalPanelProps, {}, {}, InternalPanelProps & {}, vue110.PublicProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { SplitterPanel };
|