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

fix(TimePicker): 修复 FTimePicker 组件清空值, 选择时间没有消失的问题 #723

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

zym19960704
Copy link
Collaborator

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue (if exists):

Other information:

@zym19960704 zym19960704 linked an issue Apr 9, 2024 that may be closed by this pull request
@@ -296,11 +299,20 @@ export default defineComponent({
activeTime.value = val;
}
};
// 获取 实例
const timeSelect = ref();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeSelectRef

tempValue.value = '';
updateCurrentValue('');
activeTime.value = '';
// 重置时间
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    emit('change', val);
            validate('change');

确认下, clear的时候,有没其他地方 处理 这个操作,如果没有,确认下是不是逻辑有遗漏?

@ocean-gao ocean-gao changed the title fix(TimePicker): 修复FTimePicker组件清空值,选择时间没有消失的问题 fix(TimePicker): 修复 FTimePicker 组件清空值, 选择时间没有消失的问题 Apr 9, 2024
@ocean-gao ocean-gao merged commit 6e6b22e into main Apr 9, 2024
1 check passed
@1zumii 1zumii deleted the fix-timepicker branch April 11, 2024 07:25
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.

FTimePicker,清空后,选中态未消失
2 participants