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

refactor(rate): rate tips #582

Closed
wants to merge 2 commits into from

Conversation

fengchunqi
Copy link
Contributor

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

移动端 mobile-vue 发布正式版 #514

💡 需求背景和解决方案

📝 更新日志

  • refactor(rate): rate增加tips

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@LeeJim LeeJim added the in progress 正在处理中 label Apr 13, 2023
Copy link
Collaborator

@LeeJim LeeJim left a comment

Choose a reason for hiding this comment

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

交互上有几个bug:

  1. tips偶尔会不消失
  2. 半选的情况下,tips里有一个star会慢一点出现

@@ -1,6 +1,6 @@
<template>
<CustomCell title="请点击评分">
<t-rate v-model="value" clearable :gap="defaultGap" @change="changeValue" />
<CustomCell title="实心评分">
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议把这个 custom-cell 组件移除,不要依赖任何二次封装的。
用户复制示例代码的时候就没法直接用了:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

去掉CustomCell后,样式是单独都写在每个示例里面吗?

Copy link
Collaborator

Choose a reason for hiding this comment

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

是的。

<FilledDemo />
<br />
<tdesign-demo-block title="01 组件类型" summary="实心评分">
<BaseDemo />
Copy link
Collaborator

Choose a reason for hiding this comment

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

均需要右对齐,当前效果:
image

设计稿效果:
image

import { ref, computed, defineComponent, ExtractPropTypes, PropType, ComputedRef } from 'vue';
import { StarFilledIcon, StarIcon } from 'tdesign-icons-vue-next';
import { ref, computed, defineComponent } from 'vue';
import { IconFont } from 'tdesign-icons-vue-next';
Copy link
Collaborator

Choose a reason for hiding this comment

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

这样会引入全量的图标,直接引入star即可

Copy link
Contributor Author

Choose a reason for hiding this comment

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

现在不是改成传icon name了吗

Copy link
Collaborator

Choose a reason for hiding this comment

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

这里要和小程序不一样。

@anlyyao anlyyao requested a review from LeeJim April 21, 2023 03:52
@LeeJim
Copy link
Collaborator

LeeJim commented Apr 21, 2023

提交的分支也不对,需要合并进 develop

@anlyyao anlyyao mentioned this pull request Apr 26, 2023
@fengchunqi fengchunqi closed this Apr 26, 2023
@fengchunqi fengchunqi reopened this Apr 26, 2023
@fengchunqi fengchunqi closed this Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress 正在处理中
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants