chore: remove unused deps, fix loading doc

This commit is contained in:
Justineo 2020-09-02 13:33:28 +08:00
parent 5fa16efe79
commit d64014f3b4
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA
5 changed files with 152 additions and 1420 deletions

View File

@ -30,7 +30,7 @@
| 名称 | 类型 | 默认值 | 描述 | | 名称 | 类型 | 默认值 | 描述 |
| -- | -- | -- | -- | | -- | -- | -- | -- |
| `ui` | `string=` | `normal` `m` | [^ui] | | `ui` | `string=` | - | [^ui] |
| `loading` | `boolean` | `false` | 是否处于加载状态。 | | `loading` | `boolean` | `false` | 是否处于加载状态。 |
^^^ui ^^^ui

View File

@ -1,6 +1,6 @@
<template> <template>
<article> <article>
<div> <section>
Custom icon-star: Custom icon-star:
<veui-loading <veui-loading
loading loading
@ -14,21 +14,21 @@
</template> </template>
loading... loading...
</veui-loading> </veui-loading>
</div> </section>
<div> <section>
Custom icon-sun: Custom icon-sync:
<veui-loading loading> <veui-loading loading>
<template #spinner> <template #spinner>
<veui-icon <veui-icon
spin spin
name="sun" name="sync"
/> />
</template> </template>
loading... loading...
</veui-loading> </veui-loading>
</div> </section>
<div> <section>
Custom icon-umbrella: Custom icon-clockwise:
<veui-loading <veui-loading
loading loading
ui="reverse" ui="reverse"
@ -37,20 +37,20 @@
<template #spinner> <template #spinner>
<veui-icon <veui-icon
spin spin
name="umbrella" name="clockwise"
/> />
</template> </template>
loading... loading...
</veui-loading> </veui-loading>
</div> </section>
</article> </article>
</template> </template>
<script> <script>
import { Icon, Loading } from 'veui' import { Icon, Loading } from 'veui'
import 'vue-awesome/icons/sun' import 'veui-theme-dls-icons/sync'
import 'vue-awesome/icons/star' import 'veui-theme-dls-icons/star'
import 'vue-awesome/icons/umbrella' import 'veui-theme-dls-icons/clockwise'
export default { export default {
components: { components: {
@ -65,4 +65,8 @@ export default {
background: #ccc; background: #ccc;
padding: 8px; padding: 8px;
} }
.section {
margin-bottom: 20px;
}
</style> </style>

View File

@ -30,7 +30,7 @@ Using `spinner` slot to replace default loading icon.
| Name | Type | Default | Description | | Name | Type | Default | Description |
| -- | -- | -- | -- | | -- | -- | -- | -- |
| `ui` | `string=` | `normal` `m` | [^ui] | | `ui` | `string=` | - | [^ui] |
| `loading` | `boolean` | `false` | Whether the component is in loading state. | | `loading` | `boolean` | `false` | Whether the component is in loading state. |
^^^ui ^^^ui

1512
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,14 +18,8 @@
"restart": "npm run stop && npm run serve" "restart": "npm run stop && npm run serve"
}, },
"devDependencies": { "devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-plugin-lodash": "^3.3.4", "babel-plugin-lodash": "^3.3.4",
"babel-plugin-transform-runtime": "^6.23.0", "babel-plugin-veui": "^2.0.0-beta.5",
"babel-plugin-veui": "^2.0.0-beta.4",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-2": "^6.24.1",
"cheerio": "^1.0.0-rc.3",
"eslint": "^5.15.1", "eslint": "^5.15.1",
"eslint-config-prettier": "^4.1.0", "eslint-config-prettier": "^4.1.0",
"eslint-config-standard": "^12.0.0", "eslint-config-standard": "^12.0.0",
@ -57,7 +51,6 @@
"puppeteer": "^2.1.1", "puppeteer": "^2.1.1",
"recursive-readdir": "^2.2.2", "recursive-readdir": "^2.2.2",
"recursive-readdir-sync": "^1.0.6", "recursive-readdir-sync": "^1.0.6",
"reduce-css-calc": "^2.1.4",
"rehype-raw": "^2.0.0", "rehype-raw": "^2.0.0",
"rehype-stringify": "^3.0.0", "rehype-stringify": "^3.0.0",
"remark": "^8.0.0", "remark": "^8.0.0",
@ -74,20 +67,19 @@
"stylus-loader": "^3.0.2", "stylus-loader": "^3.0.2",
"unist-util-remove": "^1.0.1", "unist-util-remove": "^1.0.1",
"unist-util-visit": "^1.4.0", "unist-util-visit": "^1.4.0",
"veui": "^2.0.0-beta.4", "veui": "^2.0.0-beta.5",
"veui-loader": "^2.0.0-beta.4", "veui-loader": "^2.0.0-beta.5",
"veui-theme-dls": "^2.0.0-beta.4", "veui-theme-dls": "^2.0.0-beta.5",
"veui-theme-dls-icons": "^2.0.0-beta.4", "veui-theme-dls-icons": "^2.0.0-beta.5",
"vue": "^2.6.11", "vue": "^2.6.12",
"vue-awesome": "^4.1.0", "vue-awesome": "^4.1.0",
"vue-directive-normalizer": "^0.1.0",
"vue-i18n": "^8.16.0", "vue-i18n": "^8.16.0",
"vue-server-renderer": "^2.6.11", "vue-server-renderer": "^2.6.12",
"vue-template-compiler": "^2.6.11", "vue-template-compiler": "^2.6.12",
"vue-windows": "^0.2.4" "vue-windows": "^0.2.4"
}, },
"dependencies": { "dependencies": {
"express": "^4.16.2", "express": "^4.16.2",
"forever": "^3.0.0" "forever": "^3.0.2"
} }
} }