Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: vxe-table form 收起/展开。。。 #5138

Closed
5 tasks done
chengang168 opened this issue Dec 14, 2024 · 3 comments
Closed
5 tasks done

Bug: vxe-table form 收起/展开。。。 #5138

chengang168 opened this issue Dec 14, 2024 · 3 comments

Comments

@chengang168
Copy link

Version

Vben Admin V5

Describe the bug?

设置 collapsed: true, 第二个搜索条件为: Select 组件时, 收起功能失效

const formOptions: VbenFormProps = {
// 默认展开
collapsed: true,
schema: [
{
component: 'Input',
defaultValue: '1',
fieldName: 'category',
label: 'Category',
},
{
component: 'Select',
componentProps: {
allowClear: true,
options: [
{
label: 'Color1',
value: '1',
},
{
label: 'Color2',
value: '2',
},
],
placeholder: '请选择',
},
fieldName: 'color',
label: 'Color',
},
{
component: 'Input',
fieldName: 'productName',
label: 'ProductName',
},
{
component: 'Input',
fieldName: 'price',
label: 'Price',
},

{
  component: 'DatePicker',
  fieldName: 'datePicker',
  label: 'Date',
},

],
// 控制表单是否显示折叠按钮
showCollapseButton: true,
// 是否在字段值改变时提交表单
submitOnChange: true,
// 按下回车时是否提交表单
submitOnEnter: false,
};

Reproduction

WeChatd101c0769e8d963119f9d8ee45084599

System Info

System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 218.96 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Browsers:
    Chrome: 116.0.5845.187
    Safari: 14.1.1

Relevant log output

No response

Validations

@mynetfan
Copy link
Collaborator

examples/vxe-table/form.vue 这个页面按照你说的调整Select到第二个时测试了并没有你说的问题。

Copy link

Hello @chengang168. Please provide the complete reproduction steps and code. Issues labeled by needs reproduction will be closed if no activities in 3 days.

@chengang168
Copy link
Author

测试了在24寸屏没有这个问题, 16寸小屏幕有时候出现,有时候不出现

image

@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants