kui-vue 5.0.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -12
- package/README.zh-CN.md +117 -0
- package/dist/index.js +2 -2
- package/es/index.js +465 -281
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/de.js +1 -1
- package/lib/locale/el.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/fr.js +1 -1
- package/lib/locale/it.js +1 -1
- package/lib/locale/ja.js +1 -1
- package/lib/locale/ko.js +1 -1
- package/lib/locale/ru.js +1 -1
- package/lib/locale/th.js +1 -1
- package/lib/locale/uk.js +1 -1
- package/lib/locale/vi.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/package.json +6 -6
- package/style/index.css +2 -2
- package/types/anchor/{Anchor.d.ts → anchor.d.ts} +9 -0
- package/types/button/{Button.d.ts → button.d.ts} +3 -2
- package/types/carousel/{Carousel.d.ts → carousel.d.ts} +0 -13
- package/types/checkbox/checkbox-group.d.ts +9 -7
- package/types/checkbox/{Checkbox.d.ts → checkbox.d.ts} +14 -5
- package/types/checkbox/index.d.ts +1 -1
- package/types/collapse/{Collapse.d.ts → collapse.d.ts} +3 -0
- package/types/color-picker/index.d.ts +9 -7
- package/types/components.d.ts +4 -2
- package/types/const/types.d.ts +7 -5
- package/types/const/var.d.ts +1 -6
- package/types/date-picker/index.d.ts +37 -9
- package/types/descriptions/{Descriptions.d.ts → descriptions.d.ts} +0 -4
- package/types/drawer/index.d.ts +4 -1
- package/types/dropdown/{Dropdown.d.ts → dropdown.d.ts} +9 -0
- package/types/form/{Form.d.ts → form.d.ts} +9 -4
- package/types/form/types.d.ts +0 -1
- package/types/global.d.ts +4 -0
- package/types/input/input-group.d.ts +5 -5
- package/types/input/{Input.d.ts → input.d.ts} +7 -4
- package/types/input/{TextArea.d.ts → textarea.d.ts} +4 -2
- package/types/input-number/index.d.ts +0 -3
- package/types/menu/{Menu.d.ts → menu.d.ts} +3 -3
- package/types/message/index.d.ts +2 -1
- package/types/modal/{Modal.d.ts → modal.d.ts} +22 -0
- package/types/notice/instance.d.ts +7 -1
- package/types/page/index.d.ts +0 -4
- package/types/progress/index.d.ts +0 -4
- package/types/radio/radio-button.d.ts +4 -4
- package/types/radio/radio-group.d.ts +5 -4
- package/types/radio/{Radio.d.ts → radio.d.ts} +0 -4
- package/types/select/{Select.d.ts → select.d.ts} +3 -7
- package/types/spin/index.d.ts +0 -4
- package/types/splitter/index.d.ts +4 -0
- package/types/splitter/splitter-panel.d.ts +35 -0
- package/types/splitter/splitter.d.ts +32 -0
- package/types/switch/index.d.ts +39 -14
- package/types/table/index.d.ts +0 -4
- package/types/tag/index.d.ts +4 -4
- package/types/tree-select/index.d.ts +9 -7
- package/types/upload/index.d.ts +3 -0
- package/types/utils/checked.d.ts +2 -0
- package/vetur/attributes.json +1497 -1381
- package/vetur/tags.json +212 -182
- package/vetur/web-types.json +1643 -1461
- package/types/affix/Affix.d.ts +0 -15
- package/types/alert/Alert.d.ts +0 -19
- package/types/anchor/AnchorLink.d.ts +0 -12
- package/types/avatar/AvatarGroup.d.ts +0 -13
- package/types/backtop/BackTop.d.ts +0 -16
- package/types/badge/Badge.d.ts +0 -18
- package/types/breadcrumb/BreadcrumbItem.d.ts +0 -12
- package/types/button/ButtonGroup.d.ts +0 -12
- package/types/card/Card.d.ts +0 -14
- package/types/carousel/CarouselItem.d.ts +0 -9
- package/types/checkbox/CheckboxGroup.d.ts +0 -19
- package/types/collapse/CollapsePanel.d.ts +0 -12
- package/types/color-picker/ColorPicker.d.ts +0 -28
- package/types/date-picker/DatePicker.d.ts +0 -46
- package/types/descriptions/DescriptionsItem.d.ts +0 -16
- package/types/divider/Divider.d.ts +0 -16
- package/types/drawer/Drawer.d.ts +0 -35
- package/types/dropdown/DropdownButton.d.ts +0 -19
- package/types/empty/Empty.d.ts +0 -13
- package/types/flex/Flex.d.ts +0 -15
- package/types/form/FormItem.d.ts +0 -15
- package/types/grid/GridItem.d.ts +0 -18
- package/types/icon/Icon.d.ts +0 -15
- package/types/image/ImageGroup.d.ts +0 -11
- package/types/image/KImage.d.ts +0 -20
- package/types/input/InputGroup.d.ts +0 -16
- package/types/input-number/InputNumber.d.ts +0 -32
- package/types/layout/sider.d.ts +0 -11
- package/types/loading/loading.d.ts +0 -9
- package/types/menu/MenuDivider.d.ts +0 -9
- package/types/menu/MenuGroup.d.ts +0 -11
- package/types/menu/MenuItem.d.ts +0 -15
- package/types/menu/SubMenu.d.ts +0 -14
- package/types/page/Page.d.ts +0 -27
- package/types/popconfirm/Popconfirm.d.ts +0 -19
- package/types/poptip/Poptip.d.ts +0 -19
- package/types/progress/Progress.d.ts +0 -31
- package/types/radio/RadioButton.d.ts +0 -19
- package/types/radio/RadioGroup.d.ts +0 -20
- package/types/rate/Rate.d.ts +0 -24
- package/types/skeleton/SkeletonAvatar.d.ts +0 -17
- package/types/skeleton/SkeletonButton.d.ts +0 -18
- package/types/skeleton/SkeletonImage.d.ts +0 -16
- package/types/skeleton/SkeletonText.d.ts +0 -16
- package/types/slider/Slider.d.ts +0 -29
- package/types/space/Space.d.ts +0 -17
- package/types/spin/Spin.d.ts +0 -18
- package/types/stat-card/StatCard.d.ts +0 -20
- package/types/stat-card/StatNumber.d.ts +0 -20
- package/types/switch/Switch.d.ts +0 -19
- package/types/table/Table.d.ts +0 -29
- package/types/tabs/TabPanel.d.ts +0 -15
- package/types/tag/Tag.d.ts +0 -18
- package/types/timeline/TimeLine.d.ts +0 -12
- package/types/timeline/TimeLineItem.d.ts +0 -14
- package/types/tooltip/Tooltip.d.ts +0 -20
- package/types/tree/Tree.d.ts +0 -28
- package/types/tree-select/TreeSelect.d.ts +0 -46
- package/types/upload/Upload.d.ts +0 -37
- /package/types/avatar/{Avatar.d.ts → avatar.d.ts} +0 -0
- /package/types/breadcrumb/{Breadcrumb.d.ts → breadcrumb.d.ts} +0 -0
- /package/types/grid/{Grid.d.ts → grid.d.ts} +0 -0
- /package/types/row-col/{Col.d.ts → col.d.ts} +0 -0
- /package/types/row-col/{Row.d.ts → row.d.ts} +0 -0
- /package/types/select/{Option.d.ts → option.d.ts} +0 -0
- /package/types/skeleton/{Skeleton.d.ts → skeleton.d.ts} +0 -0
- /package/types/tabs/{Tabs.d.ts → tabs.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
<h1 align="center">
|
|
7
|
-
|
|
7
|
+
Kui for Vue
|
|
8
8
|
</h1>
|
|
9
9
|
|
|
10
10
|
<div align="center">
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Lightweight Desktop UI Component Library for Vue.js
|
|
13
13
|
|
|
14
14
|
[](https://www.npmjs.org/package/kui-vue)
|
|
15
15
|
[](https://npmjs.org/package/kui-vue)
|
|
16
16
|
[](https://npmjs.org/package/kui-vue)
|
|
17
|
-

|
|
18
|
+

|
|
19
19
|
|
|
20
|
-

|
|
21
21
|
|
|
22
|
-
English | [简体中文](
|
|
22
|
+
English | [简体中文](README.zh-CN.md)
|
|
23
23
|
|
|
24
24
|
</div>
|
|
25
25
|
|
|
@@ -27,7 +27,6 @@ English | [简体中文](./README-zh_CN.md)
|
|
|
27
27
|
|
|
28
28
|
- [Quick Start](https://k-ui.cn/guide/quick-started)
|
|
29
29
|
- [Components Overview](https://k-ui.cn/guide/components)
|
|
30
|
-
- [Customizing Themes](https://k-ui.cn/docs/theme)
|
|
31
30
|
- [Dark Mode](https://k-ui.cn/guide/dark-mode)
|
|
32
31
|
- [Icons](https://k-ui.cn/components/icons)
|
|
33
32
|
- [Internationalization](https://k-ui.cn/guide/language)
|
|
@@ -37,11 +36,11 @@ English | [简体中文](./README-zh_CN.md)
|
|
|
37
36
|
|
|
38
37
|
- Up to 50 high-quality Components.
|
|
39
38
|
- Internationalization Support for Dozens of Languages.
|
|
39
|
+
- Develop with TypeScript
|
|
40
40
|
- Supports Vue.js 3.x
|
|
41
41
|
- Supports SSR
|
|
42
42
|
- Supports [Nuxt.js](https://nuxtjs.org/)
|
|
43
43
|
- Supports Electron
|
|
44
|
-
- Most components and features support IE9 and above browsers, some components and features do not support IE
|
|
45
44
|
|
|
46
45
|
# Install
|
|
47
46
|
|
|
@@ -88,17 +87,28 @@ Using a script tag for global use:
|
|
|
88
87
|
|
|
89
88
|
# 👌 Platform Support
|
|
90
89
|
|
|
91
|
-
|
|
90
|
+
Kui supports all major modern browsers.
|
|
92
91
|
|
|
93
92
|
| [<img alt="chrome" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/chrome/chrome.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/chrome/chrome.png)<br>chrome | [<img alt="firefox" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/firefox/firefox.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/firefox/firefox.png)<br>firefox | [<img alt="safari" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/safari/safari.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/safari/safari.png)<br>safari | [<img alt="IE/Edge" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/edge/edge.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/edge/edge.png)<br> IE/Edge | [<img alt="electron" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/electron/electron.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/electron/electron.png)<br>Electron |
|
|
94
93
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
95
94
|
| latest 2 versions | latest 2 versions | latest 2 versions | Edge | latest 2 versions |
|
|
96
95
|
|
|
97
|
-
#
|
|
96
|
+
# Local Development
|
|
97
|
+
|
|
98
|
+
Clone the repository locally:
|
|
98
99
|
|
|
99
|
-
|
|
100
|
+
```bash
|
|
101
|
+
$ git clone git@github.com:smallerqiu/kui-vue.git
|
|
102
|
+
$ cd kui-vue
|
|
103
|
+
$ npm install
|
|
104
|
+
$ npm start
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Open the browser to visit http://127.0.0.1:7005
|
|
108
|
+
|
|
109
|
+
# Ecosystem Links
|
|
100
110
|
|
|
101
|
-
[
|
|
111
|
+
[Kui for react](https://react.k-ui.cn)
|
|
102
112
|
|
|
103
113
|
# License
|
|
104
114
|
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://k-ui.cn">
|
|
3
|
+
<img width="100" src="https://cdn.chuchur.com/img/logo-kui.svg">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
<h1 align="center">
|
|
7
|
+
Kui for Vue
|
|
8
|
+
</h1>
|
|
9
|
+
|
|
10
|
+
<div align="center">
|
|
11
|
+
|
|
12
|
+
轻量级桌面UI组件库for Vue.js
|
|
13
|
+
|
|
14
|
+
[](https://www.npmjs.org/package/kui-vue)
|
|
15
|
+
[](https://npmjs.org/package/kui-vue)
|
|
16
|
+
[](https://npmjs.org/package/kui-vue)
|
|
17
|
+

|
|
18
|
+

|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
[English](README.md) | 简体中文
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
# 文档
|
|
27
|
+
|
|
28
|
+
- [快速开始](https://k-ui.cn/guide/quick-started)
|
|
29
|
+
- [组件总览](https://k-ui.cn/guide/components)
|
|
30
|
+
- [暗色模式](https://k-ui.cn/guide/dark-mode)
|
|
31
|
+
- [Icons](https://k-ui.cn/components/icons)
|
|
32
|
+
- [国际化](https://k-ui.cn/guide/language)
|
|
33
|
+
- [更新日志](https://k-ui.cn/guide/change-log)
|
|
34
|
+
|
|
35
|
+
# 特性
|
|
36
|
+
|
|
37
|
+
- 50+高质量组件
|
|
38
|
+
- 国际化支持 14 种语言
|
|
39
|
+
- 使用TypeScript开发
|
|
40
|
+
- 支持Vue3.x
|
|
41
|
+
- 支持 SSR
|
|
42
|
+
- 支持 [Nuxt.js](https://nuxtjs.org/)
|
|
43
|
+
- 支持 Electron
|
|
44
|
+
|
|
45
|
+
# 安装
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm install kui-vue --save
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm add kui-vue
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
yarn add kui-vue
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
bun add kui-vue
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
使用脚本标记进行全局使用:
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<!-- import stylesheet -->
|
|
67
|
+
<link rel="stylesheet" href="//unpkg.com/kui-vue/style/index.css" />
|
|
68
|
+
<!-- import kui -->
|
|
69
|
+
<script src="//unpkg.com/kui-vue"></script>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
# 使用
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<template>
|
|
76
|
+
<div>
|
|
77
|
+
<k-button type="primary" @click="test">Primary</k-button>
|
|
78
|
+
</div>
|
|
79
|
+
</template>
|
|
80
|
+
<script setup lang="ts">
|
|
81
|
+
import { message } from "kui-vue";
|
|
82
|
+
const test = () => {
|
|
83
|
+
message.info("Hello kui !");
|
|
84
|
+
};
|
|
85
|
+
</script>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
# 平台支持
|
|
89
|
+
|
|
90
|
+
Kui 支持所有主要的现代浏览器。
|
|
91
|
+
|
|
92
|
+
| [<img alt="chrome" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/chrome/chrome.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/chrome/chrome.png)<br>chrome | [<img alt="firefox" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/firefox/firefox.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/firefox/firefox.png)<br>firefox | [<img alt="safari" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/safari/safari.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/safari/safari.png)<br>safari | [<img alt="IE/Edge" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/edge/edge.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/edge/edge.png)<br> IE/Edge | [<img alt="electron" height="24px" src="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/electron/electron.png" />](https://cdnjs.cloudflare.com/ajax/libs/browser-logos/70.4.0/electron/electron.png)<br>Electron |
|
|
93
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
94
|
+
| latest 2 versions | latest 2 versions | latest 2 versions | Edge | latest 2 versions |
|
|
95
|
+
|
|
96
|
+
# 本地开发
|
|
97
|
+
|
|
98
|
+
克隆仓库到本地:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
$ git clone git@github.com:smallerqiu/kui-vue.git
|
|
102
|
+
$ cd kui-vue
|
|
103
|
+
$ npm install
|
|
104
|
+
$ npm start
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
打开浏览器访问 http://127.0.0.1:7005
|
|
108
|
+
|
|
109
|
+
# 生态
|
|
110
|
+
|
|
111
|
+
[Kui for react](https://react.k-ui.cn)
|
|
112
|
+
|
|
113
|
+
# 协议
|
|
114
|
+
|
|
115
|
+
[MIT](http://opensource.org/licenses/MIT)
|
|
116
|
+
|
|
117
|
+
Copyright (c) 2017-present, Chuchur
|