mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Icon template (#1091)
This commit is contained in:
parent
22cff2faec
commit
e73e950662
@ -2,7 +2,9 @@ const path = require('path');
|
|||||||
const config = require('./webpack.dev.js');
|
const config = require('./webpack.dev.js');
|
||||||
const isMinify = process.argv.indexOf('-p') !== -1;
|
const isMinify = process.argv.indexOf('-p') !== -1;
|
||||||
|
|
||||||
module.exports = Object.assign({}, config, {
|
delete config.serve;
|
||||||
|
|
||||||
|
module.exports = Object.assign(config, {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: {
|
entry: {
|
||||||
'vant': './packages/index.js'
|
'vant': './packages/index.js'
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const devConfig = require('./webpack.dev.js');
|
const config = require('./webpack.dev.js');
|
||||||
|
|
||||||
module.exports = Object.assign({}, devConfig, {
|
delete config.serve;
|
||||||
|
|
||||||
|
module.exports = Object.assign(config, {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, '../docs/dist'),
|
path: path.join(__dirname, '../docs/dist'),
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable camelcase */
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { mount, TransitionStub } from '@vue/test-utils';
|
import { mount, TransitionStub } from '@vue/test-utils';
|
||||||
import { renderToString } from '@vue/server-test-utils';
|
import { renderToString } from '@vue/server-test-utils';
|
||||||
|
@ -16,10 +16,9 @@
|
|||||||
|
|
||||||
&__info {
|
&__info {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
left: 50%;
|
left: 100%;
|
||||||
top: -.5em;
|
top: -.5em;
|
||||||
font-size: .5em;
|
font-size: .5em;
|
||||||
margin-left: .8em;
|
|
||||||
padding: 0 .3em;
|
padding: 0 .3em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
min-width: 1.2em;
|
min-width: 1.2em;
|
||||||
@ -28,6 +27,7 @@
|
|||||||
border-radius: .6em;
|
border-radius: .6em;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: $red;
|
background-color: $red;
|
||||||
|
transform: translateX(-50%);
|
||||||
font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
|
font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-family: 'vant-icon';
|
font-family: 'vant-icon';
|
||||||
src: url('./vant-icon-03d6f2.ttf') format('truetype');
|
src: url('./vant-icon-254016.ttf') format('truetype');
|
||||||
}
|
}
|
@ -4,7 +4,7 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-family: 'vant-icon';
|
font-family: 'vant-icon';
|
||||||
src: url('https://img.yzcdn.cn/zanui/icon/vant-icon-03d6f2.ttf') format('truetype');
|
src: url('https://img.yzcdn.cn/zanui/icon/vant-icon-254016.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon {
|
.van-icon {
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user