feat:初始提交uni-app项目
This commit is contained in:
163
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/icons.js
vendored
Normal file
163
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/icons.js
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
"use strict";
|
||||
const icons = {
|
||||
"uvicon-level": "e68f",
|
||||
"uvicon-checkbox-mark": "e659",
|
||||
"uvicon-folder": "e694",
|
||||
"uvicon-movie": "e67c",
|
||||
"uvicon-star-fill": "e61e",
|
||||
"uvicon-star": "e618",
|
||||
"uvicon-phone-fill": "e6ac",
|
||||
"uvicon-phone": "e6ba",
|
||||
"uvicon-apple-fill": "e635",
|
||||
"uvicon-backspace": "e64d",
|
||||
"uvicon-attach": "e640",
|
||||
"uvicon-empty-data": "e671",
|
||||
"uvicon-empty-address": "e68a",
|
||||
"uvicon-empty-favor": "e662",
|
||||
"uvicon-empty-car": "e657",
|
||||
"uvicon-empty-order": "e66b",
|
||||
"uvicon-empty-list": "e672",
|
||||
"uvicon-empty-search": "e677",
|
||||
"uvicon-empty-permission": "e67d",
|
||||
"uvicon-empty-news": "e67e",
|
||||
"uvicon-empty-history": "e685",
|
||||
"uvicon-empty-coupon": "e69b",
|
||||
"uvicon-empty-page": "e60e",
|
||||
"uvicon-empty-wifi-off": "e6cc",
|
||||
"uvicon-reload": "e627",
|
||||
"uvicon-order": "e695",
|
||||
"uvicon-server-man": "e601",
|
||||
"uvicon-search": "e632",
|
||||
"uvicon-more-dot-fill": "e66f",
|
||||
"uvicon-scan": "e631",
|
||||
"uvicon-map": "e665",
|
||||
"uvicon-map-fill": "e6a8",
|
||||
"uvicon-tags": "e621",
|
||||
"uvicon-tags-fill": "e613",
|
||||
"uvicon-eye": "e664",
|
||||
"uvicon-eye-fill": "e697",
|
||||
"uvicon-eye-off": "e69c",
|
||||
"uvicon-eye-off-outline": "e688",
|
||||
"uvicon-mic": "e66d",
|
||||
"uvicon-mic-off": "e691",
|
||||
"uvicon-calendar": "e65c",
|
||||
"uvicon-trash": "e623",
|
||||
"uvicon-trash-fill": "e6ce",
|
||||
"uvicon-play-left": "e6bf",
|
||||
"uvicon-play-right": "e6b3",
|
||||
"uvicon-minus": "e614",
|
||||
"uvicon-plus": "e625",
|
||||
"uvicon-info-circle": "e69f",
|
||||
"uvicon-info-circle-fill": "e6a7",
|
||||
"uvicon-question-circle": "e622",
|
||||
"uvicon-question-circle-fill": "e6bc",
|
||||
"uvicon-close": "e65a",
|
||||
"uvicon-checkmark": "e64a",
|
||||
"uvicon-checkmark-circle": "e643",
|
||||
"uvicon-checkmark-circle-fill": "e668",
|
||||
"uvicon-setting": "e602",
|
||||
"uvicon-setting-fill": "e6d0",
|
||||
"uvicon-heart": "e6a2",
|
||||
"uvicon-heart-fill": "e68b",
|
||||
"uvicon-camera": "e642",
|
||||
"uvicon-camera-fill": "e650",
|
||||
"uvicon-more-circle": "e69e",
|
||||
"uvicon-more-circle-fill": "e684",
|
||||
"uvicon-chat": "e656",
|
||||
"uvicon-chat-fill": "e63f",
|
||||
"uvicon-bag": "e647",
|
||||
"uvicon-error-circle": "e66e",
|
||||
"uvicon-error-circle-fill": "e655",
|
||||
"uvicon-close-circle": "e64e",
|
||||
"uvicon-close-circle-fill": "e666",
|
||||
"uvicon-share": "e629",
|
||||
"uvicon-share-fill": "e6bb",
|
||||
"uvicon-share-square": "e6c4",
|
||||
"uvicon-shopping-cart": "e6cb",
|
||||
"uvicon-shopping-cart-fill": "e630",
|
||||
"uvicon-bell": "e651",
|
||||
"uvicon-bell-fill": "e604",
|
||||
"uvicon-list": "e690",
|
||||
"uvicon-list-dot": "e6a9",
|
||||
"uvicon-zhifubao-circle-fill": "e617",
|
||||
"uvicon-weixin-circle-fill": "e6cd",
|
||||
"uvicon-weixin-fill": "e620",
|
||||
"uvicon-qq-fill": "e608",
|
||||
"uvicon-qq-circle-fill": "e6b9",
|
||||
"uvicon-moments-circel-fill": "e6c2",
|
||||
"uvicon-moments": "e6a0",
|
||||
"uvicon-car": "e64f",
|
||||
"uvicon-car-fill": "e648",
|
||||
"uvicon-warning-fill": "e6c7",
|
||||
"uvicon-warning": "e6c1",
|
||||
"uvicon-clock-fill": "e64b",
|
||||
"uvicon-clock": "e66c",
|
||||
"uvicon-edit-pen": "e65d",
|
||||
"uvicon-edit-pen-fill": "e679",
|
||||
"uvicon-email": "e673",
|
||||
"uvicon-email-fill": "e683",
|
||||
"uvicon-minus-circle": "e6a5",
|
||||
"uvicon-plus-circle": "e603",
|
||||
"uvicon-plus-circle-fill": "e611",
|
||||
"uvicon-file-text": "e687",
|
||||
"uvicon-file-text-fill": "e67f",
|
||||
"uvicon-pushpin": "e6d1",
|
||||
"uvicon-pushpin-fill": "e6b6",
|
||||
"uvicon-grid": "e68c",
|
||||
"uvicon-grid-fill": "e698",
|
||||
"uvicon-play-circle": "e6af",
|
||||
"uvicon-play-circle-fill": "e62a",
|
||||
"uvicon-pause-circle-fill": "e60c",
|
||||
"uvicon-pause": "e61c",
|
||||
"uvicon-pause-circle": "e696",
|
||||
"uvicon-gift-fill": "e6b0",
|
||||
"uvicon-gift": "e680",
|
||||
"uvicon-kefu-ermai": "e660",
|
||||
"uvicon-server-fill": "e610",
|
||||
"uvicon-coupon-fill": "e64c",
|
||||
"uvicon-coupon": "e65f",
|
||||
"uvicon-integral": "e693",
|
||||
"uvicon-integral-fill": "e6b1",
|
||||
"uvicon-home-fill": "e68e",
|
||||
"uvicon-home": "e67b",
|
||||
"uvicon-account": "e63a",
|
||||
"uvicon-account-fill": "e653",
|
||||
"uvicon-thumb-down-fill": "e628",
|
||||
"uvicon-thumb-down": "e60a",
|
||||
"uvicon-thumb-up": "e612",
|
||||
"uvicon-thumb-up-fill": "e62c",
|
||||
"uvicon-lock-fill": "e6a6",
|
||||
"uvicon-lock-open": "e68d",
|
||||
"uvicon-lock-opened-fill": "e6a1",
|
||||
"uvicon-lock": "e69d",
|
||||
"uvicon-red-packet": "e6c3",
|
||||
"uvicon-photo-fill": "e6b4",
|
||||
"uvicon-photo": "e60d",
|
||||
"uvicon-volume-off-fill": "e6c8",
|
||||
"uvicon-volume-off": "e6bd",
|
||||
"uvicon-volume-fill": "e624",
|
||||
"uvicon-volume": "e605",
|
||||
"uvicon-download": "e670",
|
||||
"uvicon-arrow-up-fill": "e636",
|
||||
"uvicon-arrow-down-fill": "e638",
|
||||
"uvicon-play-left-fill": "e6ae",
|
||||
"uvicon-play-right-fill": "e6ad",
|
||||
"uvicon-arrow-downward": "e634",
|
||||
"uvicon-arrow-leftward": "e63b",
|
||||
"uvicon-arrow-rightward": "e644",
|
||||
"uvicon-arrow-upward": "e641",
|
||||
"uvicon-arrow-down": "e63e",
|
||||
"uvicon-arrow-right": "e63c",
|
||||
"uvicon-arrow-left": "e646",
|
||||
"uvicon-arrow-up": "e633",
|
||||
"uvicon-skip-back-left": "e6c5",
|
||||
"uvicon-skip-forward-right": "e61f",
|
||||
"uvicon-arrow-left-double": "e637",
|
||||
"uvicon-man": "e675",
|
||||
"uvicon-woman": "e626",
|
||||
"uvicon-en": "e6b8",
|
||||
"uvicon-twitte": "e607",
|
||||
"uvicon-twitter-circle-fill": "e6cf"
|
||||
};
|
||||
exports.icons = icons;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uv-icon/components/uv-icon/icons.js.map
|
||||
95
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/props.js
vendored
Normal file
95
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/props.js
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
"use strict";
|
||||
var _a, _b;
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const props = {
|
||||
props: {
|
||||
// 图标类名
|
||||
name: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
// 图标颜色,可接受主题色
|
||||
color: {
|
||||
type: String,
|
||||
default: "#606266"
|
||||
},
|
||||
// 字体大小,单位px
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: "16px"
|
||||
},
|
||||
// 是否显示粗体
|
||||
bold: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
|
||||
index: {
|
||||
type: [String, Number],
|
||||
default: null
|
||||
},
|
||||
// 触摸图标时的类名
|
||||
hoverClass: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
// 自定义扩展前缀,方便用户扩展自己的图标库
|
||||
customPrefix: {
|
||||
type: String,
|
||||
default: "uvicon"
|
||||
},
|
||||
// 图标右边或者下面的文字
|
||||
label: {
|
||||
type: [String, Number],
|
||||
default: ""
|
||||
},
|
||||
// label的位置,只能右边或者下边
|
||||
labelPos: {
|
||||
type: String,
|
||||
default: "right"
|
||||
},
|
||||
// label的大小
|
||||
labelSize: {
|
||||
type: [String, Number],
|
||||
default: "15px"
|
||||
},
|
||||
// label的颜色
|
||||
labelColor: {
|
||||
type: String,
|
||||
default: "#606266"
|
||||
},
|
||||
// label与图标的距离
|
||||
space: {
|
||||
type: [String, Number],
|
||||
default: "3px"
|
||||
},
|
||||
// 图片的mode
|
||||
imgMode: {
|
||||
type: String,
|
||||
default: "aspectFit"
|
||||
},
|
||||
// 用于显示图片小图标时,图片的宽度
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: ""
|
||||
},
|
||||
// 用于显示图片小图标时,图片的高度
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: ""
|
||||
},
|
||||
// 用于解决某些情况下,让图标垂直居中的用途
|
||||
top: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 是否阻止事件传播
|
||||
stop: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
...(_b = (_a = common_vendor.index.$uv) == null ? void 0 : _a.props) == null ? void 0 : _b.icon
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uv-icon/components/uv-icon/props.js.map
|
||||
99
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.js
vendored
Normal file
99
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.js
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
"use strict";
|
||||
const uni_modules_uvUiTools_libs_mixin_mpMixin = require("../../../uv-ui-tools/libs/mixin/mpMixin.js");
|
||||
const uni_modules_uvUiTools_libs_mixin_mixin = require("../../../uv-ui-tools/libs/mixin/mixin.js");
|
||||
const uni_modules_uvIcon_components_uvIcon_icons = require("./icons.js");
|
||||
const uni_modules_uvIcon_components_uvIcon_props = require("./props.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "uv-icon",
|
||||
emits: ["click"],
|
||||
mixins: [uni_modules_uvUiTools_libs_mixin_mpMixin.mpMixin, uni_modules_uvUiTools_libs_mixin_mixin.mixin, uni_modules_uvIcon_components_uvIcon_props.props],
|
||||
data() {
|
||||
return {
|
||||
colorType: [
|
||||
"primary",
|
||||
"success",
|
||||
"info",
|
||||
"error",
|
||||
"warning"
|
||||
]
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
uClasses() {
|
||||
let classes = [];
|
||||
classes.push(this.customPrefix);
|
||||
classes.push(this.customPrefix + "-" + this.name);
|
||||
if (this.color && this.colorType.includes(this.color))
|
||||
classes.push("uv-icon__icon--" + this.color);
|
||||
return classes;
|
||||
},
|
||||
iconStyle() {
|
||||
let style = {};
|
||||
style = {
|
||||
fontSize: this.$uv.addUnit(this.size),
|
||||
lineHeight: this.$uv.addUnit(this.size),
|
||||
fontWeight: this.bold ? "bold" : "normal",
|
||||
// 某些特殊情况需要设置一个到顶部的距离,才能更好的垂直居中
|
||||
top: this.$uv.addUnit(this.top)
|
||||
};
|
||||
if (this.color && !this.colorType.includes(this.color))
|
||||
style.color = this.color;
|
||||
return style;
|
||||
},
|
||||
// 判断传入的name属性,是否图片路径,只要带有"/"均认为是图片形式
|
||||
isImg() {
|
||||
const isBase64 = this.name.indexOf("data:") > -1 && this.name.indexOf("base64") > -1;
|
||||
return this.name.indexOf("/") !== -1 || isBase64;
|
||||
},
|
||||
imgStyle() {
|
||||
let style = {};
|
||||
style.width = this.width ? this.$uv.addUnit(this.width) : this.$uv.addUnit(this.size);
|
||||
style.height = this.height ? this.$uv.addUnit(this.height) : this.$uv.addUnit(this.size);
|
||||
return style;
|
||||
},
|
||||
// 通过图标名,查找对应的图标
|
||||
icon() {
|
||||
const code = uni_modules_uvIcon_components_uvIcon_icons.icons["uvicon-" + this.name];
|
||||
return code ? unescape(`%u${code}`) : ["uvicon"].indexOf(this.customPrefix) > -1 ? this.name : "";
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
clickHandler(e) {
|
||||
this.$emit("click", this.index);
|
||||
this.stop && this.preventEvent(e);
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $options.isImg
|
||||
}, $options.isImg ? {
|
||||
b: _ctx.name,
|
||||
c: _ctx.imgMode,
|
||||
d: common_vendor.s($options.imgStyle),
|
||||
e: common_vendor.s(_ctx.$uv.addStyle(_ctx.customStyle))
|
||||
} : {
|
||||
f: common_vendor.t($options.icon),
|
||||
g: common_vendor.n($options.uClasses),
|
||||
h: common_vendor.s($options.iconStyle),
|
||||
i: common_vendor.s(_ctx.$uv.addStyle(_ctx.customStyle)),
|
||||
j: _ctx.hoverClass
|
||||
}, {
|
||||
k: _ctx.label !== ""
|
||||
}, _ctx.label !== "" ? {
|
||||
l: common_vendor.t(_ctx.label),
|
||||
m: _ctx.labelColor,
|
||||
n: _ctx.$uv.addUnit(_ctx.labelSize),
|
||||
o: _ctx.labelPos == "right" ? _ctx.$uv.addUnit(_ctx.space) : 0,
|
||||
p: _ctx.labelPos == "bottom" ? _ctx.$uv.addUnit(_ctx.space) : 0,
|
||||
q: _ctx.labelPos == "left" ? _ctx.$uv.addUnit(_ctx.space) : 0,
|
||||
r: _ctx.labelPos == "top" ? _ctx.$uv.addUnit(_ctx.space) : 0
|
||||
} : {}, {
|
||||
s: common_vendor.o((...args) => $options.clickHandler && $options.clickHandler(...args)),
|
||||
t: common_vendor.n("uv-icon--" + _ctx.labelPos)
|
||||
});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b7a6dd5d"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view bindtap="{{s}}" class="{{['uv-icon', 'data-v-b7a6dd5d', t]}}"><image wx:if="{{a}}" class="uv-icon__img data-v-b7a6dd5d" src="{{b}}" mode="{{c}}" style="{{d + ';' + e}}"></image><text wx:else class="{{['uv-icon__icon', 'data-v-b7a6dd5d', g]}}" style="{{h + ';' + i}}" hover-class="{{j}}">{{f}}</text><text wx:if="{{k}}" class="uv-icon__label data-v-b7a6dd5d" style="{{'color:' + m + ';' + ('font-size:' + n) + ';' + ('margin-left:' + o) + ';' + ('margin-top:' + p) + ';' + ('margin-right:' + q) + ';' + ('margin-bottom:' + r)}}">{{l}}</text></view>
|
||||
87
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.wxss
vendored
Normal file
87
unpackage/dist/dev/mp-weixin/uni_modules/uv-icon/components/uv-icon/uv-icon.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user