[bugfix] Grid: gutter can be string type (#3741)

This commit is contained in:
neverland 2019-07-03 17:53:04 +08:00 committed by GitHub
parent 3dd881a84d
commit 46746fff05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -11,12 +11,12 @@
rel="shortcut icon"
href="https://img.yzcdn.cn/zanui/vant/vant-2017-12-18.ico"
/>
<link href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" rel="stylesheet" />
<title>Vant - 轻量、可靠的移动端 Vue 组件库</title>
</head>
<body ontouchstart>
<div id="app"></div>
<script src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
<script src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
<!-- built files will be auto injected -->
</body>
</html>

View File

@ -7,7 +7,7 @@ export default createComponent({
mixins: [ParentMixin('vanGrid')],
props: {
gutter: Number,
gutter: [Number, String],
square: Boolean,
clickable: Boolean,
columnNum: {