1.1.8 • Published 4 months ago

kidney-wxapp-public-components v1.1.8

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

凯德尼公共组件-不涉及业务-即接口等方法

具体看components文件夹中md文件

上传npm 必先 npm run build

npm version patch 如 0.0.1 npm version minor 如 0.1.0 npm version major 如 1.0.0 npm login 登录 npm who am i 检查是否已经登录 npm publish 发布

privacy-agreement 隐私协议弹框组件

*暴露的方法
disagree  不同意事件
agree  同意事件

双滚动组件

@desc 父子组件嵌套,形成双滚动条的组件,用来解决,父组件滚动结束,子组件粘性定位,由子组件进行数据滚动
@zhuyi 父组件最好不要加上刷新事件 【ios不太优化,因为他的回弹效果】

superset-scroll 父滚动组件

  • 属性:
    isRefresh Boolean类型 是否有刷新能力 setRefreshState Boolean类型 设置刷新状态 isConsole 【Boolean类型 设置打印console】
  • 具名slot: double_header header内容 double_content 一般放子滚动组件
  • 暴露方法: getSubsetScroll : 获取子组件是否可以滚动的函数 返回值为 intersectionRatio 【获取id为superset_header的交叉比】 refreshDoubleEvent : 刷新函数

subset-scroll 子滚动组件

注意

1,父子组件不可同时有刷新状态
2,父组件没有回到顶部参数【考虑子组件滚动的问题】
3,父组件没有加载事件
4,当父组件没有滚动时,子组件就在视口中,最好设置子组件有刷新父组件没有【事件触发问题,】

可拖拽组件 draggable

属性:使用了小程序 movable-area 和 movable-view 组件的属性 混合使用 isConsole 【Boolean类型 设置打印console】 scale_area 对应 movable-area 中的 scale-area 对应 movable-view 中的 属性 direction:direction inertia:inertia out_of_bounds:out-of-bounds x:x y:y damping:damping friction:friction disabled:disabled scale:scale scale_min:scale-min scale_max:scale-max scale_value:scale-value animation:animation boundary:{lr:30,tb:0} 具名slot: parent movable-area内部 child movable-view内部 * 外部可影响内部的class名 custom-parent-class:针对 movable-area custom-child-class: 针对 movable-view

1.1.8

4 months ago

1.1.7

5 months ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago