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

搜索栏内使用下拉框select需要同时支持默认值defaultValue和全部选项{text:"全部", value: ""},此时选中全部,点击搜索实际传的还是默认值的参数 #484

Closed
mo2838351973 opened this issue Aug 5, 2024 · 0 comments

Comments

@mo2838351973
Copy link

enum: [
			{ dictLabel: '全部', dictValue: undefined },
			{ dictLabel: '未缴费', dictValue: 0 },
			{ dictLabel: '已缴费', dictValue: 1 },
			{ dictLabel: '已关闭', dictValue: 2 },
		],
		search: {
			el: 'select',
			defaultValue: 0,
		},

这样配置,切换到选中全部,点击搜索按钮,实际传的还是默认值的参数。
我期望是选中全部,传的参数应该是undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant