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 🙏

© 2024 – Pkg Stats / Ryan Hefner

kidney-wxapp-business-components

v1.3.26

Published

凯德尼-小程序业务组件

Downloads

20

Readme

业务组件

1,业务组件-中的组件一定是多小程序使用的 2,业务组件基于ui组件库vant,即小程序必须使用vant组件库

組件描述

chat-module 对话模块

需要全局引入 behaviors_chat

chatBox 对话组件【康复师,医生,营养师】

behaviors: [app.behaviors_chat] 组件获取外部属性 properties chatType: String, //recureHelper 康复师 dietHelper 饮食 doctor 医生 dialog_tid: String, //对话id service_type: String, //判断是单次咨询还是长期管理 9单次咨询 16 处方咨询 history: Boolean, //对话的历史记录, doctorId: String, //医生id lookupObj: Object, //查找聊天记录 requestApi: Object, 组件暴露方法: clickHeadPorTrait 点击头像 dietHelperName 营养师姓名 dietHelperText 营养师公告内容 recureHelperText 康复师公告内容 isCancelConsultation 医生对话类型 doctorName 医生姓名

gunanzhuPopup 关注组件

组件暴露方法: closeGuanzhuPopUp 关闭组件

modifyTel 修改手机号组件

组件获取外部属性 properties oldTel: String, //老手机号 组件暴露方法: uploadTel 修改手机号 onTelClose 关闭组件

voiceAudio 音频组件

组件获取外部属性 properties duration:Object //音频数据 组件暴露方法: myPlayVoice 音频播放or关闭

subscribe-module 订阅模块

openSet 打开小程序设置弹框组件

组件暴露方法: onCancelOpenSet 关闭组件

subscriptionPopup 订阅消息弹框组件

community-module 社区模块

需要全局引入 behaviors_community

community-module 社区组件

组件获取外部属性 properties type_module_active:Number //设置tab选中位置

components/fellow-traveler-type 同路人组件

组件获取外部属性 properties active: Number,//tab选中值 intersectionRatio: Number,//相交比例

components/follow-type 关注组件

组件获取外部属性 properties active: Number,//tab选中值 intersectionRatio:Number,//相交比例

components/latest-type 最新发布组件

组件获取外部属性 properties active: Number,//tab选中值 intersectionRatio: Number,//相交比例

components/recommend-type 推荐组件

组件获取外部属性 properties active: Number,//tab选中值 intersectionRatio:Number,//相交比例

components/post-item 帖子组件

组件获取外部属性 properties infor: Object,//帖子信息

find-module 商城模块

需要全局引入 behaviors_community

find-module 社区组件

tabs 自定义tab组件

组件获取外部属性 properties tabList tab列表 组件暴露方法: onActiveTabs 切换

commodity-list 商品列表组件

kfa-module 肾友会模块

需要全局引入 behaviors_kfa

insurance-module 工具类小程序保险模块

需要全局引入 behaviors_insurance

kf-module 客服模块

上传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 发布 ##注意 1,安装插件要安装在开发区域 2,发布时将dependencies内容注释掉 "dependencies": { "@vant/weapp": "^1.10.12", "crypto-js": "^4.2.0", "dayjs": "^1.11.10", "js-md5": "^0.8.3", "kidney-wxapp-public-components": "^1.1.6" }, 3,各个开发的业务组件用到vant组件时,必须在其json中引入【小程序app.json对于该业务组件库没有效果】 4,如果需要使用本地缓存 名称构成: 如 :kwbc-cm_is_ft_type kwbc 代表组件库名 [kidney-wxapp-business-components] cm 代表组件文件名称[community-module]