File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed
products/tdesign-mobile-vue/src/sticky Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { PropType } from 'vue';
1010export default {
1111 /** 指定容器对应的NodesRef节点为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置 */
1212 container : {
13- type : Object as PropType < TdStickyProps [ 'container' ] > ,
13+ type : [ String , Object ] as PropType < TdStickyProps [ 'container' ] > ,
1414 } ,
1515 /** 是否禁用组件 */
1616 disabled : Boolean ,
Original file line number Diff line number Diff line change 66
77name | type | default | description | required
88-- | -- | -- | -- | --
9- container | Object | - | Typescript: ` Element ` | N
9+ container | String / Object | - | Typescript: ` Element ` | N
1010disabled | Boolean | false | \- | N
1111offsetTop | String / Number | 0 | \- | N
1212zIndex | Number | 99 | \- | N
13- onScroll | Function | | Typescript: ` (context: { scrollTop: number, isFixed: boolean }) => void ` <br /> | N
13+ onScroll | Function | | Typescript: ` (context: { scrollTop: number, isFixed: boolean }) => void ` <br /> | N
1414
1515### Sticky Events
1616
Original file line number Diff line number Diff line change 66
77名称 | 类型 | 默认值 | 描述 | 必传
88-- | -- | -- | -- | --
9- container | Object | - | 指定容器对应的NodesRef节点为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置。TS 类型:` Element ` | N
9+ container | String / Object | - | 指定容器对应的NodesRef节点为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置。TS 类型:` Element ` | N
1010disabled | Boolean | false | 是否禁用组件 | N
1111offsetTop | String / Number | 0 | 吸顶时与顶部的距离,单位` px ` | N
1212zIndex | Number | 99 | 吸顶时的 z-index | N
Original file line number Diff line number Diff line change @@ -115451,6 +115451,7 @@
115451115451 "field_category": 1,
115452115452 "field_name": "container",
115453115453 "field_type": [
115454+ "1",
115454115455 "8"
115455115456 ],
115456115457 "field_default_value": "",
@@ -115476,6 +115477,7 @@
115476115477 "Vue(Mobile)"
115477115478 ],
115478115479 "field_type_text": [
115480+ "String",
115479115481 "Object"
115480115482 ]
115481115483 },
You can’t perform that action at this time.
0 commit comments