0.1.38 • Published 1 month ago

vue-amazing-ui v0.1.38

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

vue-amazing-ui

该组件库采用 Vue@3.4.19+ TypeScript@5.3.3 + Vite@5.1.4 + Less@4.2.0 实现! 所有组件样式 CSS 均使用 box-sizing: border-box; 模式! 目前共有 55 个常用基础 UI 组件,以及 11 个常用工具函数,并且持续探索更新中...! 开箱即用!

Document & Online preview

Vue Amazing UI

Install & Use

pnpm i vue-amazing-ui
# or
npm install vue-amazing-ui
# or
yarn add vue-amazing-ui

Import and register component

Global

import { createApp } from 'vue'
import App from './App.vue'

import VueAmazingUI from 'vue-amazing-ui'
import 'vue-amazing-ui/css'

const app = createApp(App)
app.use(VueAmazingUI)

Local

<script setup lang="ts">
import { Button } from 'vue-amazing-ui'
import 'vue-amazing-ui/css'
</script>

Use CDN in Project

<script src="https://unpkg.com/vue-amazing-ui@latest"></script>

Project

  • Get the project code
git clone https://github.com/themusecatcher/vue-amazing-ui.git
  • Install dependencies
cd vue-amazing-ui

pnpm i
  • Run project
pnpm dev

Components

Component nameDescriptionsComponent nameDescriptions
Alert警告提示Avatar头像
BackTop回到顶部Badge徽标
Breadcrumb面包屑Button按钮
Card卡片Carousel走马灯
Cascader级联选择Checkbox多选框
Collapse折叠面板Countdown倒计时
DatePicker日期选择Descriptions描述列表
Dialog对话框Divider分割线
Drawer抽屉Ellipsis文本省略
Empty空状态Flex弹性布局
Grid栅格Image图片
Input输入框InputNumber数字输入框
Message全局提示Modal信息提示
Notification通知提醒NumberAnimation数值动画
Pagination分页Popconfirm弹出确认
Popover气泡卡片Progress进度条
QRCode二维码Radio单选框
Rate评分Result结果
Select选择器Slider滑动输入条
Space间距Spin加载中
Statistic统计数值Steps步骤条
Swiper触摸滑动插件Switch开关
Table表格Tabs标签页
Tag标签Textarea文本域
TextScroll文字滚动Timeline时间轴
Tooltip文字提示Upload上传
Video播放器Waterfall瀑布流
Watermark水印----

Details

My CSDN Blogs

Functions

Function nameDescriptionsArguments
dateFormat简单易用的日期格式化函数!(timestamp: number | string | Date, format = 'YYYY-MM-DD HH:mm:ss') => string
requestAnimationFrame针对不同浏览器进行兼容处理!使用方式不变
cancelAnimationFrame针对不同浏览器进行兼容处理!使用方式不变
rafTimeout使用 requestAnimationFrame 实现的定时器函数,等效替代 (setTimeout 和 setInterval)!(func: Function, delay = 0, interval = false) => object
cancelRaf用于取消 rafTimeout 函数!(raf: { id: number }) => void
throttle使用 rafTimeout 实现的节流函数!(fn: Function, delay = 300) => any
debounce使用 rafTimeout 实现的防抖函数!(fn: Function, delay = 300) => any
add消除js加减精度问题的加法函数!(num1: number, num2: number) => number
downloadFile下载文件并自定义文件名!(url: string, name: string) => void
formatNumber数字格式化函数!(value: number | string, precision = 2, separator = ',', decimal = '.', prefix = '', suffix = '') => string
toggleDark一键切换暗黑模式函数!() => void
0.1.38

1 month ago

0.1.37

2 months ago

0.1.36

2 months ago

0.1.35

2 months ago

0.1.34

2 months ago

0.1.33

3 months ago

0.1.32

4 months ago

0.1.31

4 months ago

0.1.30

5 months ago

0.1.29

5 months ago

0.1.28

5 months ago

0.1.27

5 months ago

0.1.25

5 months ago

0.1.26

5 months ago

0.1.20

6 months ago

0.1.21

6 months ago

0.1.22

5 months ago

0.1.23

5 months ago

0.1.24

5 months ago

0.1.18

6 months ago

0.1.19

6 months ago

0.0.40

9 months ago

0.0.41

9 months ago

0.1.10

8 months ago

0.0.42

9 months ago

0.1.11

8 months ago

0.0.43

9 months ago

0.1.12

8 months ago

0.0.44

9 months ago

0.1.13

8 months ago

0.0.45

9 months ago

0.1.14

8 months ago

0.0.46

9 months ago

0.1.15

8 months ago

0.0.47

9 months ago

0.0.37

10 months ago

0.0.38

10 months ago

0.0.39

10 months ago

0.0.30

11 months ago

0.0.31

11 months ago

0.0.32

11 months ago

0.0.33

11 months ago

0.0.34

10 months ago

0.0.35

10 months ago

0.0.36

10 months ago

0.1.0

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.8

8 months ago

0.0.26

12 months ago

0.1.7

8 months ago

0.0.27

12 months ago

0.0.28

11 months ago

0.1.9

8 months ago

0.0.29

11 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.6

8 months ago

0.1.5

9 months ago

0.0.50

9 months ago

0.1.16

8 months ago

0.0.48

9 months ago

0.1.17

8 months ago

0.0.49

9 months ago

0.0.25

12 months ago

0.0.24

12 months ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago