npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kidney-wxapp-public-components

v1.2.1

Published

凯德尼公共组件

Downloads

43

Readme

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

具体看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 发布 npm config list 查看当前生效的配置 npm config ls -l 更详细 2FA 认证【一次配置项目全局通用,指的是系统全局】

Windows (PowerShell)

echo "//registry.npmjs.org/:_authToken=你的token" | Out-File -Append -Encoding utf8 $env:USERPROFILE.npmrc

macOS / Linux

echo "//registry.npmjs.org/:_authToken=你的token" >> ~/.npmrc

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 子滚动组件

  • 属性:
    isRefresh [ Boolean类型 是否有刷新能力 ]
    intersectionRatio [ Number类型 {0~1} id为double_header_id元素的交叉比 大于0 子集不可以滚动 == 0 可以滚动] rlSubsetObj [ Object类型 设置刷新,加载状态 ]
    scrollTop [ Nmuber类型 设置滚动条条位置]、 isConsole 【Boolean类型 设置打印console】
  • 暴露方法: loadSubsetEvent : 加载函数 refreshSubsetEvent : 刷新函数

注意

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

kidney-machine-module 凯德尼机器模块

machine-dialysis 组件 透透腹透机-腹透

暴露方法有:onTTDialysisDetails 【阶段治疗详情 日,夜,普通阶段】 onTTPrescriptionDetails【处方详情】