Skip to content

Commit a203301

Browse files
committed
由于resize只在input_type为text_area时才会起效,而密码组件的input_type必须为password否则不能实现其他密码的隐藏和显示等功能,所以移除该参数。
Signed-off-by: Sadam·Sadik <1903249375@qq.com>
1 parent 508cbcd commit a203301

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

simplepro/components/fields/input_password_field.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def __init__(self,
4040
placeholder=None, clearable=True, show_password=True,
4141
show_word_limit=False, disabled=False, readonly=False,
4242
size=None,
43-
resize=None,
4443
autofocus=False,
4544
style=None,
4645
encrypt: str = None,
@@ -57,7 +56,6 @@ def __init__(self,
5756
'readonly': readonly,
5857
'show_word_limit': show_word_limit,
5958
'size': size,
60-
'resize': resize,
6159
'autofocus': autofocus,
6260
'encrypt': encrypt,
6361
'pattern': pattern,

simplepro/components/widgets/input_password.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self,
2929
disabled=False, readonly=False,
3030
size=None,
3131
prefix_icon=None, suffix_icon=None, rows=None, autocomplete=None, # 这几个参数是几乎没有用到,也用不到
32-
resize=None, autofocus=False,
32+
autofocus=False,
3333
encrypt: str = "",
3434
pattern: str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-$%&@+!",
3535
style=None,
@@ -47,7 +47,6 @@ def __init__(self,
4747
'rows': rows,
4848
'autocomplete': autocomplete,
4949
':readonly': readonly,
50-
':resize': resize,
5150
':autofocus': autofocus,
5251
':show-word-limit': show_word_limit,
5352
}

0 commit comments

Comments
 (0)