Skip to content

Commit

Permalink
feat: api
Browse files Browse the repository at this point in the history
  • Loading branch information
changpei committed Mar 14, 2024
1 parent 12668e7 commit cdd12f4
Show file tree
Hide file tree
Showing 6 changed files with 264 additions and 196 deletions.
237 changes: 119 additions & 118 deletions scripts/genThemeConfig/property.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions scripts/genThemeConfig/result.json
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,13 @@
"excludeTags": [
"van-tab"
]
},
"--van-tabs-card-nav-margin": {
"type": "input",
"desc": "card模式 导航外边距",
"excludeTags": [
"van-tab"
]
}
},
"preview": {
Expand Down
192 changes: 125 additions & 67 deletions scripts/lcap/usage.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/tab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default createComponent({
render(h) {
const { slots, parent, isActive } = this;
const slotContent = slots();

let tempContent = slotContent;
if (process.env.NODE_ENV === 'development' && this.info) {
console.warn(
Expand Down
18 changes: 12 additions & 6 deletions src/tabs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@
- Selector
description: 选项卡切换组件,常用于平级区域大块内容的收纳和展现
attrs:
- name: data-source
title: 数据源
type: Array<Item> | Function
description: 展示数据的输入源,可设置为集合类型变量(List<T>)或输出参数为集合类型的逻辑
designer-value: '[{}, {}, {}]'
group: 数据属性
- name: data-schema
title: 数据类型
type: schema
description: 集合类型每一元素的数据类型
compType: dataTypeSelect
group: 数据属性
- name: value
title:
type: any
sync: true
model: true
description: 选中标签页的值。
group: 数据属性
- name: data-source
title: 数据源
type: Array<Item> | Function | object
designer-value: '[{}, {}, {}]'
description: 展示数据的输入源,可设置为集合类型变量(List<T>)或输出参数为集合类型的逻辑
group: 数据属性
- name: text-field
title: 标签项标题
type: string
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6045,11 +6045,6 @@ decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0:
resolved "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz"
integrity "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA=="

decimal.js@^10.4.3:
version "10.4.3"
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23"
integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==

decode-uri-component@^0.2.0:
version "0.2.0"
resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz"
Expand Down

0 comments on commit cdd12f4

Please sign in to comment.