0.0.50 • Published 2 years ago

k-vue3-comp v0.0.50

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Description

A Simple Components Library For Vue3

Install

npm i k-vue3-comp

Use

  • Global import
// main.ts
import { createApp } from "vue";
import App from "./App.vue";
import KUI from "k-vue3-comp";

const app = createApp(App);
app.use(KUI);
app.mount(document.getElementById("app") as HTMLElement);
// App.vue
<template>
  <!-- There will be no type prompt -->
  <BackTop :target="backTopNode" />
</template>

<script setup lang="ts">
import { ref, onMounted } from "vue";

const backTopNode = ref();
onMounted(() => {
  backTopNode.value = document.getElementsByTagName("main")[0];
});
</script>

<style lang="less" scoped></style>
  • Local import
// App.vue
<template>
  <BackTop :target="backTopNode" />
</template>

<script setup lang="ts">
import { onMounted, ref } from "vue";
import { BackTop } from "k-vue3-comp";

const backTopNode = ref();
onMounted(() => {
  backTopNode.value = document.getElementsByTagName("main")[0];
});
</script>

<style lang="less" scoped></style>

Menu

├─aside                侧边栏
├─assets               静态文件
│ ├─icon               svg图标
│ └─img                图片
├─avatar               头像
├─back-top             返回顶部
├─button               按钮
├─card                 卡片
├─checkbox             多选框
├─color-picker         颜色选择器
├─container            布局容器
├─counter              计数器
├─dialog               对话框
├─empty                空状态
├─fold-panel           折叠面板
│ └─fold-panel-item    折叠面板项
├─footer               页脚
├─form                 表单
│ └─form-item          表单项
├─header               页眉
├─input                输入框
├─lazy-load-img        懒加载图片
├─loading              加载中
├─main                 主体
├─menu                 菜单栏
│ ├─menu-item          菜单项
│ └─sub-menu           二级菜单
├─pagination           分页
├─popup                弹窗
├─progress             进度条
├─radio                单选框
├─select               下拉框
├─skeleton             骨架屏
├─slide-show           幻灯片
├─slider               滑块
├─switch               开关
├─table                表格
├─tip                  提示
└─upload               上传
index.d.ts             声明文件
index.ts               组件导出入口
package.json           依赖项及版本
README.md              说明
0.0.50

2 years ago

0.0.49

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago

0.0.46

2 years ago

0.0.45

2 years ago

0.0.44

2 years ago

0.0.43

2 years ago

0.0.42

2 years ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago