@nutui/nutui-react-taro 3.0.5 → 3.0.7
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 +59 -1
- package/dist/cjs/packages/actionsheet/style/style.css +4 -4
- package/dist/cjs/packages/address/style/style.css +4 -4
- package/dist/cjs/packages/audio/style/style.css +4 -16
- package/dist/cjs/packages/badge/badge.js +4 -3
- package/dist/cjs/packages/badge/style/badge.scss +4 -0
- package/dist/cjs/packages/badge/style/style.css +9 -6
- package/dist/cjs/packages/badge/style/style.harmony.css +3 -0
- package/dist/cjs/packages/button/style/button.scss +4 -20
- package/dist/cjs/packages/button/style/style.css +4 -16
- package/dist/cjs/packages/button/style/style.harmony.css +2 -14
- package/dist/cjs/packages/calendar/style/style.css +4 -4
- package/dist/cjs/packages/cascader/style/style.css +4 -4
- package/dist/cjs/packages/collapse/style/style.css +22 -7
- package/dist/cjs/packages/collapseitem/collapseitem.js +63 -77
- package/dist/cjs/packages/collapseitem/style/collapseitem.scss +22 -5
- package/dist/cjs/packages/collapseitem/style/style.css +22 -7
- package/dist/cjs/packages/collapseitem/style/style.harmony.css +22 -7
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/style/style.css +7 -4
- package/dist/cjs/packages/datepickerview/style/style.css +3 -0
- package/dist/cjs/packages/dialog/content.d.ts +11 -3
- package/dist/cjs/packages/dialog/content.js +4 -4
- package/dist/cjs/packages/dialog/dialog.d.ts +39 -4
- package/dist/cjs/packages/dialog/dialog.js +14 -13
- package/dist/cjs/packages/dialog/index.d.ts +1 -1
- package/dist/cjs/packages/dialog/style/style.css +4 -16
- package/dist/cjs/packages/empty/style/style.css +4 -16
- package/dist/cjs/packages/fixednav/style/style.css +9 -6
- package/dist/cjs/packages/imagepreview/style/style.css +4 -4
- package/dist/cjs/packages/indicator/indicator.js +1 -1
- package/dist/cjs/packages/lottie/index.js +5 -5
- package/dist/cjs/packages/lottie/{mp.js → lottiemp.js} +1 -1
- package/dist/cjs/packages/notify/notify.js +44 -13
- package/dist/cjs/packages/notify/style/notify.scss +39 -36
- package/dist/cjs/packages/notify/style/style.css +36 -31
- package/dist/cjs/packages/notify/style/style.harmony.css +36 -31
- package/dist/cjs/packages/numberkeyboard/style/style.css +4 -4
- package/dist/cjs/packages/picker/style/style.css +7 -4
- package/dist/cjs/packages/pickerview/pickerroller.js +7 -2
- package/dist/cjs/packages/pickerview/style/pickerview.scss +3 -0
- package/dist/cjs/packages/pickerview/style/style.css +3 -0
- package/dist/cjs/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/cjs/packages/popover/popover.d.ts +0 -7
- package/dist/cjs/packages/popover/popover.js +114 -141
- package/dist/cjs/packages/popover/style/popover.scss +48 -51
- package/dist/cjs/packages/popover/style/style.css +64 -70
- package/dist/cjs/packages/popover/style/style.harmony.css +64 -60
- package/dist/cjs/packages/popup/style/popup.scss +4 -4
- package/dist/cjs/packages/popup/style/style.css +4 -4
- package/dist/cjs/packages/popup/style/style.harmony.css +4 -4
- package/dist/cjs/packages/resultpage/style/style.css +4 -16
- package/dist/cjs/packages/searchbar/searchbar.js +8 -2
- package/dist/cjs/packages/shortpassword/style/style.css +4 -4
- package/dist/cjs/packages/skeleton/skeleton.js +63 -52
- package/dist/cjs/packages/skeleton/style/index.js +0 -1
- package/dist/cjs/packages/skeleton/style/skeleton.scss +40 -46
- package/dist/cjs/packages/skeleton/style/style.css +32 -175
- package/dist/cjs/packages/skeleton/style/style.harmony.css +32 -42
- package/dist/cjs/packages/switch/style/style.css +5 -0
- package/dist/cjs/packages/switch/style/style.harmony.css +5 -0
- package/dist/cjs/packages/switch/style/switch.scss +5 -0
- package/dist/cjs/packages/switch/switch.js +22 -11
- package/dist/cjs/packages/tabbar/style/style.css +54 -45
- package/dist/cjs/packages/tabbar/style/style.harmony.css +24 -18
- package/dist/cjs/packages/tabbar/style/tabbar.scss +28 -19
- package/dist/cjs/packages/tabbar/tabbar.js +28 -10
- package/dist/cjs/packages/tabbaritem/style/style.css +30 -27
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +21 -21
- package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +32 -29
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +38 -14
- package/dist/cjs/packages/tabpane/tabpane.js +2 -2
- package/dist/cjs/packages/timeselect/style/style.css +4 -4
- package/dist/cjs/packages/tour/style/style.css +64 -70
- package/dist/cjs/packages/tour/tour.js +3 -4
- package/dist/cjs/types/spec/badge/base.d.ts +1 -0
- package/dist/cjs/types/spec/dialog/base.d.ts +50 -1
- package/dist/cjs/types/spec/dialog/base.js +7 -0
- package/dist/cjs/types/spec/dialog/h5.d.ts +4 -1
- package/dist/cjs/types/spec/dialog/taro.d.ts +8 -2
- package/dist/cjs/types/spec/indicator/base.d.ts +1 -1
- package/dist/cjs/types/spec/notify/base.d.ts +7 -2
- package/dist/cjs/types/spec/popover/base.d.ts +7 -0
- package/dist/cjs/types/spec/searchbar/taro.d.ts +10 -7
- package/dist/cjs/types/spec/skeleton/base.d.ts +7 -5
- package/dist/cjs/types/spec/switch/base.d.ts +3 -2
- package/dist/cjs/types/spec/switch/h5.d.ts +1 -1
- package/dist/cjs/types/spec/switch/taro.d.ts +1 -4
- package/dist/cjs/types/spec/tabbar/base.d.ts +7 -4
- package/dist/cjs/utils/get-rect-by-taro.js +10 -0
- package/dist/cjs/utils/lru.d.ts +8 -0
- package/dist/cjs/utils/lru.js +58 -0
- package/dist/es/packages/actionsheet/style/style.css +4 -4
- package/dist/es/packages/address/style/style.css +4 -4
- package/dist/es/packages/audio/style/style.css +4 -16
- package/dist/es/packages/badge/badge.js +4 -3
- package/dist/es/packages/badge/style/badge.scss +4 -0
- package/dist/es/packages/badge/style/style.css +9 -6
- package/dist/es/packages/badge/style/style.harmony.css +3 -0
- package/dist/es/packages/button/style/button.scss +4 -20
- package/dist/es/packages/button/style/style.css +4 -16
- package/dist/es/packages/button/style/style.harmony.css +2 -14
- package/dist/es/packages/calendar/style/style.css +4 -4
- package/dist/es/packages/cascader/style/style.css +4 -4
- package/dist/es/packages/collapse/style/style.css +22 -7
- package/dist/es/packages/collapseitem/collapseitem.js +65 -79
- package/dist/es/packages/collapseitem/style/collapseitem.scss +22 -5
- package/dist/es/packages/collapseitem/style/style.css +22 -7
- package/dist/es/packages/collapseitem/style/style.harmony.css +22 -7
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/datepicker/style/style.css +7 -4
- package/dist/es/packages/datepickerview/style/style.css +3 -0
- package/dist/es/packages/dialog/content.d.ts +11 -3
- package/dist/es/packages/dialog/content.js +4 -4
- package/dist/es/packages/dialog/dialog.d.ts +39 -4
- package/dist/es/packages/dialog/dialog.js +14 -13
- package/dist/es/packages/dialog/index.d.ts +1 -1
- package/dist/es/packages/dialog/style/style.css +4 -16
- package/dist/es/packages/empty/style/style.css +4 -16
- package/dist/es/packages/fixednav/style/style.css +9 -6
- package/dist/es/packages/imagepreview/style/style.css +4 -4
- package/dist/es/packages/indicator/indicator.js +1 -1
- package/dist/es/packages/lottie/index.js +3 -3
- package/dist/es/packages/lottie/{mp.js → lottiemp.js} +1 -1
- package/dist/es/packages/notify/notify.js +45 -14
- package/dist/es/packages/notify/style/notify.scss +39 -36
- package/dist/es/packages/notify/style/style.css +36 -31
- package/dist/es/packages/notify/style/style.harmony.css +36 -31
- package/dist/es/packages/numberkeyboard/style/style.css +4 -4
- package/dist/es/packages/picker/style/style.css +7 -4
- package/dist/es/packages/pickerview/pickerroller.js +7 -2
- package/dist/es/packages/pickerview/style/pickerview.scss +3 -0
- package/dist/es/packages/pickerview/style/style.css +3 -0
- package/dist/es/packages/pickerview/style/style.harmony.css +3 -0
- package/dist/es/packages/popover/popover.d.ts +0 -7
- package/dist/es/packages/popover/popover.js +115 -142
- package/dist/es/packages/popover/style/popover.scss +48 -51
- package/dist/es/packages/popover/style/style.css +64 -70
- package/dist/es/packages/popover/style/style.harmony.css +64 -60
- package/dist/es/packages/popup/style/popup.scss +4 -4
- package/dist/es/packages/popup/style/style.css +4 -4
- package/dist/es/packages/popup/style/style.harmony.css +4 -4
- package/dist/es/packages/resultpage/style/style.css +4 -16
- package/dist/es/packages/searchbar/searchbar.js +7 -2
- package/dist/es/packages/shortpassword/style/style.css +4 -4
- package/dist/es/packages/skeleton/skeleton.js +62 -52
- package/dist/es/packages/skeleton/style/index.js +0 -1
- package/dist/es/packages/skeleton/style/skeleton.scss +40 -46
- package/dist/es/packages/skeleton/style/style.css +32 -175
- package/dist/es/packages/skeleton/style/style.harmony.css +32 -42
- package/dist/es/packages/switch/style/style.css +5 -0
- package/dist/es/packages/switch/style/style.harmony.css +5 -0
- package/dist/es/packages/switch/style/switch.scss +5 -0
- package/dist/es/packages/switch/switch.js +21 -11
- package/dist/es/packages/tabbar/style/style.css +54 -45
- package/dist/es/packages/tabbar/style/style.harmony.css +24 -18
- package/dist/es/packages/tabbar/style/tabbar.scss +28 -19
- package/dist/es/packages/tabbar/tabbar.js +27 -10
- package/dist/es/packages/tabbaritem/style/style.css +30 -27
- package/dist/es/packages/tabbaritem/style/style.harmony.css +21 -21
- package/dist/es/packages/tabbaritem/style/tabbaritem.scss +32 -29
- package/dist/es/packages/tabbaritem/tabbaritem.js +38 -14
- package/dist/es/packages/tabpane/tabpane.js +2 -2
- package/dist/es/packages/timeselect/style/style.css +4 -4
- package/dist/es/packages/tour/style/style.css +64 -70
- package/dist/es/packages/tour/tour.js +3 -4
- package/dist/es/types/spec/badge/base.d.ts +4 -0
- package/dist/es/types/spec/dialog/base.d.ts +83 -1
- package/dist/es/types/spec/dialog/base.js +1 -1
- package/dist/es/types/spec/dialog/h5.d.ts +4 -1
- package/dist/es/types/spec/dialog/taro.d.ts +8 -2
- package/dist/es/types/spec/indicator/base.d.ts +1 -1
- package/dist/es/types/spec/notify/base.d.ts +22 -5
- package/dist/es/types/spec/popover/base.d.ts +7 -0
- package/dist/es/types/spec/searchbar/taro.d.ts +10 -7
- package/dist/es/types/spec/skeleton/base.d.ts +19 -14
- package/dist/es/types/spec/switch/base.d.ts +6 -2
- package/dist/es/types/spec/switch/h5.d.ts +1 -1
- package/dist/es/types/spec/switch/taro.d.ts +1 -4
- package/dist/es/types/spec/tabbar/base.d.ts +7 -4
- package/dist/es/utils/get-rect-by-taro.js +9 -0
- package/dist/es/utils/lru.d.ts +8 -0
- package/dist/es/utils/lru.js +49 -0
- package/dist/nutui.react.umd.js +683 -552
- package/dist/style.css +1 -1
- package/dist/style.scss +46 -46
- package/dist/styles/theme-jmapp.scss +1 -0
- package/dist/styles/themes/jmapp.css +1 -1
- package/dist/styles/variables-jmapp.scss +237 -50
- package/dist/styles/variables-jrkf.scss +25 -14
- package/dist/styles/variables.scss +38 -51
- package/package.json +1 -1
- package/dist/cjs/packages/dialog/types.d.ts +0 -57
- package/dist/cjs/packages/dialog/types.js +0 -4
- package/dist/cjs/packages/dialog/types.taro.d.ts +0 -10
- package/dist/es/packages/dialog/types.d.ts +0 -57
- package/dist/es/packages/dialog/types.js +0 -1
- package/dist/es/packages/dialog/types.taro.d.ts +0 -10
- /package/dist/cjs/packages/lottie/{mp.d.ts → lottiemp.d.ts} +0 -0
- /package/dist/cjs/packages/lottie/{web.d.ts → lottieweb.d.ts} +0 -0
- /package/dist/cjs/packages/lottie/{web.js → lottieweb.js} +0 -0
- /package/dist/es/packages/lottie/{mp.d.ts → lottiemp.d.ts} +0 -0
- /package/dist/es/packages/lottie/{web.d.ts → lottieweb.d.ts} +0 -0
- /package/dist/es/packages/lottie/{web.js → lottieweb.js} +0 -0
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
top: 50%;
|
|
31
31
|
transform: rotate(90deg) translateY(-50%);
|
|
32
32
|
}
|
|
33
|
-
.nut-popover-arrow-left.nut-popover-arrow-left-
|
|
33
|
+
.nut-popover-arrow-left.nut-popover-arrow-left-top {
|
|
34
34
|
top: 16px;
|
|
35
35
|
right: -8px;
|
|
36
36
|
transform: rotate(90deg) translateY(0%);
|
|
37
37
|
}
|
|
38
|
-
.nut-popover-arrow-left.nut-popover-arrow-left-
|
|
38
|
+
.nut-popover-arrow-left.nut-popover-arrow-left-bottom {
|
|
39
|
+
top: auto;
|
|
39
40
|
bottom: 16px;
|
|
40
41
|
right: -8px;
|
|
41
42
|
transform: rotate(90deg) translateY(0%);
|
|
@@ -48,12 +49,12 @@
|
|
|
48
49
|
left: -6px;
|
|
49
50
|
transform: rotate(-90deg) translateY(-50%);
|
|
50
51
|
}
|
|
51
|
-
.nut-popover-arrow-right.nut-popover-arrow-right-
|
|
52
|
+
.nut-popover-arrow-right.nut-popover-arrow-right-top {
|
|
52
53
|
top: 16px;
|
|
53
54
|
left: -8px;
|
|
54
55
|
transform: rotate(-90deg) translateY(0%);
|
|
55
56
|
}
|
|
56
|
-
.nut-popover-arrow-right.nut-popover-arrow-right-
|
|
57
|
+
.nut-popover-arrow-right.nut-popover-arrow-right-bottom {
|
|
57
58
|
bottom: 16px;
|
|
58
59
|
left: -8px;
|
|
59
60
|
transform: rotate(-90deg) translateY(0%);
|
|
@@ -68,20 +69,22 @@
|
|
|
68
69
|
max-height: initial;
|
|
69
70
|
overflow-y: initial;
|
|
70
71
|
}
|
|
71
|
-
.nut-popover .nut-popover-content
|
|
72
|
+
.nut-popover .nut-popover-content-group {
|
|
73
|
+
padding: 0 8px;
|
|
74
|
+
}
|
|
75
|
+
.nut-popover .nut-popover-content .nut-popover-item {
|
|
72
76
|
display: flex;
|
|
73
77
|
align-items: center;
|
|
74
78
|
justify-content: center;
|
|
75
|
-
padding: 0 8px;
|
|
76
79
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
77
80
|
max-width: 160px;
|
|
78
81
|
word-wrap: break-word;
|
|
79
82
|
}
|
|
80
|
-
.nut-popover .nut-popover-content .nut-popover-
|
|
83
|
+
.nut-popover .nut-popover-content .nut-popover-item:last-child {
|
|
81
84
|
margin-bottom: 0px;
|
|
82
85
|
border-bottom: none;
|
|
83
86
|
}
|
|
84
|
-
.nut-popover .nut-popover-content .nut-popover-
|
|
87
|
+
.nut-popover .nut-popover-content .nut-popover-item-icon {
|
|
85
88
|
display: flex;
|
|
86
89
|
justify-content: center;
|
|
87
90
|
align-items: center;
|
|
@@ -89,36 +92,41 @@
|
|
|
89
92
|
height: 12px;
|
|
90
93
|
font-size: 12px;
|
|
91
94
|
}
|
|
92
|
-
.nut-popover .nut-popover-content .nut-popover-
|
|
95
|
+
.nut-popover .nut-popover-content .nut-popover-item-action-icon {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
align-items: center;
|
|
93
99
|
width: 12px;
|
|
94
100
|
height: 12px;
|
|
95
101
|
font-size: 12px;
|
|
96
102
|
}
|
|
97
|
-
.nut-popover .nut-popover-content .nut-popover-
|
|
98
|
-
width: calc(100% - 34px);
|
|
99
|
-
word-break: keep-all;
|
|
100
|
-
margin: 0 8px 0 4px;
|
|
101
|
-
flex: 1;
|
|
102
|
-
}
|
|
103
|
-
.nut-popover .nut-popover-content .nut-popover-menu-item-action-icon {
|
|
104
|
-
display: flex;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
align-items: center;
|
|
103
|
+
.nut-popover .nut-popover-content .nut-popover-item-icon .nut-icon {
|
|
107
104
|
width: 12px;
|
|
108
105
|
height: 12px;
|
|
109
106
|
font-size: 12px;
|
|
110
|
-
color: #505259;
|
|
111
107
|
}
|
|
112
|
-
.nut-popover .nut-popover-content .nut-popover-
|
|
108
|
+
.nut-popover .nut-popover-content .nut-popover-item-action-icon .nut-icon {
|
|
113
109
|
width: 12px;
|
|
114
110
|
height: 12px;
|
|
115
111
|
font-size: 12px;
|
|
116
112
|
}
|
|
117
|
-
.nut-popover .nut-popover-content .nut-popover-
|
|
113
|
+
.nut-popover .nut-popover-content .nut-popover-item-icon {
|
|
114
|
+
margin-right: 4px;
|
|
115
|
+
}
|
|
116
|
+
.nut-popover .nut-popover-content .nut-popover-item-name {
|
|
117
|
+
width: calc(100% - 34px);
|
|
118
|
+
word-break: keep-all;
|
|
119
|
+
flex: 1;
|
|
120
|
+
}
|
|
121
|
+
.nut-popover .nut-popover-content .nut-popover-item-action-icon {
|
|
122
|
+
color: #505259;
|
|
123
|
+
margin-left: 8px;
|
|
124
|
+
}
|
|
125
|
+
.nut-popover .nut-popover-content .nut-popover-item.nut-popover-item-disabled {
|
|
118
126
|
color: #c2c4cc;
|
|
119
127
|
cursor: not-allowed;
|
|
120
128
|
}
|
|
121
|
-
.nut-popover .nut-popover-content .nut-popover-
|
|
129
|
+
.nut-popover .nut-popover-content .nut-popover-item.nut-popover-taroitem {
|
|
122
130
|
display: flex;
|
|
123
131
|
}
|
|
124
132
|
.nut-popover .nut-popover-content-top .nut-popover-arrow-top {
|
|
@@ -126,18 +134,18 @@
|
|
|
126
134
|
transform-origin: center left;
|
|
127
135
|
transform: rotate(180deg) translateX(-50%);
|
|
128
136
|
}
|
|
129
|
-
.nut-popover .nut-popover-content-top-
|
|
137
|
+
.nut-popover .nut-popover-content-top-right {
|
|
130
138
|
right: 0;
|
|
131
139
|
}
|
|
132
|
-
.nut-popover .nut-popover-content-top-
|
|
140
|
+
.nut-popover .nut-popover-content-top-right .nut-popover-arrow-top-right {
|
|
133
141
|
right: 16px;
|
|
134
142
|
bottom: -3.5px;
|
|
135
143
|
transform: rotate(180deg) translateX(0%);
|
|
136
144
|
}
|
|
137
|
-
.nut-popover .nut-popover-content-top-
|
|
145
|
+
.nut-popover .nut-popover-content-top-left {
|
|
138
146
|
left: 0;
|
|
139
147
|
}
|
|
140
|
-
.nut-popover .nut-popover-content-top-
|
|
148
|
+
.nut-popover .nut-popover-content-top-left .nut-popover-arrow-top-left {
|
|
141
149
|
left: 16px;
|
|
142
150
|
bottom: -3.5px;
|
|
143
151
|
transform: rotate(180deg) translateX(0%);
|
|
@@ -146,30 +154,30 @@
|
|
|
146
154
|
left: 50%;
|
|
147
155
|
transform: translateX(-50%);
|
|
148
156
|
}
|
|
149
|
-
.nut-popover .nut-popover-content-bottom-
|
|
157
|
+
.nut-popover .nut-popover-content-bottom-right {
|
|
150
158
|
right: 0;
|
|
151
159
|
}
|
|
152
|
-
.nut-popover .nut-popover-content-bottom-
|
|
160
|
+
.nut-popover .nut-popover-content-bottom-right .nut-popover-arrow-bottom-right {
|
|
153
161
|
right: 16px;
|
|
154
162
|
transform: translateX(0%);
|
|
155
163
|
}
|
|
156
|
-
.nut-popover .nut-popover-content-bottom-
|
|
164
|
+
.nut-popover .nut-popover-content-bottom-left {
|
|
157
165
|
left: 0;
|
|
158
166
|
}
|
|
159
|
-
.nut-popover .nut-popover-content-bottom-
|
|
167
|
+
.nut-popover .nut-popover-content-bottom-left .nut-popover-arrow-bottom-left {
|
|
160
168
|
left: 16px;
|
|
161
169
|
transform: translateX(0%);
|
|
162
170
|
}
|
|
163
|
-
.nut-popover .nut-popover-content-left-
|
|
171
|
+
.nut-popover .nut-popover-content-left-bottom {
|
|
164
172
|
bottom: 0;
|
|
165
173
|
}
|
|
166
|
-
.nut-popover .nut-popover-content-left-
|
|
174
|
+
.nut-popover .nut-popover-content-left-top {
|
|
167
175
|
top: 0;
|
|
168
176
|
}
|
|
169
|
-
.nut-popover .nut-popover-content-right-
|
|
177
|
+
.nut-popover .nut-popover-content-right-bottom {
|
|
170
178
|
bottom: 0;
|
|
171
179
|
}
|
|
172
|
-
.nut-popover .nut-popover-content-right-
|
|
180
|
+
.nut-popover .nut-popover-content-right-top {
|
|
173
181
|
top: 0;
|
|
174
182
|
}
|
|
175
183
|
|
|
@@ -184,22 +192,18 @@
|
|
|
184
192
|
background: rgba(0, 0, 0, 0.7) !important;
|
|
185
193
|
color: #ffffff !important;
|
|
186
194
|
}
|
|
187
|
-
.nut-popover-dark .nut-popover-content .nut-popover-
|
|
195
|
+
.nut-popover-dark .nut-popover-content .nut-popover-item-action-icon {
|
|
188
196
|
color: rgba(255, 255, 255, 0.8);
|
|
189
197
|
}
|
|
190
198
|
|
|
191
|
-
[dir=rtl] .nut-popover .nut-popover-content .nut-popover-
|
|
192
|
-
.nut-rtl .nut-popover .nut-popover-content .nut-popover-
|
|
199
|
+
[dir=rtl] .nut-popover .nut-popover-content .nut-popover-item-name,
|
|
200
|
+
.nut-rtl .nut-popover .nut-popover-content .nut-popover-item-name {
|
|
193
201
|
margin-left: 0;
|
|
194
202
|
margin-right: 4px;
|
|
195
203
|
}
|
|
196
|
-
[dir=rtl] .nut-popover .nut-popover-content .nut-popover-
|
|
197
|
-
|
|
198
|
-
left: 8px;
|
|
199
|
-
}
|
|
200
|
-
.nut-rtl .nut-popover .nut-popover-content .nut-popover-menu-item-action-icon {
|
|
204
|
+
[dir=rtl] .nut-popover .nut-popover-content .nut-popover-item-action-icon,
|
|
205
|
+
.nut-rtl .nut-popover .nut-popover-content .nut-popover-item-action-icon {
|
|
201
206
|
right: auto;
|
|
202
|
-
left: 8px;
|
|
203
207
|
}
|
|
204
208
|
[dir=rtl] .nut-popover .nut-popover-content-top .nut-popover-arrow-top,
|
|
205
209
|
.nut-rtl .nut-popover .nut-popover-content-top .nut-popover-arrow-top {
|
|
@@ -207,23 +211,23 @@
|
|
|
207
211
|
right: 50%;
|
|
208
212
|
transform: translateX(50%);
|
|
209
213
|
}
|
|
210
|
-
[dir=rtl] .nut-popover .nut-popover-content-top-
|
|
211
|
-
.nut-rtl .nut-popover .nut-popover-content-top-
|
|
214
|
+
[dir=rtl] .nut-popover .nut-popover-content-top-right,
|
|
215
|
+
.nut-rtl .nut-popover .nut-popover-content-top-right {
|
|
212
216
|
right: auto;
|
|
213
217
|
left: 0;
|
|
214
218
|
}
|
|
215
|
-
[dir=rtl] .nut-popover .nut-popover-content-top-
|
|
216
|
-
.nut-rtl .nut-popover .nut-popover-content-top-
|
|
219
|
+
[dir=rtl] .nut-popover .nut-popover-content-top-right .nut-popover-arrow-top-right,
|
|
220
|
+
.nut-rtl .nut-popover .nut-popover-content-top-right .nut-popover-arrow-top-right {
|
|
217
221
|
right: auto;
|
|
218
222
|
left: 16px;
|
|
219
223
|
}
|
|
220
|
-
[dir=rtl] .nut-popover .nut-popover-content-top-
|
|
221
|
-
.nut-rtl .nut-popover .nut-popover-content-top-
|
|
224
|
+
[dir=rtl] .nut-popover .nut-popover-content-top-left,
|
|
225
|
+
.nut-rtl .nut-popover .nut-popover-content-top-left {
|
|
222
226
|
left: auto;
|
|
223
227
|
right: 0;
|
|
224
228
|
}
|
|
225
|
-
[dir=rtl] .nut-popover .nut-popover-content-top-
|
|
226
|
-
.nut-rtl .nut-popover .nut-popover-content-top-
|
|
229
|
+
[dir=rtl] .nut-popover .nut-popover-content-top-left .nut-popover-arrow-top-left,
|
|
230
|
+
.nut-rtl .nut-popover .nut-popover-content-top-left .nut-popover-arrow-top-left {
|
|
227
231
|
left: auto;
|
|
228
232
|
right: 16px;
|
|
229
233
|
}
|
|
@@ -233,23 +237,23 @@
|
|
|
233
237
|
right: 50%;
|
|
234
238
|
transform: translateX(50%);
|
|
235
239
|
}
|
|
236
|
-
[dir=rtl] .nut-popover .nut-popover-content-bottom-
|
|
237
|
-
.nut-rtl .nut-popover .nut-popover-content-bottom-
|
|
240
|
+
[dir=rtl] .nut-popover .nut-popover-content-bottom-right,
|
|
241
|
+
.nut-rtl .nut-popover .nut-popover-content-bottom-right {
|
|
238
242
|
right: auto;
|
|
239
243
|
left: 0;
|
|
240
244
|
}
|
|
241
|
-
[dir=rtl] .nut-popover .nut-popover-content-bottom-
|
|
242
|
-
.nut-rtl .nut-popover .nut-popover-content-bottom-
|
|
245
|
+
[dir=rtl] .nut-popover .nut-popover-content-bottom-right .nut-popover-arrow-bottom-right,
|
|
246
|
+
.nut-rtl .nut-popover .nut-popover-content-bottom-right .nut-popover-arrow-bottom-right {
|
|
243
247
|
right: auto;
|
|
244
248
|
left: 16px;
|
|
245
249
|
}
|
|
246
|
-
[dir=rtl] .nut-popover .nut-popover-content-bottom-
|
|
247
|
-
.nut-rtl .nut-popover .nut-popover-content-bottom-
|
|
250
|
+
[dir=rtl] .nut-popover .nut-popover-content-bottom-left,
|
|
251
|
+
.nut-rtl .nut-popover .nut-popover-content-bottom-left {
|
|
248
252
|
left: auto;
|
|
249
253
|
right: 0;
|
|
250
254
|
}
|
|
251
|
-
[dir=rtl] .nut-popover .nut-popover-content-bottom-
|
|
252
|
-
.nut-rtl .nut-popover .nut-popover-content-bottom-
|
|
255
|
+
[dir=rtl] .nut-popover .nut-popover-content-bottom-left .nut-popover-arrow-bottom-left,
|
|
256
|
+
.nut-rtl .nut-popover .nut-popover-content-bottom-left .nut-popover-arrow-bottom-left {
|
|
253
257
|
left: auto;
|
|
254
258
|
right: 16px;
|
|
255
259
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.nut-popup {
|
|
2
2
|
position: fixed;
|
|
3
|
-
min-height:
|
|
3
|
+
min-height: 26%;
|
|
4
4
|
max-height: 100%;
|
|
5
5
|
background-color: $overlay-content-bg-color;
|
|
6
6
|
-webkit-overflow-scrolling: touch;
|
|
@@ -158,13 +158,13 @@
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
&-
|
|
161
|
+
&-none-enter-active {
|
|
162
162
|
animation-fill-mode: both;
|
|
163
163
|
animation-name: popup-scale-fade-in;
|
|
164
164
|
animation-duration: $popup-animation-duration;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
&-
|
|
167
|
+
&-none-exit-active {
|
|
168
168
|
animation-fill-mode: both;
|
|
169
169
|
animation-name: popup-scale-fade-out;
|
|
170
170
|
animation-duration: $popup-animation-duration;
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
animation-duration: $popup-animation-duration;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
&-
|
|
324
|
+
&-none-exit-done,
|
|
325
325
|
&-center-exit-done,
|
|
326
326
|
&-left-exit-done,
|
|
327
327
|
&-right-exit-done,
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
.nut-popup {
|
|
62
62
|
position: fixed;
|
|
63
|
-
min-height:
|
|
63
|
+
min-height: 26%;
|
|
64
64
|
max-height: 100%;
|
|
65
65
|
background-color: var(--nutui-overlay-content-bg-color, var(--nutui-color-background-overlay, #ffffff));
|
|
66
66
|
-webkit-overflow-scrolling: touch;
|
|
@@ -198,12 +198,12 @@
|
|
|
198
198
|
transform: scale(0.8);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
.nut-popup-slide-
|
|
201
|
+
.nut-popup-slide-none-enter-active {
|
|
202
202
|
animation-fill-mode: both;
|
|
203
203
|
animation-name: popup-scale-fade-in;
|
|
204
204
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
205
205
|
}
|
|
206
|
-
.nut-popup-slide-
|
|
206
|
+
.nut-popup-slide-none-exit-active {
|
|
207
207
|
animation-fill-mode: both;
|
|
208
208
|
animation-name: popup-scale-fade-out;
|
|
209
209
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
animation-name: popup-slide-left-exit;
|
|
331
331
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
332
332
|
}
|
|
333
|
-
.nut-popup-slide-
|
|
333
|
+
.nut-popup-slide-none-exit-done.nut-popup, .nut-popup-slide-center-exit-done.nut-popup, .nut-popup-slide-left-exit-done.nut-popup, .nut-popup-slide-right-exit-done.nut-popup, .nut-popup-slide-top-exit-done.nut-popup, .nut-popup-slide-bottom-exit-done.nut-popup {
|
|
334
334
|
display: none;
|
|
335
335
|
}
|
|
336
336
|
.nut-popup .nut-overflow-hidden {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* #endif */
|
|
7
7
|
.nut-popup {
|
|
8
8
|
position: fixed;
|
|
9
|
-
min-height:
|
|
9
|
+
min-height: 26%;
|
|
10
10
|
max-height: 100%;
|
|
11
11
|
background-color: #ffffff;
|
|
12
12
|
-webkit-overflow-scrolling: touch;
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
transform: scale(0.8);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
.nut-popup-slide-
|
|
147
|
+
.nut-popup-slide-none-enter-active {
|
|
148
148
|
animation-fill-mode: both;
|
|
149
149
|
animation-name: popup-scale-fade-in;
|
|
150
150
|
animation-duration: 0.3s;
|
|
151
151
|
}
|
|
152
|
-
.nut-popup-slide-
|
|
152
|
+
.nut-popup-slide-none-exit-active {
|
|
153
153
|
animation-fill-mode: both;
|
|
154
154
|
animation-name: popup-scale-fade-out;
|
|
155
155
|
animation-duration: 0.3s;
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
animation-name: popup-slide-left-exit;
|
|
306
306
|
animation-duration: 0.3s;
|
|
307
307
|
}
|
|
308
|
-
.nut-popup-slide-
|
|
308
|
+
.nut-popup-slide-none-exit-done.nut-popup, .nut-popup-slide-center-exit-done.nut-popup, .nut-popup-slide-left-exit-done.nut-popup, .nut-popup-slide-right-exit-done.nut-popup, .nut-popup-slide-top-exit-done.nut-popup, .nut-popup-slide-bottom-exit-done.nut-popup {
|
|
309
309
|
display: none;
|
|
310
310
|
}
|
|
311
311
|
.nut-popup .nut-overflow-hidden {
|
|
@@ -94,18 +94,6 @@
|
|
|
94
94
|
.nut-button-round {
|
|
95
95
|
border-radius: var(--nutui-button-border-radius, var(--nutui-radius-s, 6px));
|
|
96
96
|
}
|
|
97
|
-
.nut-button-round-xlarge {
|
|
98
|
-
border-radius: var(--nutui-button-xlarge-border-radius, var(--nutui-radius-base, 8px));
|
|
99
|
-
}
|
|
100
|
-
.nut-button-round-large {
|
|
101
|
-
border-radius: var(--nutui-button-large-border-radius, var(--nutui-radius-base, 8px));
|
|
102
|
-
}
|
|
103
|
-
.nut-button-round-small {
|
|
104
|
-
border-radius: var(--nutui-button-small-border-radius, var(--nutui-radius-s, 6px));
|
|
105
|
-
}
|
|
106
|
-
.nut-button-round-mini {
|
|
107
|
-
border-radius: var(--nutui-button-mini-border-radius, var(--nutui-radius-xs, 4px));
|
|
108
|
-
}
|
|
109
97
|
.nut-button-default {
|
|
110
98
|
padding: var(--nutui-button-default-padding, 0px 12px);
|
|
111
99
|
border-style: solid;
|
|
@@ -131,7 +119,7 @@
|
|
|
131
119
|
height: var(--nutui-button-xlarge-height, 48px);
|
|
132
120
|
padding: var(--nutui-button-xlarge-padding, 0px 24px);
|
|
133
121
|
font-size: var(--nutui-button-xlarge-font-size, var(--nutui-font-size-xl, 18px));
|
|
134
|
-
border-radius: var(--nutui-radius-base, 8px);
|
|
122
|
+
border-radius: var(--nutui-button-xlarge-border-radius, var(--nutui-radius-base, 8px));
|
|
135
123
|
}
|
|
136
124
|
.nut-button-xlarge .nut-button-text {
|
|
137
125
|
margin-left: var(--nutui-button-xlarge-text-icon-margin, 6px);
|
|
@@ -151,7 +139,7 @@
|
|
|
151
139
|
height: var(--nutui-button-large-height, 40px);
|
|
152
140
|
padding: var(--nutui-button-large-padding, 0px 16px);
|
|
153
141
|
font-size: var(--nutui-button-large-font-size, var(--nutui-font-size-l, 16px));
|
|
154
|
-
border-radius: var(--nutui-radius-
|
|
142
|
+
border-radius: var(--nutui-button-large-border-radius, var(--nutui-radius-base, 8px));
|
|
155
143
|
}
|
|
156
144
|
.nut-button-large .nut-button-text {
|
|
157
145
|
margin-left: var(--nutui-button-xlarge-text-icon-margin, 6px);
|
|
@@ -171,7 +159,7 @@
|
|
|
171
159
|
height: var(--nutui-button-small-height, 28px);
|
|
172
160
|
padding: var(--nutui-button-small-padding, 0px 8px);
|
|
173
161
|
font-size: var(--nutui-button-small-font-size, var(--nutui-font-size-s, 12px));
|
|
174
|
-
border-radius: var(--nutui-radius-
|
|
162
|
+
border-radius: var(--nutui-button-small-border-radius, var(--nutui-radius-s, 6px));
|
|
175
163
|
}
|
|
176
164
|
.nut-button-small .nut-icon {
|
|
177
165
|
font-size: var(--nutui-button-small-font-size, var(--nutui-font-size-s, 12px));
|
|
@@ -185,7 +173,7 @@
|
|
|
185
173
|
height: var(--nutui-button-mini-height, 24px);
|
|
186
174
|
padding: var(--nutui-button-mini-padding, 0px 8px);
|
|
187
175
|
font-size: var(--nutui-button-mini-font-size, var(--nutui-font-size-xs, 11px));
|
|
188
|
-
border-radius: var(--nutui-radius-xs, 4px);
|
|
176
|
+
border-radius: var(--nutui-button-mini-border-radius, var(--nutui-radius-xs, 4px));
|
|
189
177
|
}
|
|
190
178
|
.nut-button-mini .nut-icon {
|
|
191
179
|
font-size: var(--nutui-button-mini-font-size, var(--nutui-font-size-xs, 11px));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
2
2
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
3
3
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
4
|
+
import Taro from "@tarojs/taro";
|
|
4
5
|
import React, { useEffect, useRef, useState } from "react";
|
|
5
6
|
import { Input as TaroInput, View } from "@tarojs/components";
|
|
6
7
|
import { ArrowLeft, MaskClose, Search } from "@nutui/icons-react-taro";
|
|
@@ -58,7 +59,9 @@ export var SearchBar = function(props) {
|
|
|
58
59
|
outerValue
|
|
59
60
|
]);
|
|
60
61
|
useEffect(function() {
|
|
61
|
-
|
|
62
|
+
if (Taro.getEnv() === 'WEB') {
|
|
63
|
+
autoFocus && forceFocus();
|
|
64
|
+
}
|
|
62
65
|
}, [
|
|
63
66
|
autoFocus
|
|
64
67
|
]);
|
|
@@ -66,10 +69,12 @@ export var SearchBar = function(props) {
|
|
|
66
69
|
return /*#__PURE__*/ React.createElement(TaroInput, {
|
|
67
70
|
className: "".concat(classPrefix, "-input ").concat(clearable ? "".concat(classPrefix, "-input-clear") : ''),
|
|
68
71
|
ref: searchRef,
|
|
69
|
-
|
|
72
|
+
style: style,
|
|
73
|
+
value: (value || '').toString(),
|
|
70
74
|
placeholder: placeholder || locale.placeholder,
|
|
71
75
|
disabled: disabled || readOnly,
|
|
72
76
|
maxlength: maxLength,
|
|
77
|
+
autoFocus: autoFocus,
|
|
73
78
|
onInput: onInput,
|
|
74
79
|
onFocus: focus,
|
|
75
80
|
onBlur: blur,
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
.nut-popup {
|
|
62
62
|
position: fixed;
|
|
63
|
-
min-height:
|
|
63
|
+
min-height: 26%;
|
|
64
64
|
max-height: 100%;
|
|
65
65
|
background-color: var(--nutui-overlay-content-bg-color, var(--nutui-color-background-overlay, #ffffff));
|
|
66
66
|
-webkit-overflow-scrolling: touch;
|
|
@@ -198,12 +198,12 @@
|
|
|
198
198
|
transform: scale(0.8);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
.nut-popup-slide-
|
|
201
|
+
.nut-popup-slide-none-enter-active {
|
|
202
202
|
animation-fill-mode: both;
|
|
203
203
|
animation-name: popup-scale-fade-in;
|
|
204
204
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
205
205
|
}
|
|
206
|
-
.nut-popup-slide-
|
|
206
|
+
.nut-popup-slide-none-exit-active {
|
|
207
207
|
animation-fill-mode: both;
|
|
208
208
|
animation-name: popup-scale-fade-out;
|
|
209
209
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
animation-name: popup-slide-left-exit;
|
|
331
331
|
animation-duration: var(--nutui-popup-animation-duration, 0.3s);
|
|
332
332
|
}
|
|
333
|
-
.nut-popup-slide-
|
|
333
|
+
.nut-popup-slide-none-exit-done.nut-popup, .nut-popup-slide-center-exit-done.nut-popup, .nut-popup-slide-left-exit-done.nut-popup, .nut-popup-slide-right-exit-done.nut-popup, .nut-popup-slide-top-exit-done.nut-popup, .nut-popup-slide-bottom-exit-done.nut-popup {
|
|
334
334
|
display: none;
|
|
335
335
|
}
|
|
336
336
|
.nut-popup .nut-overflow-hidden {
|
|
@@ -1,80 +1,90 @@
|
|
|
1
|
-
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
2
1
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
3
2
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
3
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
5
|
+
import React, { useEffect, useState } from "react";
|
|
7
6
|
import classNames from "classnames";
|
|
8
|
-
import
|
|
7
|
+
import { View } from "@tarojs/components";
|
|
9
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
10
|
-
import pxTransform from "../../utils/px-transform";
|
|
11
9
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
12
10
|
rows: 1,
|
|
13
|
-
animated:
|
|
14
|
-
title: false,
|
|
15
|
-
avatar: false,
|
|
16
|
-
avatarSize: '50px',
|
|
11
|
+
animated: true,
|
|
17
12
|
visible: false,
|
|
18
|
-
|
|
13
|
+
size: 'normal',
|
|
14
|
+
shape: 'round',
|
|
15
|
+
duration: 0.6,
|
|
16
|
+
inline: false
|
|
19
17
|
});
|
|
20
18
|
export var Skeleton = function(props) {
|
|
21
|
-
var
|
|
19
|
+
var shapeStyle = function shapeStyle() {
|
|
20
|
+
if (shape === 'circle') return {
|
|
21
|
+
borderRadius: '50%'
|
|
22
|
+
};
|
|
23
|
+
if (shape === 'square') return {
|
|
24
|
+
borderRadius: '0'
|
|
25
|
+
};
|
|
26
|
+
return {};
|
|
27
|
+
};
|
|
28
|
+
var durationStyle = function durationStyle() {
|
|
29
|
+
if (typeof duration !== 'undefined') return {
|
|
30
|
+
animationDuration: "".concat(duration, "s")
|
|
31
|
+
};
|
|
32
|
+
return {};
|
|
33
|
+
};
|
|
34
|
+
var _ref = _object_spread({}, defaultProps, props), className = _ref.className, width = _ref.width, height = _ref.height, shape = _ref.shape, animated = _ref.animated, rows = _ref.rows, visible = _ref.visible, size = _ref.size, duration = _ref.duration, children = _ref.children, rest = _object_without_properties(_ref, [
|
|
22
35
|
"className",
|
|
36
|
+
"width",
|
|
37
|
+
"height",
|
|
38
|
+
"shape",
|
|
23
39
|
"animated",
|
|
24
40
|
"rows",
|
|
25
|
-
"title",
|
|
26
|
-
"avatar",
|
|
27
|
-
"avatarSize",
|
|
28
41
|
"visible",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
42
|
+
"size",
|
|
43
|
+
"duration",
|
|
44
|
+
"children"
|
|
31
45
|
]);
|
|
32
46
|
var classPrefix = 'nut-skeleton';
|
|
33
47
|
var classes = classNames(classPrefix, className);
|
|
34
|
-
var
|
|
35
|
-
var avatarClass = classNames((_obj = {}, _define_property(_obj, "nut-avatar", true), _define_property(_obj, "nut-skeleton-content-avatar", true), _define_property(_obj, "avatar-".concat(avatarShape), avatarShape), _obj));
|
|
36
|
-
var repeatLines = function(num) {
|
|
48
|
+
var repeatCount = function(num) {
|
|
37
49
|
return Array.from({
|
|
38
50
|
length: num
|
|
39
51
|
}, function(v, i) {
|
|
40
52
|
return i;
|
|
41
53
|
});
|
|
42
54
|
};
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
width: pxTransform(50),
|
|
52
|
-
height: pxTransform(50)
|
|
53
|
-
};
|
|
55
|
+
var _useState = _sliced_to_array(useState(false), 2), animate = _useState[0], setAnimate = _useState[1];
|
|
56
|
+
var playAnimation = function() {
|
|
57
|
+
setAnimate(false);
|
|
58
|
+
setTimeout(function() {
|
|
59
|
+
setAnimate(true);
|
|
60
|
+
}, 10);
|
|
54
61
|
};
|
|
55
|
-
|
|
62
|
+
useEffect(function() {
|
|
63
|
+
if (!animated) return;
|
|
64
|
+
playAnimation();
|
|
65
|
+
// 每隔 3 秒播放一次动画
|
|
66
|
+
var intervalId = setInterval(playAnimation, 1000 + duration * 1000) // xs 动画 + 1s 间隔
|
|
67
|
+
;
|
|
68
|
+
// 清理定时器
|
|
69
|
+
return function() {
|
|
70
|
+
return clearInterval(intervalId);
|
|
71
|
+
};
|
|
72
|
+
}, []);
|
|
73
|
+
return /*#__PURE__*/ React.createElement(React.Fragment, null, visible ? children : /*#__PURE__*/ React.createElement(View, _object_spread({
|
|
56
74
|
className: classes
|
|
57
|
-
}, rest),
|
|
58
|
-
|
|
59
|
-
}), /*#__PURE__*/ React.createElement(View, {
|
|
60
|
-
className: "".concat(classPrefix, "-content")
|
|
61
|
-
}, avatar && /*#__PURE__*/ React.createElement(Avatar, {
|
|
62
|
-
className: avatarClass,
|
|
63
|
-
background: "rgb(239, 239, 239)",
|
|
64
|
-
shape: avatarShape,
|
|
65
|
-
style: getStyle(),
|
|
66
|
-
icon: "null"
|
|
67
|
-
}), rows === 1 ? /*#__PURE__*/ React.createElement(View, {
|
|
68
|
-
className: "".concat(classPrefix, "-content-block")
|
|
69
|
-
}) : /*#__PURE__*/ React.createElement(View, {
|
|
70
|
-
className: "".concat(classPrefix, "-content-line")
|
|
71
|
-
}, title && /*#__PURE__*/ React.createElement(View, {
|
|
72
|
-
className: "".concat(classPrefix, "-content-title")
|
|
73
|
-
}), repeatLines(rows).map(function(item, index) {
|
|
75
|
+
}, rest), repeatCount(rows).map(function(item, index) {
|
|
76
|
+
var contentClass = "".concat(classPrefix, "-content ").concat(classPrefix, "-content-").concat(size, " ").concat(classPrefix, "-content-").concat(size, "-").concat(index);
|
|
74
77
|
return /*#__PURE__*/ React.createElement(View, {
|
|
75
|
-
className: "".concat(
|
|
76
|
-
key: index
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
className: "".concat(contentClass),
|
|
79
|
+
key: index,
|
|
80
|
+
style: _object_spread({
|
|
81
|
+
width: width,
|
|
82
|
+
height: height
|
|
83
|
+
}, shapeStyle())
|
|
84
|
+
}, animated && /*#__PURE__*/ React.createElement(View, {
|
|
85
|
+
className: "".concat(classPrefix, "-animated ").concat(animate ? "".concat(classPrefix, "-animation") : ''),
|
|
86
|
+
style: durationStyle()
|
|
87
|
+
}));
|
|
88
|
+
})));
|
|
79
89
|
};
|
|
80
90
|
Skeleton.displayName = 'NutSkeleton';
|