From 29da800012ad29573743757addb04ddf219e8585 Mon Sep 17 00:00:00 2001 From: linmew <1343475483@qq.com> Date: Wed, 26 Oct 2022 12:48:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E8=B6=85=E5=87=BA=EF=BC=8Ctextarea=E6=9C=89?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/web/pages/bind_cookie.py | 2 +- LittlePaimon/web/pages/plugin_manage.py | 9 +++++---- LittlePaimon/web/pages/private_cookie.py | 4 ++-- LittlePaimon/web/pages/public_cookie.py | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/LittlePaimon/web/pages/bind_cookie.py b/LittlePaimon/web/pages/bind_cookie.py index 78f137e..f7501bd 100644 --- a/LittlePaimon/web/pages/bind_cookie.py +++ b/LittlePaimon/web/pages/bind_cookie.py @@ -7,7 +7,7 @@ api = AmisAPI(method='post', url='/LittlePaimon/api/bind_cookie') collapse = Collapse(header='Cookie说明及获取方法', body=Html(html=collapse_text)) form = Form(title='绑定Cookie', api=api, body=[ InputNumber(name='user_id', label='QQ号', required=True), - Textarea(name='cookie', label='Cookie', required=True, clearable=True), + Textarea(name='cookie', label='Cookie', required=True, clearable=True,showCounter=False), # Checkboxes(name='function', label='同时开启以下功能', options=[ # {'label': '米游社自动签到', 'value': 'sign'}, # {'label': '米游币自动获取', 'value': 'coin'} diff --git a/LittlePaimon/web/pages/plugin_manage.py b/LittlePaimon/web/pages/plugin_manage.py index 976a6a9..fac34ed 100644 --- a/LittlePaimon/web/pages/plugin_manage.py +++ b/LittlePaimon/web/pages/plugin_manage.py @@ -45,7 +45,7 @@ command_form = InputSubForm(name='matchers', InputText(label='命令用法', name='pm_usage', value='${pm_usage}', description='命令的使用方法,建议不要太长'), Textarea(label='命令详细描述', name='pm_description', value='${pm_description}', - description='命令的详细描述,可以用\\n强制换行'), + description='命令的详细描述,可以用\\n强制换行',showCounter=False), Switch(label='是否展示', name='pm_show', value='${pm_show}', description='是否在帮助图中展示该命令'), InputNumber(label='展示优先级', name='pm_priority', value='${pm_priority}', @@ -63,9 +63,9 @@ detail_form = Form(title='', description='插件显示的名称,建议不要过长'), Static(label='插件模块名', name='module_name', value='${module_name}'), Textarea(label='插件描述', name='description', value='${description}', clearable=True, - description='仅用于在本管理页面中显示,不会在帮助图中显示'), + description='仅用于在本管理页面中显示,不会在帮助图中显示',showCounter=False), Textarea(label='插件使用说明', name='usage', value='${detail}', clearable=True, - description='会在该插件没有具体命令的使用说明时,显示在帮助图中'), + description='会在该插件没有具体命令的使用说明时,显示在帮助图中',showCounter=False), Switch(label='是否展示', name='show', value='${show}', description='是否在帮助图中展示该插件'), InputNumber(label='展示优先级', name='priority', value='${priority}', @@ -84,7 +84,8 @@ card = Card( header=Card.Header(title='$name', subTitle='$module_name', description='$description', - avatarText='$name'), + avatarText='$name', + avatarTextClassName='overflow-hidden'), actions=[detail_button, permission_button], toolbar=[ Tpl(tpl='未加载', className='label label-warning', hiddenOn='${isLoad}'), diff --git a/LittlePaimon/web/pages/private_cookie.py b/LittlePaimon/web/pages/private_cookie.py index 7c58e1a..c9b7f88 100644 --- a/LittlePaimon/web/pages/private_cookie.py +++ b/LittlePaimon/web/pages/private_cookie.py @@ -6,7 +6,7 @@ add_button = ActionType.Dialog(label='添加私人Cookie', dialog=Dialog(title='添加私人Cookie', body=Form(api='post:/LittlePaimon/api/save_private_cookie', body=[InputNumber(name='user_id', label='QQ号', required=True), - Textarea(name='cookie', label='Cookie', required=True)]))) + Textarea(name='cookie', label='Cookie', required=True,showCounter=False)]))) delete_button = ActionType.Ajax(label='删除', level=LevelEnum.danger, confirmText='确认删除该私人Cookie', api='delete:/LittlePaimon/api/delete_private_cookie?id=${id}') @@ -21,7 +21,7 @@ detail_button = ActionType.Dialog(label='详情', InputNumber(name='user_id', label='QQ号', required=True), Static(name='uid', label='UID'), Static(name='mys_id', label='米游社ID'), - Textarea(name='cookie', label='Cookie', required=True), + Textarea(name='cookie', label='Cookie', required=True,showCounter=False), Static(name='stoken', label='Stoken')]), actions=[cancel_action_button, save_action_button])) table = TableCRUD(mode='table', diff --git a/LittlePaimon/web/pages/public_cookie.py b/LittlePaimon/web/pages/public_cookie.py index 732d6ab..53e53c6 100644 --- a/LittlePaimon/web/pages/public_cookie.py +++ b/LittlePaimon/web/pages/public_cookie.py @@ -5,7 +5,7 @@ add_button = ActionType.Dialog(label='添加公共Cookie', level=LevelEnum.primary, dialog=Dialog(title='添加公共Cookie', body=Form(api='post:/LittlePaimon/api/add_public_cookie', - body=[Textarea(name='cookie', label='Cookie', required=True)]))) + body=[Textarea(name='cookie', label='Cookie', required=True,showCounter=False)]))) delete_button = ActionType.Ajax(label='删除', level=LevelEnum.danger, confirmText='确认删除该公共Cookie', api='delete:/LittlePaimon/api/delete_public_cookie?id=${id}')