@yuke_2022/yk-ui
v0.0.1-beta.21
Published
YK UI - A Vue.js 3 UI library, @yuke_2022/yk-ui
Downloads
8
Readme
myUI
项目初始化
npm install
项目启动
npm run dev
项目打包
npm run build
运行单元测试 Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e
before
deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint
引入
import MyUI from "packages";
const app = createApp(App).use(MyUI).mount("#app");
Button 按钮
<template>
<YkButton>确认</YkButton>
</template>
Input 输入框
<script setup lang="ts">
import { ref } from "vue";
const text = ref("")
</script>
<template>
<YkInput v-model="text" prefix="金额" suffix="元"></YkInput>
</template>