mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{238:function(s,u,a){"use strict";a.r(u);var E={created:function(){this.content=unescape("%3Ch2%3E%u5B9A%u5236%u4E3B%u9898%3C/h2%3E%0A%3Cp%3E%3Ccode%3EVant%3C/code%3E%u63D0%u4F9B%u4E86%u4E00%u5957%u9ED8%u8BA4%u4E3B%u9898%uFF0CCSS%20%u547D%u540D%u91C7%u7528%20BEM%20%u7684%u98CE%u683C%uFF0C%u65B9%u4FBF%u4F7F%u7528%u8005%u8986%u76D6%u6837%u5F0F%u3002%u5982%u679C%u4F60%u60F3%u5B8C%u5168%u66FF%u6362%u4E3B%u9898%u8272%u6216%u8005%u5176%u4ED6%u6837%u5F0F%uFF0C%u53EF%u4EE5%u4F7F%u7528%u4E0B%u9762%u7684%u65B9%u6CD5%uFF1A%3C/p%3E%0A%3Ch3%3E%u793A%u4F8B%u5DE5%u7A0B%3C/h3%3E%0A%3Cp%3E%u6211%u4EEC%u63D0%u4F9B%u4E86%u4E00%u4E2A%u57FA%u4E8E%20Vue%20Cli%203%20%u7684%u793A%u4F8B%u5DE5%u7A0B%uFF0C%u4ED3%u5E93%u5730%u5740%u4E3A%20%3Ca%20href%3D%22https%3A//github.com/youzan/vant-demo%22%3EVant%20Demo%3C/a%3E%uFF0C%u5176%u4E2D%u5305%u542B%u4E86%u5B9A%u5236%u4E3B%u9898%u7684%u57FA%u672C%u914D%u7F6E%uFF0C%u53EF%u4EE5%u4F5C%u4E3A%u53C2%u8003%u3002%3C/p%3E%0A%3Ch3%3E%u6837%u5F0F%u53D8%u91CF%3C/h3%3E%0A%3Cp%3EVant%20%u4F7F%u7528%u4E86%20%3Ca%20href%3D%22http%3A//lesscss.org/%22%3ELess%3C/a%3E%20%u5BF9%u6837%u5F0F%u8FDB%u884C%u9884%u5904%u7406%uFF0C%u5E76%u5185%u7F6E%u4E86%u4E00%u4E9B%u6837%u5F0F%u53D8%u91CF%uFF0C%u901A%u8FC7%u66FF%u6362%u6837%u5F0F%u53D8%u91CF%u5373%u53EF%u5B9A%u5236%u4F60%u81EA%u5DF1%u9700%u8981%u7684%u4E3B%u9898%u3002%3C/p%3E%0A%3Cp%3E%u4E0B%u9762%u662F%u4E00%u4E9B%u57FA%u672C%u7684%u6837%u5F0F%u53D8%u91CF%uFF0C%u6240%u6709%u53EF%u7528%u7684%u989C%u8272%u53D8%u91CF%u8BF7%u53C2%u8003%20%3Ca%20href%3D%22https%3A//github.com/youzan/vant/blob/v1/packages/style/var.less%22%3E%u914D%u7F6E%u6587%u4EF6%3C/a%3E%u3002%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-less%22%3E%3Cspan%20class%3D%22hljs-comment%22%3E//%20color%20variables%3C/span%3E%0A%3Cspan%20class%3D%22hljs-variable%22%3E@black%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23000%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@white%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23fff%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@red%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23f44%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@blue%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%231989fa%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@orange%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23ff976a%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@orange-dark%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23ed6a0c%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@orange-light%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23fffbe8%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@green%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%2307c160%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@gray%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23c9c9c9%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@gray-light%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23e5e5e5%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@gray-darker%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%237d7e80%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@gray-dark%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23969799%3C/span%3E%3B%0A%0A%3Cspan%20class%3D%22hljs-comment%22%3E//%20default%20colors%3C/span%3E%0A%3Cspan%20class%3D%22hljs-variable%22%3E@text-color%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23323233%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@border-color%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23ebedf0%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@active-color%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23f2f3f5%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@background-color%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23f8f8f8%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-variable%22%3E@background-color-light%3A%3C/span%3E%20%3Cspan%20class%3D%22hljs-number%22%3E%23fafafa%3C/span%3E%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3E%u5B9A%u5236%u65B9%u6CD5%3C/h3%3E%0A%3Cp%3E%u5B9A%u5236%u4E3B%u9898%u5206%u4E3A%u4E24%u6B65%uFF1A%u5F15%u5165%u6837%u5F0F%u6E90%u6587%u4EF6%u548C%u4FEE%u6539%u6837%u5F0F%u53D8%u91CF%3C/p%3E%0A%3Ch4%3E%u6B65%u9AA4%u4E00.%20%u5F15%u5165%u6837%u5F0F%u6E90%u6587%u4EF6%3C/h4%3E%0A%3Cp%3EVant%20%u652F%u6301%u901A%u8FC7%20babel%20%u63D2%u4EF6%u6309%u9700%u5F15%u5165%u548C%u624B%u52A8%u5F15%u5165%u4E24%u79CD%u65B9%u5F0F%uFF0C%u63A8%u8350%u4F7F%u7528%u6309%u9700%u5F15%u5165%u7684%u65B9%u5F0F%u3002%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-comment%22%3E//%20%u5728%20babel.config.js%20%u4E2D%u914D%u7F6E%u6309%u9700%u5F15%u5165%u6837%u5F0F%u6E90%u6587%u4EF6%3C/span%3E%0A%3Cspan%20class%3D%22hljs-comment%22%3E//%20%u6CE8%u610F%uFF1Ababel6%20%u4E0D%u652F%u6301%u6309%u9700%u5F15%u5165%u6837%u5F0F%uFF0C%u8BF7%u624B%u52A8%u5F15%u5165%3C/span%3E%0A%3Cspan%20class%3D%22hljs-built_in%22%3Emodule%3C/span%3E.exports%20%3D%20%7B%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eplugins%3C/span%3E%3A%20%5B%0A%20%20%20%20%5B%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-string%22%3E%27import%27%3C/span%3E%2C%0A%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3ElibraryName%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3ElibraryDirectory%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27es%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-comment%22%3E//%20%u6307%u5B9A%u6837%u5F0F%u8DEF%u5F84%3C/span%3E%0A%20%20%20%20%20%20%20%20style%3A%20%3Cspan%20class%3D%22hljs-function%22%3E%3Cspan%20class%3D%22hljs-params%22%3Ename%3C/span%3E%20%3D%26gt%3B%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%60%3Cspan%20class%3D%22hljs-subst%22%3E%24%7Bname%7D%3C/span%3E/style/less%60%3C/span%3E%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant%27%3C/span%3E%0A%20%20%20%20%5D%0A%20%20%5D%0A%7D%3B%0A%3C/code%3E%3C/pre%3E%0A%3Cp%3E%u4E0B%u9762%u662F%u624B%u52A8%u5F15%u5165%u7684%u65B9%u6CD5%uFF1A%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-comment%22%3E//%20%u624B%u52A8%u5F15%u5165%u7EC4%u4EF6%u7684%u6837%u5F0F%u6E90%u6587%u4EF6%3C/span%3E%0A%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20Button%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant/lib/button%27%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant/lib/button/style/less%27%3C/span%3E%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u6B65%u9AA4%u4E8C.%20%u4FEE%u6539%u6837%u5F0F%u53D8%u91CF%3C/h4%3E%0A%3Cp%3E%u4F7F%u7528%20less%20%u63D0%u4F9B%u7684%20%3Ca%20href%3D%22http%3A//lesscss.org/usage/%23using-less-in-the-browser-modify-variables%22%3EmodifyVars%3C/a%3E%20%u5373%u53EF%u5BF9%u53D8%u91CF%u8FDB%u884C%u4FEE%u6539%uFF0C%u4E0B%u9762%u662F%u53C2%u8003%u7684%20webpack%20%u914D%u7F6E%u3002%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-comment%22%3E//%20webpack.config.js%3C/span%3E%0A%3Cspan%20class%3D%22hljs-built_in%22%3Emodule%3C/span%3E.exports%20%3D%20%7B%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Erules%3C/span%3E%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Etest%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-regexp%22%3E/%5C.less%24/%3C/span%3E%2C%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Euse%3C/span%3E%3A%20%5B%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-comment%22%3E//%20...other%20loaders%3C/span%3E%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eloader%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27less-loader%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eoptions%3C/span%3E%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3EmodifyVars%3C/span%3E%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ered%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%2303a9f4%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eblue%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%233eaf7c%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Eorange%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%23f08d49%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-string%22%3E%27text-color%27%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%23111%27%3C/span%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%0A%20%20%5D%0A%7D%3B%0A%3C/code%3E%3C/pre%3E%0A")}},C=a(7),n=Object(C.a)(E,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var s=this.$createElement;return(this._self._c||s)("section",{domProps:{innerHTML:this._s(this.content)}})}],!1,null,null,null);u.default=n.exports}}]); |