naive-ui 2.20.3 → 2.21.0
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/es/_internal/select-menu/src/SelectMenu.d.ts +3 -0
- package/es/_internal/selection/src/Selection.d.ts +3 -0
- package/es/_internal/suffix/src/Suffix.d.ts +4 -1
- package/es/_internal/suffix/src/Suffix.js +4 -1
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +3 -0
- package/es/_styles/common/light.js +5 -2
- package/es/_styles/global/index.cssr.js +9 -4
- package/es/_styles/transitions/icon-switch.cssr.js +6 -2
- package/es/_utils/naive/extract-public-props.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +3 -0
- package/es/auto-complete/src/AutoComplete.d.ts +8 -1
- package/es/auto-complete/src/AutoComplete.js +2 -2
- package/es/avatar/src/Avatar.d.ts +8 -1
- package/es/avatar/src/Avatar.js +41 -9
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +149 -52
- package/es/button/src/Button.js +128 -56
- package/es/button/src/interface.d.ts +1 -1
- package/es/button/styles/dark.js +3 -0
- package/es/button/styles/light.d.ts +14 -5
- package/es/button/styles/light.js +10 -3
- package/es/calendar/src/Calendar.d.ts +143 -50
- package/es/calendar/styles/light.d.ts +14 -5
- package/es/card/src/Card.d.ts +3 -0
- package/es/cascader/src/Cascader.d.ts +3 -0
- package/es/cascader/src/CascaderOption.d.ts +3 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -0
- package/es/checkbox/src/Checkbox.d.ts +8 -5
- package/es/checkbox/src/Checkbox.js +3 -3
- package/es/collapse/src/Collapse.d.ts +3 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +17 -5
- package/es/color-picker/src/ColorPicker.d.ts +126 -45
- package/es/color-picker/styles/light.d.ts +14 -5
- package/es/data-table/src/DataTable.d.ts +183 -51
- package/es/data-table/src/DataTable.js +11 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -5
- package/es/data-table/src/TableParts/Body.d.ts +25 -6
- package/es/data-table/src/TableParts/Body.js +60 -22
- package/es/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +40 -10
- package/es/data-table/src/TableParts/Header.d.ts +20 -5
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +8 -9
- package/es/data-table/styles/light.d.ts +20 -5
- package/es/data-table/styles/light.js +3 -3
- package/es/date-picker/src/DatePicker.d.ts +298 -105
- package/es/date-picker/src/panel/date.d.ts +45 -15
- package/es/date-picker/src/panel/daterange.d.ts +45 -15
- package/es/date-picker/src/panel/datetime.d.ts +45 -15
- package/es/date-picker/src/panel/datetimerange.d.ts +45 -15
- package/es/date-picker/src/panel/month.d.ts +45 -15
- package/es/date-picker/src/panel/use-calendar.d.ts +45 -15
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +45 -15
- package/es/date-picker/src/panel/use-panel-common.d.ts +45 -15
- package/es/date-picker/styles/light.d.ts +28 -10
- package/es/dialog/src/Dialog.d.ts +101 -35
- package/es/dialog/styles/light.d.ts +14 -5
- package/es/drawer/src/Drawer.d.ts +3 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +3 -0
- package/es/drawer/src/DrawerContent.d.ts +3 -0
- package/es/dropdown/index.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +5 -2
- package/es/dropdown/src/DropdownGroup.d.ts +2 -3
- package/es/dropdown/src/DropdownMenu.d.ts +3 -4
- package/es/dropdown/src/DropdownMenu.js +5 -4
- package/es/dropdown/src/DropdownOption.d.ts +3 -4
- package/es/dropdown/src/DropdownOption.js +2 -2
- package/es/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/es/dropdown/src/interface.d.ts +9 -30
- package/es/dropdown/src/utils.d.ts +1 -0
- package/es/dropdown/src/utils.js +10 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +143 -50
- package/es/dynamic-input/src/InputPreset.d.ts +17 -5
- package/es/dynamic-input/src/PairPreset.d.ts +17 -5
- package/es/dynamic-input/styles/light.d.ts +14 -5
- package/es/dynamic-tags/src/DynamicTags.d.ts +144 -50
- package/es/dynamic-tags/styles/light.d.ts +14 -5
- package/es/ellipsis/src/Ellipsis.d.ts +3 -0
- package/es/global-style/src/GlobalStyle.js +2 -0
- package/es/input/src/Input.d.ts +4 -0
- package/es/input/src/Input.js +6 -0
- package/es/input/src/interface.d.ts +1 -0
- package/es/input-number/src/InputNumber.d.ts +144 -50
- package/es/input-number/styles/light.d.ts +14 -5
- package/es/layout/src/Layout.d.ts +6 -0
- package/es/layout/src/LayoutContent.d.ts +3 -0
- package/es/layout/src/LayoutSider.d.ts +3 -0
- package/es/log/src/Log.d.ts +3 -0
- package/es/mention/src/Mention.d.ts +4 -0
- package/es/menu/index.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +19 -6
- package/es/menu/src/Menu.js +2 -1
- package/es/menu/src/MenuDivider.d.ts +2 -0
- package/es/menu/src/MenuDivider.js +11 -0
- package/es/menu/src/MenuOption.d.ts +8 -1
- package/es/menu/src/MenuOptionContent.d.ts +4 -1
- package/es/menu/src/Submenu.d.ts +18 -16
- package/es/menu/src/interface.d.ts +23 -4
- package/es/menu/src/styles/index.cssr.js +6 -1
- package/es/menu/src/utils.d.ts +4 -2
- package/es/menu/src/utils.js +16 -2
- package/es/menu/styles/light.d.ts +2 -0
- package/es/menu/styles/light.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +31 -10
- package/es/modal/src/Modal.d.ts +168 -60
- package/es/modal/styles/light.d.ts +14 -5
- package/es/notification/src/NotificationContainer.d.ts +3 -0
- package/es/pagination/src/Pagination.d.ts +4 -0
- package/es/popconfirm/src/Popconfirm.d.ts +143 -50
- package/es/popconfirm/styles/light.d.ts +14 -5
- package/es/popselect/src/Popselect.d.ts +3 -0
- package/es/popselect/src/PopselectPanel.d.ts +3 -0
- package/es/radio/src/Radio.d.ts +3 -0
- package/es/radio/src/RadioButton.d.ts +3 -0
- package/es/radio/src/use-radio.d.ts +2 -0
- package/es/radio/src/use-radio.js +6 -3
- package/es/select/src/Select.d.ts +3 -0
- package/es/slider/src/Slider.d.ts +70 -91
- package/es/slider/src/Slider.js +326 -583
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/styles/index.cssr.js +86 -16
- package/es/slider/src/utils.d.ts +10 -1
- package/es/slider/src/utils.js +9 -0
- package/es/slider/styles/_common.d.ts +1 -0
- package/es/slider/styles/_common.js +1 -0
- package/es/slider/styles/light.d.ts +1 -0
- package/es/space/src/Space.js +2 -0
- package/es/steps/src/Step.js +1 -1
- package/es/table/src/Table.d.ts +35 -0
- package/es/table/src/Table.js +8 -4
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/table/styles/light.d.ts +3 -0
- package/es/table/styles/light.js +2 -2
- package/es/tabs/index.d.ts +2 -0
- package/es/tabs/index.js +1 -0
- package/es/tabs/src/Tab.d.ts +35 -18
- package/es/tabs/src/Tab.js +11 -12
- package/es/tabs/src/Tabs.js +58 -18
- package/es/tag/src/Tag.d.ts +8 -3
- package/es/tag/src/Tag.js +10 -2
- package/es/tag/src/styles/index.cssr.js +10 -5
- package/es/tag/src/styles/rtl.cssr.js +7 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/es/time-picker/src/Panel.d.ts +17 -5
- package/es/time-picker/src/TimePicker.d.ts +144 -50
- package/es/time-picker/styles/light.d.ts +14 -5
- package/es/tooltip/src/Tooltip.d.ts +3 -0
- package/es/transfer/src/Transfer.d.ts +143 -50
- package/es/transfer/src/TransferFilter.d.ts +17 -5
- package/es/transfer/src/TransferList.d.ts +17 -5
- package/es/transfer/src/TransferListItem.d.ts +17 -5
- package/es/transfer/styles/light.d.ts +14 -5
- package/es/tree/src/Tree.d.ts +3 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +3 -0
- package/es/tree-select/src/TreeSelect.d.ts +3 -0
- package/es/upload/src/Upload.d.ts +143 -50
- package/es/upload/src/UploadFile.d.ts +18 -6
- package/es/upload/src/UploadProgress.d.ts +17 -5
- package/es/upload/styles/light.d.ts +14 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -0
- package/lib/_internal/selection/src/Selection.d.ts +3 -0
- package/lib/_internal/suffix/src/Suffix.d.ts +4 -1
- package/lib/_internal/suffix/src/Suffix.js +4 -1
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +3 -0
- package/lib/_styles/common/light.js +5 -2
- package/lib/_styles/global/index.cssr.js +10 -5
- package/lib/_styles/transitions/icon-switch.cssr.js +7 -2
- package/lib/_utils/naive/extract-public-props.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +3 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +8 -1
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/avatar/src/Avatar.d.ts +8 -1
- package/lib/avatar/src/Avatar.js +40 -8
- package/lib/avatar/src/styles/index.cssr.js +2 -2
- package/lib/button/src/Button.d.ts +149 -52
- package/lib/button/src/Button.js +126 -54
- package/lib/button/src/interface.d.ts +1 -1
- package/lib/button/styles/dark.js +3 -0
- package/lib/button/styles/light.d.ts +14 -5
- package/lib/button/styles/light.js +10 -3
- package/lib/calendar/src/Calendar.d.ts +143 -50
- package/lib/calendar/styles/light.d.ts +14 -5
- package/lib/card/src/Card.d.ts +3 -0
- package/lib/cascader/src/Cascader.d.ts +3 -0
- package/lib/cascader/src/CascaderOption.d.ts +3 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -0
- package/lib/checkbox/src/Checkbox.d.ts +8 -5
- package/lib/checkbox/src/Checkbox.js +3 -3
- package/lib/collapse/src/Collapse.d.ts +3 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +17 -5
- package/lib/color-picker/src/ColorPicker.d.ts +126 -45
- package/lib/color-picker/styles/light.d.ts +14 -5
- package/lib/data-table/src/DataTable.d.ts +183 -51
- package/lib/data-table/src/DataTable.js +11 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -5
- package/lib/data-table/src/TableParts/Body.d.ts +25 -6
- package/lib/data-table/src/TableParts/Body.js +60 -22
- package/lib/data-table/src/TableParts/BodyCheckbox.js +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +40 -10
- package/lib/data-table/src/TableParts/Header.d.ts +20 -5
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +8 -9
- package/lib/data-table/styles/light.d.ts +20 -5
- package/lib/data-table/styles/light.js +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +298 -105
- package/lib/date-picker/src/panel/date.d.ts +45 -15
- package/lib/date-picker/src/panel/daterange.d.ts +45 -15
- package/lib/date-picker/src/panel/datetime.d.ts +45 -15
- package/lib/date-picker/src/panel/datetimerange.d.ts +45 -15
- package/lib/date-picker/src/panel/month.d.ts +45 -15
- package/lib/date-picker/src/panel/use-calendar.d.ts +45 -15
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +45 -15
- package/lib/date-picker/src/panel/use-panel-common.d.ts +45 -15
- package/lib/date-picker/styles/light.d.ts +28 -10
- package/lib/dialog/src/Dialog.d.ts +101 -35
- package/lib/dialog/styles/light.d.ts +14 -5
- package/lib/drawer/src/Drawer.d.ts +3 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +3 -0
- package/lib/drawer/src/DrawerContent.d.ts +3 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +5 -2
- package/lib/dropdown/src/DropdownGroup.d.ts +2 -3
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -4
- package/lib/dropdown/src/DropdownMenu.js +5 -4
- package/lib/dropdown/src/DropdownOption.d.ts +3 -4
- package/lib/dropdown/src/DropdownOption.js +1 -1
- package/lib/dropdown/src/DropdownRenderOption.d.ts +2 -3
- package/lib/dropdown/src/interface.d.ts +9 -30
- package/lib/dropdown/src/utils.d.ts +1 -0
- package/lib/dropdown/src/utils.js +12 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +143 -50
- package/lib/dynamic-input/src/InputPreset.d.ts +17 -5
- package/lib/dynamic-input/src/PairPreset.d.ts +17 -5
- package/lib/dynamic-input/styles/light.d.ts +14 -5
- package/lib/dynamic-tags/src/DynamicTags.d.ts +144 -50
- package/lib/dynamic-tags/styles/light.d.ts +14 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +3 -0
- package/lib/global-style/src/GlobalStyle.js +2 -0
- package/lib/input/src/Input.d.ts +4 -0
- package/lib/input/src/Input.js +6 -0
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input-number/src/InputNumber.d.ts +144 -50
- package/lib/input-number/styles/light.d.ts +14 -5
- package/lib/layout/src/Layout.d.ts +6 -0
- package/lib/layout/src/LayoutContent.d.ts +3 -0
- package/lib/layout/src/LayoutSider.d.ts +3 -0
- package/lib/log/src/Log.d.ts +3 -0
- package/lib/mention/src/Mention.d.ts +4 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +19 -6
- package/lib/menu/src/Menu.js +2 -1
- package/lib/menu/src/MenuDivider.d.ts +2 -0
- package/lib/menu/src/MenuDivider.js +13 -0
- package/lib/menu/src/MenuOption.d.ts +8 -1
- package/lib/menu/src/MenuOptionContent.d.ts +4 -1
- package/lib/menu/src/Submenu.d.ts +18 -16
- package/lib/menu/src/interface.d.ts +23 -4
- package/lib/menu/src/styles/index.cssr.js +6 -1
- package/lib/menu/src/utils.d.ts +4 -2
- package/lib/menu/src/utils.js +22 -3
- package/lib/menu/styles/light.d.ts +2 -0
- package/lib/menu/styles/light.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +31 -10
- package/lib/modal/src/Modal.d.ts +168 -60
- package/lib/modal/styles/light.d.ts +14 -5
- package/lib/notification/src/NotificationContainer.d.ts +3 -0
- package/lib/pagination/src/Pagination.d.ts +4 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +143 -50
- package/lib/popconfirm/styles/light.d.ts +14 -5
- package/lib/popselect/src/Popselect.d.ts +3 -0
- package/lib/popselect/src/PopselectPanel.d.ts +3 -0
- package/lib/radio/src/Radio.d.ts +3 -0
- package/lib/radio/src/RadioButton.d.ts +3 -0
- package/lib/radio/src/use-radio.d.ts +2 -0
- package/lib/radio/src/use-radio.js +6 -3
- package/lib/select/src/Select.d.ts +3 -0
- package/lib/slider/src/Slider.d.ts +70 -91
- package/lib/slider/src/Slider.js +324 -581
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/styles/index.cssr.js +86 -16
- package/lib/slider/src/utils.d.ts +10 -1
- package/lib/slider/src/utils.js +11 -1
- package/lib/slider/styles/_common.d.ts +1 -0
- package/lib/slider/styles/_common.js +1 -0
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/space/src/Space.js +2 -0
- package/lib/steps/src/Step.js +1 -1
- package/lib/table/src/Table.d.ts +35 -0
- package/lib/table/src/Table.js +8 -4
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/table/styles/light.d.ts +3 -0
- package/lib/table/styles/light.js +2 -2
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +3 -1
- package/lib/tabs/src/Tab.d.ts +35 -18
- package/lib/tabs/src/Tab.js +10 -11
- package/lib/tabs/src/Tabs.js +57 -17
- package/lib/tag/src/Tag.d.ts +8 -3
- package/lib/tag/src/Tag.js +10 -1
- package/lib/tag/src/styles/index.cssr.js +10 -5
- package/lib/tag/src/styles/rtl.cssr.js +7 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/lib/time-picker/src/Panel.d.ts +17 -5
- package/lib/time-picker/src/TimePicker.d.ts +144 -50
- package/lib/time-picker/styles/light.d.ts +14 -5
- package/lib/tooltip/src/Tooltip.d.ts +3 -0
- package/lib/transfer/src/Transfer.d.ts +143 -50
- package/lib/transfer/src/TransferFilter.d.ts +17 -5
- package/lib/transfer/src/TransferList.d.ts +17 -5
- package/lib/transfer/src/TransferListItem.d.ts +17 -5
- package/lib/transfer/styles/light.d.ts +14 -5
- package/lib/tree/src/Tree.d.ts +3 -0
- package/lib/tree/src/TreeNodeCheckbox.d.ts +3 -0
- package/lib/tree-select/src/TreeSelect.d.ts +3 -0
- package/lib/upload/src/Upload.d.ts +143 -50
- package/lib/upload/src/UploadFile.d.ts +18 -6
- package/lib/upload/src/UploadProgress.d.ts +17 -5
- package/lib/upload/styles/light.d.ts +14 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/web-types.json +146 -9
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { FollowerPlacement } from 'vueuc';
|
|
3
|
-
import
|
|
3
|
+
import { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
+
export interface ClosestMark {
|
|
5
|
+
value: number;
|
|
6
|
+
distance: number;
|
|
7
|
+
index: number;
|
|
8
|
+
}
|
|
4
9
|
declare const sliderProps: {
|
|
5
10
|
readonly to: {
|
|
6
11
|
type: PropType<string | boolean | HTMLElement>;
|
|
7
12
|
default: undefined;
|
|
8
13
|
};
|
|
9
14
|
readonly defaultValue: {
|
|
10
|
-
readonly type: PropType<number | [
|
|
15
|
+
readonly type: PropType<number | number[]>;
|
|
11
16
|
readonly default: 0;
|
|
12
17
|
};
|
|
13
18
|
readonly marks: PropType<Record<string, string>>;
|
|
@@ -25,15 +30,12 @@ declare const sliderProps: {
|
|
|
25
30
|
readonly default: 100;
|
|
26
31
|
};
|
|
27
32
|
readonly step: {
|
|
28
|
-
readonly type:
|
|
33
|
+
readonly type: PropType<number | "mark">;
|
|
29
34
|
readonly default: 1;
|
|
30
35
|
};
|
|
31
36
|
readonly range: BooleanConstructor;
|
|
32
|
-
readonly value: PropType<number | [
|
|
33
|
-
readonly placement:
|
|
34
|
-
readonly type: PropType<FollowerPlacement>;
|
|
35
|
-
readonly default: "top";
|
|
36
|
-
};
|
|
37
|
+
readonly value: PropType<number | number[]>;
|
|
38
|
+
readonly placement: PropType<FollowerPlacement>;
|
|
37
39
|
readonly showTooltip: {
|
|
38
40
|
readonly type: PropType<boolean | undefined>;
|
|
39
41
|
readonly default: undefined;
|
|
@@ -42,13 +44,10 @@ declare const sliderProps: {
|
|
|
42
44
|
readonly type: BooleanConstructor;
|
|
43
45
|
readonly default: true;
|
|
44
46
|
};
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
|
|
49
|
-
readonly validator: () => boolean;
|
|
50
|
-
readonly default: undefined;
|
|
51
|
-
};
|
|
47
|
+
readonly vertical: BooleanConstructor;
|
|
48
|
+
readonly reverse: BooleanConstructor;
|
|
49
|
+
readonly 'onUpdate:value': PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
50
|
+
readonly onUpdateValue: PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
52
51
|
readonly theme: PropType<import("../../_mixins").Theme<"Slider", {
|
|
53
52
|
fontSize: string;
|
|
54
53
|
railColor: string;
|
|
@@ -72,6 +71,7 @@ declare const sliderProps: {
|
|
|
72
71
|
dotBorderActive: string;
|
|
73
72
|
dotBoxShadow: string;
|
|
74
73
|
railHeight: string;
|
|
74
|
+
railWidthVertical: string;
|
|
75
75
|
handleSize: string;
|
|
76
76
|
dotHeight: string;
|
|
77
77
|
dotWidth: string;
|
|
@@ -100,6 +100,7 @@ declare const sliderProps: {
|
|
|
100
100
|
dotBorderActive: string;
|
|
101
101
|
dotBoxShadow: string;
|
|
102
102
|
railHeight: string;
|
|
103
|
+
railWidthVertical: string;
|
|
103
104
|
handleSize: string;
|
|
104
105
|
dotHeight: string;
|
|
105
106
|
dotWidth: string;
|
|
@@ -128,6 +129,7 @@ declare const sliderProps: {
|
|
|
128
129
|
dotBorderActive: string;
|
|
129
130
|
dotBoxShadow: string;
|
|
130
131
|
railHeight: string;
|
|
132
|
+
railWidthVertical: string;
|
|
131
133
|
handleSize: string;
|
|
132
134
|
dotHeight: string;
|
|
133
135
|
dotWidth: string;
|
|
@@ -141,7 +143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
143
|
default: undefined;
|
|
142
144
|
};
|
|
143
145
|
readonly defaultValue: {
|
|
144
|
-
readonly type: PropType<number | [
|
|
146
|
+
readonly type: PropType<number | number[]>;
|
|
145
147
|
readonly default: 0;
|
|
146
148
|
};
|
|
147
149
|
readonly marks: PropType<Record<string, string>>;
|
|
@@ -159,15 +161,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
161
|
readonly default: 100;
|
|
160
162
|
};
|
|
161
163
|
readonly step: {
|
|
162
|
-
readonly type:
|
|
164
|
+
readonly type: PropType<number | "mark">;
|
|
163
165
|
readonly default: 1;
|
|
164
166
|
};
|
|
165
167
|
readonly range: BooleanConstructor;
|
|
166
|
-
readonly value: PropType<number | [
|
|
167
|
-
readonly placement:
|
|
168
|
-
readonly type: PropType<FollowerPlacement>;
|
|
169
|
-
readonly default: "top";
|
|
170
|
-
};
|
|
168
|
+
readonly value: PropType<number | number[]>;
|
|
169
|
+
readonly placement: PropType<FollowerPlacement>;
|
|
171
170
|
readonly showTooltip: {
|
|
172
171
|
readonly type: PropType<boolean | undefined>;
|
|
173
172
|
readonly default: undefined;
|
|
@@ -176,13 +175,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
176
175
|
readonly type: BooleanConstructor;
|
|
177
176
|
readonly default: true;
|
|
178
177
|
};
|
|
179
|
-
readonly
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
182
|
-
|
|
183
|
-
readonly validator: () => boolean;
|
|
184
|
-
readonly default: undefined;
|
|
185
|
-
};
|
|
178
|
+
readonly vertical: BooleanConstructor;
|
|
179
|
+
readonly reverse: BooleanConstructor;
|
|
180
|
+
readonly 'onUpdate:value': PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
181
|
+
readonly onUpdateValue: PropType<MaybeArray<(value: number & number[]) => void>>;
|
|
186
182
|
readonly theme: PropType<import("../../_mixins").Theme<"Slider", {
|
|
187
183
|
fontSize: string;
|
|
188
184
|
railColor: string;
|
|
@@ -206,6 +202,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
206
202
|
dotBorderActive: string;
|
|
207
203
|
dotBoxShadow: string;
|
|
208
204
|
railHeight: string;
|
|
205
|
+
railWidthVertical: string;
|
|
209
206
|
handleSize: string;
|
|
210
207
|
dotHeight: string;
|
|
211
208
|
dotWidth: string;
|
|
@@ -234,6 +231,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
231
|
dotBorderActive: string;
|
|
235
232
|
dotBoxShadow: string;
|
|
236
233
|
railHeight: string;
|
|
234
|
+
railWidthVertical: string;
|
|
237
235
|
handleSize: string;
|
|
238
236
|
dotHeight: string;
|
|
239
237
|
dotWidth: string;
|
|
@@ -262,6 +260,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
260
|
dotBorderActive: string;
|
|
263
261
|
dotBoxShadow: string;
|
|
264
262
|
railHeight: string;
|
|
263
|
+
railWidthVertical: string;
|
|
265
264
|
handleSize: string;
|
|
266
265
|
dotHeight: string;
|
|
267
266
|
dotWidth: string;
|
|
@@ -270,69 +269,43 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
270
269
|
}, {
|
|
271
270
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
272
271
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
273
|
-
uncontrolledValue: import("vue").Ref<number | [
|
|
274
|
-
mergedValue: import("vue").ComputedRef<number | [
|
|
272
|
+
uncontrolledValue: import("vue").Ref<number | number[]>;
|
|
273
|
+
mergedValue: import("vue").ComputedRef<number | number[]>;
|
|
275
274
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
275
|
+
mergedPlacement: import("vue").ComputedRef<FollowerPlacement>;
|
|
276
276
|
isMounted: Readonly<import("vue").Ref<boolean>>;
|
|
277
277
|
adjustedTo: import("vue").ComputedRef<string | HTMLElement>;
|
|
278
|
-
handleValue1: import("vue").ComputedRef<number>;
|
|
279
|
-
handleValue2: import("vue").ComputedRef<number>;
|
|
280
|
-
mergedShowTooltip1: import("vue").ComputedRef<boolean>;
|
|
281
|
-
mergedShowTooltip2: import("vue").ComputedRef<boolean>;
|
|
282
|
-
handleActive1: import("vue").Ref<boolean>;
|
|
283
|
-
handleActive2: import("vue").Ref<boolean>;
|
|
284
|
-
handleClicked1: import("vue").Ref<boolean>;
|
|
285
|
-
handleClicked2: import("vue").Ref<boolean>;
|
|
286
|
-
memoziedOtherValue: import("vue").Ref<number>;
|
|
287
|
-
active: import("vue").ComputedRef<boolean>;
|
|
288
|
-
prevActive: import("vue").Ref<boolean>;
|
|
289
|
-
clicked: import("vue").ComputedRef<boolean>;
|
|
290
278
|
dotTransitionDisabled: import("vue").Ref<boolean>;
|
|
291
279
|
markInfos: import("vue").ComputedRef<{
|
|
292
280
|
active: boolean;
|
|
293
281
|
label: string;
|
|
294
282
|
style: {
|
|
295
|
-
|
|
283
|
+
[x: string]: string;
|
|
296
284
|
};
|
|
297
285
|
}[]>;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
} | null>;
|
|
304
|
-
followerRef2: import("vue").Ref<{
|
|
305
|
-
syncPosition: () => void;
|
|
306
|
-
} | null>;
|
|
307
|
-
firstHandleStyle: import("vue").ComputedRef<{
|
|
308
|
-
left: string;
|
|
309
|
-
transform: string;
|
|
310
|
-
zIndex: number;
|
|
311
|
-
}>;
|
|
312
|
-
secondHandleStyle: import("vue").ComputedRef<{
|
|
313
|
-
left: string;
|
|
314
|
-
transform: string;
|
|
315
|
-
zIndex: number;
|
|
316
|
-
}>;
|
|
286
|
+
isShowTooltip: (index: number) => boolean;
|
|
287
|
+
isSkipCSSDetection: (index: number) => boolean;
|
|
288
|
+
handleRailRef: import("vue").Ref<HTMLElement | null>;
|
|
289
|
+
setHandleRefs: (key: number) => (el: any) => void;
|
|
290
|
+
setFollowerRefs: (key: number) => (el: any) => void;
|
|
317
291
|
fillStyle: import("vue").ComputedRef<{
|
|
318
|
-
|
|
319
|
-
|
|
292
|
+
[x: string]: string;
|
|
293
|
+
height: string;
|
|
294
|
+
width?: undefined;
|
|
320
295
|
} | {
|
|
321
|
-
|
|
296
|
+
[x: string]: string;
|
|
322
297
|
width: string;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
handleSecondHandleMouseEnter: () => void;
|
|
335
|
-
handleSecondHandleMouseLeave: () => void;
|
|
298
|
+
height?: undefined;
|
|
299
|
+
} | undefined>;
|
|
300
|
+
getHandleStyle: (value: number, index: number) => Record<string, any>;
|
|
301
|
+
activeIndex: import("vue").Ref<number>;
|
|
302
|
+
arrifiedValues: import("vue").ComputedRef<number[]>;
|
|
303
|
+
handleRailMouseDown: (event: MouseEvent | TouchEvent) => void;
|
|
304
|
+
handleHandleFocus: (index: number) => void;
|
|
305
|
+
handleHandleBlur: (index: number) => void;
|
|
306
|
+
handleHandleMouseEnter: (index: number) => void;
|
|
307
|
+
handleHandleMouseLeave: (index: number) => void;
|
|
308
|
+
handleRailKeyDown: (e: KeyboardEvent) => void;
|
|
336
309
|
indicatorCssVars: import("vue").ComputedRef<{
|
|
337
310
|
'--font-size': string;
|
|
338
311
|
'--indicator-border-radius': string;
|
|
@@ -364,6 +337,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
364
337
|
'--rail-color': string;
|
|
365
338
|
'--rail-color-hover': string;
|
|
366
339
|
'--rail-height': string;
|
|
340
|
+
'--rail-width-vertical': string;
|
|
367
341
|
}>;
|
|
368
342
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
369
343
|
readonly to?: unknown;
|
|
@@ -379,24 +353,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
379
353
|
readonly placement?: unknown;
|
|
380
354
|
readonly showTooltip?: unknown;
|
|
381
355
|
readonly tooltip?: unknown;
|
|
356
|
+
readonly vertical?: unknown;
|
|
357
|
+
readonly reverse?: unknown;
|
|
382
358
|
readonly 'onUpdate:value'?: unknown;
|
|
383
359
|
readonly onUpdateValue?: unknown;
|
|
384
|
-
readonly onChange?: unknown;
|
|
385
360
|
readonly theme?: unknown;
|
|
386
361
|
readonly themeOverrides?: unknown;
|
|
387
362
|
readonly builtinThemeOverrides?: unknown;
|
|
388
363
|
} & {
|
|
389
364
|
range: boolean;
|
|
365
|
+
reverse: boolean;
|
|
366
|
+
vertical: boolean;
|
|
390
367
|
tooltip: boolean;
|
|
391
|
-
step: number;
|
|
368
|
+
step: number | "mark";
|
|
392
369
|
max: number;
|
|
393
370
|
min: number;
|
|
394
|
-
|
|
395
|
-
defaultValue: number | [number, number];
|
|
371
|
+
defaultValue: number | number[];
|
|
396
372
|
} & {
|
|
397
|
-
value?: number | [
|
|
373
|
+
value?: number | number[] | undefined;
|
|
398
374
|
disabled?: boolean | undefined;
|
|
399
|
-
onChange?: MaybeArray<(<T_2 extends number & [number, number]>(value: T_2) => void)> | undefined;
|
|
400
375
|
to?: string | boolean | HTMLElement | undefined;
|
|
401
376
|
theme?: import("../../_mixins").Theme<"Slider", {
|
|
402
377
|
fontSize: string;
|
|
@@ -421,6 +396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
421
396
|
dotBorderActive: string;
|
|
422
397
|
dotBoxShadow: string;
|
|
423
398
|
railHeight: string;
|
|
399
|
+
railWidthVertical: string;
|
|
424
400
|
handleSize: string;
|
|
425
401
|
dotHeight: string;
|
|
426
402
|
dotWidth: string;
|
|
@@ -449,6 +425,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
449
425
|
dotBorderActive: string;
|
|
450
426
|
dotBoxShadow: string;
|
|
451
427
|
railHeight: string;
|
|
428
|
+
railWidthVertical: string;
|
|
452
429
|
handleSize: string;
|
|
453
430
|
dotHeight: string;
|
|
454
431
|
dotWidth: string;
|
|
@@ -477,27 +454,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
477
454
|
dotBorderActive: string;
|
|
478
455
|
dotBoxShadow: string;
|
|
479
456
|
railHeight: string;
|
|
457
|
+
railWidthVertical: string;
|
|
480
458
|
handleSize: string;
|
|
481
459
|
dotHeight: string;
|
|
482
460
|
dotWidth: string;
|
|
483
461
|
dotBorderRadius: string;
|
|
484
462
|
}, any>> | undefined;
|
|
485
|
-
|
|
486
|
-
|
|
463
|
+
placement?: FollowerPlacement | undefined;
|
|
464
|
+
"onUpdate:value"?: MaybeArray<(value: number & number[]) => void> | undefined;
|
|
465
|
+
onUpdateValue?: MaybeArray<(value: number & number[]) => void> | undefined;
|
|
487
466
|
marks?: Record<string, string> | undefined;
|
|
488
467
|
formatTooltip?: ((value: number) => string | number) | undefined;
|
|
489
468
|
showTooltip?: boolean | undefined;
|
|
490
469
|
}>, {
|
|
491
470
|
range: boolean;
|
|
471
|
+
reverse: boolean;
|
|
472
|
+
vertical: boolean;
|
|
492
473
|
tooltip: boolean;
|
|
493
474
|
disabled: boolean | undefined;
|
|
494
|
-
step: number;
|
|
495
|
-
onChange: MaybeArray<(<T_2 extends number & [number, number]>(value: T_2) => void)>;
|
|
475
|
+
step: number | "mark";
|
|
496
476
|
max: number;
|
|
497
477
|
min: number;
|
|
498
478
|
to: string | boolean | HTMLElement;
|
|
499
|
-
|
|
500
|
-
defaultValue: number | [number, number];
|
|
479
|
+
defaultValue: number | number[];
|
|
501
480
|
showTooltip: boolean | undefined;
|
|
502
481
|
}>;
|
|
503
482
|
export default _default;
|