first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/types.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/types.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const r=require("../common/props.js"),o={...r.baseProps,name:r.makeRequiredProp(String),color:String,size:r.numericProp,classPrefix:r.makeStringProp("wd-icon")};exports.iconProps=o;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),o=require("../common/util.js"),s=require("./types.js"),t=e.defineComponent({name:"wd-icon",options:{virtualHost:!0,addGlobalClass:!0,styleIsolation:"shared"},props:s.iconProps,emits:["click","touch"],setup(s,{emit:t}){const c=s,n=t,a=e.computed((()=>o.isDef(c.name)&&c.name.includes("/"))),i=e.computed((()=>{const e=c.classPrefix;return`${e} ${c.customClass} ${a.value?"wd-icon--image":e+"-"+c.name}`})),r=e.computed((()=>{const e={};return c.color&&(e.color=c.color),c.size&&(e["font-size"]=o.addUnit(c.size)),`${o.objToStyle(e)} ${c.customStyle}`}));function u(e){n("click",e)}return(o,s)=>e.e({a:a.value},a.value?{b:o.name}:{},{c:e.o(u),d:e.n(i.value),e:e.s(r.value)})}}),c=e._export_sfc(t,[["__scopeId","data-v-8d8eac46"]]);wx.createComponent(c);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view bindtap="{{c}}" class="{{['data-v-8d8eac46', d]}}" style="{{e}}"><image wx:if="{{a}}" class="wd-icon__image data-v-8d8eac46" src="{{b}}"></image></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-icon/wd-icon.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user