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

feat:picker支持hasInput #610

Merged
merged 3 commits into from
Jan 9, 2025
Merged

feat:picker支持hasInput #610

merged 3 commits into from
Jan 9, 2025

Conversation

MTTTM
Copy link
Contributor

@MTTTM MTTTM commented Jan 4, 2025

功能描述:
1.支持hasInput
2.有hasInput属性时候change不会修改v-model,确认时候才会

修改内容:
1.html模板添加了input
2.修改了watch,修复_uniApp bug_,直接父组件写defualtindex=“[1,2]”,this.$emit('update:modelValue时候会导致子组件watch defualtindex,二次触发
3.修改了方法inputLabel,返回内容改为用户确认后的内容,
4.修改了方法inputValue,区分对象数组和普通数组

Copy link

vercel bot commented Jan 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
uview-plus ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2025 2:58pm

@ijry
Copy link
Owner

ijry commented Jan 4, 2025

代码被格式化了

@MTTTM
Copy link
Contributor Author

MTTTM commented Jan 4, 2025

### 移除格式化

功能描述:
1.支持hasInput
2.有hasInput属性时候change不会修改v-model,确认时候才会

修改内容:
1.html模板添加了input
2.修改了watch,修复_uniApp bug_,直接父组件写defualtindex=“[1,2]”,this.$emit('update:modelValue时候会导致子组件watch defualtindex,二次触发
3.修改了方法inputLabel,返回内容改为用户确认后的内容,
4.修改了方法inputValue,区分对象数组和普通数组

@MTTTM
Copy link
Contributor Author

MTTTM commented Jan 4, 2025

有3个commit,只有一个file change,看fileschange tab就行

@ijry ijry merged commit 30b8130 into ijry:3.x Jan 9, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants