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

zyd-client-framework

v1.0.37

Published

基于vite + vue3 + element的client端的组件框架

Downloads

47

Readme

zyd-client-framework

Installation

$ npm install -s zyd-client-framework

Import

import { List, ListGroup, LeftSlider, Block, BlockGroup } from 'zyd-client-framework'

List

property

name|explain|type|default|examples -|-|-|-|- title|标题|String||title="标题" desc|副标题|String||desc="副标题" foot|右侧副标题|String||foot="145" isLink|是否显示右侧剪头|Boolean|false|:isLink="false" fun|点击事件调用的方法|Function||:fun="getItem" icon|图标对象,同elementUI Plus的icon使用方法|Object||:icon="plus" showBorder|是否显示行间边框|Boolean|true|:showBorder="false" disabled|是否禁用|Boolean|false|:disabled="true" iconClass|图标css类名|String||iconClass="iconClass" titleClass|标题css类名|String||titleClass="titleClass" descClass|副标题css类名|String||descClass="descClass" footClass|右侧副标题css类名|String||footClass="footClass" itemClass|List元素css类名|String||itemClass="itemClass" maskClass|禁用遮罩层css类名|String||maskClass="maskClass"

examples

<List
  title="title"
  desc="desc"
  foot="foot"
  :isLink="true"
  :fun="()=>{}"
  :icon="IceCreamRound"
  :showBorder="true"
  :disabled="true"
  iconClass="iconClass"
  titleClass="titleClass"
  descClass="descClass"
  footClass="footClass"
  itemClass="itemClass"
  maskClass="maskClass"
></List>

Slot

name|explain -|- icon|图标插槽 title|标题插槽 desc|副标题插槽 foot|右侧副标题插槽

examples

<List>
  <template #icon>
    <component class="listIcon" :is="icon" />
  </template>
  <template #title>title</template>
  <template #desc>desc</template>
  <template #foot>foot</template>
</List>

ListGroup

property

name|explain|type|default|examples -|-|-|-|- title|标题|String||title="标题" disabled|是否禁用|Boolean|false|:disabled="true" titleClass|标题css类名|String||titleClass="titleClass" maskClass|禁用遮罩层css类名|String||maskClass="maskClass"

examples

<ListGroup 
  :disabled="true" 
  maskClass="maskClass" 
  itemClass="itemClass" 
  title="title"
>
  <List />
</ListGroup>

Block

property

name|explain|type|default|examples -|-|-|-|- title|标题|String||title="标题" desc|副标题|String||desc="副标题" foot|右侧副标题|String||foot="145" fun|点击事件调用的方法|Function||:fun="getItem" icon|图标对象,同elementUI Plus的icon使用方法|Object||:icon="plus" showBorder|是否显示行间边框|Boolean|true|:showBorder="false" disabled|是否禁用|Boolean|false|:disabled="true" iconClass|图标css类名|String||iconClass="iconClass" titleClass|标题css类名|String||titleClass="titleClass" descClass|副标题css类名|String||descClass="descClass" footClass|右侧副标题css类名|String||footClass="footClass" itemClass|List元素css类名|String||itemClass="itemClass" maskClass|禁用遮罩层css类名|String||maskClass="maskClass"

examples

<Block
  title="title"
  desc="desc"
  foot="foot"
  :icon="IceCreamRound"
  :showBorder="true"
  :fun="()=>{}"
  :disabled="true"
  iconClass="iconClass"
  titleClass="titleClass"
  descClass="descClass"
  footClass="footClass"
  itemClass="itemClass"
  maskClass="maskClass" 
/>

slot

name|explain -|- icon|图标插槽 title|标题插槽 desc|副标题插槽 foot|右侧副标题插槽

examples

<Block>
  <template #icon>
    <component class="blockIcon" :is="icon" />
  </template>
  <template #title>title</template>
  <template #desc>desc</template>
  <template #foot>foot</template>
</Block>

BlockGroup

property

name|explain|type|default|examples -|-|-|-|- title|标题|String||title="标题" disabled|是否禁用|Boolean|false|:disabled="true"

examples

<BlockGroup groupStyle="margin:0px;" groupClass="groupClass" :disabled="true" title="title">
  <Block />
</BlockGroup>

LeftSlider

property

name|explain|type|default|examples -|-|-|-|- itemClass|List元素css类名|String||itemClass="itemClass" menuClass|右侧按钮菜单css类名|String||menuClass="menuClass" showBorder|是否显示行间边框|Boolean|true|:showBorder="false" transition|滑块动画时长|Number|0.3|:transition="0.1"

<ListGroup>
  <LeftSlider 
    v-for="item in 10"
    :key="item"
    :showBorder="true"
    :transition="0.3"
    itemClass="itemClass"
    menuClass="menuClass"
  >
    <List desc="desc" foot="foot" isLink :fun="()=>{}" :icon="IceCreamRound">
      <template #title>title{{item}}</template>
    </List>
    <template #rightMenu>
      <div style="margin: 0 20px">del</div>
    </template>
  </LeftSlider>
</ListGroup>

slot

name|explain -|- rightMenu|右侧按钮菜单插槽

examples

<template #rightMenu>
  <div style="margin: 0 20px">del</div>
</template>