Skip to content

Commit abac235

Browse files
committed
feat: harmony
1 parent fd72f12 commit abac235

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

src/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
"name": "布局组件",
171171
"enName": "layout",
172172
"packages": [
173-
173+
174174
{
175175
"version": "3.0.0",
176176
"name": "Divider",
@@ -777,7 +777,7 @@
777777
"show": true,
778778
"taro": true,
779779
"author": "Drjingfubo",
780-
"dd": false
780+
"dd": true
781781
},
782782
{
783783
"version": "2.0.0",

src/packages/overlay/overlay.taro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const Overlay: FunctionComponent<
4747
const classes = classNames(classPrefix, className)
4848
const styles = {
4949
...style,
50-
zIndex,
50+
// zIndex,
5151
}
5252

5353
const handleClick = (e: ITouchEvent) => {

src/packages/shortpassword/shortpassword.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
@import '../popup/popup.scss';
22

33
.nut-shortpassword {
4+
&-popup {
5+
padding: 32px 24px 28px 24px;
6+
borderradius: 12px;
7+
textalign: center;
8+
}
9+
410
&-title {
11+
display: flex;
12+
justify-content: center;
513
line-height: 1;
614
font-size: $font-size-l;
715
color: $color-title;
816
}
917

1018
&-description {
19+
display: flex;
20+
justify-content: center;
1121
margin-top: 12px;
1222
margin-bottom: 24px;
1323
line-height: 1;

src/packages/shortpassword/shortpassword.taro.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface ShortPasswordProps extends PopupProps {
3737
const defaultProps = {
3838
...ComponentDefaults,
3939
value: '',
40+
zIndex: 1002,
4041
visible: false,
4142
plain: false,
4243
hideFooter: true,
@@ -62,6 +63,8 @@ export const InternalShortPassword: ForwardRefRenderFunction<
6263
className,
6364
closeable,
6465
autoFocus,
66+
zIndex,
67+
round,
6568
onFocus,
6669
onChange,
6770
onConfirm,
@@ -122,15 +125,13 @@ export const InternalShortPassword: ForwardRefRenderFunction<
122125

123126
return (
124127
<Popup
125-
style={{
126-
padding: '32px 24px 28px 24px',
127-
borderRadius: '12px',
128-
textAlign: 'center',
129-
}}
128+
className={`${classPrefix}-popup`}
130129
visible={visible}
131130
closeable
132131
onOverlayClick={onClose}
133132
onCloseIconClick={onClose}
133+
zIndex={zIndex}
134+
round
134135
{...rest}
135136
>
136137
<View className={classNames(classPrefix, className)} style={style}>

0 commit comments

Comments
 (0)