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

Tabs 组件新增标签栏 slot #784

Merged
merged 1 commit into from
Apr 30, 2020
Merged

Tabs 组件新增标签栏 slot #784

merged 1 commit into from
Apr 30, 2020

Conversation

juzi214032
Copy link
Member

@juzi214032 juzi214032 commented Apr 26, 2020

新增 slot,用于自定义 Tabs 的标签栏,slot name 为 item.key.tab,在未填写 tab
属性时生效

示例:

<l-tabs>
  <view slot="1.tab">标签一</view>
  <view slot="2.tab">标签一</view>
  <view slot="3.tab">标签一</view>
  <l-tabpanel key="1" slot="1">
  <l-tabpanel key="2" slot="2">
  <l-tabpanel key="3" slot="3">
</l-tabs>

close #763

新增 slot,用于自定义 Tabs 的标签栏,slot name 为 item.key.tab,在未填写 tab
属性时生效

示例:
<l-tabs>
  <view slot="1.tab">标签一</view>
  <view
slot="2.tab">标签一</view>
  <view slot="3.tab">标签一</view>
  <l-tabpanel
key="1" slot="1">
  <l-tabpanel key="2" slot="2">
  <l-tabpanel key="3"
slot="3">
</l-tabs>

Closes 763
@7insummer 7insummer merged commit d47ce22 into develop Apr 30, 2020
@7insummer 7insummer deleted the feat/tabs/slot branch April 30, 2020 10:27
juzi214032 added a commit that referenced this pull request May 12, 2020
新增 slot,用于自定义 Tabs 的标签栏,slot name 为 item.key.tab,在未填写 tab
属性时生效

示例:
<l-tabs>
  <view slot="1.tab">标签一</view>
  <view
slot="2.tab">标签一</view>
  <view slot="3.tab">标签一</view>
  <l-tabpanel
key="1" slot="1">
  <l-tabpanel key="2" slot="2">
  <l-tabpanel key="3"
slot="3">
</l-tabs>

Closes 763
juzi214032 added a commit that referenced this pull request May 12, 2020
新增 slot,用于自定义 Tabs 的标签栏,slot name 为 item.key.tab,在未填写 tab
属性时生效

示例:
<l-tabs>
  <view slot="1.tab">标签一</view>
  <view
slot="2.tab">标签一</view>
  <view slot="3.tab">标签一</view>
  <l-tabpanel
key="1" slot="1">
  <l-tabpanel key="2" slot="2">
  <l-tabpanel key="3"
slot="3">
</l-tabs>

Closes 763
7insummer added a commit that referenced this pull request May 12, 2020
* chore(editorconfig): 增加.editorconfig配置,使不同编辑器风格保持一致

* refactor(notice-bar): 将js文件中的==改为===

* refactor(combined-tabs): 将js文件中的==改为===

* refactor(image-picker): 将js文件中的==改为===

* chore(dist): 重新编译dist,修复dist和src不一致的问题

* feat(popup): 修改animation和contentAlign属性名;添加l-panel-class

* chore(commitlint): 新增校验规则 (#780)

新增 commitlint 校验规则为:
1. scope 不允许为空
2. scope 使用 lower-case 和 pascal-case 风格
3. 配置 scope-enum,防止出现奇怪的 scope

* feat(SearchBar): 添加 lintap 事件 API

为 SearchBar 组件的地址元素添加监听事件 lintap,方便后期结合 IndexBar 组件使用

* feat(SearchBar): 属性 address 更名为 front-text

BREAKING CHANGE: 属性 address 废弃

* feat(Tabs): 新增标签栏 slot (#784)

新增 slot,用于自定义 Tabs 的标签栏,slot name 为 item.key.tab,在未填写 tab
属性时生效

示例:
<l-tabs>
  <view slot="1.tab">标签一</view>
  <view
slot="2.tab">标签一</view>
  <view slot="3.tab">标签一</view>
  <l-tabpanel
key="1" slot="1">
  <l-tabpanel key="2" slot="2">
  <l-tabpanel key="3"
slot="3">
</l-tabs>

Closes 763

* fix(status_show): 修复status_show组件在非全屏下的显示问题 (#787)

Co-authored-by: hongchen.zhang <hongchen.zhang@ninebot.com>

* feat(Util): 新增 NodeUtil 工具类 (#788)

该工具类对微信 wxml 节点选择 api 进行封装,方便获取节点信息

* feat(progress): 新增 Progress 组件 (#789)

* feat(Progress): 新增 Progress 组件

* refactor(Example): 增加示例小程序中的组件 Icon

1. 新增 LoadMore 组件 Icon
2. 新增 Skeleton 组件 Icon
3. 新增 Steps 组件 Icon
4. 新增 Sticky 组件 Icon

Co-authored-by: 桔子 <juzi214032@qq.com>

* feat(IndexList): 新增 IndexList 索引列表组件 (#790)

* feat(ArcPopup):新增 ArcPopup 组件 (#791)

* docs(README): 修正 README.md 文档中代码块的格式错误 (#792)

* fix(Tag): 修复禁用状态下仍能触发 lintap 事件的问题 (#795)

* fix(Collapse): 修复内容区域动态添加内容后不显示的问题 (#794)

close #794

* refactor(sticky): 重构获取节点逻辑 (#800)

* chore(package.json): 0.8.0 (#803)

Co-authored-by: 桔子 <juzi214032@qq.com>
Co-authored-by: daipengpeng <16602124116@163.com>
Co-authored-by: zhc525349965 <43640797+zhc525349965@users.noreply.github.com>
Co-authored-by: hongchen.zhang <hongchen.zhang@ninebot.com>
Co-authored-by: 木荣 <38655613+MuRongXiaoDouBi@users.noreply.github.com>
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.

segment 自定义选项卡 切换选项卡时下面还有内容部分,怎么将内容部分加进去?
2 participants