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

[comp:title] add title component #188

Closed
1 task done
danranVm opened this issue Feb 3, 2021 · 4 comments · Fixed by #197
Closed
1 task done

[comp:title] add title component #188

danranVm opened this issue Feb 3, 2021 · 4 comments · Fixed by #197
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@danranVm
Copy link
Member

danranVm commented Feb 3, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

What does the proposed API look like?

标题栏用于各中容器的顶部,起到了内容概览和引导页级操作的作用。

何时使用

当需要使用户快速理解当前容器是什么以及一些快捷操作。

API

ix-title

Props

名称 说明 类型 默认值 全局配置 备注
title 标题文字 string|v-slot:default - - -
subTitle 二级标题文字 string|v-slot:subTitle - - -
extra 右侧操作区域 string|string[]|v-slot:extra - - -
size 标题大小 extraLarge|large|medium|small large - 分别对应 h1|h2|h3|h4
prefix 标题前缀图标 string|v-slot:prefix - - -

Emits

名称 说明 参数类型 备注
extraClick 右侧操作图标被点击 (name: string, evt: MouseEvent) => void name 为传入的 extra
prefixClick 前缀图标被点击 (evt: MouseEvent) => void -
@danranVm danranVm added the enhancement New feature or request label Feb 3, 2021
@danranVm
Copy link
Member Author

danranVm commented Feb 3, 2021

@rhinonan @hele10086 麻烦 review 一下 API

@danranVm
Copy link
Member Author

danranVm commented Feb 3, 2021

后续可能会增加 tag,avatar 等配置,依赖于相关组件。

@danranVm danranVm mentioned this issue Feb 3, 2021
95 tasks
@rhinonan
Copy link
Contributor

rhinonan commented Feb 3, 2021

没什么问题

@danranVm danranVm added this to the v1.0.0 milestone Feb 3, 2021
@danranVm
Copy link
Member Author

danranVm commented Feb 5, 2021

@rhinonan 新增了一个 extraClick 的 emit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants