mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +08:00
[new feature] Icon: add more icons (#2604)
This commit is contained in:
parent
1c49a90010
commit
3e27b93351
@ -59,7 +59,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.1.5",
|
"@babel/runtime": "^7.1.5",
|
||||||
"@vant/icons": "1.0.7",
|
"@vant/icons": "1.0.8",
|
||||||
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0-beta.2",
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0-beta.2",
|
||||||
"vue-lazyload": "1.2.3"
|
"vue-lazyload": "1.2.3"
|
||||||
},
|
},
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<van-tabs
|
<van-tabs
|
||||||
v-model="tab"
|
v-model="tab"
|
||||||
sticky
|
sticky
|
||||||
|
:color="BLUE"
|
||||||
>
|
>
|
||||||
<van-tab title="基础图标">
|
<van-tab title="基础图标">
|
||||||
<van-col
|
<van-col
|
||||||
@ -40,6 +41,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import icons from '@vant/icons';
|
import icons from '@vant/icons';
|
||||||
|
import { BLUE } from '../../utils/color';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
i18n: {
|
i18n: {
|
||||||
@ -56,6 +58,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
this.BLUE = BLUE;
|
||||||
this.icons = icons;
|
this.icons = icons;
|
||||||
return {
|
return {
|
||||||
tab: 0
|
tab: 0
|
||||||
@ -65,6 +68,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
@import '../../style/var';
|
||||||
|
|
||||||
.demo-icon {
|
.demo-icon {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
|
|
||||||
@ -92,7 +97,7 @@ export default {
|
|||||||
.van-icon {
|
.van-icon {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
margin: 15px 0;
|
margin: 15px 0;
|
||||||
color: rgb(69, 90, 100);
|
color: @text-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-tab__pane {
|
.van-tab__pane {
|
||||||
|
@ -733,10 +733,10 @@
|
|||||||
eslint-plugin-import "^2.14.0"
|
eslint-plugin-import "^2.14.0"
|
||||||
eslint-plugin-vue "^5.0.0"
|
eslint-plugin-vue "^5.0.0"
|
||||||
|
|
||||||
"@vant/icons@1.0.7":
|
"@vant/icons@1.0.8":
|
||||||
version "1.0.7"
|
version "1.0.8"
|
||||||
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.0.7.tgz#6e2e5583d41ae46b172c9185579d74e2941d1069"
|
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.0.8.tgz#10cf8d691747ae27e3f9f9f025afd7a3c350810d"
|
||||||
integrity sha512-OD2Qc5U8iixaIe2F4lXPKt8Ie67yqGrgwF3m/FJ0NCLSskCfzhF6rsVAVO8WwA0IaQLPCMb2YhEJpTgA9eHZtA==
|
integrity sha512-6q5Jz4Bx9wEIkVrchmhId0q+eoayYLdPqbcByct+jU+T3OhGw3bxCRpAvC+nq0hlqtTQL1dyMWDbOOjMO2GzZg==
|
||||||
|
|
||||||
"@vant/markdown-loader@^1.0.3":
|
"@vant/markdown-loader@^1.0.3":
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user