1 line
2.3 KiB
JavaScript
1 line
2.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e6fed73"],{"09a7":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"icon"},[n("van-nav-bar",{attrs:{fixed:"",title:"选择图标","left-arrow":"","left-text":"返回"},on:{"click-left":function(e){return t.$router.replace("/addCommemorationDay")}}}),n("icon-select",{attrs:{prefix:""},on:{selected:t.selectIcon}})],1)},c=[],a=(n("ac1f"),n("5319"),n("5aee")),o={name:"Icon",components:{IconSelect:a["a"]},data:function(){return{}},mounted:function(){},methods:{selectIcon:function(t){this.$router.replace("/addCommemorationDay?iconName=".concat(t))}}},s=o,r=n("2877"),l=Object(r["a"])(s,i,c,!1,null,"d236cbbe",null);e["default"]=l.exports},"5aee":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"icon-body"},[n("van-field",{staticStyle:{position:"relative"},attrs:{clearable:"",placeholder:"请输入图标名称"},on:{clear:t.filterIcons},nativeOn:{input:function(e){return t.filterIcons(e)}},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[n("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]),n("van-grid",{attrs:{gutter:10}},t._l(t.iconList,(function(e,i){return n("van-grid-item",{key:i,on:{click:function(n){return t.selectedIcon(e)}}},[n("svg-icon",{attrs:{"icon-class":e}}),n("span",[t._v(t._s("-"===e[1]?e.slice(2):e))])],1)})),1)],1)},c=[],a=(n("b0c0"),n("4de4"),n("d3b7"),n("caad"),n("2532"),n("ddb0"),n("d81d"),n("ac1f"),n("466d"),n("23f1")),o=function(t){return t.keys()},s=/\.\/(.*)\.svg/,r=o(a).map((function(t){return t.match(s)[1]})),l=r,u={name:"IconSelect",props:{prefix:""},data:function(){return{name:"",iconList:l}},watch:{prefix:{handler:function(){this.filterIcons()},deep:!0,immediate:!0}},methods:{filterIcons:function(){var t=this;this.iconList=l,this.prefix+this.name&&(this.iconList=this.iconList.filter((function(e){return e.includes(t.prefix+t.name)})))},selectedIcon:function(t){this.$emit("selected",t)},reset:function(){this.name="",this.iconList=l}}},f=u,d=(n("a9fc"),n("2877")),m=Object(d["a"])(f,i,c,!1,null,"91bd4486",null);e["a"]=m.exports},a9fc:function(t,e,n){"use strict";n("be68")},be68:function(t,e,n){}}]); |