antd-mobile 5.32.0 → 5.32.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/2x/bundle/antd-mobile.cjs.development.js +385 -302
- package/2x/bundle/antd-mobile.cjs.js +9 -9
- package/2x/bundle/antd-mobile.es.development.js +385 -302
- package/2x/bundle/antd-mobile.es.js +5266 -5213
- package/2x/bundle/antd-mobile.umd.development.js +385 -302
- package/2x/bundle/antd-mobile.umd.js +9 -9
- package/2x/bundle/style.css +15 -15
- package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
- package/2x/cjs/components/button/button.css +2 -2
- package/2x/cjs/components/calendar/calendar.js +5 -1
- package/2x/cjs/components/center-popup/center-popup.js +6 -5
- package/2x/cjs/components/collapse/collapse.js +27 -12
- package/2x/cjs/components/ellipsis/ellipsis.js +4 -4
- package/2x/cjs/components/error-block/create-error-block.js +4 -4
- package/2x/cjs/components/error-block/error-block.css +1 -1
- package/2x/cjs/components/floating-panel/floating-panel.js +8 -7
- package/2x/cjs/components/form/form-item.d.ts +1 -1
- package/2x/cjs/components/form/form-item.js +6 -9
- package/2x/cjs/components/form/form.css +1 -1
- package/2x/cjs/components/form/index.css +1 -1
- package/2x/cjs/components/image-uploader/image-uploader.css +1 -1
- package/2x/cjs/components/input/input.d.ts +2 -8
- package/2x/cjs/components/notice-bar/notice-bar.css +2 -2
- package/2x/cjs/components/number-keyboard/number-keyboard.css +2 -2
- package/2x/cjs/components/picker-view/wheel.js +61 -14
- package/2x/cjs/components/popover/popover-menu.css +2 -2
- package/2x/cjs/components/progress-bar/progress-bar.css +1 -1
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/2x/cjs/components/rate/rate.d.ts +1 -1
- package/2x/cjs/components/steps/steps.js +5 -5
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +4 -3
- package/2x/cjs/components/tag/tag.js +1 -1
- package/2x/cjs/components/text-area/text-area.js +11 -2
- package/2x/cjs/components/toast/toast.css +2 -2
- package/2x/cjs/components/water-mark/water-mark.js +1 -1
- package/2x/cjs/locales/base.d.ts +1 -1
- package/2x/cjs/locales/base.js +1 -1
- package/2x/cjs/locales/da-DK.d.ts +1 -1
- package/2x/cjs/locales/da-DK.js +1 -1
- package/2x/cjs/locales/en-US.d.ts +1 -1
- package/2x/cjs/locales/es-ES.d.ts +1 -1
- package/2x/cjs/locales/es-ES.js +1 -1
- package/2x/cjs/locales/fa-IR.d.ts +1 -1
- package/2x/cjs/locales/fa-IR.js +1 -1
- package/2x/cjs/locales/fr-FR.d.ts +1 -1
- package/2x/cjs/locales/fr-FR.js +1 -1
- package/2x/cjs/locales/id-ID.d.ts +1 -1
- package/2x/cjs/locales/id-ID.js +1 -1
- package/2x/cjs/locales/it-IT.d.ts +1 -1
- package/2x/cjs/locales/it-IT.js +1 -1
- package/2x/cjs/locales/ja-JP.d.ts +1 -1
- package/2x/cjs/locales/ja-JP.js +1 -1
- package/2x/cjs/locales/kk-KZ.d.ts +1 -1
- package/2x/cjs/locales/kk-KZ.js +1 -1
- package/2x/cjs/locales/ko-KR.d.ts +1 -1
- package/2x/cjs/locales/ko-KR.js +1 -1
- package/2x/cjs/locales/nb-NO.d.ts +1 -1
- package/2x/cjs/locales/nb-NO.js +1 -1
- package/2x/cjs/locales/nl-NL.d.ts +1 -1
- package/2x/cjs/locales/nl-NL.js +1 -1
- package/2x/cjs/locales/ru-RU.d.ts +1 -1
- package/2x/cjs/locales/ru-RU.js +1 -1
- package/2x/cjs/locales/zh-CN.d.ts +1 -1
- package/2x/cjs/locales/zh-CN.js +1 -1
- package/2x/cjs/locales/zh-HK.d.ts +1 -1
- package/2x/cjs/locales/zh-HK.js +1 -1
- package/2x/cjs/locales/zh-TW.d.ts +1 -1
- package/2x/cjs/locales/zh-TW.js +1 -1
- package/2x/cjs/utils/replace-message.d.ts +1 -0
- package/2x/cjs/utils/replace-message.js +13 -0
- package/2x/cjs/utils/use-lock-scroll.js +6 -2
- package/2x/es/components/action-sheet/action-sheet.css +1 -1
- package/2x/es/components/button/button.css +2 -2
- package/2x/es/components/calendar/calendar.js +5 -1
- package/2x/es/components/center-popup/center-popup.js +6 -5
- package/2x/es/components/collapse/collapse.js +27 -12
- package/2x/es/components/ellipsis/ellipsis.js +4 -4
- package/2x/es/components/error-block/create-error-block.js +4 -4
- package/2x/es/components/error-block/error-block.css +1 -1
- package/2x/es/components/floating-panel/floating-panel.js +8 -7
- package/2x/es/components/form/form-item.d.ts +1 -1
- package/2x/es/components/form/form-item.js +6 -9
- package/2x/es/components/form/form.css +1 -1
- package/2x/es/components/form/index.css +1 -1
- package/2x/es/components/image-uploader/image-uploader.css +1 -1
- package/2x/es/components/input/input.d.ts +2 -8
- package/2x/es/components/notice-bar/notice-bar.css +2 -2
- package/2x/es/components/number-keyboard/number-keyboard.css +2 -2
- package/2x/es/components/picker-view/wheel.js +61 -14
- package/2x/es/components/popover/popover-menu.css +2 -2
- package/2x/es/components/progress-bar/progress-bar.css +1 -1
- package/2x/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/2x/es/components/rate/rate.d.ts +1 -1
- package/2x/es/components/steps/steps.js +5 -5
- package/2x/es/components/swipe-action/swipe-action.d.ts +4 -3
- package/2x/es/components/tag/tag.js +1 -1
- package/2x/es/components/text-area/text-area.js +11 -2
- package/2x/es/components/toast/toast.css +2 -2
- package/2x/es/components/water-mark/water-mark.js +1 -1
- package/2x/es/locales/base.d.ts +1 -1
- package/2x/es/locales/base.js +1 -1
- package/2x/es/locales/da-DK.d.ts +1 -1
- package/2x/es/locales/da-DK.js +1 -1
- package/2x/es/locales/en-US.d.ts +1 -1
- package/2x/es/locales/es-ES.d.ts +1 -1
- package/2x/es/locales/es-ES.js +1 -1
- package/2x/es/locales/fa-IR.d.ts +1 -1
- package/2x/es/locales/fa-IR.js +1 -1
- package/2x/es/locales/fr-FR.d.ts +1 -1
- package/2x/es/locales/fr-FR.js +1 -1
- package/2x/es/locales/id-ID.d.ts +1 -1
- package/2x/es/locales/id-ID.js +1 -1
- package/2x/es/locales/it-IT.d.ts +1 -1
- package/2x/es/locales/it-IT.js +1 -1
- package/2x/es/locales/ja-JP.d.ts +1 -1
- package/2x/es/locales/ja-JP.js +1 -1
- package/2x/es/locales/kk-KZ.d.ts +1 -1
- package/2x/es/locales/kk-KZ.js +1 -1
- package/2x/es/locales/ko-KR.d.ts +1 -1
- package/2x/es/locales/ko-KR.js +1 -1
- package/2x/es/locales/nb-NO.d.ts +1 -1
- package/2x/es/locales/nb-NO.js +1 -1
- package/2x/es/locales/nl-NL.d.ts +1 -1
- package/2x/es/locales/nl-NL.js +1 -1
- package/2x/es/locales/ru-RU.d.ts +1 -1
- package/2x/es/locales/ru-RU.js +1 -1
- package/2x/es/locales/zh-CN.d.ts +1 -1
- package/2x/es/locales/zh-CN.js +1 -1
- package/2x/es/locales/zh-HK.d.ts +1 -1
- package/2x/es/locales/zh-HK.js +1 -1
- package/2x/es/locales/zh-TW.d.ts +1 -1
- package/2x/es/locales/zh-TW.js +1 -1
- package/2x/es/utils/replace-message.d.ts +1 -0
- package/2x/es/utils/replace-message.js +7 -0
- package/2x/es/utils/use-lock-scroll.js +6 -2
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +385 -302
- package/bundle/antd-mobile.cjs.js +9 -9
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +385 -302
- package/bundle/antd-mobile.es.js +5266 -5213
- package/bundle/antd-mobile.umd.development.js +385 -302
- package/bundle/antd-mobile.umd.js +9 -9
- package/bundle/style.css +1 -1
- package/cjs/components/action-sheet/action-sheet.css +1 -1
- package/cjs/components/button/button.css +2 -2
- package/cjs/components/calendar/calendar.js +5 -1
- package/cjs/components/center-popup/center-popup.js +6 -5
- package/cjs/components/collapse/collapse.js +27 -12
- package/cjs/components/ellipsis/ellipsis.js +4 -4
- package/cjs/components/error-block/create-error-block.js +4 -4
- package/cjs/components/error-block/error-block.css +1 -1
- package/cjs/components/floating-panel/floating-panel.js +8 -7
- package/cjs/components/form/form-item.d.ts +1 -1
- package/cjs/components/form/form-item.js +6 -9
- package/cjs/components/form/form.css +1 -1
- package/cjs/components/form/index.css +1 -1
- package/cjs/components/image-uploader/image-uploader.css +1 -1
- package/cjs/components/input/input.d.ts +2 -8
- package/cjs/components/notice-bar/notice-bar.css +2 -2
- package/cjs/components/number-keyboard/number-keyboard.css +2 -2
- package/cjs/components/picker-view/wheel.js +61 -14
- package/cjs/components/popover/popover-menu.css +2 -2
- package/cjs/components/progress-bar/progress-bar.css +1 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/cjs/components/rate/rate.d.ts +1 -1
- package/cjs/components/steps/steps.js +5 -5
- package/cjs/components/swipe-action/swipe-action.d.ts +4 -3
- package/cjs/components/tag/tag.js +1 -1
- package/cjs/components/text-area/text-area.js +11 -2
- package/cjs/components/toast/toast.css +2 -2
- package/cjs/components/water-mark/water-mark.js +1 -1
- package/cjs/locales/base.d.ts +1 -1
- package/cjs/locales/base.js +1 -1
- package/cjs/locales/da-DK.d.ts +1 -1
- package/cjs/locales/da-DK.js +1 -1
- package/cjs/locales/en-US.d.ts +1 -1
- package/cjs/locales/es-ES.d.ts +1 -1
- package/cjs/locales/es-ES.js +1 -1
- package/cjs/locales/fa-IR.d.ts +1 -1
- package/cjs/locales/fa-IR.js +1 -1
- package/cjs/locales/fr-FR.d.ts +1 -1
- package/cjs/locales/fr-FR.js +1 -1
- package/cjs/locales/id-ID.d.ts +1 -1
- package/cjs/locales/id-ID.js +1 -1
- package/cjs/locales/it-IT.d.ts +1 -1
- package/cjs/locales/it-IT.js +1 -1
- package/cjs/locales/ja-JP.d.ts +1 -1
- package/cjs/locales/ja-JP.js +1 -1
- package/cjs/locales/kk-KZ.d.ts +1 -1
- package/cjs/locales/kk-KZ.js +1 -1
- package/cjs/locales/ko-KR.d.ts +1 -1
- package/cjs/locales/ko-KR.js +1 -1
- package/cjs/locales/nb-NO.d.ts +1 -1
- package/cjs/locales/nb-NO.js +1 -1
- package/cjs/locales/nl-NL.d.ts +1 -1
- package/cjs/locales/nl-NL.js +1 -1
- package/cjs/locales/ru-RU.d.ts +1 -1
- package/cjs/locales/ru-RU.js +1 -1
- package/cjs/locales/zh-CN.d.ts +1 -1
- package/cjs/locales/zh-CN.js +1 -1
- package/cjs/locales/zh-HK.d.ts +1 -1
- package/cjs/locales/zh-HK.js +1 -1
- package/cjs/locales/zh-TW.d.ts +1 -1
- package/cjs/locales/zh-TW.js +1 -1
- package/cjs/utils/replace-message.d.ts +1 -0
- package/cjs/utils/replace-message.js +13 -0
- package/cjs/utils/use-lock-scroll.js +6 -2
- package/es/components/action-sheet/action-sheet.css +1 -1
- package/es/components/button/button.css +2 -2
- package/es/components/calendar/calendar.js +5 -1
- package/es/components/center-popup/center-popup.js +6 -5
- package/es/components/collapse/collapse.js +27 -12
- package/es/components/ellipsis/ellipsis.js +4 -4
- package/es/components/error-block/create-error-block.js +4 -4
- package/es/components/error-block/error-block.css +1 -1
- package/es/components/floating-panel/floating-panel.js +8 -7
- package/es/components/form/form-item.d.ts +1 -1
- package/es/components/form/form-item.js +6 -9
- package/es/components/form/form.css +1 -1
- package/es/components/form/index.css +1 -1
- package/es/components/image-uploader/image-uploader.css +1 -1
- package/es/components/input/input.d.ts +2 -8
- package/es/components/notice-bar/notice-bar.css +2 -2
- package/es/components/number-keyboard/number-keyboard.css +2 -2
- package/es/components/picker-view/wheel.js +61 -14
- package/es/components/popover/popover-menu.css +2 -2
- package/es/components/progress-bar/progress-bar.css +1 -1
- package/es/components/pull-to-refresh/pull-to-refresh.js +1 -1
- package/es/components/rate/rate.d.ts +1 -1
- package/es/components/steps/steps.js +5 -5
- package/es/components/swipe-action/swipe-action.d.ts +4 -3
- package/es/components/tag/tag.js +1 -1
- package/es/components/text-area/text-area.js +11 -2
- package/es/components/toast/toast.css +2 -2
- package/es/components/water-mark/water-mark.js +1 -1
- package/es/locales/base.d.ts +1 -1
- package/es/locales/base.js +1 -1
- package/es/locales/da-DK.d.ts +1 -1
- package/es/locales/da-DK.js +1 -1
- package/es/locales/en-US.d.ts +1 -1
- package/es/locales/es-ES.d.ts +1 -1
- package/es/locales/es-ES.js +1 -1
- package/es/locales/fa-IR.d.ts +1 -1
- package/es/locales/fa-IR.js +1 -1
- package/es/locales/fr-FR.d.ts +1 -1
- package/es/locales/fr-FR.js +1 -1
- package/es/locales/id-ID.d.ts +1 -1
- package/es/locales/id-ID.js +1 -1
- package/es/locales/it-IT.d.ts +1 -1
- package/es/locales/it-IT.js +1 -1
- package/es/locales/ja-JP.d.ts +1 -1
- package/es/locales/ja-JP.js +1 -1
- package/es/locales/kk-KZ.d.ts +1 -1
- package/es/locales/kk-KZ.js +1 -1
- package/es/locales/ko-KR.d.ts +1 -1
- package/es/locales/ko-KR.js +1 -1
- package/es/locales/nb-NO.d.ts +1 -1
- package/es/locales/nb-NO.js +1 -1
- package/es/locales/nl-NL.d.ts +1 -1
- package/es/locales/nl-NL.js +1 -1
- package/es/locales/ru-RU.d.ts +1 -1
- package/es/locales/ru-RU.js +1 -1
- package/es/locales/zh-CN.d.ts +1 -1
- package/es/locales/zh-CN.js +1 -1
- package/es/locales/zh-HK.d.ts +1 -1
- package/es/locales/zh-HK.js +1 -1
- package/es/locales/zh-TW.d.ts +1 -1
- package/es/locales/zh-TW.js +1 -1
- package/es/utils/replace-message.d.ts +1 -0
- package/es/utils/replace-message.js +7 -0
- package/es/utils/use-lock-scroll.js +6 -2
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
package/2x/bundle/style.css
CHANGED
|
@@ -128,7 +128,7 @@ div.adm-px-tester {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.adm-action-sheet-button-item:active {
|
|
131
|
-
background-color:
|
|
131
|
+
background-color: var(--adm-color-border);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.adm-action-sheet-button-item-disabled {
|
|
@@ -411,8 +411,8 @@ div.adm-px-tester {
|
|
|
411
411
|
transform: translate(calc(var(--border-width) * -1),calc(var(--border-width) * -1));
|
|
412
412
|
width: 100%;
|
|
413
413
|
height: 100%;
|
|
414
|
-
background-color:
|
|
415
|
-
border: var(--border-width) var(--border-style)
|
|
414
|
+
background-color: var(--adm-color-text-dark-solid);
|
|
415
|
+
border: var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);
|
|
416
416
|
border-radius: var(--border-radius);
|
|
417
417
|
opacity: 0;
|
|
418
418
|
content: " ";
|
|
@@ -1766,7 +1766,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
1766
1766
|
|
|
1767
1767
|
.adm-error-block-description {
|
|
1768
1768
|
font-size: var(--adm-font-size-4);
|
|
1769
|
-
color:
|
|
1769
|
+
color: var(--adm-color-weak);
|
|
1770
1770
|
line-height: 1.4;
|
|
1771
1771
|
margin-top: 24px;
|
|
1772
1772
|
}
|
|
@@ -1946,7 +1946,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
1946
1946
|
|
|
1947
1947
|
.adm-form-list-operation {
|
|
1948
1948
|
text-align: center;
|
|
1949
|
-
color:
|
|
1949
|
+
color: var(--adm-color-primary);
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
1952
|
.adm-form-item+.adm-form-item {
|
|
@@ -2113,7 +2113,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
2115
|
.adm-popover-menu {
|
|
2116
|
-
--border-color:
|
|
2116
|
+
--border-color: var(--adm-color-border);
|
|
2117
2117
|
}
|
|
2118
2118
|
|
|
2119
2119
|
.adm-popover-menu.adm-popover {
|
|
@@ -2172,7 +2172,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
2174
|
.adm-popover.adm-popover-dark.adm-popover-menu {
|
|
2175
|
-
--border-color:
|
|
2175
|
+
--border-color: var(--adm-color-text);
|
|
2176
2176
|
--background: rgba(0, 0, 0, .9);
|
|
2177
2177
|
}
|
|
2178
2178
|
|
|
@@ -2451,7 +2451,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
|
|
2453
2453
|
.adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button-icon {
|
|
2454
|
-
color:
|
|
2454
|
+
color: var(--adm-color-weak);
|
|
2455
2455
|
font-size: 64px;
|
|
2456
2456
|
}
|
|
2457
2457
|
|
|
@@ -2929,7 +2929,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2929
2929
|
|
|
2930
2930
|
.adm-notice-bar {
|
|
2931
2931
|
--background-color: #ababab;
|
|
2932
|
-
--border-color:
|
|
2932
|
+
--border-color: var(--adm-color-weak);
|
|
2933
2933
|
--text-color: var(--adm-color-text-light-solid);
|
|
2934
2934
|
--font-size: var(--adm-font-size-7);
|
|
2935
2935
|
--icon-font-size: var(--adm-font-size-10);
|
|
@@ -2967,7 +2967,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2967
2967
|
.adm-notice-bar.adm-notice-bar-info {
|
|
2968
2968
|
--background-color: #d0e4ff;
|
|
2969
2969
|
--border-color: #bcd8ff;
|
|
2970
|
-
--text-color:
|
|
2970
|
+
--text-color: var(--adm-color-primary);
|
|
2971
2971
|
}
|
|
2972
2972
|
|
|
2973
2973
|
.adm-notice-bar .adm-notice-bar-left {
|
|
@@ -3112,9 +3112,9 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
3112
3112
|
left: 50%;
|
|
3113
3113
|
width: 100%;
|
|
3114
3114
|
height: 100%;
|
|
3115
|
-
background-color:
|
|
3115
|
+
background-color: var(--adm-color-text-dark-solid);
|
|
3116
3116
|
border: inherit;
|
|
3117
|
-
border-color:
|
|
3117
|
+
border-color: var(--adm-color-text-dark-solid);
|
|
3118
3118
|
border-radius: inherit;
|
|
3119
3119
|
transform: translate(-50%,-50%);
|
|
3120
3120
|
opacity: 0;
|
|
@@ -3386,7 +3386,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
3386
3386
|
flex: none;
|
|
3387
3387
|
width: calc(var(--text-width) + 16px);
|
|
3388
3388
|
padding-left: 16px;
|
|
3389
|
-
color:
|
|
3389
|
+
color: var(--adm-color-weak);
|
|
3390
3390
|
}
|
|
3391
3391
|
|
|
3392
3392
|
.adm-progress-bar-rounded .adm-progress-bar-trail,
|
|
@@ -4784,14 +4784,14 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4784
4784
|
left: 0;
|
|
4785
4785
|
width: 100%;
|
|
4786
4786
|
height: 100%;
|
|
4787
|
+
text-align: center;
|
|
4787
4788
|
}
|
|
4788
4789
|
|
|
4789
4790
|
.adm-toast-mask .adm-toast-main {
|
|
4790
4791
|
display: inline-block;
|
|
4791
4792
|
position: relative;
|
|
4792
4793
|
top: 50%;
|
|
4793
|
-
|
|
4794
|
-
transform: translate(-50%,-50%);
|
|
4794
|
+
transform: translateY(-50%);
|
|
4795
4795
|
width: auto;
|
|
4796
4796
|
max-width: 408px;
|
|
4797
4797
|
max-height: 70%;
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
transform: translate(calc(var(--border-width) * -1), calc(var(--border-width) * -1));
|
|
37
37
|
width: 100%;
|
|
38
38
|
height: 100%;
|
|
39
|
-
background-color:
|
|
40
|
-
border: var(--border-width) var(--border-style)
|
|
39
|
+
background-color: var(--adm-color-text-dark-solid);
|
|
40
|
+
border: var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);
|
|
41
41
|
border-radius: var(--border-radius);
|
|
42
42
|
opacity: 0;
|
|
43
43
|
content: ' ';
|
|
@@ -15,6 +15,7 @@ var _configProvider = require("../config-provider");
|
|
|
15
15
|
var _isoWeek = _interopRequireDefault(require("dayjs/plugin/isoWeek"));
|
|
16
16
|
var _ahooks = require("ahooks");
|
|
17
17
|
var _usePropsValue = require("../../utils/use-props-value");
|
|
18
|
+
var _replaceMessage = require("../../utils/replace-message");
|
|
18
19
|
var _convert = require("./convert");
|
|
19
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -106,7 +107,10 @@ const Calendar = (0, _react.forwardRef)((p, ref) => {
|
|
|
106
107
|
}
|
|
107
108
|
}, props.prevMonthButton), _react.default.createElement("div", {
|
|
108
109
|
className: `${classPrefix}-title`
|
|
109
|
-
},
|
|
110
|
+
}, (0, _replaceMessage.replaceMessage)(locale.Calendar.yearAndMonth, {
|
|
111
|
+
year: current.year().toString(),
|
|
112
|
+
month: (current.month() + 1).toString()
|
|
113
|
+
})), _react.default.createElement("a", {
|
|
110
114
|
className: (0, _classnames.default)(`${classPrefix}-arrow-button`, `${classPrefix}-arrow-button-right`, `${classPrefix}-arrow-button-right-month`),
|
|
111
115
|
onClick: () => {
|
|
112
116
|
handlePageChange('add', 1, 'month');
|
|
@@ -21,6 +21,7 @@ var _popupBaseProps = require("../popup/popup-base-props");
|
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
23
|
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; }
|
|
24
|
+
const classPrefix = 'adm-center-popup';
|
|
24
25
|
const defaultProps = Object.assign(Object.assign({}, _popupBaseProps.defaultPopupBaseProps), {
|
|
25
26
|
getContainer: null
|
|
26
27
|
});
|
|
@@ -57,11 +58,11 @@ const CenterPopup = p => {
|
|
|
57
58
|
(0, _useLockScroll.useLockScroll)(ref, props.disableBodyScroll && active);
|
|
58
59
|
const maskVisible = (0, _useInnerVisible.useInnerVisible)(active && props.visible);
|
|
59
60
|
const body = _react.default.createElement("div", {
|
|
60
|
-
className: (0, _classnames.default)(
|
|
61
|
+
className: (0, _classnames.default)(`${classPrefix}-body`, props.bodyClassName),
|
|
61
62
|
style: props.bodyStyle
|
|
62
63
|
}, props.children);
|
|
63
64
|
const node = (0, _withStopPropagation.withStopPropagation)(props.stopPropagation, (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
64
|
-
className:
|
|
65
|
+
className: classPrefix,
|
|
65
66
|
style: {
|
|
66
67
|
display: active ? undefined : 'none',
|
|
67
68
|
pointerEvents: active ? undefined : 'none'
|
|
@@ -78,18 +79,18 @@ const CenterPopup = p => {
|
|
|
78
79
|
}
|
|
79
80
|
},
|
|
80
81
|
style: props.maskStyle,
|
|
81
|
-
className: (0, _classnames.default)(
|
|
82
|
+
className: (0, _classnames.default)(`${classPrefix}-mask`, props.maskClassName),
|
|
82
83
|
disableBodyScroll: false,
|
|
83
84
|
stopPropagation: props.stopPropagation
|
|
84
85
|
}), _react.default.createElement("div", {
|
|
85
|
-
className:
|
|
86
|
+
className: `${classPrefix}-wrap`,
|
|
86
87
|
role: props.role,
|
|
87
88
|
"aria-label": props['aria-label']
|
|
88
89
|
}, _react.default.createElement(_web.animated.div, {
|
|
89
90
|
style: style,
|
|
90
91
|
ref: ref
|
|
91
92
|
}, props.showCloseButton && _react.default.createElement("a", {
|
|
92
|
-
className: (0, _classnames.default)(
|
|
93
|
+
className: (0, _classnames.default)(`${classPrefix}-close`, 'adm-plain-anchor'),
|
|
93
94
|
onClick: () => {
|
|
94
95
|
var _a;
|
|
95
96
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -88,7 +88,6 @@ const CollapsePanelContent = props => {
|
|
|
88
88
|
}, _react.default.createElement(_list.default.Item, null, shouldRender && props.children)));
|
|
89
89
|
};
|
|
90
90
|
const Collapse = props => {
|
|
91
|
-
var _a;
|
|
92
91
|
const panels = [];
|
|
93
92
|
(0, _traverseReactNode.traverseReactNode)(props.children, child => {
|
|
94
93
|
if (!(0, _react.isValidElement)(child)) return;
|
|
@@ -96,18 +95,34 @@ const Collapse = props => {
|
|
|
96
95
|
if (typeof key !== 'string') return;
|
|
97
96
|
panels.push(child);
|
|
98
97
|
});
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
const handlePropsValue = () => {
|
|
99
|
+
var _a;
|
|
100
|
+
if (!props.accordion) {
|
|
101
|
+
return {
|
|
102
|
+
value: props.activeKey,
|
|
103
|
+
defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : [],
|
|
104
|
+
onChange: props.onChange
|
|
105
|
+
};
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
const initValue = {
|
|
108
|
+
value: [],
|
|
109
|
+
defaultValue: [],
|
|
110
|
+
onChange: v => {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, (_b = v[0]) !== null && _b !== void 0 ? _b : null);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
if (props.activeKey === undefined) {
|
|
116
|
+
initValue.value = undefined;
|
|
117
|
+
} else if (props.activeKey !== null) {
|
|
118
|
+
initValue.value = [props.activeKey];
|
|
119
|
+
}
|
|
120
|
+
if (![null, undefined].includes(props.defaultActiveKey)) {
|
|
121
|
+
initValue.defaultValue = [props.defaultActiveKey];
|
|
122
|
+
}
|
|
123
|
+
return initValue;
|
|
124
|
+
};
|
|
125
|
+
const [activeKey, setActiveKey] = (0, _usePropsValue.usePropsValue)(handlePropsValue());
|
|
111
126
|
const activeKeyList = activeKey === null ? [] : Array.isArray(activeKey) ? activeKey : [activeKey];
|
|
112
127
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
113
128
|
className: classPrefix
|
|
@@ -127,18 +127,18 @@ const Ellipsis = p => {
|
|
|
127
127
|
(0, _ahooks.useIsomorphicLayoutEffect)(() => {
|
|
128
128
|
calcEllipsised();
|
|
129
129
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
130
|
-
const expandActionElement =
|
|
130
|
+
const expandActionElement = !!props.expandText && (0, _withStopPropagation.withStopPropagation)(props.stopPropagationForActionButtons, _react.default.createElement("a", {
|
|
131
131
|
ref: expandElRef,
|
|
132
132
|
onClick: () => {
|
|
133
133
|
setExpanded(true);
|
|
134
134
|
}
|
|
135
|
-
}, props.expandText))
|
|
136
|
-
const collapseActionElement =
|
|
135
|
+
}, props.expandText));
|
|
136
|
+
const collapseActionElement = !!props.collapseText && (0, _withStopPropagation.withStopPropagation)(props.stopPropagationForActionButtons, _react.default.createElement("a", {
|
|
137
137
|
ref: collapseElRef,
|
|
138
138
|
onClick: () => {
|
|
139
139
|
setExpanded(false);
|
|
140
140
|
}
|
|
141
|
-
}, props.collapseText))
|
|
141
|
+
}, props.collapseText));
|
|
142
142
|
const renderContent = () => {
|
|
143
143
|
if (!exceeded) return props.content;
|
|
144
144
|
if (expanded) return _react.default.createElement(_react.default.Fragment, null, props.content, collapseActionElement);
|
|
@@ -22,7 +22,7 @@ function createErrorBlock(imageRecord) {
|
|
|
22
22
|
locale
|
|
23
23
|
} = (0, _configProvider.useConfig)();
|
|
24
24
|
const contentPack = locale.ErrorBlock[props.status];
|
|
25
|
-
const
|
|
25
|
+
const desc = 'description' in props ? props.description : contentPack.description;
|
|
26
26
|
const title = 'title' in props ? props.title : contentPack.title;
|
|
27
27
|
const image = (_a = props.image) !== null && _a !== void 0 ? _a : imageRecord[props.status];
|
|
28
28
|
const imageNode = typeof image === 'string' ? _react.default.createElement("img", {
|
|
@@ -37,11 +37,11 @@ function createErrorBlock(imageRecord) {
|
|
|
37
37
|
className: `${classPrefix}-image`
|
|
38
38
|
}, imageNode), _react.default.createElement("div", {
|
|
39
39
|
className: `${classPrefix}-description`
|
|
40
|
-
}, title && _react.default.createElement("div", {
|
|
40
|
+
}, ![undefined, null].includes(title) && _react.default.createElement("div", {
|
|
41
41
|
className: `${classPrefix}-description-title`
|
|
42
|
-
}, title),
|
|
42
|
+
}, title), ![undefined, null].includes(desc) && _react.default.createElement("div", {
|
|
43
43
|
className: `${classPrefix}-description-subtitle`
|
|
44
|
-
},
|
|
44
|
+
}, desc)), props.children && _react.default.createElement("div", {
|
|
45
45
|
className: `${classPrefix}-content`
|
|
46
46
|
}, props.children)));
|
|
47
47
|
};
|
|
@@ -15,6 +15,7 @@ var _useLockScroll = require("../../utils/use-lock-scroll");
|
|
|
15
15
|
var _ahooks = require("ahooks");
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
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; }
|
|
18
|
+
const classPrefix = 'adm-floating-panel';
|
|
18
19
|
const defaultProps = {
|
|
19
20
|
handleDraggingOfContent: true
|
|
20
21
|
};
|
|
@@ -73,7 +74,7 @@ const FloatingPanel = (0, _react.forwardRef)((p, ref) => {
|
|
|
73
74
|
const {
|
|
74
75
|
event
|
|
75
76
|
} = state;
|
|
76
|
-
if (event.cancelable) {
|
|
77
|
+
if (event.cancelable && _supportsPassive.supportsPassive) {
|
|
77
78
|
event.preventDefault();
|
|
78
79
|
}
|
|
79
80
|
event.stopPropagation();
|
|
@@ -97,7 +98,7 @@ const FloatingPanel = (0, _react.forwardRef)((p, ref) => {
|
|
|
97
98
|
target: elementRef,
|
|
98
99
|
eventOptions: _supportsPassive.supportsPassive ? {
|
|
99
100
|
passive: false
|
|
100
|
-
} :
|
|
101
|
+
} : undefined
|
|
101
102
|
});
|
|
102
103
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
103
104
|
setHeight: (height, options) => {
|
|
@@ -110,23 +111,23 @@ const FloatingPanel = (0, _react.forwardRef)((p, ref) => {
|
|
|
110
111
|
(0, _useLockScroll.useLockScroll)(elementRef, true);
|
|
111
112
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement(_web.animated.div, {
|
|
112
113
|
ref: elementRef,
|
|
113
|
-
className:
|
|
114
|
+
className: classPrefix,
|
|
114
115
|
style: {
|
|
115
116
|
height: Math.round(maxHeight),
|
|
116
117
|
translateY: y.to(y => `calc(100% + (${Math.round(y)}px))`)
|
|
117
118
|
}
|
|
118
119
|
}, _react.default.createElement("div", {
|
|
119
|
-
className:
|
|
120
|
+
className: `${classPrefix}-mask`,
|
|
120
121
|
style: {
|
|
121
122
|
display: pulling ? 'block' : 'none'
|
|
122
123
|
}
|
|
123
124
|
}), _react.default.createElement("div", {
|
|
124
|
-
className:
|
|
125
|
+
className: `${classPrefix}-header`,
|
|
125
126
|
ref: headerRef
|
|
126
127
|
}, _react.default.createElement("div", {
|
|
127
|
-
className:
|
|
128
|
+
className: `${classPrefix}-bar`
|
|
128
129
|
})), _react.default.createElement("div", {
|
|
129
|
-
className:
|
|
130
|
+
className: `${classPrefix}-content`,
|
|
130
131
|
ref: contentRef
|
|
131
132
|
}, props.children)));
|
|
132
133
|
});
|
|
@@ -2,8 +2,8 @@ import React, { FC } from 'react';
|
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
import { FormInstance } from 'rc-field-form';
|
|
4
4
|
import type { FieldProps } from 'rc-field-form/lib/Field';
|
|
5
|
-
import { ListItemProps } from '../list';
|
|
6
5
|
import type { FormLayout } from './index';
|
|
6
|
+
import { ListItemProps } from '../list';
|
|
7
7
|
declare type RenderChildren<Values = any> = (form: FormInstance<Values>) => React.ReactNode;
|
|
8
8
|
declare type ChildrenType<Values = any> = RenderChildren<Values> | React.ReactNode;
|
|
9
9
|
declare type RcFieldProps = Omit<FieldProps, 'children'>;
|
|
@@ -29,7 +29,6 @@ const MemoInput = _react.default.memo(({
|
|
|
29
29
|
const FormItemLayout = props => {
|
|
30
30
|
var _a;
|
|
31
31
|
const {
|
|
32
|
-
className,
|
|
33
32
|
style,
|
|
34
33
|
extra,
|
|
35
34
|
label,
|
|
@@ -71,7 +70,7 @@ const FormItemLayout = props => {
|
|
|
71
70
|
return null;
|
|
72
71
|
}
|
|
73
72
|
})();
|
|
74
|
-
const labelElement = label
|
|
73
|
+
const labelElement = !!label && _react.default.createElement("label", {
|
|
75
74
|
className: `${classPrefix}-label`,
|
|
76
75
|
htmlFor: htmlFor
|
|
77
76
|
}, label, requiredMark, help && _react.default.createElement(_popover.default, {
|
|
@@ -83,21 +82,21 @@ const FormItemLayout = props => {
|
|
|
83
82
|
onClick: e => {
|
|
84
83
|
e.preventDefault();
|
|
85
84
|
}
|
|
86
|
-
}, _react.default.createElement(_antdMobileIcons.QuestionCircleOutline, null))))
|
|
87
|
-
const description = props.description || hasFeedback
|
|
85
|
+
}, _react.default.createElement(_antdMobileIcons.QuestionCircleOutline, null))));
|
|
86
|
+
const description = (!!props.description || hasFeedback) && _react.default.createElement(_react.default.Fragment, null, props.description, hasFeedback && _react.default.createElement(_react.default.Fragment, null, props.errors.map((error, index) => _react.default.createElement("div", {
|
|
88
87
|
key: `error-${index}`,
|
|
89
88
|
className: `${classPrefix}-feedback-error`
|
|
90
89
|
}, error)), props.warnings.map((warning, index) => _react.default.createElement("div", {
|
|
91
90
|
key: `warning-${index}`,
|
|
92
91
|
className: `${classPrefix}-feedback-warning`
|
|
93
|
-
}, warning))))
|
|
92
|
+
}, warning))));
|
|
94
93
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement(_list.default.Item, {
|
|
95
94
|
style: style,
|
|
96
95
|
title: layout === 'vertical' && labelElement,
|
|
97
96
|
prefix: layout === 'horizontal' && labelElement,
|
|
98
97
|
extra: extra,
|
|
99
98
|
description: description,
|
|
100
|
-
className: (0, _classnames.default)(classPrefix,
|
|
99
|
+
className: (0, _classnames.default)(classPrefix, `${classPrefix}-${layout}`, {
|
|
101
100
|
[`${classPrefix}-hidden`]: hidden,
|
|
102
101
|
[`${classPrefix}-has-error`]: props.errors.length
|
|
103
102
|
}),
|
|
@@ -114,7 +113,6 @@ const FormItemLayout = props => {
|
|
|
114
113
|
const FormItem = props => {
|
|
115
114
|
const {
|
|
116
115
|
// 样式相关
|
|
117
|
-
className,
|
|
118
116
|
style,
|
|
119
117
|
// FormItem 相关
|
|
120
118
|
label,
|
|
@@ -141,7 +139,7 @@ const FormItem = props => {
|
|
|
141
139
|
clickable,
|
|
142
140
|
arrow
|
|
143
141
|
} = props,
|
|
144
|
-
fieldProps = (0, _tslib.__rest)(props, ["
|
|
142
|
+
fieldProps = (0, _tslib.__rest)(props, ["style", "label", "help", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "childElementPosition", "description", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies", "clickable", "arrow"]);
|
|
145
143
|
const {
|
|
146
144
|
name: formName
|
|
147
145
|
} = (0, _react.useContext)(_context.FormContext);
|
|
@@ -189,7 +187,6 @@ const FormItem = props => {
|
|
|
189
187
|
return subWarnings;
|
|
190
188
|
}, curWarnings);
|
|
191
189
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement(FormItemLayout, {
|
|
192
|
-
className: className,
|
|
193
190
|
style: style,
|
|
194
191
|
label: label,
|
|
195
192
|
extra: extra,
|
|
@@ -4,13 +4,10 @@ declare type NativeInputProps = React.DetailedHTMLProps<React.InputHTMLAttribute
|
|
|
4
4
|
declare type AriaProps = {
|
|
5
5
|
role?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'autoFocus' | 'pattern' | 'inputMode' | 'type' | 'name' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd' | 'onClick' | 'step' | 'id'> & {
|
|
7
|
+
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'autoComplete' | 'autoFocus' | 'pattern' | 'inputMode' | 'type' | 'name' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd' | 'onClick' | 'step' | 'id' | 'placeholder' | 'readOnly' | 'disabled'> & {
|
|
8
8
|
value?: string;
|
|
9
9
|
defaultValue?: string;
|
|
10
10
|
onChange?: (val: string) => void;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
readOnly?: boolean;
|
|
14
11
|
clearable?: boolean;
|
|
15
12
|
onlyShowClearWhenFocus?: boolean;
|
|
16
13
|
onClear?: () => void;
|
|
@@ -25,13 +22,10 @@ export declare type InputRef = {
|
|
|
25
22
|
blur: () => void;
|
|
26
23
|
nativeElement: HTMLInputElement | null;
|
|
27
24
|
};
|
|
28
|
-
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "id" | "onClick" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "type" | "step" | "autoFocus" | "autoCapitalize" | "autoCorrect" | "inputMode" | "name" | "autoComplete" | "maxLength" | "minLength"> & {
|
|
25
|
+
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "id" | "onClick" | "disabled" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "type" | "step" | "autoFocus" | "placeholder" | "autoCapitalize" | "autoCorrect" | "inputMode" | "name" | "readOnly" | "autoComplete" | "maxLength" | "minLength"> & {
|
|
29
26
|
value?: string | undefined;
|
|
30
27
|
defaultValue?: string | undefined;
|
|
31
28
|
onChange?: ((val: string) => void) | undefined;
|
|
32
|
-
placeholder?: string | undefined;
|
|
33
|
-
disabled?: boolean | undefined;
|
|
34
|
-
readOnly?: boolean | undefined;
|
|
35
29
|
clearable?: boolean | undefined;
|
|
36
30
|
onlyShowClearWhenFocus?: boolean | undefined;
|
|
37
31
|
onClear?: (() => void) | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.adm-notice-bar {
|
|
2
2
|
--background-color: #ababab;
|
|
3
|
-
--border-color:
|
|
3
|
+
--border-color: var(--adm-color-weak);
|
|
4
4
|
--text-color: var(--adm-color-text-light-solid);
|
|
5
5
|
--font-size: var(--adm-font-size-7);
|
|
6
6
|
--icon-font-size: var(--adm-font-size-10);
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
.adm-notice-bar.adm-notice-bar-info {
|
|
39
39
|
--background-color: #d0e4ff;
|
|
40
40
|
--border-color: #bcd8ff;
|
|
41
|
-
--text-color:
|
|
41
|
+
--text-color: var(--adm-color-primary);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.adm-notice-bar .adm-notice-bar-left {
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
left: 50%;
|
|
88
88
|
width: 100%;
|
|
89
89
|
height: 100%;
|
|
90
|
-
background-color:
|
|
90
|
+
background-color: var(--adm-color-text-dark-solid);
|
|
91
91
|
border: inherit;
|
|
92
|
-
border-color:
|
|
92
|
+
border-color: var(--adm-color-text-dark-solid);
|
|
93
93
|
border-radius: inherit;
|
|
94
94
|
transform: translate(-50%, -50%);
|
|
95
95
|
opacity: 0;
|