mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
6.9 KiB
JavaScript
1 line
6.9 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[96],{300:function(E,C,s){"use strict";s.r(C);var t={created:function(){this.content=unescape("%3Ch2%3EIcon%20%u56FE%u6807%3C/h2%3E%0A%3Ch3%3E%u4F7F%u7528%u6307%u5357%3C/h3%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-javascript%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%7B%20Icon%20%7D%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant%27%3C/span%3E%3B%0A%0AVue.use%28Icon%29%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3E%u4EE3%u7801%u6F14%u793A%3C/h3%3E%0A%3Ch4%3E%u57FA%u7840%u7528%u6CD5%3C/h4%3E%0A%3Cp%3E%3Ccode%3EIcon%3C/code%3E%u7684%3Ccode%3Ename%3C/code%3E%u5C5E%u6027%u652F%u6301%u4F20%u5165%u56FE%u6807%u540D%u79F0%u6216%u56FE%u7247%u94FE%u63A5%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-icon%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22close%22%3C/span%3E%20/%26gt%3B%3C/span%3E%0A%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-icon%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22https%3A//b.yzcdn.cn/vant/icon-demo-1126.png%22%3C/span%3E%20/%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u663E%u793A%u5FBD%u6807%3C/h4%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-icon%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22chat%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Einfo%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%229%22%3C/span%3E%20/%26gt%3B%3C/span%3E%0A%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-icon%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22chat%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Einfo%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%2299+%22%3C/span%3E%20/%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u4F7F%u7528%u672C%u5730%u5B57%u4F53%u6587%u4EF6%3C/h4%3E%0A%3Cp%3EIcon%20%u7EC4%u4EF6%u9ED8%u8BA4%u5F15%u7528%20%3Ccode%3Eyzcdn.cn%3C/code%3E%20%u57DF%u540D%u4E0B%u7684%u5B57%u4F53%u6587%u4EF6%uFF0C%u5982%u679C%u60F3%u8981%u4F7F%u7528%u672C%u5730%u5B57%u4F53%u6587%u4EF6%uFF0C%u8BF7%u5F15%u5165%u4E0B%u9762%u7684%20css%20%u6587%u4EF6%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant/lib/icon/local.css%27%3C/span%3E%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u81EA%u5B9A%u4E49%u56FE%u6807%3C/h4%3E%0A%3Cp%3E%u5982%u679C%u9700%u8981%u5728%u73B0%u6709%20Icon%20%u7684%u57FA%u7840%u4E0A%u4F7F%u7528%u66F4%u591A%u56FE%u6807%uFF0C%u53EF%u4EE5%u5F15%u5165%u4F60%u9700%u8981%u7684%20iconfont%20%u5BF9%u5E94%u7684%20ttf%20%u6587%u4EF6%u548C%u6837%u5F0F%uFF0C%u4E4B%u540E%u5C31%u53EF%u4EE5%u5728%20Icon%20%u7EC4%u4EF6%u4E2D%u76F4%u63A5%u4F7F%u7528%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-css%22%3E@%3Cspan%20class%3D%22hljs-keyword%22%3Efont-face%3C/span%3E%20%7B%0A%20%20%3Cspan%20class%3D%22hljs-attribute%22%3Efont-family%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27my-icon%27%3C/span%3E%3B%0A%20%20%3Cspan%20class%3D%22hljs-attribute%22%3Esrc%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-built_in%22%3Eurl%3C/span%3E%28%3Cspan%20class%3D%22hljs-string%22%3E%27./my-icon.ttf%27%3C/span%3E%29%20%3Cspan%20class%3D%22hljs-built_in%22%3Eformat%3C/span%3E%28%3Cspan%20class%3D%22hljs-string%22%3E%27truetype%27%3C/span%3E%29%3B%0A%7D%0A%0A%3Cspan%20class%3D%22hljs-selector-class%22%3E.my-icon%3C/span%3E%20%7B%0A%20%20%3Cspan%20class%3D%22hljs-attribute%22%3Efont-family%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27my-icon%27%3C/span%3E%3B%0A%7D%0A%0A%3Cspan%20class%3D%22hljs-selector-class%22%3E.my-icon-extra%3C/span%3E%3Cspan%20class%3D%22hljs-selector-pseudo%22%3E%3A%3Abefore%3C/span%3E%20%7B%0A%20%20%3Cspan%20class%3D%22hljs-attribute%22%3Econtent%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27%5Ce626%27%3C/span%3E%3B%0A%7D%0A%3C/code%3E%3C/pre%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Evan-icon%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Eclass-prefix%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22my-icon%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ename%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22extra%22%3C/span%3E%20/%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EAPI%3C/h3%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3E%u53C2%u6570%3C/th%3E%0A%3Cth%3E%u8BF4%u660E%3C/th%3E%0A%3Cth%3E%u7C7B%u578B%3C/th%3E%0A%3Cth%3E%u9ED8%u8BA4%u503C%3C/th%3E%0A%3Cth%3E%u7248%u672C%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3Ename%3C/td%3E%0A%3Ctd%3E%u56FE%u6807%u540D%u79F0%u6216%u56FE%u7247%u94FE%u63A5%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Einfo%3C/td%3E%0A%3Ctd%3E%u56FE%u6807%u53F3%u4E0A%u89D2%u6587%u5B57%u63D0%u793A%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%20%7C%20Number%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ecolor%3C/td%3E%0A%3Ctd%3E%u56FE%u6807%u989C%u8272%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Einherit%3C/code%3E%3C/td%3E%0A%3Ctd%3E1.1.3%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Esize%3C/td%3E%0A%3Ctd%3E%u56FE%u6807%u5927%u5C0F%uFF0C%u5982%20%3Ccode%3E20px%3C/code%3E%20%3Ccode%3E2em%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Einherit%3C/code%3E%3C/td%3E%0A%3Ctd%3E1.1.15%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eclass-prefix%3C/td%3E%0A%3Ctd%3E%u7C7B%u540D%u524D%u7F00%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Evan-icon%3C/code%3E%3C/td%3E%0A%3Ctd%3E1.2.1%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Etag%3C/td%3E%0A%3Ctd%3EHTML%20%u6807%u7B7E%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Ei%3C/code%3E%3C/td%3E%0A%3Ctd%3E1.6.10%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A%3Ch3%3EEvent%3C/h3%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3E%u4E8B%u4EF6%u540D%3C/th%3E%0A%3Cth%3E%u8BF4%u660E%3C/th%3E%0A%3Cth%3E%u53C2%u6570%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3Eclick%3C/td%3E%0A%3Ctd%3E%u70B9%u51FB%u56FE%u6807%u65F6%u89E6%u53D1%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A")}},a=s(7),u=Object(a.a)(t,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var E=this.$createElement;return(this._self._c||E)("section",{domProps:{innerHTML:this._s(this.content)}})}],!1,null,null,null);C.default=u.exports}}]); |