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

表格使用编辑行时错误 #2560

Closed
qzsiniong opened this issue Feb 18, 2023 · 0 comments
Closed

表格使用编辑行时错误 #2560

qzsiniong opened this issue Feb 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@qzsiniong
Copy link

const value = isCheckValue ? (isNumber(val) && isBoolean(val) ? val : !!val) : val;

isNumber(val) && isBoolean(val)
这是要搞什么。Switch 使用checkedValue: 1, unCheckedValue: 0时,开关切换不了

应该要改成下面的才对哦
isNumber(val) || isBoolean(val) || isString(val)

@wangjue666 wangjue666 added the bug Something isn't working label Oct 9, 2023
zyt520ham pushed a commit to zyt520ham/vue-vben-admin that referenced this issue Oct 17, 2023
* main: (48 commits)
  fix(LockModal): Cannot unlock (vbenjs#3143)
  Pr/code editor boardered (vbenjs#3142)
  chore: fix type:check error (vbenjs#3139)
  fix(customExport): Failure to export (vbenjs#3137)
  fix(full-screen): dom fullscreen status text (vbenjs#3130)
  fix(BasicForm): type instantiation is excessively deep and possibly infinite. (vbenjs#3128)
  chore: fix type:check error (vbenjs#3126)
  fix: #2744tabs选项卡渲染问题,以及完善路由中affix=true时处理逻辑。 (vbenjs#3127)
  chore: update `unplugin-config` (vbenjs#3120)
  chore(demo): 修正表单增删示例类型错误
  fix(demo): useForm中DatePicker,RangePicker 日期控件位置不对
  fix(Editor): ts类型错误
  chore(MenuItem): watch回调参数类型不一致
  fix(SimpleMenuTag): SimpleMenuTag的引用都改为动态组件引用,以消除打包警告.close vbenjs#3121
  chore(demo): 消除ts类型错误
  fix: ScrollContainer的一个问题 vbenjs#3046 (vbenjs#3119)
  fix(StrengthMeter): change事件应随handleChange一起抛出。close vbenjs#3118
  Revert "chore: update `unplugin-config` (vbenjs#3116)" (vbenjs#3117)
  chore: update `unplugin-config` (vbenjs#3116)
  fix(EditCellTable): 表格编辑行在使用Switch,checkedValue为数字时无法切换开关.close vbenjs#2560
  ...

# Conflicts:
#	pnpm-lock.yaml
#	src/components/Form/src/BasicForm.vue
#	src/components/Form/src/components/ApiSelect.vue
#	src/components/Form/src/hooks/useForm.ts
#	src/layouts/default/header/MultipleHeader.vue
#	src/views/demo/form/UseForm.vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants