cxz-ui
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

cxz-ui

基于 Element Plus 组件库二次封装

准备工作

项目中需要先安装Vue3Element Plus

安装

pnpm i cxz-ui

使用

  • 在入口文件中导入样式
import 'cxz-ui/es/style.css'
  • 使用组件
<template>
  <CxzButton type="primary" :debounceWait="2000" @click="handleClick">
    防抖按钮
  </CxzButton>
  <div>点击{{ count }}次</div>
</template>

<script setup lang="ts">
import { CxzButton } from 'cxz-ui'
import { ref } from 'vue'

const count = ref(0)

const handleClick = () => {
  count.value++
}
</script>

Package Sidebar

Install

npm i cxz-ui

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

525 kB

Total Files

567

Last publish

Collaborators

  • cxzhub