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(TinyTabs): 选项卡组件配置项的modelValue改为select组件,且其options随着选项卡而变化 #439

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
9f7f3e1
add(property-linkage): tinyTabs component's property 'modelValue' rep…
betterdancing Apr 18, 2024
617e712
add(tabs): 修改tinyTabs的modelValue物料配置
betterdancing Apr 20, 2024
d3402ac
feat(TinyTabs): 选项卡组件配置项的modelValue改为select组件,且其options随着选项卡而变化
betterdancing Apr 26, 2024
b382954
feat(tabs-option): 删除无用的console.log日志
betterdancing May 6, 2024
84b9aff
Merge branch 'develop' of github.com:betterdancing/tiny-engine into t…
betterdancing May 7, 2024
a2d6785
feat(tabs): 将组件属性的处理逻辑放到useProperties中
betterdancing May 7, 2024
ba71c5b
Merge branch 'develop' of github.com:betterdancing/tiny-engine into t…
betterdancing May 7, 2024
8443b24
feat(tinyTabs): 修复切换组件后再切换回tabs组件时,modelValue选项错误的问题
betterdancing May 7, 2024
587ae52
feat(tinyTabs): utils function 添加测试用例
betterdancing May 8, 2024
59220ee
feat(tinyTabs): utils新增公共方法的测试用例
betterdancing May 8, 2024
0eac188
feat(tinyTabs): utils新增公共方法测试用例问题修改
betterdancing May 9, 2024
15d0b3e
feat(tinyTabs): utils新增公共方法测试用例问题修改
betterdancing May 10, 2024
3bc8d9e
feat(tinyTabs):删除选项卡时,如果是当前选中的则将当前选中置为第一条,如果列表为空,则已选择的也清空
betterdancing May 11, 2024
7d0a760
feat(tinyTabs): 修改检视意见
betterdancing May 11, 2024
41bdc3a
feat(TinyTabs):完善MetaSelect代码逻辑
betterdancing May 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/common/component/MetaSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ export default {
}

watchEffect(() => {
state.selected = props.modelValue ?? ''
if (!props.options.find((item) => item.value === props.modelValue)) {
state.selected = props.options?.[0]?.value || ''
betterdancing marked this conversation as resolved.
Show resolved Hide resolved
} else {
state.selected = props.modelValue ?? ''
}
})

return {
Expand Down
Loading