feat: allow string type z-index

This commit is contained in:
陈嘉涵 2020-01-28 21:34:16 +08:00
parent 9dcf57c65f
commit 8a679079fb
18 changed files with 18 additions and 18 deletions

View File

@ -113,7 +113,7 @@ Use `active-color` prop to custom active color of the title and options
| Attribute | Description | Type | Default |
|------|------|------|------|
| active-color | Active color of title and option | *string* | `#1989fa` |
| z-index | z-index of menu item | *number* | `10` |
| z-index | z-index of menu item | *string \| number* | `10` |
| duration | Transition duration, unit second | *number* | `0.2` |
| direction `v2.0.1` | Expand direction, can be set to `up` | *string* | `down` |
| overlay | Whether to show overlay | *boolean* | `true` |

View File

@ -117,7 +117,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 |
|------|------|------|------|
| active-color | 菜单标题和选项的选中态颜色 | *string* | `#1989fa` |
| z-index | 菜单栏 z-index 层级 | *number* | `10` |
| z-index | 菜单栏 z-index 层级 | *string \| number* | `10` |
| duration | 动画时长,单位秒 | *number* | `0.2` |
| direction `v2.0.1` | 菜单展开方向,可选值为`up` | *string* | `down` |
| overlay | 是否显示遮罩层 | *boolean* | `true` |

View File

@ -19,7 +19,7 @@ export default createComponent({
],
props: {
zIndex: Number,
zIndex: [Number, String],
activeColor: String,
overlay: {
type: Boolean,

View File

@ -65,7 +65,7 @@ export default {
| Attribute | Description | Type | Default |
|------|------|------|------|
| index-list | Index List | *string[] \| number[]* | `A-Z` |
| z-index | z-index | *number* | `1` |
| z-index | z-index | *string \| number* | `1` |
| sticky | Whether to enable anchor sticky top | *boolean* | `true` |
| sticky-offset-top `v2.0.7` | Anchor offset top when sticky | *number* | `0` |
| highlight-color | Index character highlight color | *string* | `#07c160` | - |

View File

@ -69,7 +69,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 |
|------|------|------|------|
| index-list | 索引字符列表 | *string[] \| number[]* | `A-Z` |
| z-index | z-index 层级 | *number* | `1` |
| z-index | z-index 层级 | *string \| number* | `1` |
| sticky | 是否开启锚点自动吸顶 | *boolean* | `true` |
| sticky-offset-top `v2.0.7` | 锚点自动吸顶时与顶部的距离 | *number* | `0` |
| highlight-color | 索引字符高亮颜色 | *string* | `#07c160` |

View File

@ -42,7 +42,7 @@ export default createComponent({
],
props: {
zIndex: Number,
zIndex: [Number, String],
highlightColor: String,
sticky: {
type: Boolean,

View File

@ -59,7 +59,7 @@ export default {
| left-arrow | Whether to show left arrow | *boolean* | `false` |
| fixed | Whether to fixed top | *boolean* | `false` |
| border | Whether to show bottom border | *boolean* | `true` |
| z-index | Z-index | *number* | `1` |
| z-index | Z-index | *string \| number* | `1` |
### Slots

View File

@ -61,7 +61,7 @@ export default {
| left-arrow | 是否显示左侧箭头 | *boolean* | `false` |
| fixed | 是否固定在顶部 | *boolean* | `false` |
| border | 是否显示下边框 | *boolean* | `true` |
| z-index | 元素 z-index | *number* | `1` |
| z-index | 元素 z-index | *string \| number* | `1` |
### Slots

View File

@ -82,7 +82,7 @@ function NavBar(
NavBar.props = {
title: String,
fixed: Boolean,
zIndex: Number,
zIndex: [Number, String],
leftText: String,
rightText: String,
leftArrow: Boolean,

View File

@ -141,7 +141,7 @@ Use `title` prop to set keyboard title
| title | Keyboard title | *string* | - |
| maxlength `v2.0.2` | Value maxlength | *string \| number* | - |
| transition | Whether to show transition animation | *boolean* | `true` |
| z-index | Keyboard z-index | *number* | `100` |
| z-index | Keyboard z-index | *string \| number* | `100` |
| extra-key | Content of bottom left key | *string* | `''` |
| close-button-text | Close button text | *string* | `-` |
| delete-button-text | Delete button text | *string* | `delete` |

View File

@ -147,7 +147,7 @@ export default {
| title | 键盘标题 | *string* | - |
| maxlength `v2.0.2` | 输入值最大长度 | *string \| number* | - |
| transition | 是否开启过场动画 | *boolean* | `true` |
| z-index | 键盘 z-index | *number* | `100` |
| z-index | 键盘 z-index | *string \| number* | `100` |
| extra-key | 左下角按键内容 | *string* | `''` |
| close-button-text | 关闭按钮文字,空则不展示 | *string* | `-` |
| delete-button-text | 删除按钮文字 | *string* | `删除` |

View File

@ -24,7 +24,7 @@ export default createComponent({
props: {
show: Boolean,
title: String,
zIndex: Number,
zIndex: [Number, String],
closeButtonText: String,
deleteButtonText: String,
theme: {

View File

@ -57,7 +57,7 @@ export default {
| Attribute | Description | Type | Default |
|------|------|------|------|
| offset-top | Offset top | *number* | `0` |
| z-index | z-index when sticky | *number* | `99` |
| z-index | z-index when sticky | *string \| number* | `99` |
| container | Container DOM | *HTMLElement* | - |
### Events

View File

@ -67,7 +67,7 @@ export default {
| 参数 | 说明 | 类型 | 默认值 |
|------|------|------|------|
| offset-top | 吸顶时与顶部的距离,单位`px` | *number* | `0` |
| z-index | 吸顶时的 z-index | *number* | `99` |
| z-index | 吸顶时的 z-index | *string \| number* | `99` |
| container | 容器对应的 HTML 节点 | *HTMLElement* | - |
### Events

View File

@ -17,7 +17,7 @@ export default createComponent({
],
props: {
zIndex: Number,
zIndex: [Number, String],
container: null,
offsetTop: {
type: Number,

View File

@ -161,7 +161,7 @@ export default {
| v-model | Identifier of current tab | *string \| number* | `0` |
| fixed | Whether to fixed bottom | *boolean* | `true` |
| border | Whether to show border | *boolean* | `true` |
| z-index | Z-index | *number* | `1` |
| z-index | Z-index | *string \| number* | `1` |
| active-color | Color of active tab item | *string* | `#1989fa` |
| inactive-color | Color of inactive tab item | *string* | `#7d7e80` |
| route | Whether to enable route mode | *boolean* | `false` |

View File

@ -168,7 +168,7 @@ export default {
| v-model | 当前选中标签的名称或索引值 | *string \| number* | `0` |
| fixed | 是否固定在底部 | *boolean* | `true` |
| border | 是否显示外边框 | *boolean* | `true` |
| z-index | 元素 z-index | *number* | `1` |
| z-index | 元素 z-index | *string \| number* | `1` |
| active-color | 选中标签的颜色 | *string* | `#1989fa` |
| inactive-color | 未选中标签的颜色 | *string* | `#7d7e80` |
| route | 是否开启路由模式 | *boolean* | `false` |

View File

@ -9,7 +9,7 @@ export default createComponent({
props: {
route: Boolean,
zIndex: Number,
zIndex: [Number, String],
activeColor: String,
inactiveColor: String,
safeAreaInsetBottom: Boolean,