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

broad-ui

v0.0.1

Published

Broad UI

Downloads

2

Readme

Broad-UI

介绍

一个基于 Pl Vue 开发的 UI 组件库,不受任何框架的束缚,可进行原生操作。不需要考虑任何技术栈,开箱即用。

主要目的:为解决项目开发中使用框架不统一,导致开发效率低、代码复用率低、代码维护性差等问题。

性能

因为该组件库是基于 Pl Vue 开发的,与 Svelte 一样,我们省去了虚拟 DOM 的比较,直接更新 DOM。更多响应式更新等相关问题请前往 Pl Vue

组件

一般组件

import { useComponent } from 'pl-vue';
import Component from 'broad-ui/comp/Component';

//                          组件     props
const node = useComponent(Component, {});
document.getElementById('container').appendChild(node);

使用组件内置方法

import { useComponent } from 'broad-ui/utils';
import Component, { ComponentExpose } from 'broad-ui/comp/Component';
import { ref } from 'pl-vue';

const compRef = ref<ComponentExpose>();
const node = useComponent(Component, { ref: compRef });
document.getElementById('container').appendChild(node);
compRef.value.method();  // 调用组件提供方法

继承组件重写

import Component from 'broad-ui/comp/Component';
import { useComponent } from 'pl-vue';

class MyComponent extends Component {
  mathed() {
    // 某些方法计算可能存在问题,请继承重写
    // code...
  }
}

useComponent(MyComponent, {});

工具

工具函数 导入即用,API 无任何依赖项。