修复了头像文本超出,textarea有计数的问题

This commit is contained in:
linmew 2022-10-26 12:48:55 +08:00
parent c1927ffb35
commit 29da800012
4 changed files with 9 additions and 8 deletions

View File

@ -7,7 +7,7 @@ api = AmisAPI(method='post', url='/LittlePaimon/api/bind_cookie')
collapse = Collapse(header='Cookie说明及获取方法', body=Html(html=collapse_text)) collapse = Collapse(header='Cookie说明及获取方法', body=Html(html=collapse_text))
form = Form(title='绑定Cookie', api=api, body=[ form = Form(title='绑定Cookie', api=api, body=[
InputNumber(name='user_id', label='QQ号', required=True), 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=[ # Checkboxes(name='function', label='同时开启以下功能', options=[
# {'label': '米游社自动签到', 'value': 'sign'}, # {'label': '米游社自动签到', 'value': 'sign'},
# {'label': '米游币自动获取', 'value': 'coin'} # {'label': '米游币自动获取', 'value': 'coin'}

View File

@ -45,7 +45,7 @@ command_form = InputSubForm(name='matchers',
InputText(label='命令用法', name='pm_usage', value='${pm_usage}', InputText(label='命令用法', name='pm_usage', value='${pm_usage}',
description='命令的使用方法,建议不要太长'), description='命令的使用方法,建议不要太长'),
Textarea(label='命令详细描述', name='pm_description', value='${pm_description}', Textarea(label='命令详细描述', name='pm_description', value='${pm_description}',
description='命令的详细描述,可以用\\n强制换行'), description='命令的详细描述,可以用\\n强制换行',showCounter=False),
Switch(label='是否展示', name='pm_show', value='${pm_show}', Switch(label='是否展示', name='pm_show', value='${pm_show}',
description='是否在帮助图中展示该命令'), description='是否在帮助图中展示该命令'),
InputNumber(label='展示优先级', name='pm_priority', value='${pm_priority}', InputNumber(label='展示优先级', name='pm_priority', value='${pm_priority}',
@ -63,9 +63,9 @@ detail_form = Form(title='',
description='插件显示的名称,建议不要过长'), description='插件显示的名称,建议不要过长'),
Static(label='插件模块名', name='module_name', value='${module_name}'), Static(label='插件模块名', name='module_name', value='${module_name}'),
Textarea(label='插件描述', name='description', value='${description}', clearable=True, Textarea(label='插件描述', name='description', value='${description}', clearable=True,
description='仅用于在本管理页面中显示,不会在帮助图中显示'), description='仅用于在本管理页面中显示,不会在帮助图中显示',showCounter=False),
Textarea(label='插件使用说明', name='usage', value='${detail}', clearable=True, Textarea(label='插件使用说明', name='usage', value='${detail}', clearable=True,
description='会在该插件没有具体命令的使用说明时,显示在帮助图中'), description='会在该插件没有具体命令的使用说明时,显示在帮助图中',showCounter=False),
Switch(label='是否展示', name='show', value='${show}', Switch(label='是否展示', name='show', value='${show}',
description='是否在帮助图中展示该插件'), description='是否在帮助图中展示该插件'),
InputNumber(label='展示优先级', name='priority', value='${priority}', InputNumber(label='展示优先级', name='priority', value='${priority}',
@ -84,7 +84,8 @@ card = Card(
header=Card.Header(title='$name', header=Card.Header(title='$name',
subTitle='$module_name', subTitle='$module_name',
description='$description', description='$description',
avatarText='$name'), avatarText='$name',
avatarTextClassName='overflow-hidden'),
actions=[detail_button, permission_button], actions=[detail_button, permission_button],
toolbar=[ toolbar=[
Tpl(tpl='未加载', className='label label-warning', hiddenOn='${isLoad}'), Tpl(tpl='未加载', className='label label-warning', hiddenOn='${isLoad}'),

View File

@ -6,7 +6,7 @@ add_button = ActionType.Dialog(label='添加私人Cookie',
dialog=Dialog(title='添加私人Cookie', dialog=Dialog(title='添加私人Cookie',
body=Form(api='post:/LittlePaimon/api/save_private_cookie', body=Form(api='post:/LittlePaimon/api/save_private_cookie',
body=[InputNumber(name='user_id', label='QQ号', required=True), 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, delete_button = ActionType.Ajax(label='删除', level=LevelEnum.danger,
confirmText='确认删除该私人Cookie', confirmText='确认删除该私人Cookie',
api='delete:/LittlePaimon/api/delete_private_cookie?id=${id}') 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), InputNumber(name='user_id', label='QQ号', required=True),
Static(name='uid', label='UID'), Static(name='uid', label='UID'),
Static(name='mys_id', label='米游社ID'), 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')]), Static(name='stoken', label='Stoken')]),
actions=[cancel_action_button, save_action_button])) actions=[cancel_action_button, save_action_button]))
table = TableCRUD(mode='table', table = TableCRUD(mode='table',

View File

@ -5,7 +5,7 @@ add_button = ActionType.Dialog(label='添加公共Cookie',
level=LevelEnum.primary, level=LevelEnum.primary,
dialog=Dialog(title='添加公共Cookie', dialog=Dialog(title='添加公共Cookie',
body=Form(api='post:/LittlePaimon/api/add_public_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, delete_button = ActionType.Ajax(label='删除', level=LevelEnum.danger,
confirmText='确认删除该公共Cookie', confirmText='确认删除该公共Cookie',
api='delete:/LittlePaimon/api/delete_public_cookie?id=${id}') api='delete:/LittlePaimon/api/delete_public_cookie?id=${id}')