@aloudata/aloudata-design 0.3.0-beta.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/es/Breadcrumb/index.d.ts +0 -1
- package/es/Breadcrumb/style/index.less +11 -3
- package/es/Button/index.js +17 -2
- package/es/Button/style/index.less +41 -39
- package/es/Button/style/variables.less +9 -2
- package/es/Card/index.d.ts +3 -0
- package/es/Card/index.js +3 -0
- package/es/{Message → Card}/style/index.d.ts +0 -0
- package/es/{Message → Card}/style/index.js +0 -0
- package/es/{Message → Card}/style/index.less +0 -0
- package/es/Checkbox/index.d.ts +0 -1
- package/es/Checkbox/style/index.less +19 -0
- package/es/Drawer/index.d.ts +4 -0
- package/es/Drawer/index.js +3 -0
- package/es/{Notification → Drawer}/style/index.d.ts +0 -0
- package/es/{Notification → Drawer}/style/index.js +0 -0
- package/es/{Notification → Drawer}/style/index.less +0 -0
- package/es/Dropdown/Button.js +3 -3
- package/es/Empty/image/Authority.d.ts +0 -1
- package/es/Empty/image/Dataspace.d.ts +0 -1
- package/es/Empty/image/Search.d.ts +0 -1
- package/es/Empty/image/Simple.d.ts +0 -1
- package/es/Empty/image/Worksheet.d.ts +0 -1
- package/es/Empty/image/empty.d.ts +0 -1
- package/es/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CheckLine.d.ts +13 -0
- package/es/Icon/icons/CheckLine.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -53
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Group/index.d.ts +0 -1
- package/es/Input/components/Password/index.js +6 -5
- package/es/Input/style/index.less +1 -1
- package/es/InputNumber/index.d.ts +0 -1
- package/es/InputNumber/style/index.less +88 -16
- package/es/Menu/Divider.d.ts +0 -1
- package/es/Menu/style/index.less +4 -3
- package/es/Modal/index.js +21 -12
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +20 -0
- package/es/Modal/style/index.less +3 -3
- package/es/Navigator/components/Header/index.d.ts +0 -1
- package/es/Navigator/components/Menu/index.d.ts +0 -1
- package/es/Navigator/components/MenuItem/index.d.ts +1 -1
- package/es/Navigator/index.d.ts +1 -1
- package/es/Navigator/style/index.less +46 -5
- package/es/Popover/index.d.ts +0 -1
- package/es/Select/index.d.ts +2 -1
- package/es/Select/index.js +2 -1
- package/es/Select/rc-select/OptionList.js +3 -4
- package/es/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.d.ts +0 -1
- package/es/Select/style/index.js +0 -1
- package/es/Select/style/index.less +105 -10
- package/es/Select/style/variables.less +20 -9
- package/es/Select/style/variables.less.d.ts +4 -1
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +10 -13
- package/es/Table/Table.d.ts +0 -1
- package/es/Table/Table.js +23 -14
- package/es/Table/style/index.less +7 -0
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +9 -6
- package/es/Tabs/style/index.less +67 -1
- package/es/index.d.ts +8 -3
- package/es/index.js +6 -3
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +132 -0
- package/es/locale/zh_CN.d.ts +3 -2
- package/es/locale/zh_CN.js +131 -2
- package/es/locale-provider/LocaleReceiver.d.ts +4 -0
- package/es/locale-provider/LocaleReceiver.js +3 -0
- package/es/locale-provider/context.d.ts +7 -0
- package/es/locale-provider/context.js +3 -0
- package/es/locale-provider/default.d.ts +2 -0
- package/es/locale-provider/default.js +2 -0
- package/es/locale-provider/en_US.d.ts +2 -0
- package/es/locale-provider/en_US.js +2 -0
- package/es/locale-provider/index.d.ts +61 -0
- package/es/locale-provider/index.js +102 -0
- package/es/locale-provider/style/index.d.ts +1 -0
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/locale-provider/zh_CN.d.ts +2 -0
- package/es/locale-provider/zh_CN.js +2 -0
- package/es/{Message → message}/index.d.ts +0 -0
- package/es/{Message → message}/index.js +0 -0
- package/{lib/Message → es/message}/style/index.d.ts +0 -0
- package/es/message/style/index.js +2 -0
- package/{lib/Message → es/message}/style/index.less +0 -0
- package/es/{Notification → notification}/index.d.ts +0 -0
- package/es/{Notification → notification}/index.js +0 -0
- package/{lib/Notification → es/notification}/style/index.d.ts +0 -0
- package/es/notification/style/index.js +2 -0
- package/{lib/Notification → es/notification}/style/index.less +0 -0
- package/es/style/index.less +1 -0
- package/es/style/themes/default/scrollBar.less +13 -0
- package/lib/Breadcrumb/index.d.ts +0 -1
- package/lib/Breadcrumb/style/index.less +11 -3
- package/lib/Button/index.js +18 -2
- package/lib/Button/style/index.less +41 -39
- package/lib/Button/style/variables.less +9 -2
- package/lib/Card/index.d.ts +3 -0
- package/lib/Card/index.js +15 -0
- package/lib/Card/style/index.d.ts +2 -0
- package/lib/{Message → Card}/style/index.js +0 -0
- package/lib/Card/style/index.less +1 -0
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Checkbox/style/index.less +19 -0
- package/lib/Drawer/index.d.ts +4 -0
- package/lib/Drawer/index.js +15 -0
- package/lib/Drawer/style/index.d.ts +2 -0
- package/lib/{Notification → Drawer}/style/index.js +0 -0
- package/lib/Drawer/style/index.less +1 -0
- package/lib/Dropdown/Button.js +3 -3
- package/lib/Empty/image/Authority.d.ts +0 -1
- package/lib/Empty/image/Dataspace.d.ts +0 -1
- package/lib/Empty/image/Search.d.ts +0 -1
- package/lib/Empty/image/Simple.d.ts +0 -1
- package/lib/Empty/image/Worksheet.d.ts +0 -1
- package/lib/Empty/image/empty.d.ts +0 -1
- package/lib/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CheckLine.d.ts +13 -0
- package/lib/Icon/icons/CheckLine.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -59
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Group/index.d.ts +0 -1
- package/lib/Input/components/Password/index.js +7 -5
- package/lib/Input/style/index.less +1 -1
- package/lib/InputNumber/index.d.ts +0 -1
- package/lib/InputNumber/style/index.less +88 -16
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Menu/style/index.less +4 -3
- package/lib/Modal/index.js +23 -12
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +31 -0
- package/lib/Modal/style/index.less +3 -3
- package/lib/Navigator/components/Header/index.d.ts +0 -1
- package/lib/Navigator/components/Menu/index.d.ts +0 -1
- package/lib/Navigator/components/MenuItem/index.d.ts +1 -1
- package/lib/Navigator/index.d.ts +1 -1
- package/lib/Navigator/style/index.less +46 -5
- package/lib/Popover/index.d.ts +0 -1
- package/lib/Select/index.d.ts +2 -1
- package/lib/Select/index.js +2 -1
- package/lib/Select/rc-select/OptionList.js +3 -4
- package/lib/Select/rc-select/Selector/MultipleSelector.js +13 -3
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.d.ts +0 -1
- package/lib/Select/style/index.js +0 -2
- package/lib/Select/style/index.less +105 -10
- package/lib/Select/style/variables.less +20 -9
- package/lib/Select/style/variables.less.d.ts +4 -1
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +11 -14
- package/lib/Table/Table.d.ts +0 -1
- package/lib/Table/Table.js +25 -15
- package/lib/Table/style/index.less +7 -0
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +9 -6
- package/lib/Tabs/style/index.less +67 -1
- package/lib/index.d.ts +8 -3
- package/lib/index.js +38 -14
- package/lib/locale/default.d.ts +2 -0
- package/lib/locale/default.js +13 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +146 -0
- package/lib/locale/zh_CN.d.ts +3 -2
- package/lib/locale/zh_CN.js +134 -2
- package/lib/locale-provider/LocaleReceiver.d.ts +4 -0
- package/lib/locale-provider/LocaleReceiver.js +23 -0
- package/lib/locale-provider/context.d.ts +7 -0
- package/lib/locale-provider/context.js +12 -0
- package/lib/locale-provider/default.d.ts +2 -0
- package/lib/locale-provider/default.js +13 -0
- package/lib/locale-provider/en_US.d.ts +2 -0
- package/lib/locale-provider/en_US.js +13 -0
- package/lib/locale-provider/index.d.ts +61 -0
- package/lib/locale-provider/index.js +116 -0
- package/lib/locale-provider/style/index.d.ts +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/locale-provider/zh_CN.d.ts +2 -0
- package/lib/locale-provider/zh_CN.js +13 -0
- package/lib/{Message → message}/index.d.ts +0 -0
- package/lib/{Message → message}/index.js +0 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +1 -0
- package/lib/{Notification → notification}/index.d.ts +0 -0
- package/lib/{Notification → notification}/index.js +0 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +1 -0
- package/lib/style/index.less +1 -0
- package/lib/style/themes/default/scrollBar.less +13 -0
- package/package.json +10 -8
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +0 -4
- package/es/Table/components/Empty/index.js +0 -16
- package/es/Table/components/Empty/index.less +0 -24
- package/lib/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +0 -4
- package/lib/Table/components/Empty/index.js +0 -30
- package/lib/Table/components/Empty/index.less +0 -24
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity */
|
|
1
2
|
@import '../../style/index.less';
|
|
2
3
|
|
|
3
4
|
@InputNumber-height-large: 36px;
|
|
4
5
|
@InputNumber-fontSize-large: 16px;
|
|
6
|
+
@InputNumber-borderRadius-large: 8px;
|
|
5
7
|
|
|
6
8
|
@InputNumber-height-middle: 32px;
|
|
7
9
|
@InputNumber-fontSize-middle: 14px;
|
|
10
|
+
@InputNumber-borderRadius-middle: 6px;
|
|
8
11
|
|
|
9
12
|
@InputNumber-height-small: 28px;
|
|
10
13
|
@InputNumber-fontSize-small: 12px;
|
|
11
|
-
|
|
12
|
-
@InputNumber-borderRadius: 8px;
|
|
14
|
+
@InputNumber-borderRadius-small: 4px;
|
|
13
15
|
//默认
|
|
14
16
|
@InputNumber-bgColor: @BG97;
|
|
15
17
|
@InputNumber-borderColor: @NL90;
|
|
@@ -22,24 +24,25 @@
|
|
|
22
24
|
//disable
|
|
23
25
|
@InputNumber-disabled-bgColor: @BG95;
|
|
24
26
|
@InputNumber-disabled-borderColor: @NL90;
|
|
25
|
-
@InputNumber-disabled-color: @
|
|
27
|
+
@InputNumber-disabled-color: @NL60;
|
|
26
28
|
//光标颜色
|
|
27
29
|
@InputNumber-cursor-color: @B60;
|
|
28
30
|
|
|
29
31
|
//前后填充
|
|
30
32
|
@InputNumber-addon-bgColor: @BG95;
|
|
31
|
-
@InputNumber-addon-color: @
|
|
32
|
-
@InputNumber-addon-
|
|
33
|
+
@InputNumber-addon-color: @NL30;
|
|
34
|
+
@InputNumber-addon-borderColor: @NL90;
|
|
35
|
+
@InputNumber-addon-disable-color: @NL60;
|
|
33
36
|
|
|
34
37
|
.ald-inputNumber {
|
|
35
38
|
&.ant-input-number {
|
|
36
39
|
height: @InputNumber-height-middle;
|
|
37
|
-
overflow: hidden;
|
|
40
|
+
// overflow: hidden;
|
|
38
41
|
color: @InputNumber-color;
|
|
39
42
|
font-size: @InputNumber-fontSize-middle;
|
|
40
43
|
background-color: @InputNumber-bgColor;
|
|
41
44
|
border-color: @InputNumber-borderColor;
|
|
42
|
-
border-radius: @InputNumber-borderRadius;
|
|
45
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
43
46
|
box-shadow: none;
|
|
44
47
|
|
|
45
48
|
.ant-input-number-input-wrap {
|
|
@@ -52,28 +55,56 @@
|
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
.ant-input-number-handler-wrap {
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
|
|
55
60
|
.ant-input-number-handler {
|
|
56
61
|
background-color: @BG95;
|
|
57
|
-
}
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
.ant-input-number-handler-up-inner,
|
|
64
|
+
.ant-input-number-handler-down-inner {
|
|
65
|
+
color: @NL50;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: @NL95;
|
|
71
|
+
|
|
72
|
+
.ant-input-number-handler-up-inner,
|
|
73
|
+
.ant-input-number-handler-down-inner {
|
|
74
|
+
color: @B60;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
61
77
|
}
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
&.ald-inputNumber-large {
|
|
65
81
|
height: @InputNumber-height-large;
|
|
66
82
|
font-size: @InputNumber-fontSize-large;
|
|
83
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
84
|
+
|
|
85
|
+
.ant-input-number-handler-wrap {
|
|
86
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
87
|
+
}
|
|
67
88
|
}
|
|
68
89
|
|
|
69
90
|
&.ald-inputNumber-middle {
|
|
70
91
|
height: @InputNumber-height-middle;
|
|
71
92
|
font-size: @InputNumber-fontSize-middle;
|
|
93
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
94
|
+
|
|
95
|
+
.ant-input-number-handler-wrap {
|
|
96
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
97
|
+
}
|
|
72
98
|
}
|
|
73
99
|
|
|
74
100
|
&.ald-inputNumber-small {
|
|
75
101
|
height: @InputNumber-height-small;
|
|
76
102
|
font-size: @InputNumber-fontSize-small;
|
|
103
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
104
|
+
|
|
105
|
+
.ant-input-number-handler-wrap {
|
|
106
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
107
|
+
}
|
|
77
108
|
}
|
|
78
109
|
|
|
79
110
|
&-disabled {
|
|
@@ -87,44 +118,79 @@
|
|
|
87
118
|
}
|
|
88
119
|
}
|
|
89
120
|
|
|
121
|
+
&:hover:not(.ald-inputNumber-disabled),
|
|
90
122
|
&-focused {
|
|
91
123
|
background-color: @InputNumber-active-bgColor;
|
|
92
124
|
border-color: @InputNumber-active-borderColor;
|
|
125
|
+
box-shadow: 0 0 0 0.5px @InputNumber-active-borderColor;
|
|
93
126
|
}
|
|
94
127
|
}
|
|
95
128
|
|
|
96
129
|
&.ant-input-number-group-wrapper {
|
|
97
130
|
// height: @InputNumber-height-middle;
|
|
98
|
-
overflow: hidden;
|
|
131
|
+
// overflow: hidden;
|
|
99
132
|
color: @InputNumber-color;
|
|
100
|
-
background-color: @InputNumber-wrapper-bgColor;
|
|
133
|
+
// background-color: @InputNumber-wrapper-bgColor;
|
|
101
134
|
border-color: @InputNumber-borderColor;
|
|
102
|
-
border-radius: @InputNumber-borderRadius;
|
|
103
135
|
box-shadow: none;
|
|
104
136
|
|
|
105
137
|
&.ald-inputNumber-large {
|
|
106
138
|
font-size: @InputNumber-fontSize-large;
|
|
139
|
+
border-radius: @InputNumber-borderRadius-large;
|
|
140
|
+
|
|
141
|
+
.ant-input-number-group-addon {
|
|
142
|
+
&:first-child {
|
|
143
|
+
border-radius: @InputNumber-borderRadius-large 0 0 @InputNumber-borderRadius-large;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:last-child {
|
|
147
|
+
border-radius: 0 @InputNumber-borderRadius-large @InputNumber-borderRadius-large 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
107
150
|
}
|
|
108
151
|
|
|
109
152
|
&.ald-inputNumber-middle {
|
|
110
153
|
font-size: @InputNumber-fontSize-middle;
|
|
154
|
+
border-radius: @InputNumber-borderRadius-middle;
|
|
155
|
+
|
|
156
|
+
.ant-input-number-group-addon {
|
|
157
|
+
&:first-child {
|
|
158
|
+
border-radius: @InputNumber-borderRadius-middle 0 0 @InputNumber-borderRadius-middle;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:last-child {
|
|
162
|
+
border-radius: 0 @InputNumber-borderRadius-middle @InputNumber-borderRadius-middle 0;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
111
165
|
}
|
|
112
166
|
|
|
113
167
|
&.ald-inputNumber-small {
|
|
114
168
|
font-size: @InputNumber-fontSize-small;
|
|
169
|
+
border-radius: @InputNumber-borderRadius-small;
|
|
170
|
+
|
|
171
|
+
.ant-input-number-group-addon {
|
|
172
|
+
&:first-child {
|
|
173
|
+
border-radius: @InputNumber-borderRadius-small 0 0 @InputNumber-borderRadius-small;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&:last-child {
|
|
177
|
+
border-radius: 0 @InputNumber-borderRadius-small @InputNumber-borderRadius-small 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
115
180
|
}
|
|
116
181
|
|
|
117
182
|
.ant-input-number-wrapper {
|
|
118
183
|
height: 100%;
|
|
119
|
-
overflow: hidden;
|
|
184
|
+
// overflow: hidden;
|
|
120
185
|
font-size: inherit;
|
|
121
186
|
|
|
122
187
|
.ant-input-number-group-addon {
|
|
123
|
-
overflow: hidden;
|
|
188
|
+
// overflow: hidden;
|
|
124
189
|
color: @InputNumber-addon-color;
|
|
125
190
|
font-size: inherit;
|
|
126
191
|
background-color: @InputNumber-addon-bgColor;
|
|
127
|
-
border-radius: @InputNumber-borderRadius;
|
|
192
|
+
// border-radius: @InputNumber-borderRadius-middle;
|
|
193
|
+
border-color: @InputNumber-addon-borderColor;
|
|
128
194
|
|
|
129
195
|
&:first-child {
|
|
130
196
|
border-top-right-radius: 0;
|
|
@@ -138,8 +204,14 @@
|
|
|
138
204
|
}
|
|
139
205
|
|
|
140
206
|
.ald-inputNumber {
|
|
207
|
+
position: relative;
|
|
208
|
+
z-index: 2;
|
|
141
209
|
margin: 0;
|
|
142
210
|
padding: 0;
|
|
211
|
+
|
|
212
|
+
.ant-input-number-handler-wrap {
|
|
213
|
+
border-radius: 0;
|
|
214
|
+
}
|
|
143
215
|
}
|
|
144
216
|
}
|
|
145
217
|
|
package/lib/Menu/Divider.d.ts
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
background-color: @NL90;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.ald-
|
|
19
|
+
.ald-iconSvg {
|
|
20
20
|
font-size: 16px;
|
|
21
|
-
font-family: @icon-font !important;
|
|
21
|
+
// font-family: @icon-font !important;
|
|
22
22
|
font-style: normal;
|
|
23
23
|
-webkit-font-smoothing: antialiased;
|
|
24
24
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
.ant-dropdown-menu-submenu-title
|
|
32
32
|
.ant-dropdown-menu-submenu-expand-icon
|
|
33
33
|
.ant-dropdown-menu-submenu-arrow-icon {
|
|
34
|
-
|
|
34
|
+
color: @NL50;
|
|
35
|
+
.ald-iconSvg('arrows_right_sm',14px);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
|
package/lib/Modal/index.js
CHANGED
|
@@ -21,9 +21,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
21
21
|
|
|
22
22
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _CloseLine = _interopRequireDefault(require("../Icon/icons/CloseLine"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _LocaleReceiver = _interopRequireDefault(require("../locale-provider/LocaleReceiver"));
|
|
27
|
+
|
|
28
|
+
var _locale = require("./locale");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "confirmLoading", "closeIcon"];
|
|
27
31
|
|
|
28
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
33
|
|
|
@@ -54,17 +58,24 @@ var OriginModal = function OriginModal(props) {
|
|
|
54
58
|
onOk = props.onOk,
|
|
55
59
|
onCancel = props.onCancel,
|
|
56
60
|
width = props.width,
|
|
61
|
+
confirmLoading = props.confirmLoading,
|
|
57
62
|
closeIcon = props.closeIcon,
|
|
58
63
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
59
64
|
|
|
60
|
-
var Footer = /*#__PURE__*/_react.default.createElement(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
var Footer = /*#__PURE__*/_react.default.createElement(_LocaleReceiver.default, {
|
|
66
|
+
componentName: "Modal",
|
|
67
|
+
defaultLocale: (0, _locale.getConfirmLocale)()
|
|
68
|
+
}, function (locale) {
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
70
|
+
size: "large",
|
|
71
|
+
onClick: onCancel
|
|
72
|
+
}, cancelText || (locale === null || locale === void 0 ? void 0 : locale.cancelText)), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
73
|
+
type: "primary",
|
|
74
|
+
loading: confirmLoading,
|
|
75
|
+
size: "large",
|
|
76
|
+
onClick: onOk
|
|
77
|
+
}, okText || (locale === null || locale === void 0 ? void 0 : locale.okText)));
|
|
78
|
+
});
|
|
68
79
|
|
|
69
80
|
return /*#__PURE__*/_react.default.createElement(_modal.default, Object.assign({}, restProps, {
|
|
70
81
|
onCancel: onCancel,
|
|
@@ -73,8 +84,8 @@ var OriginModal = function OriginModal(props) {
|
|
|
73
84
|
width: width || DEFAULT_WIDTH,
|
|
74
85
|
closeIcon: closeIcon || /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
75
86
|
size: "small",
|
|
76
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
77
|
-
|
|
87
|
+
icon: /*#__PURE__*/_react.default.createElement(_CloseLine.default, {
|
|
88
|
+
fill: "currentColor",
|
|
78
89
|
size: 12
|
|
79
90
|
}),
|
|
80
91
|
className: "ald-modal-close"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.changeConfirmLocale = changeConfirmLocale;
|
|
7
|
+
exports.getConfirmLocale = getConfirmLocale;
|
|
8
|
+
|
|
9
|
+
var _default = _interopRequireDefault(require("../locale/default"));
|
|
10
|
+
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
19
|
+
var runtimeLocale = _objectSpread({}, _default.default.Modal);
|
|
20
|
+
|
|
21
|
+
function changeConfirmLocale(newLocale) {
|
|
22
|
+
if (newLocale) {
|
|
23
|
+
runtimeLocale = _objectSpread(_objectSpread({}, runtimeLocale), newLocale);
|
|
24
|
+
} else {
|
|
25
|
+
runtimeLocale = _objectSpread({}, _default.default.Modal);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getConfirmLocale() {
|
|
30
|
+
return runtimeLocale;
|
|
31
|
+
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
.ald-modal-close {
|
|
10
10
|
position: relative;
|
|
11
|
-
top:
|
|
12
|
-
left: -
|
|
11
|
+
top: 8px;
|
|
12
|
+
left: -16px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.ant-modal-header {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.ant-btn-default {
|
|
108
|
-
padding: @Button-border-padding;
|
|
108
|
+
padding: @Button-border-padding-middle;
|
|
109
109
|
color: @Button-secondary-color;
|
|
110
110
|
background-color: @Button-secondary-bgColor;
|
|
111
111
|
border: 1px solid;
|
package/lib/Navigator/index.d.ts
CHANGED
|
@@ -47,5 +47,5 @@ export interface INavigatorProps {
|
|
|
47
47
|
}) => void;
|
|
48
48
|
}
|
|
49
49
|
export type { IMenuItem } from './components/Menu';
|
|
50
|
-
export type { ISelectedMenuInfo } from './components/MenuItem';
|
|
50
|
+
export type { ISelectedMenuInfo, IMenuItemContentProps } from './components/MenuItem';
|
|
51
51
|
export default Navigator;
|
|
@@ -67,26 +67,46 @@
|
|
|
67
67
|
height: 48px;
|
|
68
68
|
margin-top: 12px;
|
|
69
69
|
padding: 0 12px;
|
|
70
|
-
.textStyle(@BG60, 14px, 48px,
|
|
70
|
+
.textStyle(@BG60, 14px, 48px, 400, normal);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.ald-nav-menu-item {
|
|
75
|
+
position: relative;
|
|
75
76
|
display: flex;
|
|
76
77
|
align-items: center;
|
|
77
78
|
height: 48px;
|
|
79
|
+
margin-bottom: 4px;
|
|
78
80
|
padding: 0 12px;
|
|
79
81
|
line-height: 48px;
|
|
80
82
|
border-radius: 8px;
|
|
81
83
|
|
|
84
|
+
&::before {
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 0;
|
|
88
|
+
display: block;
|
|
89
|
+
width: 0%;
|
|
90
|
+
height: inherit;
|
|
91
|
+
background: @ND80;
|
|
92
|
+
border-radius: inherit;
|
|
93
|
+
content: '';
|
|
94
|
+
}
|
|
95
|
+
|
|
82
96
|
&-icon {
|
|
97
|
+
position: relative;
|
|
98
|
+
z-index: 1;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
83
101
|
margin-right: 12px;
|
|
84
102
|
}
|
|
85
103
|
|
|
86
104
|
&-content {
|
|
105
|
+
position: relative;
|
|
106
|
+
z-index: 1;
|
|
87
107
|
flex: 1;
|
|
88
108
|
overflow: hidden;
|
|
89
|
-
.textStyle(@B95, 16px, 24px,
|
|
109
|
+
.textStyle(@B95, 16px, 24px, 400, normal);
|
|
90
110
|
|
|
91
111
|
&-text {
|
|
92
112
|
white-space: nowrap;
|
|
@@ -94,14 +114,18 @@
|
|
|
94
114
|
}
|
|
95
115
|
|
|
96
116
|
&:hover {
|
|
117
|
+
background-color: @ND90;
|
|
97
118
|
cursor: pointer;
|
|
98
119
|
}
|
|
99
120
|
|
|
100
121
|
&.ald-nav-menu-item-selected {
|
|
101
|
-
background-color: @B60;
|
|
102
|
-
|
|
103
122
|
.ald-nav-menu-item-content {
|
|
104
|
-
.textStyle(@ND0, 16px, 24px,
|
|
123
|
+
.textStyle(@ND0, 16px, 24px, 400, normal);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&::before {
|
|
127
|
+
animation: 0.26s linear 0s hoverBgChange;
|
|
128
|
+
animation-fill-mode: forwards;
|
|
105
129
|
}
|
|
106
130
|
}
|
|
107
131
|
}
|
|
@@ -116,3 +140,20 @@
|
|
|
116
140
|
}
|
|
117
141
|
}
|
|
118
142
|
}
|
|
143
|
+
|
|
144
|
+
@keyframes hoverBgChange {
|
|
145
|
+
0% {
|
|
146
|
+
width: 0%;
|
|
147
|
+
background-color: @ND80;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
90% {
|
|
151
|
+
width: 100%;
|
|
152
|
+
background-color: @ND80;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
100% {
|
|
156
|
+
width: 100%;
|
|
157
|
+
background-color: @B40;
|
|
158
|
+
}
|
|
159
|
+
}
|
package/lib/Popover/index.d.ts
CHANGED
package/lib/Select/index.d.ts
CHANGED
|
@@ -14,9 +14,10 @@ export interface LabeledValue {
|
|
|
14
14
|
label: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[] | undefined;
|
|
17
|
+
export declare type SelectType = SizeType | 'mini';
|
|
17
18
|
export interface InternalSelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<RcSelectProps<ValueType, OptionType>, 'mode'> {
|
|
18
19
|
suffixIcon?: React.ReactNode;
|
|
19
|
-
size?:
|
|
20
|
+
size?: SelectType;
|
|
20
21
|
disabled?: boolean;
|
|
21
22
|
mode?: 'multiple' | 'tags' | 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
22
23
|
bordered?: boolean;
|
package/lib/Select/index.js
CHANGED
|
@@ -69,7 +69,8 @@ var InternalSelect = function InternalSelect(_ref, ref) {
|
|
|
69
69
|
customDisabled = _ref.disabled,
|
|
70
70
|
notFoundContent = _ref.notFoundContent,
|
|
71
71
|
customStatus = _ref.status,
|
|
72
|
-
showArrow = _ref.showArrow,
|
|
72
|
+
_ref$showArrow = _ref.showArrow,
|
|
73
|
+
showArrow = _ref$showArrow === void 0 ? true : _ref$showArrow,
|
|
73
74
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
74
75
|
|
|
75
76
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
@@ -29,7 +29,7 @@ var _SelectContext = _interopRequireDefault(require("./SelectContext"));
|
|
|
29
29
|
|
|
30
30
|
var _Checkbox = _interopRequireDefault(require("../../Checkbox"));
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _CheckLine = _interopRequireDefault(require("../../Icon/icons/CheckLine"));
|
|
33
33
|
|
|
34
34
|
var _themeColorModule = _interopRequireDefault(require("../../style/themes/default/themeColor.module.less"));
|
|
35
35
|
|
|
@@ -407,10 +407,9 @@ var OptionList = function OptionList(_, ref) {
|
|
|
407
407
|
style: style
|
|
408
408
|
}), !multiple && /*#__PURE__*/React.createElement("div", {
|
|
409
409
|
className: 'ald-select-single-check'
|
|
410
|
-
}, selected && /*#__PURE__*/React.createElement(
|
|
410
|
+
}, selected && /*#__PURE__*/React.createElement(_CheckLine.default, {
|
|
411
411
|
color: _themeColorModule.default.B60,
|
|
412
|
-
size: '1em'
|
|
413
|
-
type: "check"
|
|
412
|
+
size: '1em'
|
|
414
413
|
})), multiple && /*#__PURE__*/React.createElement(_Checkbox.default, {
|
|
415
414
|
className: 'ald-select-multiple-checkbox',
|
|
416
415
|
checked: selected,
|
|
@@ -68,7 +68,8 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
68
68
|
removeIcon = props.removeIcon,
|
|
69
69
|
_props$maxTagCount = props.maxTagCount,
|
|
70
70
|
maxTagCount = _props$maxTagCount === void 0 ? "responsive" : _props$maxTagCount,
|
|
71
|
-
|
|
71
|
+
_props$maxTagTextLeng = props.maxTagTextLength,
|
|
72
|
+
maxTagTextLength = _props$maxTagTextLeng === void 0 ? 10 : _props$maxTagTextLeng,
|
|
72
73
|
_props$maxTagPlacehol = props.maxTagPlaceholder,
|
|
73
74
|
maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function (omittedValues) {
|
|
74
75
|
return "\u7B49".concat(omittedValues.length, "\u9879");
|
|
@@ -180,6 +181,15 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
function renderRest(omittedValues) {
|
|
184
|
+
if (omittedValues.length === values.length && omittedValues.length) {
|
|
185
|
+
var length = values.length;
|
|
186
|
+
|
|
187
|
+
var _content = "\u5DF2\u9009".concat(length, "\u9879");
|
|
188
|
+
|
|
189
|
+
return defaultRenderSelector(_content, _content, false);
|
|
190
|
+
;
|
|
191
|
+
}
|
|
192
|
+
|
|
183
193
|
var content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
|
|
184
194
|
return defaultRenderSelector(content, content, false);
|
|
185
195
|
} // >>> Input Node
|
|
@@ -235,7 +245,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
235
245
|
React.useEffect(function () {
|
|
236
246
|
var prefixEl = prefixRef.current;
|
|
237
247
|
var size = ['large', 'small', 'mini'].includes(props.size) ? props.size.toUpperCase() : 'MIDDLE';
|
|
238
|
-
var selectorPaddingLeft = parseInt(_variables.default["
|
|
248
|
+
var selectorPaddingLeft = parseInt(_variables.default["SELECTOR_PADDING_HORIZONTAL_".concat(size)]);
|
|
239
249
|
|
|
240
250
|
if (prefixEl) {
|
|
241
251
|
var prefixOffsetWidth = prefixEl.offsetWidth;
|
|
@@ -244,7 +254,7 @@ var SelectSelector = function SelectSelector(props) {
|
|
|
244
254
|
}
|
|
245
255
|
|
|
246
256
|
return setPlaceholderLeft(selectorPaddingLeft);
|
|
247
|
-
}, []);
|
|
257
|
+
}, [values]);
|
|
248
258
|
return /*#__PURE__*/React.createElement(React.Fragment, null, selectionNode, !values.length && !inputValue && /*#__PURE__*/React.createElement("span", {
|
|
249
259
|
className: (0, _classnames.default)("".concat(selectionPrefixCls, "-placeholder"), 'ald-select-selection-placeholder', _defineProperty({}, "ald-select-selection-placeholder-prefix", prefix)),
|
|
250
260
|
style: {
|
|
@@ -6,6 +6,6 @@ import type { FieldNames } from '../Select';
|
|
|
6
6
|
*/
|
|
7
7
|
export default function useOptions<OptionType>(options: OptionType[], children: React.ReactNode, fieldNames: FieldNames, optionFilterProp: string, optionLabelProp: string): {
|
|
8
8
|
options: OptionType[];
|
|
9
|
-
valueOptions: Map<
|
|
9
|
+
valueOptions: Map<string | number, OptionType>;
|
|
10
10
|
labelOptions: Map<React.ReactNode, OptionType>;
|
|
11
11
|
};
|