@arco-design/mobile-react 2.30.10 → 2.31.1
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/CHANGELOG.md +30 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/action-sheet/style/css/index.css +50 -34
- package/cjs/avatar/style/css/index.css +50 -34
- package/cjs/badge/style/css/index.css +50 -34
- package/cjs/button/style/css/index.css +50 -34
- package/cjs/carousel/style/css/index.css +50 -34
- package/cjs/cell/style/css/index.css +50 -34
- package/cjs/cell/style/index.less +2 -2
- package/cjs/checkbox/style/css/index.css +50 -34
- package/cjs/circle-progress/style/css/index.css +50 -34
- package/cjs/collapse/style/css/index.css +50 -34
- package/cjs/count-down/style/css/index.css +50 -34
- package/cjs/date-picker/style/css/index.css +50 -34
- package/cjs/dialog/style/css/index.css +50 -34
- package/cjs/divider/style/css/index.css +50 -34
- package/cjs/dropdown/style/css/index.css +50 -34
- package/cjs/dropdown-menu/style/css/index.css +50 -34
- package/cjs/ellipsis/style/css/index.css +50 -34
- package/cjs/form/form-item.d.ts +3 -0
- package/cjs/form/form-item.js +38 -10
- package/cjs/form/style/css/index.css +63 -34
- package/cjs/form/style/index.less +18 -0
- package/cjs/grid/style/css/index.css +50 -34
- package/cjs/icon/IconCheck/index.js +1 -2
- package/cjs/icon/IconDownload/index.d.ts +7 -0
- package/cjs/icon/IconDownload/index.js +41 -0
- package/cjs/icon/IconFile/index.d.ts +7 -0
- package/cjs/icon/IconFile/index.js +41 -0
- package/cjs/icon/IconKeyboard/index.js +1 -0
- package/cjs/icon/IconQuestionCircle/index.js +1 -2
- package/cjs/icon/IconUpload/index.js +6 -4
- package/cjs/icon/IconUserFill/index.js +1 -2
- package/cjs/icon/index.d.ts +3 -1
- package/cjs/icon/index.js +17 -7
- package/cjs/icon/type.d.ts +3 -1
- package/cjs/image/style/css/index.css +50 -34
- package/cjs/image-picker/index.js +15 -161
- package/cjs/image-picker/style/css/index.css +50 -34
- package/cjs/image-picker/type.d.ts +4 -73
- package/cjs/image-preview/style/css/index.css +50 -34
- package/cjs/index-bar/style/css/index.css +50 -34
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +6 -2
- package/cjs/input/hooks.js +2 -2
- package/cjs/input/props.d.ts +2 -2
- package/cjs/input/style/css/index.css +50 -34
- package/cjs/keyboard/style/css/index.css +50 -34
- package/cjs/load-more/style/css/index.css +50 -34
- package/cjs/loading/style/css/index.css +50 -34
- package/cjs/masking/style/css/index.css +50 -34
- package/cjs/nav-bar/style/css/index.css +50 -34
- package/cjs/notice-bar/style/css/index.css +50 -34
- package/cjs/notice-bar/style/index.less +2 -2
- package/cjs/notify/style/css/index.css +50 -34
- package/cjs/pagination/style/css/index.css +50 -34
- package/cjs/pagination/style/index.less +4 -4
- package/cjs/picker/index.js +59 -19
- package/cjs/picker/style/css/index.css +50 -34
- package/cjs/picker/type.d.ts +6 -1
- package/cjs/picker-view/style/css/index.css +50 -34
- package/cjs/popover/style/css/index.css +50 -34
- package/cjs/popover/style/css/menu.css +50 -34
- package/cjs/popup/style/css/index.css +50 -34
- package/cjs/popup-swiper/style/css/index.css +50 -34
- package/cjs/progress/style/css/index.css +50 -34
- package/cjs/pull-refresh/style/css/index.css +50 -34
- package/cjs/radio/style/css/index.css +50 -34
- package/cjs/rate/style/css/index.css +50 -34
- package/cjs/rate/style/index.less +2 -2
- package/cjs/search-bar/style/css/index.css +50 -34
- package/cjs/skeleton/style/css/index.css +50 -34
- package/cjs/skeleton/style/index.less +2 -2
- package/cjs/slider/style/css/index.css +50 -34
- package/cjs/slider/style/index.less +6 -6
- package/cjs/stepper/style/css/index.css +50 -34
- package/cjs/steps/style/css/index.css +50 -34
- package/cjs/sticky/style/css/index.css +50 -34
- package/cjs/style.d.ts +1 -0
- package/cjs/style.js +3 -1
- package/cjs/swipe-action/style/css/index.css +50 -34
- package/cjs/swipe-load/style/css/index.css +50 -34
- package/cjs/switch/style/css/index.css +50 -34
- package/cjs/switch/style/index.less +8 -8
- package/cjs/tab-bar/style/css/index.css +50 -34
- package/cjs/tabs/style/css/index.css +50 -34
- package/cjs/tabs/tab-cell.js +1 -1
- package/cjs/tag/style/css/index.css +50 -34
- package/cjs/textarea/style/css/index.css +50 -34
- package/cjs/toast/style/css/index.css +50 -34
- package/cjs/transition/style/css/index.css +50 -34
- package/cjs/uploader/index.d.ts +16 -0
- package/cjs/uploader/index.js +180 -0
- package/cjs/uploader/style/css/index.css +666 -0
- package/cjs/uploader/style/css/index.d.ts +4 -0
- package/cjs/uploader/style/css/index.js +9 -0
- package/cjs/uploader/style/index.d.ts +4 -0
- package/cjs/uploader/style/index.js +9 -0
- package/cjs/uploader/style/index.less +161 -0
- package/cjs/uploader/type.d.ts +108 -0
- package/cjs/uploader/type.js +3 -0
- package/cjs/uploader/upload/index.d.ts +2 -0
- package/cjs/uploader/upload/index.js +19 -0
- package/cjs/uploader/upload/type.d.ts +107 -0
- package/cjs/uploader/upload/type.js +3 -0
- package/cjs/uploader/upload/upload.d.ts +20 -0
- package/cjs/uploader/upload/upload.js +189 -0
- package/dist/index.js +589 -273
- package/dist/index.min.js +5 -5
- package/dist/style.css +3811 -2306
- package/dist/style.min.css +1 -1
- package/esm/action-sheet/style/css/index.css +50 -34
- package/esm/avatar/style/css/index.css +50 -34
- package/esm/badge/style/css/index.css +50 -34
- package/esm/button/style/css/index.css +50 -34
- package/esm/carousel/style/css/index.css +50 -34
- package/esm/cell/style/css/index.css +50 -34
- package/esm/cell/style/index.less +2 -2
- package/esm/checkbox/style/css/index.css +50 -34
- package/esm/circle-progress/style/css/index.css +50 -34
- package/esm/collapse/style/css/index.css +50 -34
- package/esm/count-down/style/css/index.css +50 -34
- package/esm/date-picker/style/css/index.css +50 -34
- package/esm/dialog/style/css/index.css +50 -34
- package/esm/divider/style/css/index.css +50 -34
- package/esm/dropdown/style/css/index.css +50 -34
- package/esm/dropdown-menu/style/css/index.css +50 -34
- package/esm/ellipsis/style/css/index.css +50 -34
- package/esm/form/form-item.d.ts +3 -0
- package/esm/form/form-item.js +36 -10
- package/esm/form/style/css/index.css +63 -34
- package/esm/form/style/index.less +18 -0
- package/esm/grid/style/css/index.css +50 -34
- package/esm/icon/IconCheck/index.js +1 -2
- package/esm/icon/IconDownload/index.d.ts +7 -0
- package/esm/icon/IconDownload/index.js +30 -0
- package/esm/icon/IconFile/index.d.ts +7 -0
- package/esm/icon/IconFile/index.js +30 -0
- package/esm/icon/IconKeyboard/index.js +1 -0
- package/esm/icon/IconQuestionCircle/index.js +1 -2
- package/esm/icon/IconUpload/index.js +6 -4
- package/esm/icon/IconUserFill/index.js +1 -2
- package/esm/icon/index.d.ts +3 -1
- package/esm/icon/index.js +3 -1
- package/esm/icon/type.d.ts +3 -1
- package/esm/image/style/css/index.css +50 -34
- package/esm/image-picker/index.js +14 -160
- package/esm/image-picker/style/css/index.css +50 -34
- package/esm/image-picker/type.d.ts +4 -73
- package/esm/image-preview/style/css/index.css +50 -34
- package/esm/index-bar/style/css/index.css +50 -34
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/input/hooks.js +2 -2
- package/esm/input/props.d.ts +2 -2
- package/esm/input/style/css/index.css +50 -34
- package/esm/keyboard/style/css/index.css +50 -34
- package/esm/load-more/style/css/index.css +50 -34
- package/esm/loading/style/css/index.css +50 -34
- package/esm/masking/style/css/index.css +50 -34
- package/esm/nav-bar/style/css/index.css +50 -34
- package/esm/notice-bar/style/css/index.css +50 -34
- package/esm/notice-bar/style/index.less +2 -2
- package/esm/notify/style/css/index.css +50 -34
- package/esm/pagination/style/css/index.css +50 -34
- package/esm/pagination/style/index.less +4 -4
- package/esm/picker/index.js +60 -20
- package/esm/picker/style/css/index.css +50 -34
- package/esm/picker/type.d.ts +6 -1
- package/esm/picker-view/style/css/index.css +50 -34
- package/esm/popover/style/css/index.css +50 -34
- package/esm/popover/style/css/menu.css +50 -34
- package/esm/popup/style/css/index.css +50 -34
- package/esm/popup-swiper/style/css/index.css +50 -34
- package/esm/progress/style/css/index.css +50 -34
- package/esm/pull-refresh/style/css/index.css +50 -34
- package/esm/radio/style/css/index.css +50 -34
- package/esm/rate/style/css/index.css +50 -34
- package/esm/rate/style/index.less +2 -2
- package/esm/search-bar/style/css/index.css +50 -34
- package/esm/skeleton/style/css/index.css +50 -34
- package/esm/skeleton/style/index.less +2 -2
- package/esm/slider/style/css/index.css +50 -34
- package/esm/slider/style/index.less +6 -6
- package/esm/stepper/style/css/index.css +50 -34
- package/esm/steps/style/css/index.css +50 -34
- package/esm/sticky/style/css/index.css +50 -34
- package/esm/style.d.ts +1 -0
- package/esm/style.js +2 -1
- package/esm/swipe-action/style/css/index.css +50 -34
- package/esm/swipe-load/style/css/index.css +50 -34
- package/esm/switch/style/css/index.css +50 -34
- package/esm/switch/style/index.less +8 -8
- package/esm/tab-bar/style/css/index.css +50 -34
- package/esm/tabs/style/css/index.css +50 -34
- package/esm/tabs/tab-cell.js +2 -2
- package/esm/tag/style/css/index.css +50 -34
- package/esm/textarea/style/css/index.css +50 -34
- package/esm/toast/style/css/index.css +50 -34
- package/esm/transition/style/css/index.css +50 -34
- package/esm/uploader/index.d.ts +16 -0
- package/esm/uploader/index.js +150 -0
- package/esm/uploader/style/css/index.css +666 -0
- package/esm/uploader/style/css/index.d.ts +4 -0
- package/esm/uploader/style/css/index.js +4 -0
- package/esm/uploader/style/index.d.ts +4 -0
- package/esm/uploader/style/index.js +4 -0
- package/esm/uploader/style/index.less +161 -0
- package/esm/uploader/type.d.ts +108 -0
- package/esm/uploader/type.js +1 -0
- package/esm/uploader/upload/index.d.ts +2 -0
- package/esm/uploader/upload/index.js +2 -0
- package/esm/uploader/upload/type.d.ts +107 -0
- package/esm/uploader/upload/type.js +1 -0
- package/esm/uploader/upload/upload.d.ts +20 -0
- package/esm/uploader/upload/upload.js +175 -0
- package/package.json +3 -6
- package/style/css/public.css +50 -34
- package/tokens/app/arcodesign/default/css-variables.less +27 -0
- package/tokens/app/arcodesign/default/index.d.ts +27 -0
- package/tokens/app/arcodesign/default/index.js +28 -1
- package/tokens/app/arcodesign/default/index.json +292 -0
- package/tokens/app/arcodesign/default/index.less +27 -0
- package/tokens/mixin/index.less +80 -3
- package/tokens/mixin/vars-switch.less +1 -0
- package/umd/action-sheet/style/css/index.css +50 -34
- package/umd/avatar/style/css/index.css +50 -34
- package/umd/badge/style/css/index.css +50 -34
- package/umd/button/style/css/index.css +50 -34
- package/umd/carousel/style/css/index.css +50 -34
- package/umd/cell/style/css/index.css +50 -34
- package/umd/cell/style/index.less +2 -2
- package/umd/checkbox/style/css/index.css +50 -34
- package/umd/circle-progress/style/css/index.css +50 -34
- package/umd/collapse/style/css/index.css +50 -34
- package/umd/count-down/style/css/index.css +50 -34
- package/umd/date-picker/style/css/index.css +50 -34
- package/umd/dialog/style/css/index.css +50 -34
- package/umd/divider/style/css/index.css +50 -34
- package/umd/dropdown/style/css/index.css +50 -34
- package/umd/dropdown-menu/style/css/index.css +50 -34
- package/umd/ellipsis/style/css/index.css +50 -34
- package/umd/form/form-item.d.ts +3 -0
- package/umd/form/form-item.js +38 -10
- package/umd/form/style/css/index.css +63 -34
- package/umd/form/style/index.less +18 -0
- package/umd/grid/style/css/index.css +50 -34
- package/umd/icon/IconCheck/index.js +1 -2
- package/umd/icon/IconDownload/index.d.ts +7 -0
- package/umd/icon/IconDownload/index.js +49 -0
- package/umd/icon/IconFile/index.d.ts +7 -0
- package/umd/icon/IconFile/index.js +49 -0
- package/umd/icon/IconKeyboard/index.js +1 -0
- package/umd/icon/IconQuestionCircle/index.js +1 -2
- package/umd/icon/IconUpload/index.js +6 -4
- package/umd/icon/IconUserFill/index.js +1 -2
- package/umd/icon/index.d.ts +3 -1
- package/umd/icon/index.js +15 -9
- package/umd/icon/type.d.ts +3 -1
- package/umd/image/style/css/index.css +50 -34
- package/umd/image-picker/index.js +17 -163
- package/umd/image-picker/style/css/index.css +50 -34
- package/umd/image-picker/type.d.ts +4 -73
- package/umd/image-preview/style/css/index.css +50 -34
- package/umd/index-bar/style/css/index.css +50 -34
- package/umd/index.d.ts +1 -0
- package/umd/index.js +7 -5
- package/umd/input/hooks.js +2 -2
- package/umd/input/props.d.ts +2 -2
- package/umd/input/style/css/index.css +50 -34
- package/umd/keyboard/style/css/index.css +50 -34
- package/umd/load-more/style/css/index.css +50 -34
- package/umd/loading/style/css/index.css +50 -34
- package/umd/masking/style/css/index.css +50 -34
- package/umd/nav-bar/style/css/index.css +50 -34
- package/umd/notice-bar/style/css/index.css +50 -34
- package/umd/notice-bar/style/index.less +2 -2
- package/umd/notify/style/css/index.css +50 -34
- package/umd/pagination/style/css/index.css +50 -34
- package/umd/pagination/style/index.less +4 -4
- package/umd/picker/index.js +59 -19
- package/umd/picker/style/css/index.css +50 -34
- package/umd/picker/type.d.ts +6 -1
- package/umd/picker-view/style/css/index.css +50 -34
- package/umd/popover/style/css/index.css +50 -34
- package/umd/popover/style/css/menu.css +50 -34
- package/umd/popup/style/css/index.css +50 -34
- package/umd/popup-swiper/style/css/index.css +50 -34
- package/umd/progress/style/css/index.css +50 -34
- package/umd/pull-refresh/style/css/index.css +50 -34
- package/umd/radio/style/css/index.css +50 -34
- package/umd/rate/style/css/index.css +50 -34
- package/umd/rate/style/index.less +2 -2
- package/umd/search-bar/style/css/index.css +50 -34
- package/umd/skeleton/style/css/index.css +50 -34
- package/umd/skeleton/style/index.less +2 -2
- package/umd/slider/style/css/index.css +50 -34
- package/umd/slider/style/index.less +6 -6
- package/umd/stepper/style/css/index.css +50 -34
- package/umd/steps/style/css/index.css +50 -34
- package/umd/sticky/style/css/index.css +50 -34
- package/umd/style.d.ts +1 -0
- package/umd/style.js +4 -4
- package/umd/swipe-action/style/css/index.css +50 -34
- package/umd/swipe-load/style/css/index.css +50 -34
- package/umd/switch/style/css/index.css +50 -34
- package/umd/switch/style/index.less +8 -8
- package/umd/tab-bar/style/css/index.css +50 -34
- package/umd/tabs/style/css/index.css +50 -34
- package/umd/tabs/tab-cell.js +1 -1
- package/umd/tag/style/css/index.css +50 -34
- package/umd/textarea/style/css/index.css +50 -34
- package/umd/toast/style/css/index.css +50 -34
- package/umd/transition/style/css/index.css +50 -34
- package/umd/uploader/index.d.ts +16 -0
- package/umd/uploader/index.js +178 -0
- package/umd/uploader/style/css/index.css +666 -0
- package/umd/uploader/style/css/index.d.ts +4 -0
- package/umd/uploader/style/css/index.js +15 -0
- package/umd/uploader/style/index.d.ts +4 -0
- package/umd/uploader/style/index.js +15 -0
- package/umd/uploader/style/index.less +161 -0
- package/umd/uploader/type.d.ts +108 -0
- package/umd/uploader/type.js +17 -0
- package/umd/uploader/upload/index.d.ts +2 -0
- package/umd/uploader/upload/index.js +27 -0
- package/umd/uploader/upload/type.d.ts +107 -0
- package/umd/uploader/upload/type.js +17 -0
- package/umd/uploader/upload/upload.d.ts +20 -0
- package/umd/uploader/upload/upload.js +200 -0
@@ -95,6 +95,56 @@
|
|
95
95
|
* }
|
96
96
|
* ```
|
97
97
|
*/
|
98
|
+
/**
|
99
|
+
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
100
|
+
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
101
|
+
* @param @property css属性名
|
102
|
+
* @param @property {en} css property
|
103
|
+
* @param @value css属性值
|
104
|
+
* @param @value {en} css property value
|
105
|
+
* @param @rules 自定义的复写规则,默认重置为initial
|
106
|
+
* @param @rules {en} customized rewrite rules, default to initial
|
107
|
+
* @example
|
108
|
+
* ```
|
109
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
110
|
+
*
|
111
|
+
* .demo {
|
112
|
+
* .set-prop-with-rtl(right, auto);
|
113
|
+
* }
|
114
|
+
* ```
|
115
|
+
*/
|
116
|
+
/**
|
117
|
+
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
118
|
+
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
119
|
+
* @param @property css属性名
|
120
|
+
* @param @property {en} css property
|
121
|
+
* @param @value css属性值
|
122
|
+
* @param @value {en} css property value
|
123
|
+
* @example
|
124
|
+
* ```
|
125
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
126
|
+
*
|
127
|
+
* .demo {
|
128
|
+
* .set-value-with-rtl(text-align, left);
|
129
|
+
* }
|
130
|
+
* ```
|
131
|
+
*/
|
132
|
+
/**
|
133
|
+
* 在 rtl 模式下,自定义样式规则
|
134
|
+
* @desc {en} custom style in RTL mode
|
135
|
+
* @param @rules 对应的rtl模式下的规则
|
136
|
+
* @param @rules {en} property with rtl
|
137
|
+
* @example
|
138
|
+
* ```
|
139
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
140
|
+
*
|
141
|
+
* .demo {
|
142
|
+
* .style-with-rtl({
|
143
|
+
* transform: scale(-1);
|
144
|
+
* });
|
145
|
+
* }
|
146
|
+
* ```
|
147
|
+
*/
|
98
148
|
/**
|
99
149
|
* 0.5px 的边框线
|
100
150
|
* @desc {en} a border line of 0.5 pixels
|
@@ -396,40 +446,6 @@
|
|
396
446
|
* }
|
397
447
|
* ```
|
398
448
|
*/
|
399
|
-
/**
|
400
|
-
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
401
|
-
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
402
|
-
* @param @property css属性名
|
403
|
-
* @param @property {en} css property
|
404
|
-
* @param @value css属性值
|
405
|
-
* @param @value {en} css property value
|
406
|
-
* @param @rules 自定义的复写规则,默认重置为initial
|
407
|
-
* @param @rules {en} customized rewrite rules, default to initial
|
408
|
-
* @example
|
409
|
-
* ```
|
410
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
411
|
-
*
|
412
|
-
* .demo {
|
413
|
-
* .set-prop-with-rtl(right, auto);
|
414
|
-
* }
|
415
|
-
* ```
|
416
|
-
*/
|
417
|
-
/**
|
418
|
-
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
419
|
-
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
420
|
-
* @param @property css属性名
|
421
|
-
* @param @property {en} css property
|
422
|
-
* @param @value css属性值
|
423
|
-
* @param @value {en} css property value
|
424
|
-
* @example
|
425
|
-
* ```
|
426
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
427
|
-
*
|
428
|
-
* .demo {
|
429
|
-
* .set-value-with-rtl(text-align, left);
|
430
|
-
* }
|
431
|
-
* ```
|
432
|
-
*/
|
433
449
|
/**
|
434
450
|
* 设置Loading组件颜色
|
435
451
|
* @desc {en} set Loading component color
|
@@ -95,6 +95,56 @@
|
|
95
95
|
* }
|
96
96
|
* ```
|
97
97
|
*/
|
98
|
+
/**
|
99
|
+
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
100
|
+
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
101
|
+
* @param @property css属性名
|
102
|
+
* @param @property {en} css property
|
103
|
+
* @param @value css属性值
|
104
|
+
* @param @value {en} css property value
|
105
|
+
* @param @rules 自定义的复写规则,默认重置为initial
|
106
|
+
* @param @rules {en} customized rewrite rules, default to initial
|
107
|
+
* @example
|
108
|
+
* ```
|
109
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
110
|
+
*
|
111
|
+
* .demo {
|
112
|
+
* .set-prop-with-rtl(right, auto);
|
113
|
+
* }
|
114
|
+
* ```
|
115
|
+
*/
|
116
|
+
/**
|
117
|
+
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
118
|
+
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
119
|
+
* @param @property css属性名
|
120
|
+
* @param @property {en} css property
|
121
|
+
* @param @value css属性值
|
122
|
+
* @param @value {en} css property value
|
123
|
+
* @example
|
124
|
+
* ```
|
125
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
126
|
+
*
|
127
|
+
* .demo {
|
128
|
+
* .set-value-with-rtl(text-align, left);
|
129
|
+
* }
|
130
|
+
* ```
|
131
|
+
*/
|
132
|
+
/**
|
133
|
+
* 在 rtl 模式下,自定义样式规则
|
134
|
+
* @desc {en} custom style in RTL mode
|
135
|
+
* @param @rules 对应的rtl模式下的规则
|
136
|
+
* @param @rules {en} property with rtl
|
137
|
+
* @example
|
138
|
+
* ```
|
139
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
140
|
+
*
|
141
|
+
* .demo {
|
142
|
+
* .style-with-rtl({
|
143
|
+
* transform: scale(-1);
|
144
|
+
* });
|
145
|
+
* }
|
146
|
+
* ```
|
147
|
+
*/
|
98
148
|
/**
|
99
149
|
* 0.5px 的边框线
|
100
150
|
* @desc {en} a border line of 0.5 pixels
|
@@ -396,40 +446,6 @@
|
|
396
446
|
* }
|
397
447
|
* ```
|
398
448
|
*/
|
399
|
-
/**
|
400
|
-
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
401
|
-
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
402
|
-
* @param @property css属性名
|
403
|
-
* @param @property {en} css property
|
404
|
-
* @param @value css属性值
|
405
|
-
* @param @value {en} css property value
|
406
|
-
* @param @rules 自定义的复写规则,默认重置为initial
|
407
|
-
* @param @rules {en} customized rewrite rules, default to initial
|
408
|
-
* @example
|
409
|
-
* ```
|
410
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
411
|
-
*
|
412
|
-
* .demo {
|
413
|
-
* .set-prop-with-rtl(right, auto);
|
414
|
-
* }
|
415
|
-
* ```
|
416
|
-
*/
|
417
|
-
/**
|
418
|
-
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
419
|
-
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
420
|
-
* @param @property css属性名
|
421
|
-
* @param @property {en} css property
|
422
|
-
* @param @value css属性值
|
423
|
-
* @param @value {en} css property value
|
424
|
-
* @example
|
425
|
-
* ```
|
426
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
427
|
-
*
|
428
|
-
* .demo {
|
429
|
-
* .set-value-with-rtl(text-align, left);
|
430
|
-
* }
|
431
|
-
* ```
|
432
|
-
*/
|
433
449
|
/**
|
434
450
|
* 设置Loading组件颜色
|
435
451
|
* @desc {en} set Loading component color
|
@@ -95,6 +95,56 @@
|
|
95
95
|
* }
|
96
96
|
* ```
|
97
97
|
*/
|
98
|
+
/**
|
99
|
+
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
100
|
+
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
101
|
+
* @param @property css属性名
|
102
|
+
* @param @property {en} css property
|
103
|
+
* @param @value css属性值
|
104
|
+
* @param @value {en} css property value
|
105
|
+
* @param @rules 自定义的复写规则,默认重置为initial
|
106
|
+
* @param @rules {en} customized rewrite rules, default to initial
|
107
|
+
* @example
|
108
|
+
* ```
|
109
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
110
|
+
*
|
111
|
+
* .demo {
|
112
|
+
* .set-prop-with-rtl(right, auto);
|
113
|
+
* }
|
114
|
+
* ```
|
115
|
+
*/
|
116
|
+
/**
|
117
|
+
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
118
|
+
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
119
|
+
* @param @property css属性名
|
120
|
+
* @param @property {en} css property
|
121
|
+
* @param @value css属性值
|
122
|
+
* @param @value {en} css property value
|
123
|
+
* @example
|
124
|
+
* ```
|
125
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
126
|
+
*
|
127
|
+
* .demo {
|
128
|
+
* .set-value-with-rtl(text-align, left);
|
129
|
+
* }
|
130
|
+
* ```
|
131
|
+
*/
|
132
|
+
/**
|
133
|
+
* 在 rtl 模式下,自定义样式规则
|
134
|
+
* @desc {en} custom style in RTL mode
|
135
|
+
* @param @rules 对应的rtl模式下的规则
|
136
|
+
* @param @rules {en} property with rtl
|
137
|
+
* @example
|
138
|
+
* ```
|
139
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
140
|
+
*
|
141
|
+
* .demo {
|
142
|
+
* .style-with-rtl({
|
143
|
+
* transform: scale(-1);
|
144
|
+
* });
|
145
|
+
* }
|
146
|
+
* ```
|
147
|
+
*/
|
98
148
|
/**
|
99
149
|
* 0.5px 的边框线
|
100
150
|
* @desc {en} a border line of 0.5 pixels
|
@@ -396,40 +446,6 @@
|
|
396
446
|
* }
|
397
447
|
* ```
|
398
448
|
*/
|
399
|
-
/**
|
400
|
-
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
401
|
-
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
402
|
-
* @param @property css属性名
|
403
|
-
* @param @property {en} css property
|
404
|
-
* @param @value css属性值
|
405
|
-
* @param @value {en} css property value
|
406
|
-
* @param @rules 自定义的复写规则,默认重置为initial
|
407
|
-
* @param @rules {en} customized rewrite rules, default to initial
|
408
|
-
* @example
|
409
|
-
* ```
|
410
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
411
|
-
*
|
412
|
-
* .demo {
|
413
|
-
* .set-prop-with-rtl(right, auto);
|
414
|
-
* }
|
415
|
-
* ```
|
416
|
-
*/
|
417
|
-
/**
|
418
|
-
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
419
|
-
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
420
|
-
* @param @property css属性名
|
421
|
-
* @param @property {en} css property
|
422
|
-
* @param @value css属性值
|
423
|
-
* @param @value {en} css property value
|
424
|
-
* @example
|
425
|
-
* ```
|
426
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
427
|
-
*
|
428
|
-
* .demo {
|
429
|
-
* .set-value-with-rtl(text-align, left);
|
430
|
-
* }
|
431
|
-
* ```
|
432
|
-
*/
|
433
449
|
/**
|
434
450
|
* 设置Loading组件颜色
|
435
451
|
* @desc {en} set Loading component color
|
package/cjs/form/form-item.d.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { FormItemProps, FormItemRef } from './type';
|
3
|
+
export declare function DefaultPickerLinkedContainer({ value }: {
|
4
|
+
value: (string | number)[];
|
5
|
+
}): JSX.Element;
|
3
6
|
declare const _default: React.ForwardRefExoticComponent<FormItemProps & React.RefAttributes<FormItemRef>>;
|
4
7
|
export default _default;
|
package/cjs/form/form-item.js
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
4
|
|
5
5
|
exports.__esModule = true;
|
6
|
+
exports.DefaultPickerLinkedContainer = DefaultPickerLinkedContainer;
|
6
7
|
exports.default = void 0;
|
7
8
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
@@ -29,6 +30,21 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
29
30
|
|
30
31
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
32
|
|
33
|
+
function DefaultPickerLinkedContainer(_ref) {
|
34
|
+
var value = _ref.value;
|
35
|
+
|
36
|
+
var _useContext = (0, _react.useContext)(_contextProvider.GlobalContext),
|
37
|
+
prefixCls = _useContext.prefixCls,
|
38
|
+
locale = _useContext.locale;
|
39
|
+
|
40
|
+
var className = prefixCls + "-form-picker-link-container";
|
41
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
42
|
+
className: className
|
43
|
+
}, value && value.length ? value.join('-') : /*#__PURE__*/_react.default.createElement("span", {
|
44
|
+
className: className + "-placeholder"
|
45
|
+
}, locale == null ? void 0 : locale.Form.pickerDefaultHint));
|
46
|
+
}
|
47
|
+
|
32
48
|
var FormItemInner = /*#__PURE__*/function (_PureComponent) {
|
33
49
|
(0, _inheritsLoose2.default)(FormItemInner, _PureComponent);
|
34
50
|
|
@@ -215,6 +231,8 @@ var FormItemInner = /*#__PURE__*/function (_PureComponent) {
|
|
215
231
|
_proto.renderChildren = function renderChildren() {
|
216
232
|
var _props,
|
217
233
|
_children$type,
|
234
|
+
_children$props7,
|
235
|
+
_children$props8,
|
218
236
|
_this2 = this;
|
219
237
|
|
220
238
|
var _this$props4 = this.props,
|
@@ -255,16 +273,26 @@ var FormItemInner = /*#__PURE__*/function (_PureComponent) {
|
|
255
273
|
case _type.FormInternalComponentType.DatePicker:
|
256
274
|
props = {
|
257
275
|
currentTs: getFieldValue(field),
|
258
|
-
onChange: this.
|
259
|
-
disabled: this.props.disabled
|
276
|
+
onChange: this.innerTriggerFunctionWithValueFirst,
|
277
|
+
disabled: this.props.disabled,
|
278
|
+
renderLinkedContainer: ((_children$props7 = children.props) == null ? void 0 : _children$props7.renderLinkedContainer) || function (val) {
|
279
|
+
return /*#__PURE__*/_react.default.createElement(DefaultPickerLinkedContainer, {
|
280
|
+
value: val
|
281
|
+
});
|
282
|
+
}
|
260
283
|
};
|
261
284
|
break;
|
262
285
|
|
263
286
|
case _type.FormInternalComponentType.Picker:
|
264
287
|
props = {
|
265
|
-
|
266
|
-
|
267
|
-
disabled: this.props.disabled
|
288
|
+
value: getFieldValue(field),
|
289
|
+
onChange: this.innerTriggerFunctionWithValueFirst,
|
290
|
+
disabled: this.props.disabled,
|
291
|
+
renderLinkedContainer: ((_children$props8 = children.props) == null ? void 0 : _children$props8.renderLinkedContainer) || function (val) {
|
292
|
+
return /*#__PURE__*/_react.default.createElement(DefaultPickerLinkedContainer, {
|
293
|
+
value: val
|
294
|
+
});
|
295
|
+
}
|
268
296
|
};
|
269
297
|
break;
|
270
298
|
|
@@ -329,12 +357,12 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
329
357
|
className = _props$className === void 0 ? '' : _props$className,
|
330
358
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
331
359
|
|
332
|
-
var
|
333
|
-
prefixCls =
|
360
|
+
var _useContext2 = (0, _react.useContext)(_contextProvider.GlobalContext),
|
361
|
+
prefixCls = _useContext2.prefixCls;
|
334
362
|
|
335
|
-
var
|
336
|
-
layout =
|
337
|
-
propsDisabled =
|
363
|
+
var _useContext3 = (0, _react.useContext)(_formItemContext.FormItemContext),
|
364
|
+
layout = _useContext3.layout,
|
365
|
+
propsDisabled = _useContext3.disabled;
|
338
366
|
|
339
367
|
var _useState = (0, _react.useState)(null),
|
340
368
|
errors = _useState[0],
|
@@ -95,6 +95,56 @@
|
|
95
95
|
* }
|
96
96
|
* ```
|
97
97
|
*/
|
98
|
+
/**
|
99
|
+
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
100
|
+
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
101
|
+
* @param @property css属性名
|
102
|
+
* @param @property {en} css property
|
103
|
+
* @param @value css属性值
|
104
|
+
* @param @value {en} css property value
|
105
|
+
* @param @rules 自定义的复写规则,默认重置为initial
|
106
|
+
* @param @rules {en} customized rewrite rules, default to initial
|
107
|
+
* @example
|
108
|
+
* ```
|
109
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
110
|
+
*
|
111
|
+
* .demo {
|
112
|
+
* .set-prop-with-rtl(right, auto);
|
113
|
+
* }
|
114
|
+
* ```
|
115
|
+
*/
|
116
|
+
/**
|
117
|
+
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
118
|
+
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
119
|
+
* @param @property css属性名
|
120
|
+
* @param @property {en} css property
|
121
|
+
* @param @value css属性值
|
122
|
+
* @param @value {en} css property value
|
123
|
+
* @example
|
124
|
+
* ```
|
125
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
126
|
+
*
|
127
|
+
* .demo {
|
128
|
+
* .set-value-with-rtl(text-align, left);
|
129
|
+
* }
|
130
|
+
* ```
|
131
|
+
*/
|
132
|
+
/**
|
133
|
+
* 在 rtl 模式下,自定义样式规则
|
134
|
+
* @desc {en} custom style in RTL mode
|
135
|
+
* @param @rules 对应的rtl模式下的规则
|
136
|
+
* @param @rules {en} property with rtl
|
137
|
+
* @example
|
138
|
+
* ```
|
139
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
140
|
+
*
|
141
|
+
* .demo {
|
142
|
+
* .style-with-rtl({
|
143
|
+
* transform: scale(-1);
|
144
|
+
* });
|
145
|
+
* }
|
146
|
+
* ```
|
147
|
+
*/
|
98
148
|
/**
|
99
149
|
* 0.5px 的边框线
|
100
150
|
* @desc {en} a border line of 0.5 pixels
|
@@ -396,40 +446,6 @@
|
|
396
446
|
* }
|
397
447
|
* ```
|
398
448
|
*/
|
399
|
-
/**
|
400
|
-
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
401
|
-
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
402
|
-
* @param @property css属性名
|
403
|
-
* @param @property {en} css property
|
404
|
-
* @param @value css属性值
|
405
|
-
* @param @value {en} css property value
|
406
|
-
* @param @rules 自定义的复写规则,默认重置为initial
|
407
|
-
* @param @rules {en} customized rewrite rules, default to initial
|
408
|
-
* @example
|
409
|
-
* ```
|
410
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
411
|
-
*
|
412
|
-
* .demo {
|
413
|
-
* .set-prop-with-rtl(right, auto);
|
414
|
-
* }
|
415
|
-
* ```
|
416
|
-
*/
|
417
|
-
/**
|
418
|
-
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
419
|
-
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
420
|
-
* @param @property css属性名
|
421
|
-
* @param @property {en} css property
|
422
|
-
* @param @value css属性值
|
423
|
-
* @param @value {en} css property value
|
424
|
-
* @example
|
425
|
-
* ```
|
426
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
427
|
-
*
|
428
|
-
* .demo {
|
429
|
-
* .set-value-with-rtl(text-align, left);
|
430
|
-
* }
|
431
|
-
* ```
|
432
|
-
*/
|
433
449
|
/**
|
434
450
|
* 设置Loading组件颜色
|
435
451
|
* @desc {en} set Loading component color
|
@@ -604,6 +620,13 @@
|
|
604
620
|
height: 0.32rem ;
|
605
621
|
line-height: 0.32rem ;
|
606
622
|
}
|
623
|
+
.arco-form-picker-link-container {
|
624
|
+
font-size: 0.32rem;
|
625
|
+
color: #1d2129 ;
|
626
|
+
}
|
627
|
+
.arco-form-picker-link-container-placeholder {
|
628
|
+
color: #c9cdd4 ;
|
629
|
+
}
|
607
630
|
/***************************************************
|
608
631
|
* *
|
609
632
|
* Arco Theme Style *
|
@@ -638,4 +661,10 @@
|
|
638
661
|
.arco-theme-dark .arco-form-item-warning-message {
|
639
662
|
color: #FF9626 ;
|
640
663
|
}
|
664
|
+
.arco-theme-dark .arco-form-picker-link-container {
|
665
|
+
color: #f6f6f6 ;
|
666
|
+
}
|
667
|
+
.arco-theme-dark .arco-form-picker-link-container-placeholder {
|
668
|
+
color: #5f5f60 ;
|
669
|
+
}
|
641
670
|
/********************* End *************************/
|
@@ -89,6 +89,14 @@
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
}
|
92
|
+
|
93
|
+
&-picker-link-container {
|
94
|
+
.rem(font-size, 16);
|
95
|
+
.use-var(color, font-color);
|
96
|
+
&-placeholder {
|
97
|
+
.use-var(color, input-placeholder-color);
|
98
|
+
}
|
99
|
+
}
|
92
100
|
}
|
93
101
|
|
94
102
|
/***************************************************
|
@@ -149,6 +157,16 @@
|
|
149
157
|
.use-var(color, dark-form-item-warning-message-color);
|
150
158
|
}
|
151
159
|
}
|
160
|
+
&-picker-link-container {
|
161
|
+
@{arco-dark-mode-selector} & {
|
162
|
+
.use-var(color, dark-font-color);
|
163
|
+
}
|
164
|
+
&-placeholder {
|
165
|
+
@{arco-dark-mode-selector} & {
|
166
|
+
.use-var(color, dark-input-placeholder-color);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
152
170
|
}
|
153
171
|
}
|
154
172
|
/********************* End *************************/
|
@@ -95,6 +95,56 @@
|
|
95
95
|
* }
|
96
96
|
* ```
|
97
97
|
*/
|
98
|
+
/**
|
99
|
+
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
100
|
+
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
101
|
+
* @param @property css属性名
|
102
|
+
* @param @property {en} css property
|
103
|
+
* @param @value css属性值
|
104
|
+
* @param @value {en} css property value
|
105
|
+
* @param @rules 自定义的复写规则,默认重置为initial
|
106
|
+
* @param @rules {en} customized rewrite rules, default to initial
|
107
|
+
* @example
|
108
|
+
* ```
|
109
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
110
|
+
*
|
111
|
+
* .demo {
|
112
|
+
* .set-prop-with-rtl(right, auto);
|
113
|
+
* }
|
114
|
+
* ```
|
115
|
+
*/
|
116
|
+
/**
|
117
|
+
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
118
|
+
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
119
|
+
* @param @property css属性名
|
120
|
+
* @param @property {en} css property
|
121
|
+
* @param @value css属性值
|
122
|
+
* @param @value {en} css property value
|
123
|
+
* @example
|
124
|
+
* ```
|
125
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
126
|
+
*
|
127
|
+
* .demo {
|
128
|
+
* .set-value-with-rtl(text-align, left);
|
129
|
+
* }
|
130
|
+
* ```
|
131
|
+
*/
|
132
|
+
/**
|
133
|
+
* 在 rtl 模式下,自定义样式规则
|
134
|
+
* @desc {en} custom style in RTL mode
|
135
|
+
* @param @rules 对应的rtl模式下的规则
|
136
|
+
* @param @rules {en} property with rtl
|
137
|
+
* @example
|
138
|
+
* ```
|
139
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
140
|
+
*
|
141
|
+
* .demo {
|
142
|
+
* .style-with-rtl({
|
143
|
+
* transform: scale(-1);
|
144
|
+
* });
|
145
|
+
* }
|
146
|
+
* ```
|
147
|
+
*/
|
98
148
|
/**
|
99
149
|
* 0.5px 的边框线
|
100
150
|
* @desc {en} a border line of 0.5 pixels
|
@@ -396,40 +446,6 @@
|
|
396
446
|
* }
|
397
447
|
* ```
|
398
448
|
*/
|
399
|
-
/**
|
400
|
-
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
401
|
-
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
402
|
-
* @param @property css属性名
|
403
|
-
* @param @property {en} css property
|
404
|
-
* @param @value css属性值
|
405
|
-
* @param @value {en} css property value
|
406
|
-
* @param @rules 自定义的复写规则,默认重置为initial
|
407
|
-
* @param @rules {en} customized rewrite rules, default to initial
|
408
|
-
* @example
|
409
|
-
* ```
|
410
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
411
|
-
*
|
412
|
-
* .demo {
|
413
|
-
* .set-prop-with-rtl(right, auto);
|
414
|
-
* }
|
415
|
-
* ```
|
416
|
-
*/
|
417
|
-
/**
|
418
|
-
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
419
|
-
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
420
|
-
* @param @property css属性名
|
421
|
-
* @param @property {en} css property
|
422
|
-
* @param @value css属性值
|
423
|
-
* @param @value {en} css property value
|
424
|
-
* @example
|
425
|
-
* ```
|
426
|
-
* @import '@arco-design/mobile-utils/style/mixin.less';
|
427
|
-
*
|
428
|
-
* .demo {
|
429
|
-
* .set-value-with-rtl(text-align, left);
|
430
|
-
* }
|
431
|
-
* ```
|
432
|
-
*/
|
433
449
|
/**
|
434
450
|
* 设置Loading组件颜色
|
435
451
|
* @desc {en} set Loading component color
|
@@ -35,8 +35,7 @@ function IconCheck(props) {
|
|
35
35
|
}, other), /*#__PURE__*/_react.default.createElement("path", {
|
36
36
|
fillRule: "evenodd",
|
37
37
|
clipRule: "evenodd",
|
38
|
-
d: "M16.702 4.47a.5.5 0 00-.705.06L8.33 13.596 3.82 9.724a.5.5 0 00-.705.054l-.652.758a.5.5 0 00.054.706L7.361 15.4a.5.5 0 00.054.053l.526.445.22.188a.5.5 0 00.722-.047l8.641-10.218a.5.5 0 00-.059-.705l-.763-.645z"
|
39
|
-
fill: useCurrentColor ? 'currentColor' : '#000'
|
38
|
+
d: "M16.702 4.47a.5.5 0 00-.705.06L8.33 13.596 3.82 9.724a.5.5 0 00-.705.054l-.652.758a.5.5 0 00.054.706L7.361 15.4a.5.5 0 00.054.053l.526.445.22.188a.5.5 0 00.722-.047l8.641-10.218a.5.5 0 00-.059-.705l-.763-.645z"
|
40
39
|
}));
|
41
40
|
});
|
42
41
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SVGAttributes, CSSProperties } from 'react';
|
2
|
+
export interface IconProps extends SVGAttributes<SVGElement> {
|
3
|
+
className?: string;
|
4
|
+
useCurrentColor?: boolean;
|
5
|
+
style?: CSSProperties;
|
6
|
+
}
|
7
|
+
export default function IconDownload(props: IconProps): JSX.Element;
|