mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-22 20:09:46 +08:00
Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
4205840894
@ -4,7 +4,6 @@ var config = {
|
|||||||
'separators': {'descendent': '__', 'modifier': '--'}
|
'separators': {'descendent': '__', 'modifier': '--'}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var reset = require('postcss-css-reset')();
|
|
||||||
|
|
||||||
// https://github.com/trysound/postcss-easy-import
|
// https://github.com/trysound/postcss-easy-import
|
||||||
var partialImport = require('postcss-easy-import')();
|
var partialImport = require('postcss-easy-import')();
|
||||||
@ -25,7 +24,6 @@ module.exports = function (webpack) {
|
|||||||
partialImport,
|
partialImport,
|
||||||
bem,
|
bem,
|
||||||
precss,
|
precss,
|
||||||
autoprefixer,
|
autoprefixer
|
||||||
reset
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -6,7 +6,7 @@ var devConfig = require('./webpack.config.dev.js');
|
|||||||
module.exports = merge(devConfig, {
|
module.exports = merge(devConfig, {
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, '../docs/dist'),
|
path: path.join(__dirname, '../docs/dist'),
|
||||||
publicPath: '/zanui/vue',
|
publicPath: 'https://b.yzcdn.cn/zanui/vue',
|
||||||
filename: '[name].[hash:8].js',
|
filename: '[name].[hash:8].js',
|
||||||
umdNamedDefine: true
|
umdNamedDefine: true
|
||||||
},
|
},
|
||||||
|
@ -124,6 +124,14 @@
|
|||||||
<van-icon name="password-not-view"></van-icon>
|
<van-icon name="password-not-view"></van-icon>
|
||||||
<span>password-not-view</span>
|
<span>password-not-view</span>
|
||||||
</van-col>
|
</van-col>
|
||||||
|
<van-col span="8">
|
||||||
|
<van-icon name="wap-nav"></van-icon>
|
||||||
|
<span>wap-nav</span>
|
||||||
|
</van-col>
|
||||||
|
<van-col span="8">
|
||||||
|
<van-icon name="wap-home"></van-icon>
|
||||||
|
<span>wap-home</span>
|
||||||
|
</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
|
|
||||||
</example-block></section></template>
|
</example-block></section></template>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
</example-block><example-block title="带toolbar的Picker">
|
</example-block><example-block title="带toolbar的Picker">
|
||||||
<van-picker :columns="pickerColumns" show-toolbar="" @change="handlePickerChange" @cancel="handlePickerCancel" @confirm="handlePickerConfirm"></van-picker>
|
<van-picker :title="title" :columns="pickerColumns" show-toolbar="" @change="handlePickerChange" @cancel="handlePickerCancel" @confirm="handlePickerConfirm"></van-picker>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,6 +21,7 @@ const citys = {
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
title: '地区选择',
|
||||||
pickerColumns: [
|
pickerColumns: [
|
||||||
{
|
{
|
||||||
values: Object.keys(citys),
|
values: Object.keys(citys),
|
||||||
|
@ -180,6 +180,14 @@ export default {
|
|||||||
<van-icon name="password-not-view"></van-icon>
|
<van-icon name="password-not-view"></van-icon>
|
||||||
<span>password-not-view</span>
|
<span>password-not-view</span>
|
||||||
</van-col>
|
</van-col>
|
||||||
|
<van-col span="8">
|
||||||
|
<van-icon name="wap-nav"></van-icon>
|
||||||
|
<span>wap-nav</span>
|
||||||
|
</van-col>
|
||||||
|
<van-col span="8">
|
||||||
|
<van-icon name="wap-home"></van-icon>
|
||||||
|
<span>wap-home</span>
|
||||||
|
</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
```
|
```
|
||||||
:::
|
:::
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vant",
|
"name": "vant",
|
||||||
"version": "0.5.7",
|
"version": "0.5.11",
|
||||||
"description": "有赞vue wap组件库",
|
"description": "有赞vue wap组件库",
|
||||||
"main": "lib/vant.js",
|
"main": "lib/vant.js",
|
||||||
"style": "lib/vant-css/index.css",
|
"style": "lib/vant-css/index.css",
|
||||||
@ -19,7 +19,8 @@
|
|||||||
"build:components": "webpack --progress --hide-modules --config build/webpack.components.js",
|
"build:components": "webpack --progress --hide-modules --config build/webpack.components.js",
|
||||||
"build:vant": "webpack --progress --hide-modules --config build/webpack.build.js && webpack --progress --hide-modules --config build/webpack.build.min.js",
|
"build:vant": "webpack --progress --hide-modules --config build/webpack.build.js && webpack --progress --hide-modules --config build/webpack.build.min.js",
|
||||||
"build:example": "node build/genExamples.js",
|
"build:example": "node build/genExamples.js",
|
||||||
"deploy": "npm run deploy:docs && gh-pages -d docs/dist --remote youzan && rimraf docs/dist",
|
"deploy": "npm run deploy:docs && npm run deploy:cdn && gh-pages -d docs/dist --remote youzan && rimraf docs/dist",
|
||||||
|
"deploy:cdn": "superman cdn /zanui/vue docs/dist/*.js docs/dist/*.css",
|
||||||
"deploy:docs": "rimraf docs/dist && npm run build:example && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.prod.js",
|
"deploy:docs": "rimraf docs/dist && npm run build:example && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.prod.js",
|
||||||
"dist": "npm run clean && npm run build:file && npm run lint && npm run build:vant && npm run build:components && npm run build:utils && npm run build:vant-css",
|
"dist": "npm run clean && npm run build:file && npm run lint && npm run build:vant && npm run build:components && npm run build:utils && npm run build:vant-css",
|
||||||
"clean": "rimraf lib && rimraf packages/*/lib",
|
"clean": "rimraf lib && rimraf packages/*/lib",
|
||||||
@ -104,7 +105,6 @@
|
|||||||
"mocha": "^3.2.0",
|
"mocha": "^3.2.0",
|
||||||
"optimize-css-assets-webpack-plugin": "^1.3.0",
|
"optimize-css-assets-webpack-plugin": "^1.3.0",
|
||||||
"postcss": "^5.1.2",
|
"postcss": "^5.1.2",
|
||||||
"postcss-css-reset": "^1.0.2",
|
|
||||||
"postcss-easy-import": "^2.0.0",
|
"postcss-easy-import": "^2.0.0",
|
||||||
"postcss-loader": "^1.3.3",
|
"postcss-loader": "^1.3.3",
|
||||||
"precss": "^1.4.0",
|
"precss": "^1.4.0",
|
||||||
|
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vant-css",
|
"name": "vant-css",
|
||||||
"version": "0.5.7",
|
"version": "0.5.11",
|
||||||
"description": "vant css.",
|
"description": "vant css.",
|
||||||
"main": "lib/index.css",
|
"main": "lib/index.css",
|
||||||
"style": "lib/index.css",
|
"style": "lib/index.css",
|
||||||
@ -18,7 +18,6 @@
|
|||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-cssmin": "^0.1.7",
|
"gulp-cssmin": "^0.1.7",
|
||||||
"gulp-postcss": "^6.1.1",
|
"gulp-postcss": "^6.1.1",
|
||||||
"postcss-css-reset": "^1.0.2",
|
|
||||||
"postcss-easy-import": "^2.0.0",
|
"postcss-easy-import": "^2.0.0",
|
||||||
"precss": "^1.4.0",
|
"precss": "^1.4.0",
|
||||||
"saladcss-bem": "^0.0.1"
|
"saladcss-bem": "^0.0.1"
|
||||||
|
@ -164,13 +164,23 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
keywords: ['password', 'view'],
|
keywords: ['password', 'view'],
|
||||||
src: '密码可查看.svg',
|
src: '密码可见.svg',
|
||||||
css: 'password-view'
|
css: 'password-view'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
keywords: ['password', 'not', 'view'],
|
keywords: ['password', 'not', 'view'],
|
||||||
src: '密码不可查看.svg',
|
src: '密码不见.svg',
|
||||||
css: 'password-not-view'
|
css: 'password-not-view'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
keywords: ['wap', 'nav'],
|
||||||
|
src: 'wap导航.svg',
|
||||||
|
css: 'wap-nav'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
keywords: ['wap', 'home'],
|
||||||
|
src: 'wap首页.svg',
|
||||||
|
css: 'wap-home'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'vant-icon';
|
font-family: 'vant-icon';
|
||||||
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-1f66ec158e.eot');
|
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-3f0c3903d3.eot');
|
||||||
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-1f66ec158e.eot?#iefix') format('embedded-opentype'),
|
src: url('https://b.yzcdn.cn/zanui/icon/vant-icon-3f0c3903d3.eot?#iefix') format('embedded-opentype'),
|
||||||
url('https://b.yzcdn.cn/zanui/icon/vant-icon-1f66ec158e.woff2') format('woff2'),
|
url('https://b.yzcdn.cn/zanui/icon/vant-icon-3f0c3903d3.woff2') format('woff2'),
|
||||||
url('https://b.yzcdn.cn/zanui/icon/vant-icon-1f66ec158e.woff') format('woff'),
|
url('https://b.yzcdn.cn/zanui/icon/vant-icon-3f0c3903d3.woff') format('woff'),
|
||||||
url('https://b.yzcdn.cn/zanui/icon/vant-icon-1f66ec158e.ttf') format('truetype')
|
url('https://b.yzcdn.cn/zanui/icon/vant-icon-3f0c3903d3.ttf') format('truetype')
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-icon {
|
.van-icon {
|
||||||
@ -78,3 +78,5 @@
|
|||||||
.van-icon-alipay:before { content: '\e81c'; } /* '' */
|
.van-icon-alipay:before { content: '\e81c'; } /* '' */
|
||||||
.van-icon-password-view:before { content: '\e81d'; } /* '' */
|
.van-icon-password-view:before { content: '\e81d'; } /* '' */
|
||||||
.van-icon-password-not-view:before { content: '\e81e'; } /* '' */
|
.van-icon-password-not-view:before { content: '\e81e'; } /* '' */
|
||||||
|
.van-icon-wap-nav:before { content: '\e81f'; } /* '' */
|
||||||
|
.van-icon-wap-home:before { content: '\e820'; } /* '' */
|
@ -1,4 +1,50 @@
|
|||||||
@reset-global mobile;
|
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font: inherit;
|
||||||
|
font-size: 100%;
|
||||||
|
vertical-align: baseline
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
line-height: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
ol, ul {
|
||||||
|
list-style: none
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
caption, th, td {
|
||||||
|
font-weight: normal;
|
||||||
|
vertical-align: middle
|
||||||
|
}
|
||||||
|
|
||||||
|
q, blockquote {
|
||||||
|
quotes: none
|
||||||
|
}
|
||||||
|
|
||||||
|
q:before, q:after, blockquote:before, blockquote:after {
|
||||||
|
content: "";
|
||||||
|
content: none
|
||||||
|
}
|
||||||
|
|
||||||
|
a img {
|
||||||
|
border: none
|
||||||
|
}
|
||||||
|
|
||||||
|
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
|
||||||
|
display: block
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Helvetica, "STHeiti STXihei", "Microsoft YaHei", Tohoma, Arial, sans-serif;
|
font-family: Helvetica, "STHeiti STXihei", "Microsoft YaHei", Tohoma, Arial, sans-serif;
|
||||||
@ -18,7 +64,6 @@ input[type='number'],input[type='text'],input[type='password'],input[type='email
|
|||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: 100%;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
|
@ -81,7 +81,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
install,
|
install,
|
||||||
version: '0.5.7',
|
version: '0.5.11',
|
||||||
Button,
|
Button,
|
||||||
Switch,
|
Switch,
|
||||||
Field,
|
Field,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user