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

@xbcx/component

v2.3.12

Published

try to build components by this tools

Downloads

96

Readme

@xbcx/component

数据可视化组件整合

NPM version

补丁记录

2.3.0

  • 修改了 AniComponent 的代码,使之与 Vue 的 component 用法保持一致, 现在需要在 beforeTransformOut 之类的方法中接收传入的第一个参数, 作为动画的 dom 来完成动画,其他的内容和历史版本保持一致

使用

  1. npm install @xbcx/component
  2. import xc from '@xbcx/component'Vue.use(xc);
  3. 对照文档复制代码过去

开发

  1. git拉去代码
  2. npm run serve运行test目录下的代码运行
  3. 源码在src目录,进行调试
  4. test目录下App.vue会引用view目录的功能vue来针对不同功能进行查看

设计思路

  • 用户用xc开头的标签来使用
  • 灵活的自定义内容由插槽包裹,组件包裹插槽。组合dom更加自由
  • 用户只关心组件插槽内的样式即可。
  • 数据影响插槽,不传入组件,(通过数据去决定内容,自定义内容会受限)
  • 嵌套组件,细化拆分。
  • 组件内部的特征样式由子组件封装(特征样式就是该组件的特征,功能点)

注意事项

  • 父组件需要在export中申明子组件为childs才能被main.js注册。
  • 注意所有component要适配父组件的大小
  • 注意要兼容以前使用改该component的项目

遗漏点

  • 应该有scss变量,全局都是相对大小和一些主题设置
  • 图片资源未整合
  • tree shaking
  • 功能待补全