# yl-custon-components **Repository Path**: npm_yolo/yl-custon-components ## Basic Information - **Project Name**: yl-custon-components - **Description**: npm的自定义组件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-22 - **Last Updated**: 2024-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## vite+vue3发布npm包 ### 使用vite初始化项目 pnpm create vite 输入包名称 选择vue 选择ts cd 到项目目录中 pnpm install ### 注册组件 //引入公用组件库 import 'yl-custon-components/dist/style.css'; import { custonTable } from 'yl-custon-components/index.js'; //初始化组件 app.component('CustonTable', custonTable); ### 使用组件 ``` ``` ``` tableHeader:{ key: "systemUser", data: [], } ```