quail-ui 0.0.10 → 0.1.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 +37 -11
- package/dist/index.js +174 -174
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,18 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Quail UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Vue3 UI library for [Quail](https://quail.ink).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm install quail-ui
|
|
9
|
+
```
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
or with yarn
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
```bash
|
|
14
|
+
yarn add quail-ui
|
|
15
|
+
```
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Init Quail UI in your main.js file.
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import { createApp } from 'vue'
|
|
23
|
+
import { QuailUI, Icons } from 'quail-ui'
|
|
24
|
+
|
|
25
|
+
// import style
|
|
26
|
+
import 'quail-ui/dist/style.css'
|
|
27
|
+
|
|
28
|
+
// ...
|
|
29
|
+
|
|
30
|
+
const app = createApp(App)
|
|
31
|
+
app.use(QuailUI)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Use the components in your .vue files.
|
|
35
|
+
|
|
36
|
+
```vue
|
|
37
|
+
<template>
|
|
38
|
+
<div class="image-uploader" :class="rounded? 'rounded':''">
|
|
39
|
+
<QLoading v-if="loading" class="loading-mask"/>
|
|
40
|
+
<QIconCamera class="icon"/>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
```
|
|
14
44
|
|
|
15
|
-
1. Disable the built-in TypeScript Extension
|
|
16
|
-
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
-
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|