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
+1 -1
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
+1 -1
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
+1 -1
View File
@@ -17,7 +17,7 @@ export default createComponent({
],
props: {
zIndex: Number,
zIndex: [Number, String],
container: null,
offsetTop: {
type: Number,