@openvort/vort-ui 1.0.1 → 1.0.2
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/LICENSE +1 -1
- package/README.md +10 -60
- package/dist/index.d.ts +15 -15
- package/dist/style.css +1 -1
- package/dist/vort-ui.es.js +2571 -2557
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @openvort/vort-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
OpenVort UI:融合 Ant Design 5.x 精致视觉与 Element Plus 开发体验的企业级 Vue 3 组件库。
|
|
4
4
|
|
|
5
5
|
## 特性
|
|
6
6
|
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
# npm
|
|
19
|
-
npm install @
|
|
19
|
+
npm install @openvort/vort-ui
|
|
20
20
|
|
|
21
21
|
# pnpm
|
|
22
|
-
pnpm add @
|
|
22
|
+
pnpm add @openvort/vort-ui
|
|
23
23
|
|
|
24
24
|
# yarn
|
|
25
|
-
yarn add @
|
|
25
|
+
yarn add @openvort/vort-ui
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## 快速开始
|
|
@@ -32,8 +32,8 @@ yarn add @vortmall/ui
|
|
|
32
32
|
```typescript
|
|
33
33
|
// main.ts
|
|
34
34
|
import { createApp } from 'vue'
|
|
35
|
-
import VortUI from '@
|
|
36
|
-
import '@
|
|
35
|
+
import VortUI from '@openvort/vort-ui'
|
|
36
|
+
import '@openvort/vort-ui/styles'
|
|
37
37
|
|
|
38
38
|
const app = createApp(App)
|
|
39
39
|
app.use(VortUI)
|
|
@@ -43,8 +43,8 @@ app.mount('#app')
|
|
|
43
43
|
### 按需引入
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
|
-
import { Button, Input } from '@
|
|
47
|
-
import '@
|
|
46
|
+
import { Button, Input } from '@openvort/vort-ui'
|
|
47
|
+
import '@openvort/vort-ui/styles'
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### 自动导入(推荐)
|
|
@@ -52,7 +52,7 @@ import '@vortmall/ui/styles'
|
|
|
52
52
|
```typescript
|
|
53
53
|
// vite.config.ts
|
|
54
54
|
import Components from 'unplugin-vue-components/vite'
|
|
55
|
-
import { VortResolver } from '@
|
|
55
|
+
import { VortResolver } from '@openvort/vort-ui/resolver'
|
|
56
56
|
|
|
57
57
|
export default defineConfig({
|
|
58
58
|
plugins: [
|
|
@@ -110,56 +110,6 @@ export default defineConfig({
|
|
|
110
110
|
- Notification 通知
|
|
111
111
|
- ... 更多
|
|
112
112
|
|
|
113
|
-
## 开发
|
|
114
|
-
|
|
115
|
-
### 同步组件
|
|
116
|
-
|
|
117
|
-
从 Vort-Admin 同步最新组件:
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
pnpm sync:components
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
从 Vort-Admin 同步演示页面:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
pnpm sync:demo
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
同步所有:
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
pnpm sync:all
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### 本地开发
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
pnpm dev
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### 构建库
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
pnpm build:lib
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### 构建演示站
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
pnpm build:demo
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### 发布到 npm
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
# 准备发布(同步、检查、构建)
|
|
157
|
-
pnpm publish:prepare
|
|
158
|
-
|
|
159
|
-
# 发布
|
|
160
|
-
npm publish --access public
|
|
161
|
-
```
|
|
162
|
-
|
|
163
113
|
## 浏览器支持
|
|
164
114
|
|
|
165
115
|
现代浏览器和 IE11+(需要 polyfills)
|
package/dist/index.d.ts
CHANGED
|
@@ -62,9 +62,9 @@ footer: boolean;
|
|
|
62
62
|
title: string;
|
|
63
63
|
mask: boolean;
|
|
64
64
|
width: DialogWidth_2;
|
|
65
|
-
open: boolean;
|
|
66
65
|
closable: boolean;
|
|
67
66
|
keyboard: boolean;
|
|
67
|
+
open: boolean;
|
|
68
68
|
zIndex: number;
|
|
69
69
|
maskClosable: boolean;
|
|
70
70
|
okText: string;
|
|
@@ -80,9 +80,9 @@ dialogRef: HTMLDivElement;
|
|
|
80
80
|
|
|
81
81
|
declare const __VLS_component_12: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
|
|
82
82
|
type: DividerType;
|
|
83
|
-
orientation: Orientation;
|
|
84
83
|
dashed: boolean;
|
|
85
84
|
plain: boolean;
|
|
85
|
+
orientation: Orientation;
|
|
86
86
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
87
87
|
|
|
88
88
|
declare const __VLS_component_13: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -98,11 +98,11 @@ push: number | false;
|
|
|
98
98
|
footer: boolean;
|
|
99
99
|
mask: boolean;
|
|
100
100
|
width: number | string;
|
|
101
|
-
open: boolean;
|
|
102
101
|
height: number | string;
|
|
103
102
|
closable: boolean;
|
|
104
103
|
placement: DrawerPlacement_2;
|
|
105
104
|
keyboard: boolean;
|
|
105
|
+
open: boolean;
|
|
106
106
|
zIndex: number;
|
|
107
107
|
maskClosable: boolean;
|
|
108
108
|
contentBg: string;
|
|
@@ -138,9 +138,9 @@ checked: boolean;
|
|
|
138
138
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
139
139
|
|
|
140
140
|
declare const __VLS_component_19: DefineComponent<Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
141
|
-
"update:modelValue": (value: string) => any;
|
|
141
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
142
142
|
}, string, PublicProps, Readonly<Props_20> & Readonly<{
|
|
143
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
143
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
144
144
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
145
145
|
|
|
146
146
|
declare const __VLS_component_2: DefineComponent<Props, {
|
|
@@ -445,16 +445,16 @@ hide: () => void;
|
|
|
445
445
|
updatePosition: () => Promise<void>;
|
|
446
446
|
visible: Ref<boolean, boolean>;
|
|
447
447
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
448
|
-
confirm: (e: MouseEvent) => any;
|
|
449
448
|
cancel: (e: MouseEvent) => any;
|
|
450
449
|
"update:open": (open: boolean) => any;
|
|
451
450
|
openChange: (open: boolean) => any;
|
|
451
|
+
confirm: (e: MouseEvent) => any;
|
|
452
452
|
afterOpen: () => any;
|
|
453
453
|
}, string, PublicProps, Readonly<Props_38> & Readonly<{
|
|
454
|
-
onConfirm?: ((e: MouseEvent) => any) | undefined;
|
|
455
454
|
onCancel?: ((e: MouseEvent) => any) | undefined;
|
|
456
455
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
457
456
|
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
457
|
+
onConfirm?: ((e: MouseEvent) => any) | undefined;
|
|
458
458
|
onAfterOpen?: (() => any) | undefined;
|
|
459
459
|
}>, {
|
|
460
460
|
title: string;
|
|
@@ -528,8 +528,8 @@ onClose?: ((item: TagItem_2, index: number) => any) | undefined;
|
|
|
528
528
|
"onUpdate:modelValue"?: ((value: TagItem_2[]) => any) | undefined;
|
|
529
529
|
onDragEnd?: ((value: TagItem_2[]) => any) | undefined;
|
|
530
530
|
}>, {
|
|
531
|
-
draggable: boolean;
|
|
532
531
|
bordered: boolean;
|
|
532
|
+
draggable: boolean;
|
|
533
533
|
showDragIcon: boolean;
|
|
534
534
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
535
535
|
|
|
@@ -559,23 +559,23 @@ floatingRef: HTMLDivElement;
|
|
|
559
559
|
|
|
560
560
|
declare const __VLS_component_48: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
561
561
|
change: (info: UploadChangeInfo) => any;
|
|
562
|
-
remove: (file: UploadFile) => any;
|
|
563
562
|
drop: (event: DragEvent) => any;
|
|
564
563
|
preview: (file: UploadFile) => any;
|
|
565
564
|
"update:fileList": (fileList: UploadFile[]) => any;
|
|
566
565
|
"update:file-list": (fileList: UploadFile[]) => any;
|
|
567
566
|
beforeUpload: (file: File, fileList: File[]) => any;
|
|
567
|
+
remove: (file: UploadFile) => any;
|
|
568
568
|
download: (file: UploadFile) => any;
|
|
569
569
|
"update:beforeUpload": (value: (file: File, fileList: File[]) => boolean | Promise<boolean | File>) => any;
|
|
570
570
|
"update:customRequest": (value: (options: UploadRequestOption) => void) => any;
|
|
571
571
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
572
572
|
onChange?: ((info: UploadChangeInfo) => any) | undefined;
|
|
573
|
-
onRemove?: ((file: UploadFile) => any) | undefined;
|
|
574
573
|
onDrop?: ((event: DragEvent) => any) | undefined;
|
|
575
574
|
onPreview?: ((file: UploadFile) => any) | undefined;
|
|
576
575
|
"onUpdate:fileList"?: ((fileList: UploadFile[]) => any) | undefined;
|
|
577
576
|
"onUpdate:file-list"?: ((fileList: UploadFile[]) => any) | undefined;
|
|
578
577
|
onBeforeUpload?: ((file: File, fileList: File[]) => any) | undefined;
|
|
578
|
+
onRemove?: ((file: UploadFile) => any) | undefined;
|
|
579
579
|
onDownload?: ((file: UploadFile) => any) | undefined;
|
|
580
580
|
"onUpdate:beforeUpload"?: ((value: (file: File, fileList: File[]) => boolean | Promise<boolean | File>) => any) | undefined;
|
|
581
581
|
"onUpdate:customRequest"?: ((value: (options: UploadRequestOption) => void) => any) | undefined;
|
|
@@ -600,21 +600,21 @@ inputRef: HTMLInputElement;
|
|
|
600
600
|
|
|
601
601
|
declare const __VLS_component_49: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
602
602
|
change: (info: UploadChangeInfo) => any;
|
|
603
|
-
remove: (file: UploadFile) => any;
|
|
604
603
|
drop: (event: DragEvent) => any;
|
|
605
604
|
preview: (file: UploadFile) => any;
|
|
606
605
|
"update:fileList": (fileList: UploadFile[]) => any;
|
|
607
606
|
beforeUpload: (file: File, fileList: File[]) => any;
|
|
607
|
+
remove: (file: UploadFile) => any;
|
|
608
608
|
download: (file: UploadFile) => any;
|
|
609
609
|
"update:beforeUpload": (value: (file: File, fileList: File[]) => boolean | Promise<boolean | File>) => any;
|
|
610
610
|
"update:customRequest": (value: (options: UploadRequestOption) => void) => any;
|
|
611
611
|
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
612
612
|
onChange?: ((info: UploadChangeInfo) => any) | undefined;
|
|
613
|
-
onRemove?: ((file: UploadFile) => any) | undefined;
|
|
614
613
|
onDrop?: ((event: DragEvent) => any) | undefined;
|
|
615
614
|
onPreview?: ((file: UploadFile) => any) | undefined;
|
|
616
615
|
"onUpdate:fileList"?: ((fileList: UploadFile[]) => any) | undefined;
|
|
617
616
|
onBeforeUpload?: ((file: File, fileList: File[]) => any) | undefined;
|
|
617
|
+
onRemove?: ((file: UploadFile) => any) | undefined;
|
|
618
618
|
onDownload?: ((file: UploadFile) => any) | undefined;
|
|
619
619
|
"onUpdate:beforeUpload"?: ((value: (file: File, fileList: File[]) => boolean | Promise<boolean | File>) => any) | undefined;
|
|
620
620
|
"onUpdate:customRequest"?: ((value: (options: UploadRequestOption) => void) => any) | undefined;
|
|
@@ -642,12 +642,12 @@ size: "default" | "small";
|
|
|
642
642
|
|
|
643
643
|
declare const __VLS_component_50: DefineComponent<Props_49, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
644
644
|
change: (key: string) => any;
|
|
645
|
-
edit: (targetKey: string | MouseEvent, action: "
|
|
645
|
+
edit: (targetKey: string | MouseEvent, action: "add" | "remove") => any;
|
|
646
646
|
"update:activeKey": (key: string) => any;
|
|
647
647
|
tabClick: (key: string, event: MouseEvent) => any;
|
|
648
648
|
}, string, PublicProps, Readonly<Props_49> & Readonly<{
|
|
649
649
|
onChange?: ((key: string) => any) | undefined;
|
|
650
|
-
onEdit?: ((targetKey: string | MouseEvent, action: "
|
|
650
|
+
onEdit?: ((targetKey: string | MouseEvent, action: "add" | "remove") => any) | undefined;
|
|
651
651
|
"onUpdate:activeKey"?: ((key: string) => any) | undefined;
|
|
652
652
|
onTabClick?: ((key: string, event: MouseEvent) => any) | undefined;
|
|
653
653
|
}>, {
|
|
@@ -2517,9 +2517,9 @@ onOk?: (() => any) | undefined;
|
|
|
2517
2517
|
title: string;
|
|
2518
2518
|
type: ConfirmDialogType_2;
|
|
2519
2519
|
width: number | string;
|
|
2520
|
-
open: boolean;
|
|
2521
2520
|
closable: boolean;
|
|
2522
2521
|
keyboard: boolean;
|
|
2522
|
+
open: boolean;
|
|
2523
2523
|
zIndex: number;
|
|
2524
2524
|
content: string;
|
|
2525
2525
|
maskClosable: boolean;
|