@sdata/web-vue 1.10.0 → 1.11.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/dist/sd.css +148 -952
- package/dist/sd.min.css +1 -1
- package/es/_components/input-label/style/input-label.scss +11 -51
- package/es/_components/select-view/select-view.d.ts +1 -1
- package/es/_components/select-view/style/index.css +0 -84
- package/es/_components/virtual-list/interface.d.ts +10 -1
- package/es/{table/hooks/use-table-virtual-size.d.ts → _components/virtual-list/use-virtual-size.d.ts} +4 -2
- package/es/{table/hooks/use-table-virtual-size.js → _components/virtual-list/use-virtual-size.js} +17 -20
- package/es/_components/virtual-list/virtual-list.js +64 -2
- package/es/_components/virtual-list/virtual-list.vue.d.ts +208 -0
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +277 -5
- package/es/_utils/clipboard.js +2 -1
- package/es/auto-complete/auto-complete.d.ts +1 -1
- package/es/auto-complete/index.d.ts +24 -15
- package/es/auto-complete/style/index.css +0 -16
- package/es/auto-complete/style/index.scss +11 -26
- package/es/badge/style/index.scss +11 -41
- package/es/button/style/index.css +35 -445
- package/es/button/style/index.scss +57 -332
- package/es/card/style/index.scss +18 -52
- package/es/carousel/index.d.ts +1 -0
- package/es/cascader/cascader-panel.vue.d.ts +1 -1
- package/es/cascader/cascader.vue.d.ts +3 -3
- package/es/cascader/index.d.ts +10 -10
- package/es/cascader/interface.d.ts +5 -0
- package/es/color-picker/style/index.scss +17 -99
- package/es/config-provider/config-provider.vue.d.ts +1 -1
- package/es/config-provider/index.d.ts +4 -3
- package/es/date-picker/index.d.ts +21 -14
- package/es/date-picker/panels/date/index.vue.d.ts +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +7 -7
- package/es/date-picker/picker.vue.d.ts +1 -1
- package/es/date-picker/range-picker.vue.d.ts +1 -1
- package/es/descriptions/descriptions.d.ts +1 -1
- package/es/descriptions/index.d.ts +4 -4
- package/es/descriptions/style/index.scss +18 -63
- package/es/form/style/index.css +12 -176
- package/es/form/style/status.scss +36 -73
- package/es/index.css +148 -952
- package/es/index.d.ts +21 -20
- package/es/input/style/input.scss +14 -66
- package/es/input-number/index.d.ts +5 -0
- package/es/input-tag/style/index.css +0 -84
- package/es/input-tag/style/input-tag.scss +16 -170
- package/es/list/style/index.scss +12 -42
- package/es/menu/index.d.ts +8 -0
- package/es/menu/style/index.css +0 -178
- package/es/menu/style/index.scss +36 -139
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/interface.d.ts +2 -1
- package/es/pagination/page-options.js +1 -1
- package/es/pagination/page-options.vue.d.ts +72 -71
- package/es/pagination/page-options.vue_vue_type_script_lang.js +6 -0
- package/es/pagination/pagination.d.ts +3 -3
- package/es/pagination/style/index.css +0 -12
- package/es/pagination/style/index.scss +19 -76
- package/es/radio/index.d.ts +3 -0
- package/es/result/style/index.css +0 -16
- package/es/result/style/index.scss +12 -34
- package/es/select/index.d.ts +9 -9
- package/es/select/interface.d.ts +2 -1
- package/es/select/select.d.ts +3 -3
- package/es/slider/index.d.ts +6 -3
- package/es/slider/slider.vue.d.ts +1 -1
- package/es/steps/index.d.ts +2 -0
- package/es/switch/index.d.ts +3 -0
- package/es/table/context.d.ts +1 -1
- package/es/table/hooks/use-column-resize.d.ts +2 -3
- package/es/table/hooks/use-column-resize.js +48 -21
- package/es/table/hooks/use-drag.d.ts +4 -2
- package/es/table/hooks/use-drag.js +16 -2
- package/es/table/index.d.ts +22 -34
- package/es/table/interface.d.ts +21 -2
- package/es/table/style/index.css +97 -21
- package/es/table/style/index.scss +137 -125
- package/es/table/table-operation-td.d.ts +2 -2
- package/es/table/table-operation-td.js +4 -5
- package/es/table/table-operation-th.js +4 -4
- package/es/table/table-tbody.js +1 -1
- package/es/table/table-td.js +5 -6
- package/es/table/table-th.js +25 -24
- package/es/table/table-thead.js +1 -1
- package/es/table/table-tr.js +1 -1
- package/es/table/table.d.ts +12 -16
- package/es/table/table.js +399 -190
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/style/index.scss +53 -135
- package/es/tag/index.d.ts +3 -3
- package/es/tag/style/index.css +0 -84
- package/es/tag/style/index.scss +19 -146
- package/es/tag/tag.vue.d.ts +1 -1
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +1 -0
- package/es/timeline/index.d.ts +1 -0
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/interface.d.ts +1 -1
- package/es/tree/hooks/use-tree-data.d.ts +17 -29
- package/es/tree/index.d.ts +6 -1
- package/es/tree/interface.d.ts +2 -0
- package/es/tree/tree.js +1 -1
- package/es/tree/tree.vue.d.ts +3561 -13
- package/es/tree/tree.vue_vue_type_script_lang.js +21 -9
- package/es/tree-select/hooks/use-selected-state.js +3 -1
- package/es/tree-select/index.d.ts +3 -0
- package/es/tree-select/tree-select.vue.d.ts +1367 -3
- package/json/vetur-attributes.json +1 -6
- package/json/vetur-tags.json +0 -1
- package/json/web-types.json +7 -11
- package/package.json +1 -1
- package/es/style/theme/legacy-less-var.scss +0 -15
- package/es/table/table-col-group.js +0 -21
- package/es/table/table-col-group.vue_vue_type_script_lang.js +0 -32
- package/es/table/table-legacy-virtual-list.js +0 -47
- package/es/table/table-legacy-virtual-list.vue.d.ts +0 -156
- package/es/table/table-legacy-virtual-list.vue_vue_type_script_lang.js +0 -148
- package/es/table/table-virtual-list-item.d.ts +0 -22
- package/es/table/table-virtual-list-item.js +0 -37
package/es/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="./components.d.ts" />
|
|
1
2
|
export { default } from './sd-vue';
|
|
2
3
|
export { addI18nMessages, useLocale, getLocale } from './locale';
|
|
3
4
|
export type { Size, Status, MessageType, Direction } from './_utils/constant';
|
|
@@ -8,7 +9,7 @@ export type { AlertInstance } from './alert';
|
|
|
8
9
|
export { default as Anchor, AnchorLink } from './anchor';
|
|
9
10
|
export type { AnchorInstance, AnchorLinkInstance } from './anchor';
|
|
10
11
|
export { default as AutoComplete } from './auto-complete';
|
|
11
|
-
export type { AutoCompleteInstance } from './auto-complete';
|
|
12
|
+
export type { AutoCompleteChangeHandler, AutoCompleteClearHandler, AutoCompleteData, AutoCompleteDropdownReachBottomHandler, AutoCompleteDropdownScrollHandler, AutoCompleteFilterOption, AutoCompleteInstance, AutoCompleteSearchHandler, AutoCompleteSelectHandler, } from './auto-complete';
|
|
12
13
|
export { default as Avatar, AvatarGroup } from './avatar';
|
|
13
14
|
export type { AvatarInstance, AvatarGroupInstance } from './avatar';
|
|
14
15
|
export { default as BackTop } from './back-top';
|
|
@@ -23,9 +24,9 @@ export { default as Card, CardGrid, CardMeta } from './card';
|
|
|
23
24
|
export { default as Calendar } from './calendar';
|
|
24
25
|
export type { CardGridInstance, CardInstance, CardMetaInstance } from './card';
|
|
25
26
|
export { default as Carousel, CarouselItem } from './carousel';
|
|
26
|
-
export type { CarouselInstance, CarouselItemInstance } from './carousel';
|
|
27
|
+
export type { CarouselArrowType, CarouselAutoPlayConfig, CarouselIndicatorPosition, CarouselIndicatorType, CarouselInstance, CarouselItemInstance, CarouselTriggerEvent, } from './carousel';
|
|
27
28
|
export { default as Cascader, CascaderPanel } from './cascader';
|
|
28
|
-
export type { CascaderFieldNames, CascaderInstance, CascaderPanelInstance, CascaderOption, } from './cascader';
|
|
29
|
+
export type { CascaderChangeHandler, CascaderFallback, CascaderFieldNames, CascaderFormatLabel, CascaderInstance, CascaderLoadMore, CascaderModelValue, CascaderPanelInstance, CascaderOption, CascaderOptionValue, CascaderPathValue, CascaderSearchHandler, CascaderSingleValue, } from './cascader';
|
|
29
30
|
export { default as Checkbox, CheckboxGroup } from './checkbox';
|
|
30
31
|
export type { CheckboxGroupInstance, CheckboxInstance, CheckboxOption } from './checkbox';
|
|
31
32
|
export { default as Collapse, CollapseItem } from './collapse';
|
|
@@ -35,13 +36,13 @@ export type { CommentInstance } from './comment';
|
|
|
35
36
|
export { default as ColorPicker } from './color-picker';
|
|
36
37
|
export type { ColorPickerInstance } from './color-picker';
|
|
37
38
|
export { default as ConfigProvider } from './config-provider';
|
|
38
|
-
export type { ConfigProviderInstance } from './config-provider';
|
|
39
|
+
export type { ConfigProviderInstance, SDThemeConfig, SDThemeMeta, SDThemeMode, ThemeTokenMap, ThemeTokenValue, } from './config-provider';
|
|
39
40
|
export { default as ThemeProvider } from './theme-provider';
|
|
40
41
|
export type { ThemeProviderInstance } from './theme-provider';
|
|
41
42
|
export { default as DatePicker, MonthPicker, QuarterPicker, WeekPicker, YearPicker, RangePicker, } from './date-picker';
|
|
42
|
-
export type { DatePickerInstance, MonthPickerInstance, QuarterPickerInstance, RangePickerInstance, ShortcutType, WeekPickerInstance, YearPickerInstance, } from './date-picker';
|
|
43
|
+
export type { CalendarValue, DatePickerChangeHandler, DatePickerInstance, DatePickerOkHandler, DatePickerProps, DatePickerSelectHandler, DisabledDate, DisabledTime, DisabledTimeProps, FormatFunc, MonthPickerProps, MonthPickerInstance, PickerProps, QuarterPickerProps, QuarterPickerInstance, RangeDisabledDate, RangeDisabledTime, RangePickerChangeHandler, RangePickerInstance, RangePickerOkHandler, RangePickerProps, RangePickerSelectHandler, ShortcutType, ValueFormat, WeekPickerProps, WeekPickerInstance, YearPickerProps, YearPickerInstance, } from './date-picker';
|
|
43
44
|
export { default as Descriptions, DescriptionsItem } from './descriptions';
|
|
44
|
-
export type { DescData, DescriptionsInstance, DescriptionsItemInstance } from './descriptions';
|
|
45
|
+
export type { DescData, DescLayout, DescriptionsInstance, DescriptionsItemInstance, } from './descriptions';
|
|
45
46
|
export { default as Divider } from './divider';
|
|
46
47
|
export { default as Drawer } from './drawer';
|
|
47
48
|
export type { DrawerConfig, DrawerInstance, DrawerMethod, DrawerReturn } from './drawer';
|
|
@@ -62,7 +63,7 @@ export type { ImageInstance, ImagePreviewActionInstance, ImagePreviewInstance, I
|
|
|
62
63
|
export { default as Input, InputGroup, InputPassword, InputSearch } from './input';
|
|
63
64
|
export type { InputGroupInstance, InputInstance, InputPasswordInstance, InputSearchInstance, } from './input';
|
|
64
65
|
export { default as InputNumber } from './input-number';
|
|
65
|
-
export type { InputNumberInstance } from './input-number';
|
|
66
|
+
export type { InputNumberChangeHandler, InputNumberFormatter, InputNumberInputHandler, InputNumberInstance, InputNumberParser, InputNumberValue, } from './input-number';
|
|
66
67
|
export { default as InputTag } from './input-tag';
|
|
67
68
|
export type { InputTagFieldNames, InputTagInstance, TagData } from './input-tag';
|
|
68
69
|
export { default as Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, } from './layout';
|
|
@@ -74,7 +75,7 @@ export type { ListInstance, ListItemInstance, ListItemMetaInstance } from './lis
|
|
|
74
75
|
export { default as Mention } from './mention';
|
|
75
76
|
export type { MentionInstance } from './mention';
|
|
76
77
|
export { default as Menu, MenuItem, MenuItemGroup, SubMenu } from './menu';
|
|
77
|
-
export type { MenuInstance, MenuItemInstance, MenuItemGroupInstance, MenuSubMenuInstance, } from './menu';
|
|
78
|
+
export type { MenuCollapseHandler, MenuCollapseTrigger, MenuData, MenuDataItem, MenuInstance, MenuItemClickHandler, MenuItemGroupProps, MenuItemInstance, MenuItemGroupInstance, MenuItemProps, MenuMode, MenuOpenKeys, MenuProps, MenuSubMenuInstance, MenuSubMenuClickHandler, MenuSelectedKeys, MenuTheme, PopupMenuMaxHeightType, SubMenuChildDataType, SubMenuProps, } from './menu';
|
|
78
79
|
export { default as Message } from './message';
|
|
79
80
|
export type { MessageMethod, MessageConfig, MessageReturn } from './message';
|
|
80
81
|
export { default as Modal } from './modal';
|
|
@@ -92,7 +93,7 @@ export type { PopoverInstance } from './popover';
|
|
|
92
93
|
export { default as Progress } from './progress';
|
|
93
94
|
export type { ProgressInstance } from './progress';
|
|
94
95
|
export { default as Radio, RadioGroup } from './radio';
|
|
95
|
-
export type {
|
|
96
|
+
export type { RadioGroupChangeHandler, RadioGroupInstance, RadioInstance, RadioOption, RadioValue, } from './radio';
|
|
96
97
|
export { default as Rate } from './rate';
|
|
97
98
|
export type { RateInstance } from './rate';
|
|
98
99
|
export { default as ResizeBox } from './resize-box';
|
|
@@ -102,11 +103,11 @@ export type { ResultInstance } from './result';
|
|
|
102
103
|
export { default as Scrollbar } from './scrollbar';
|
|
103
104
|
export type { ScrollbarElements, ScrollbarEventListener, ScrollbarEventListenerArgs, ScrollbarEventListeners, ScrollbarExpose, ScrollbarInstance, ScrollbarOptions, ScrollbarOptionsResolved, ScrollbarPlugin, ScrollbarProps, ScrollbarReadonlyOptions, ScrollbarState, ScrollbarType, ScrollbarUpdatedEvent, } from './scrollbar';
|
|
104
105
|
export { default as Select, Optgroup, Option } from './select';
|
|
105
|
-
export type { FilterOption, SelectFieldNames, SelectInstance, SelectOptGroupInstance, SelectOption, SelectOptionData, SelectOptionGroup, SelectOptionInstance, SelectProps, } from './select';
|
|
106
|
+
export type { FilterOption, SelectFallbackOption, SelectFieldNames, SelectInstance, SelectOptGroupInstance, SelectOption, SelectOptionData, SelectOptionGroup, SelectOptionInstance, SelectProps, } from './select';
|
|
106
107
|
export { default as Skeleton, SkeletonLine, SkeletonShape } from './skeleton';
|
|
107
108
|
export type { SkeletonInstance, SkeletonLineInstance, SkeletonShapeInstance } from './skeleton';
|
|
108
109
|
export { default as Slider } from './slider';
|
|
109
|
-
export type { SliderInstance } from './slider';
|
|
110
|
+
export type { SliderChangeHandler, SliderFormatTooltip, SliderInstance, SliderValue, } from './slider';
|
|
110
111
|
export { default as Space } from './space';
|
|
111
112
|
export type { SpaceInstance } from './space';
|
|
112
113
|
export { default as Spin } from './spin';
|
|
@@ -116,29 +117,29 @@ export type { SplitInstance } from './split';
|
|
|
116
117
|
export { default as Statistic, Countdown } from './statistic';
|
|
117
118
|
export type { CountdownInstance, StatisticInstance } from './statistic';
|
|
118
119
|
export { default as Steps, Step } from './steps';
|
|
119
|
-
export type { StepsInstance, StepsStepInstance } from './steps';
|
|
120
|
+
export type { StepData, StepsChangeHandler, StepsInstance, StepsStepInstance, StepsType, StepStatus, } from './steps';
|
|
120
121
|
export { default as Switch } from './switch';
|
|
121
|
-
export type { SwitchInstance } from './switch';
|
|
122
|
+
export type { SwitchBeforeChange, SwitchChangeHandler, SwitchInstance, SwitchValue, } from './switch';
|
|
122
123
|
export { default as Table, Thead, Td, Th, Tr, Tbody, TableColumn } from './table';
|
|
123
|
-
export type { TableBorder, TableChangeExtra, TableColumnData, TableColumnInstance, TableData, TableDraggable, TableExpandable, TableFilterable, TableFilterData, TableInstance, TableRowSelection, TableSortable, TbodyInstance, TdInstance, TheadInstance, ThInstance, TrInstance, } from './table';
|
|
124
|
+
export type { TableBorder, TableChangeExtra, TableColumnData, TableColumnInstance, TableData, TableDraggable, TableExpandable, TableFilterable, TableFilterData, TableInstance, TableLoadMore, TableProps, TableRowKey, TableRowSelection, TableSortable, TableSpanMethod, TableSpanMethodContext, TableSummary, TableSummaryContext, TableSummarySpanMethod, TbodyInstance, TdInstance, TheadInstance, ThInstance, TrInstance, } from './table';
|
|
124
125
|
export { default as Tabs, TabPane } from './tabs';
|
|
125
|
-
export type { TabPaneInstance, TabsInstance } from './tabs';
|
|
126
|
+
export type { ScrollPosition, TabPaneInstance, TabsInstance, TabsPosition, TabsType, TabTriggerEvent, } from './tabs';
|
|
126
127
|
export { default as Tag } from './tag';
|
|
127
128
|
export type { TagColor, TagInstance, TagProps } from './tag';
|
|
128
129
|
export { default as Textarea } from './textarea';
|
|
129
130
|
export type { TextareaInstance } from './textarea';
|
|
130
131
|
export { default as TimePicker } from './time-picker';
|
|
131
|
-
export type { TimePickerInstance } from './time-picker';
|
|
132
|
+
export type { TimePickerInstance, TimeValue } from './time-picker';
|
|
132
133
|
export { default as Timeline, TimelineItem } from './timeline';
|
|
133
|
-
export type { TimelineInstance, TimelineItemInstance } from './timeline';
|
|
134
|
+
export type { DotType, LabelPositionType, LineType, ModeType, PositionType, TimelineInstance, TimelineItemInstance, } from './timeline';
|
|
134
135
|
export { default as Tooltip } from './tooltip';
|
|
135
136
|
export type { TooltipInstance } from './tooltip';
|
|
136
137
|
export { default as Transfer } from './transfer';
|
|
137
|
-
export type { TransferInstance } from './transfer';
|
|
138
|
+
export type { TransferInstance, TransferItem } from './transfer';
|
|
138
139
|
export { default as Tree } from './tree';
|
|
139
|
-
export type { TreeFieldNames, TreeInstance, TreeNodeData } from './tree';
|
|
140
|
+
export type { CheckedStrategy, CheckableType, DropPosition, FilterTreeNode, Key2TreeNode, LoadMore, TreeCheckHandler, TreeDropHandler, TreeExpandHandler, TreeFieldNames, TreeInstance, TreeNodeData, TreeNodeKey, TreeProps, TreeSelectHandler, } from './tree';
|
|
140
141
|
export { default as TreeSelect } from './tree-select';
|
|
141
|
-
export type { TreeSelectInstance } from './tree-select';
|
|
142
|
+
export type { LabelValue, TreeSelectChangeHandler, TreeSelectClearHandler, TreeSelectFallbackOption, TreeSelectFilterTreeNode, TreeSelectInstance, TreeSelectLoadMore, TreeSelectPopupVisibleChangeHandler, TreeSelectProps, TreeSelectSearchHandler, TreeSelectValue, } from './tree-select';
|
|
142
143
|
export { default as Trigger } from './trigger';
|
|
143
144
|
export type { TriggerEvent, TriggerInstance, TriggerPopupTranslate, TriggerPosition, TriggerProps, } from './trigger';
|
|
144
145
|
export { default as Typography, TypographyParagraph, TypographyText, TypographyTitle, } from './typography';
|
|
@@ -2,71 +2,19 @@
|
|
|
2
2
|
@use 'sass:math';
|
|
3
3
|
@use 'sass:string';
|
|
4
4
|
@use 'sass:map';
|
|
5
|
-
@use '
|
|
5
|
+
@use 'sass:meta';
|
|
6
6
|
@use '@style/mixins/index.scss' as *;
|
|
7
|
+
@use '@components/input/style/token.scss' as token;
|
|
7
8
|
@use '@components/input/style/token.scss' as *;
|
|
8
9
|
|
|
9
|
-
$
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
'input-color-bg_error_focus': $input-color-bg_error_focus,
|
|
18
|
-
'input-color-bg_error_hover': $input-color-bg_error_hover,
|
|
19
|
-
'input-color-bg_focus': $input-color-bg_focus,
|
|
20
|
-
'input-color-bg_hover': $input-color-bg_hover,
|
|
21
|
-
'input-color-border': $input-color-border,
|
|
22
|
-
'input-color-border_disabled': $input-color-border_disabled,
|
|
23
|
-
'input-color-border_error': $input-color-border_error,
|
|
24
|
-
'input-color-border_error_focus': $input-color-border_error_focus,
|
|
25
|
-
'input-color-border_error_hover': $input-color-border_error_hover,
|
|
26
|
-
'input-color-border_focus': $input-color-border_focus,
|
|
27
|
-
'input-color-border_hover': $input-color-border_hover,
|
|
28
|
-
'input-color-icon-clear': $input-color-icon-clear,
|
|
29
|
-
'input-color-icon-clear-bg_hover': $input-color-icon-clear-bg_hover,
|
|
30
|
-
'input-color-placeholder-text': $input-color-placeholder-text,
|
|
31
|
-
'input-color-prefix-text': $input-color-prefix-text,
|
|
32
|
-
'input-color-shadow_error_focus': $input-color-shadow_error_focus,
|
|
33
|
-
'input-color-shadow_focus': $input-color-shadow_focus,
|
|
34
|
-
'input-color-suffix-text': $input-color-suffix-text,
|
|
35
|
-
'input-color-text': $input-color-text,
|
|
36
|
-
'input-color-text_disabled': $input-color-text_disabled,
|
|
37
|
-
'input-feedback-icon-color_error': $input-feedback-icon-color_error,
|
|
38
|
-
'input-feedback-icon-color_success': $input-feedback-icon-color_success,
|
|
39
|
-
'input-feedback-icon-color_validating': $input-feedback-icon-color_validating,
|
|
40
|
-
'input-feedback-icon-color_warning': $input-feedback-icon-color_warning,
|
|
41
|
-
'input-group-border-radius_compact': $input-group-border-radius_compact,
|
|
42
|
-
'input-padding-horizontal': $input-padding-horizontal,
|
|
43
|
-
'input-size-default-height': $input-size-default-height,
|
|
44
|
-
'input-size-default-font-size': $input-size-default-font-size,
|
|
45
|
-
'input-size-default-line-height': $input-size-medium-line-height,
|
|
46
|
-
'input-size-default-icon-suffix-size': $input-size-default-icon-suffix-size,
|
|
47
|
-
'input-size-icon-clear': $input-size-icon-clear,
|
|
48
|
-
'input-size-large-height': $input-size-large-height,
|
|
49
|
-
'input-size-large-font-size': $input-size-large-font-size,
|
|
50
|
-
'input-size-large-line-height': $input-size-large-line-height,
|
|
51
|
-
'input-size-medium-height': $input-size-medium-height,
|
|
52
|
-
'input-size-medium-font-size': $input-size-medium-font-size,
|
|
53
|
-
'input-size-medium-line-height': $input-size-medium-line-height,
|
|
54
|
-
'input-size-small-height': $input-size-small-height,
|
|
55
|
-
'input-size-small-font-size': $input-size-small-font-size,
|
|
56
|
-
'input-size-small-line-height': $input-size-small-line-height,
|
|
57
|
-
'input-size-shadow_error_focus': $input-size-shadow_error_focus,
|
|
58
|
-
'input-size-shadow_focus': $input-size-shadow_focus,
|
|
59
|
-
'line-height-base': theme.$line-height-base,
|
|
60
|
-
'prefix': theme.$prefix,
|
|
61
|
-
'transition-duration-1': theme.$transition-duration-1,
|
|
62
|
-
'transition-timing-function-linear': theme.$transition-timing-function-linear,
|
|
63
|
-
'input-size-mini-height': $input-size-mini-height,
|
|
64
|
-
'input-size-mini-line-height': $input-size-mini-line-height,
|
|
65
|
-
'input-size-mini-font-size': $input-size-mini-font-size,
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
@function less-var($name, $fallback: null) {
|
|
69
|
-
@return legacyLessVar.get($__less-vars, $name, $fallback);
|
|
10
|
+
@function token-var($name, $fallback: null) {
|
|
11
|
+
$value: map.get(meta.module-variables('token'), $name);
|
|
12
|
+
|
|
13
|
+
@if $value == null {
|
|
14
|
+
@return $fallback;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@return $value;
|
|
70
18
|
}
|
|
71
19
|
|
|
72
20
|
@mixin input-suffix-feedback-icon-color() {
|
|
@@ -244,15 +192,15 @@ $__less-vars: (
|
|
|
244
192
|
|
|
245
193
|
/* prettier-ignore */
|
|
246
194
|
padding-top: math.div(
|
|
247
|
-
math.round(
|
|
195
|
+
math.round(token-var($height) - $input-border-width * 2 - token-var($line-height) * token-var($font-size)),
|
|
248
196
|
2
|
|
249
197
|
);
|
|
250
198
|
|
|
251
199
|
/* prettier-ignore */
|
|
252
200
|
padding-bottom: math.div(
|
|
253
|
-
math.round(
|
|
201
|
+
math.round(token-var($height) - $input-border-width * 2 - token-var($line-height) * token-var($font-size)),
|
|
254
202
|
2
|
|
255
203
|
);
|
|
256
|
-
font-size:
|
|
257
|
-
line-height:
|
|
204
|
+
font-size: token-var($font-size);
|
|
205
|
+
line-height: token-var($line-height);
|
|
258
206
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
import type { SDOptions } from '../_utils/types';
|
|
3
3
|
import _InputNumber from './input-number';
|
|
4
|
+
export type InputNumberValue = number | undefined;
|
|
5
|
+
export type InputNumberFormatter = (value: string | number | undefined) => string;
|
|
6
|
+
export type InputNumberParser = (value: string) => string | number;
|
|
7
|
+
export type InputNumberChangeHandler = (value: InputNumberValue, event: Event) => void;
|
|
8
|
+
export type InputNumberInputHandler = (value: InputNumberValue, inputValue: string, event: Event) => void;
|
|
4
9
|
declare const InputNumber: {
|
|
5
10
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
6
11
|
modelValue: NumberConstructor;
|
|
@@ -99,13 +99,6 @@
|
|
|
99
99
|
background-color: rgb(var(--red-1));
|
|
100
100
|
border: 1px solid transparent;
|
|
101
101
|
}
|
|
102
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-red .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
103
|
-
background-color: rgb(var(--red-2));
|
|
104
|
-
}
|
|
105
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-red:hover {
|
|
106
|
-
background-color: rgb(var(--red-2));
|
|
107
|
-
border-color: transparent;
|
|
108
|
-
}
|
|
109
102
|
.sd-tag .sd-tag-checked.sd-tag-red.sd-tag-bordered,
|
|
110
103
|
.sd-tag .sd-tag-checked.sd-tag-red.sd-tag-bordered:hover {
|
|
111
104
|
border-color: rgb(var(--red-6));
|
|
@@ -118,13 +111,6 @@
|
|
|
118
111
|
background-color: rgb(var(--orangered-1));
|
|
119
112
|
border: 1px solid transparent;
|
|
120
113
|
}
|
|
121
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-orangered .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
122
|
-
background-color: rgb(var(--orangered-2));
|
|
123
|
-
}
|
|
124
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-orangered:hover {
|
|
125
|
-
background-color: rgb(var(--orangered-2));
|
|
126
|
-
border-color: transparent;
|
|
127
|
-
}
|
|
128
114
|
.sd-tag .sd-tag-checked.sd-tag-orangered.sd-tag-bordered,
|
|
129
115
|
.sd-tag .sd-tag-checked.sd-tag-orangered.sd-tag-bordered:hover {
|
|
130
116
|
border-color: rgb(var(--orangered-6));
|
|
@@ -137,13 +123,6 @@
|
|
|
137
123
|
background-color: rgb(var(--orange-1));
|
|
138
124
|
border: 1px solid transparent;
|
|
139
125
|
}
|
|
140
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-orange .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
141
|
-
background-color: rgb(var(--orange-2));
|
|
142
|
-
}
|
|
143
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-orange:hover {
|
|
144
|
-
background-color: rgb(var(--orange-2));
|
|
145
|
-
border-color: transparent;
|
|
146
|
-
}
|
|
147
126
|
.sd-tag .sd-tag-checked.sd-tag-orange.sd-tag-bordered,
|
|
148
127
|
.sd-tag .sd-tag-checked.sd-tag-orange.sd-tag-bordered:hover {
|
|
149
128
|
border-color: rgb(var(--orange-6));
|
|
@@ -156,13 +135,6 @@
|
|
|
156
135
|
background-color: rgb(var(--gold-1));
|
|
157
136
|
border: 1px solid transparent;
|
|
158
137
|
}
|
|
159
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-gold .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
160
|
-
background-color: rgb(var(--gold-2));
|
|
161
|
-
}
|
|
162
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-gold:hover {
|
|
163
|
-
background-color: rgb(var(--gold-3));
|
|
164
|
-
border-color: transparent;
|
|
165
|
-
}
|
|
166
138
|
.sd-tag .sd-tag-checked.sd-tag-gold.sd-tag-bordered,
|
|
167
139
|
.sd-tag .sd-tag-checked.sd-tag-gold.sd-tag-bordered:hover {
|
|
168
140
|
border-color: rgb(var(--gold-6));
|
|
@@ -175,13 +147,6 @@
|
|
|
175
147
|
background-color: rgb(var(--lime-1));
|
|
176
148
|
border: 1px solid transparent;
|
|
177
149
|
}
|
|
178
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-lime .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
179
|
-
background-color: rgb(var(--lime-2));
|
|
180
|
-
}
|
|
181
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-lime:hover {
|
|
182
|
-
background-color: rgb(var(--lime-2));
|
|
183
|
-
border-color: transparent;
|
|
184
|
-
}
|
|
185
150
|
.sd-tag .sd-tag-checked.sd-tag-lime.sd-tag-bordered,
|
|
186
151
|
.sd-tag .sd-tag-checked.sd-tag-lime.sd-tag-bordered:hover {
|
|
187
152
|
border-color: rgb(var(--lime-6));
|
|
@@ -194,13 +159,6 @@
|
|
|
194
159
|
background-color: rgb(var(--green-1));
|
|
195
160
|
border: 1px solid transparent;
|
|
196
161
|
}
|
|
197
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-green .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
198
|
-
background-color: rgb(var(--green-2));
|
|
199
|
-
}
|
|
200
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-green:hover {
|
|
201
|
-
background-color: rgb(var(--green-2));
|
|
202
|
-
border-color: transparent;
|
|
203
|
-
}
|
|
204
162
|
.sd-tag .sd-tag-checked.sd-tag-green.sd-tag-bordered,
|
|
205
163
|
.sd-tag .sd-tag-checked.sd-tag-green.sd-tag-bordered:hover {
|
|
206
164
|
border-color: rgb(var(--green-6));
|
|
@@ -213,13 +171,6 @@
|
|
|
213
171
|
background-color: rgb(var(--cyan-1));
|
|
214
172
|
border: 1px solid transparent;
|
|
215
173
|
}
|
|
216
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-cyan .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
217
|
-
background-color: rgb(var(--cyan-2));
|
|
218
|
-
}
|
|
219
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-cyan:hover {
|
|
220
|
-
background-color: rgb(var(--cyan-2));
|
|
221
|
-
border-color: transparent;
|
|
222
|
-
}
|
|
223
174
|
.sd-tag .sd-tag-checked.sd-tag-cyan.sd-tag-bordered,
|
|
224
175
|
.sd-tag .sd-tag-checked.sd-tag-cyan.sd-tag-bordered:hover {
|
|
225
176
|
border-color: rgb(var(--cyan-6));
|
|
@@ -232,13 +183,6 @@
|
|
|
232
183
|
background-color: rgb(var(--blue-1));
|
|
233
184
|
border: 1px solid transparent;
|
|
234
185
|
}
|
|
235
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-blue .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
236
|
-
background-color: rgb(var(--blue-2));
|
|
237
|
-
}
|
|
238
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-blue:hover {
|
|
239
|
-
background-color: rgb(var(--blue-2));
|
|
240
|
-
border-color: transparent;
|
|
241
|
-
}
|
|
242
186
|
.sd-tag .sd-tag-checked.sd-tag-blue.sd-tag-bordered,
|
|
243
187
|
.sd-tag .sd-tag-checked.sd-tag-blue.sd-tag-bordered:hover {
|
|
244
188
|
border-color: rgb(var(--blue-6));
|
|
@@ -251,13 +195,6 @@
|
|
|
251
195
|
background-color: rgb(var(--sdblue-1));
|
|
252
196
|
border: 1px solid transparent;
|
|
253
197
|
}
|
|
254
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-sdblue .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
255
|
-
background-color: rgb(var(--sdblue-2));
|
|
256
|
-
}
|
|
257
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-sdblue:hover {
|
|
258
|
-
background-color: rgb(var(--sdblue-2));
|
|
259
|
-
border-color: transparent;
|
|
260
|
-
}
|
|
261
198
|
.sd-tag .sd-tag-checked.sd-tag-sdblue.sd-tag-bordered,
|
|
262
199
|
.sd-tag .sd-tag-checked.sd-tag-sdblue.sd-tag-bordered:hover {
|
|
263
200
|
border-color: rgb(var(--sdblue-6));
|
|
@@ -270,13 +207,6 @@
|
|
|
270
207
|
background-color: rgb(var(--purple-1));
|
|
271
208
|
border: 1px solid transparent;
|
|
272
209
|
}
|
|
273
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-purple .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
274
|
-
background-color: rgb(var(--purple-2));
|
|
275
|
-
}
|
|
276
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-purple:hover {
|
|
277
|
-
background-color: rgb(var(--purple-2));
|
|
278
|
-
border-color: transparent;
|
|
279
|
-
}
|
|
280
210
|
.sd-tag .sd-tag-checked.sd-tag-purple.sd-tag-bordered,
|
|
281
211
|
.sd-tag .sd-tag-checked.sd-tag-purple.sd-tag-bordered:hover {
|
|
282
212
|
border-color: rgb(var(--purple-6));
|
|
@@ -289,13 +219,6 @@
|
|
|
289
219
|
background-color: rgb(var(--pinkpurple-1));
|
|
290
220
|
border: 1px solid transparent;
|
|
291
221
|
}
|
|
292
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-pinkpurple .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
293
|
-
background-color: rgb(var(--pinkpurple-2));
|
|
294
|
-
}
|
|
295
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-pinkpurple:hover {
|
|
296
|
-
background-color: rgb(var(--pinkpurple-2));
|
|
297
|
-
border-color: transparent;
|
|
298
|
-
}
|
|
299
222
|
.sd-tag .sd-tag-checked.sd-tag-pinkpurple.sd-tag-bordered,
|
|
300
223
|
.sd-tag .sd-tag-checked.sd-tag-pinkpurple.sd-tag-bordered:hover {
|
|
301
224
|
border-color: rgb(var(--pinkpurple-6));
|
|
@@ -308,13 +231,6 @@
|
|
|
308
231
|
background-color: rgb(var(--magenta-1));
|
|
309
232
|
border: 1px solid transparent;
|
|
310
233
|
}
|
|
311
|
-
.sd-tag .sd-tag.sd-tag-checked.sd-tag-magenta .sd-icon-hover.sd-tag-icon-hover:hover::before {
|
|
312
|
-
background-color: rgb(var(--magenta-2));
|
|
313
|
-
}
|
|
314
|
-
.sd-tag .sd-tag-checkable.sd-tag-checked.sd-tag-magenta:hover {
|
|
315
|
-
background-color: rgb(var(--magenta-2));
|
|
316
|
-
border-color: transparent;
|
|
317
|
-
}
|
|
318
234
|
.sd-tag .sd-tag-checked.sd-tag-magenta.sd-tag-bordered,
|
|
319
235
|
.sd-tag .sd-tag-checked.sd-tag-magenta.sd-tag-bordered:hover {
|
|
320
236
|
border-color: rgb(var(--magenta-6));
|
|
@@ -1,194 +1,40 @@
|
|
|
1
1
|
@use '@style/mixins/icon-hover.scss' as icon-hover;
|
|
2
2
|
@use '@style/theme/index.scss' as theme;
|
|
3
|
-
@use '@components/tag/style/token.scss';
|
|
4
3
|
@use 'sass:math';
|
|
5
4
|
@use 'sass:string';
|
|
6
5
|
@use 'sass:map';
|
|
7
|
-
@use '
|
|
6
|
+
@use 'sass:meta';
|
|
8
7
|
@use '@style/mixins/index.scss' as *;
|
|
9
8
|
@use '@components/input/style/token.scss' as *;
|
|
10
9
|
@use '@components/input/style/input.scss' as *;
|
|
10
|
+
@use '@components/tag/style/token.scss' as token;
|
|
11
11
|
@use '@components/tag/style/index.scss' as *;
|
|
12
|
+
@use '@components/input-tag/style/token.scss' as inputTagToken;
|
|
12
13
|
@use '@components/input-tag/style/token.scss' as *;
|
|
13
14
|
|
|
14
|
-
$
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'input-color-bg_focus': $input-color-bg_focus,
|
|
23
|
-
'input-color-bg_hover': $input-color-bg_hover,
|
|
24
|
-
'input-color-border': $input-color-border,
|
|
25
|
-
'input-color-border_disabled': $input-color-border_disabled,
|
|
26
|
-
'input-color-border_error': $input-color-border_error,
|
|
27
|
-
'input-color-border_error_focus': $input-color-border_error_focus,
|
|
28
|
-
'input-color-border_error_hover': $input-color-border_error_hover,
|
|
29
|
-
'input-color-border_focus': $input-color-border_focus,
|
|
30
|
-
'input-color-border_hover': $input-color-border_hover,
|
|
31
|
-
'input-color-icon-clear-bg_hover': $input-color-icon-clear-bg_hover,
|
|
32
|
-
'input-color-shadow_error_focus': $input-color-shadow_error_focus,
|
|
33
|
-
'input-color-shadow_focus': $input-color-shadow_focus,
|
|
34
|
-
'input-color-text': $input-color-text,
|
|
35
|
-
'input-color-text_disabled': $input-color-text_disabled,
|
|
36
|
-
'input-feedback-icon-color_error': $input-feedback-icon-color_error,
|
|
37
|
-
'input-feedback-icon-color_success': $input-feedback-icon-color_success,
|
|
38
|
-
'input-feedback-icon-color_validating': $input-feedback-icon-color_validating,
|
|
39
|
-
'input-feedback-icon-color_warning': $input-feedback-icon-color_warning,
|
|
40
|
-
'input-group-border-radius_compact': $input-group-border-radius_compact,
|
|
41
|
-
'input-padding-horizontal': $input-padding-horizontal,
|
|
42
|
-
'input-size-shadow_error_focus': $input-size-shadow_error_focus,
|
|
43
|
-
'input-size-shadow_focus': $input-size-shadow_focus,
|
|
44
|
-
'input-tag-border-width': $input-tag-border-width,
|
|
45
|
-
'input-tag-color-bg_default': $input-tag-color-bg_default,
|
|
46
|
-
'input-tag-color-bg_default_focus': $input-tag-color-bg_default_focus,
|
|
47
|
-
'input-tag-color-bg_default_hover': $input-tag-color-bg_default_hover,
|
|
48
|
-
'input-tag-color-bg_disabled': $input-tag-color-bg_disabled,
|
|
49
|
-
'input-tag-color-bg_disabled_hover': $input-tag-color-bg_disabled_hover,
|
|
50
|
-
'input-tag-color-bg_error': $input-tag-color-bg_error,
|
|
51
|
-
'input-tag-color-bg_error_focus': $input-tag-color-bg_error_focus,
|
|
52
|
-
'input-tag-color-bg_error_hover': $input-tag-color-bg_error_hover,
|
|
53
|
-
'input-tag-color-border_default': $input-tag-color-border_default,
|
|
54
|
-
'input-tag-color-border_default_focus': $input-tag-color-border_default_focus,
|
|
55
|
-
'input-tag-color-border_default_hover': $input-tag-color-border_default_hover,
|
|
56
|
-
'input-tag-color-border_disabled': $input-tag-color-border_disabled,
|
|
57
|
-
'input-tag-color-border_disabled_focus': $input-tag-color-border_disabled_focus,
|
|
58
|
-
'input-tag-color-border_disabled_hover': $input-tag-color-border_disabled_hover,
|
|
59
|
-
'input-tag-color-border_error': $input-tag-color-border_error,
|
|
60
|
-
'input-tag-color-border_error_focus': $input-tag-color-border_error_focus,
|
|
61
|
-
'input-tag-color-border_error_hover': $input-tag-color-border_error_hover,
|
|
62
|
-
'input-tag-color-icon-clear-bg_hover': $input-tag-color-icon-clear-bg_hover,
|
|
63
|
-
'input-tag-color-shadow_default_focus': $input-tag-color-shadow_default_focus,
|
|
64
|
-
'input-tag-color-shadow_error_focus': $input-tag-color-shadow_error_focus,
|
|
65
|
-
'input-tag-color-text_default': $input-tag-color-text_default,
|
|
66
|
-
'input-tag-color-text_disabled': $input-tag-color-text_disabled,
|
|
67
|
-
'input-tag-color-text_error': $input-tag-color-text_error,
|
|
68
|
-
'input-tag-padding-horizontal': $input-tag-padding-horizontal,
|
|
69
|
-
'input-tag-size-default-font-size': $input-tag-size-default-font-size,
|
|
70
|
-
'input-tag-size-default-height': $input-tag-size-default-height,
|
|
71
|
-
'input-tag-size-default-tag-height': $input-tag-size-default-tag-height,
|
|
72
|
-
'input-tag-size-icon-clear': $input-tag-size-icon-clear,
|
|
73
|
-
'input-tag-size-icon-clear_hover': $input-tag-size-icon-clear_hover,
|
|
74
|
-
'input-tag-size-large-font-size': $input-tag-size-large-font-size,
|
|
75
|
-
'input-tag-size-large-height': $input-tag-size-large-height,
|
|
76
|
-
'input-tag-size-large-tag-height': $input-tag-size-large-tag-height,
|
|
77
|
-
'input-tag-size-medium-font-size': $input-tag-size-medium-font-size,
|
|
78
|
-
'input-tag-size-medium-height': $input-tag-size-medium-height,
|
|
79
|
-
'input-tag-size-medium-tag-height': $input-tag-size-medium-tag-height,
|
|
80
|
-
'input-tag-size-mini-font-size': $input-tag-size-mini-font-size,
|
|
81
|
-
'input-tag-size-mini-height': $input-tag-size-mini-height,
|
|
82
|
-
'input-tag-size-mini-tag-height': $input-tag-size-mini-tag-height,
|
|
83
|
-
'input-tag-size-small-font-size': $input-tag-size-small-font-size,
|
|
84
|
-
'input-tag-size-small-height': $input-tag-size-small-height,
|
|
85
|
-
'input-tag-size-small-tag-height': $input-tag-size-small-tag-height,
|
|
86
|
-
'input-tag-size-shadow_default_focus': $input-tag-size-shadow_default_focus,
|
|
87
|
-
'input-tag-size-shadow_error_focus': $input-tag-size-shadow_error_focus,
|
|
88
|
-
'input-tag-tag-color-bg': $input-tag-tag-color-bg,
|
|
89
|
-
'input-tag-tag-color-bg_disabled': $input-tag-tag-color-bg_disabled,
|
|
90
|
-
'input-tag-tag-color-bg_focus': $input-tag-tag-color-bg_focus,
|
|
91
|
-
'input-tag-tag-color-border': $input-tag-tag-color-border,
|
|
92
|
-
'input-tag-tag-color-border_disabled': $input-tag-tag-color-border_disabled,
|
|
93
|
-
'input-tag-tag-color-border_focus': $input-tag-tag-color-border_focus,
|
|
94
|
-
'input-tag-tag-font-size': $input-tag-tag-font-size,
|
|
95
|
-
'input-tag-tag-margin-right': $input-tag-tag-margin-right,
|
|
96
|
-
'input-tag-tag-margin-vertical': $input-tag-tag-margin-vertical,
|
|
97
|
-
'input-tag-tag-remove-icon-color-bg': $input-tag-tag-remove-icon-color-bg,
|
|
98
|
-
'input-tag-tag-remove-icon-color-bg_focus': $input-tag-tag-remove-icon-color-bg_focus,
|
|
99
|
-
'prefix': theme.$prefix,
|
|
100
|
-
'tag-blue-color-bg': token.$tag-blue-color-bg,
|
|
101
|
-
'tag-blue-color-bg_hover': token.$tag-blue-color-bg_hover,
|
|
102
|
-
'tag-blue-color-border': token.$tag-blue-color-border,
|
|
103
|
-
'tag-blue-color-border_hover': token.$tag-blue-color-border_hover,
|
|
104
|
-
'tag-blue-color-icon-bg_hover': token.$tag-blue-color-icon-bg_hover,
|
|
105
|
-
'tag-color-bg-not-checked_hover': token.$tag-color-bg-not-checked_hover,
|
|
106
|
-
'tag-custom-color-icon-bg_hover': token.$tag-custom-color-icon-bg_hover,
|
|
107
|
-
'tag-custom-color-text': token.$tag-custom-color-text,
|
|
108
|
-
'tag-cyan-color-bg': token.$tag-cyan-color-bg,
|
|
109
|
-
'tag-cyan-color-bg_hover': token.$tag-cyan-color-bg_hover,
|
|
110
|
-
'tag-cyan-color-border': token.$tag-cyan-color-border,
|
|
111
|
-
'tag-cyan-color-border_hover': token.$tag-cyan-color-border_hover,
|
|
112
|
-
'tag-cyan-color-icon-bg_hover': token.$tag-cyan-color-icon-bg_hover,
|
|
113
|
-
'tag-default-color-bg': token.$tag-default-color-bg,
|
|
114
|
-
'tag-default-color-bg_hover': token.$tag-default-color-bg_hover,
|
|
115
|
-
'tag-default-color-border': token.$tag-default-color-border,
|
|
116
|
-
'tag-default-color-border_hover': token.$tag-default-color-border_hover,
|
|
117
|
-
'tag-gold-color-bg': token.$tag-gold-color-bg,
|
|
118
|
-
'tag-gold-color-bg_hover': token.$tag-gold-color-bg_hover,
|
|
119
|
-
'tag-gold-color-border': token.$tag-gold-color-border,
|
|
120
|
-
'tag-gold-color-border_hover': token.$tag-gold-color-border_hover,
|
|
121
|
-
'tag-gold-color-icon-bg_hover': token.$tag-gold-color-icon-bg_hover,
|
|
122
|
-
'tag-gray-color-bg': token.$tag-gray-color-bg,
|
|
123
|
-
'tag-gray-color-bg_hover': token.$tag-gray-color-bg_hover,
|
|
124
|
-
'tag-gray-color-border': token.$tag-gray-color-border,
|
|
125
|
-
'tag-gray-color-border_hover': token.$tag-gray-color-border_hover,
|
|
126
|
-
'tag-gray-color-icon-bg_hover': token.$tag-gray-color-icon-bg_hover,
|
|
127
|
-
'tag-green-color-bg': token.$tag-green-color-bg,
|
|
128
|
-
'tag-green-color-bg_hover': token.$tag-green-color-bg_hover,
|
|
129
|
-
'tag-green-color-border': token.$tag-green-color-border,
|
|
130
|
-
'tag-green-color-border_hover': token.$tag-green-color-border_hover,
|
|
131
|
-
'tag-green-color-icon-bg_hover': token.$tag-green-color-icon-bg_hover,
|
|
132
|
-
'tag-lime-color-bg': token.$tag-lime-color-bg,
|
|
133
|
-
'tag-lime-color-bg_hover': token.$tag-lime-color-bg_hover,
|
|
134
|
-
'tag-lime-color-border': token.$tag-lime-color-border,
|
|
135
|
-
'tag-lime-color-border_hover': token.$tag-lime-color-border_hover,
|
|
136
|
-
'tag-lime-color-icon-bg_hover': token.$tag-lime-color-icon-bg_hover,
|
|
137
|
-
'tag-magenta-color-bg': token.$tag-magenta-color-bg,
|
|
138
|
-
'tag-magenta-color-bg_hover': token.$tag-magenta-color-bg_hover,
|
|
139
|
-
'tag-magenta-color-border': token.$tag-magenta-color-border,
|
|
140
|
-
'tag-magenta-color-border_hover': token.$tag-magenta-color-border_hover,
|
|
141
|
-
'tag-magenta-color-icon-bg_hover': token.$tag-magenta-color-icon-bg_hover,
|
|
142
|
-
'tag-orange-color-bg': token.$tag-orange-color-bg,
|
|
143
|
-
'tag-orange-color-bg_hover': token.$tag-orange-color-bg_hover,
|
|
144
|
-
'tag-orange-color-border': token.$tag-orange-color-border,
|
|
145
|
-
'tag-orange-color-border_hover': token.$tag-orange-color-border_hover,
|
|
146
|
-
'tag-orange-color-icon-bg_hover': token.$tag-orange-color-icon-bg_hover,
|
|
147
|
-
'tag-orangered-color-bg': token.$tag-orangered-color-bg,
|
|
148
|
-
'tag-orangered-color-bg_hover': token.$tag-orangered-color-bg_hover,
|
|
149
|
-
'tag-orangered-color-border': token.$tag-orangered-color-border,
|
|
150
|
-
'tag-orangered-color-border_hover': token.$tag-orangered-color-border_hover,
|
|
151
|
-
'tag-orangered-color-icon-bg_hover': token.$tag-orangered-color-icon-bg_hover,
|
|
152
|
-
'tag-pinkpurple-color-bg': token.$tag-pinkpurple-color-bg,
|
|
153
|
-
'tag-pinkpurple-color-bg_hover': token.$tag-pinkpurple-color-bg_hover,
|
|
154
|
-
'tag-pinkpurple-color-border': token.$tag-pinkpurple-color-border,
|
|
155
|
-
'tag-pinkpurple-color-border_hover': token.$tag-pinkpurple-color-border_hover,
|
|
156
|
-
'tag-pinkpurple-color-icon-bg_hover': token.$tag-pinkpurple-color-icon-bg_hover,
|
|
157
|
-
'tag-prefix-cls': $tag-prefix-cls,
|
|
158
|
-
'tag-purple-color-bg': token.$tag-purple-color-bg,
|
|
159
|
-
'tag-purple-color-bg_hover': token.$tag-purple-color-bg_hover,
|
|
160
|
-
'tag-purple-color-border': token.$tag-purple-color-border,
|
|
161
|
-
'tag-purple-color-border_hover': token.$tag-purple-color-border_hover,
|
|
162
|
-
'tag-purple-color-icon-bg_hover': token.$tag-purple-color-icon-bg_hover,
|
|
163
|
-
'tag-red-color-bg': token.$tag-red-color-bg,
|
|
164
|
-
'tag-red-color-bg_hover': token.$tag-red-color-bg_hover,
|
|
165
|
-
'tag-red-color-border': token.$tag-red-color-border,
|
|
166
|
-
'tag-red-color-border_hover': token.$tag-red-color-border_hover,
|
|
167
|
-
'tag-red-color-icon-bg_hover': token.$tag-red-color-icon-bg_hover,
|
|
168
|
-
'tag-sdblue-color-bg': token.$tag-sdblue-color-bg,
|
|
169
|
-
'tag-sdblue-color-bg_hover': token.$tag-sdblue-color-bg_hover,
|
|
170
|
-
'tag-sdblue-color-border': token.$tag-sdblue-color-border,
|
|
171
|
-
'tag-sdblue-color-border_hover': token.$tag-sdblue-color-border_hover,
|
|
172
|
-
'tag-sdblue-color-icon-bg_hover': token.$tag-sdblue-color-icon-bg_hover,
|
|
173
|
-
);
|
|
174
|
-
|
|
175
|
-
@function less-var($name, $fallback: null) {
|
|
176
|
-
@return legacyLessVar.get($less-vars, $name, $fallback);
|
|
15
|
+
@function token-var($name, $fallback: null) {
|
|
16
|
+
$value: map.get(meta.module-variables('inputTagToken'), $name);
|
|
17
|
+
|
|
18
|
+
@if $value == null {
|
|
19
|
+
@return $fallback;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@return $value;
|
|
177
23
|
}
|
|
178
24
|
|
|
179
25
|
@mixin input-tag-size($cls, $size) {
|
|
180
26
|
$font-size-token: string.unquote('input-tag-size-#{$size}-font-size');
|
|
181
27
|
$height-token: string.unquote('input-tag-size-#{$size}-height');
|
|
182
28
|
$tag-height-token: string.unquote('input-tag-size-#{$size}-tag-height');
|
|
183
|
-
$vertical-padding: math.div(
|
|
184
|
-
|
|
29
|
+
$vertical-padding: math.div(token-var($height-token), 2) - math.div(
|
|
30
|
+
token-var($tag-height-token),
|
|
185
31
|
2
|
|
186
32
|
) -
|
|
187
33
|
$input-tag-border-width - math.div($input-tag-tag-margin-vertical, 2);
|
|
188
34
|
$vertical-margin: math.div($input-tag-tag-margin-vertical, 2);
|
|
189
35
|
|
|
190
36
|
&.#{$cls}-size-#{$size} {
|
|
191
|
-
font-size:
|
|
37
|
+
font-size: token-var($font-size-token);
|
|
192
38
|
|
|
193
39
|
.#{$cls}-inner {
|
|
194
40
|
padding-top: $vertical-padding;
|
|
@@ -199,14 +45,14 @@ $less-vars: (
|
|
|
199
45
|
.#{$cls}-input {
|
|
200
46
|
margin-top: $vertical-margin;
|
|
201
47
|
margin-bottom: $vertical-margin;
|
|
202
|
-
line-height:
|
|
48
|
+
line-height: token-var($tag-height-token) - 2;
|
|
203
49
|
vertical-align: middle;
|
|
204
50
|
}
|
|
205
51
|
|
|
206
52
|
.#{$cls}-tag,
|
|
207
53
|
.#{$cls}-input {
|
|
208
54
|
height: auto;
|
|
209
|
-
min-height:
|
|
55
|
+
min-height: token-var($tag-height-token);
|
|
210
56
|
}
|
|
211
57
|
}
|
|
212
58
|
}
|