module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 10);
/******/ })
/************************************************************************/
/******/ ({
/***/ 10:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var _base = _interopRequireDefault(__webpack_require__(11));
var _icondata = _interopRequireDefault(__webpack_require__(12));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const getFixedIconType = function (type) {
// 兼容旧版本 typo
return type === 'field' ? 'filled' : type;
};
Component({
options: {
addGlobalClass: true
},
properties: {
extClass: {
type: String,
value: ''
},
type: {
type: String,
value: 'outline',
observer: '_genSrcByType'
},
icon: {
type: String,
value: '',
observer: '_genSrcByIcon'
},
size: {
type: Number,
value: 20
},
color: {
type: String,
value: '#000000'
}
},
data: {
src: '',
height: 20,
width: 20
},
methods: {
_genSrcByIcon(v) {
this._genSrc(_icondata.default[v][getFixedIconType(this.data.type)]);
},
_genSrcByType(v) {
const iconDataItem = _icondata.default[this.data.icon];
if (iconDataItem) this._genSrc(iconDataItem[getFixedIconType(v)]);
},
_genSrc(rawData) {
if (!rawData) return; // type 不存在
const base64 = _base.default.encode(rawData);
this.setData({
src: 'data:image/svg+xml;base64,' + base64
});
}
}
});
/***/ }),
/***/ 11:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
/* eslint-disable */
var b64chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
var cb_encode = function (ccc) {
var padlen = [0, 2, 1][ccc.length % 3],
ord = ccc.charCodeAt(0) << 16 | (ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8 | (ccc.length > 2 ? ccc.charCodeAt(2) : 0),
chars = [b64chars.charAt(ord >>> 18), b64chars.charAt(ord >>> 12 & 63), padlen >= 2 ? '=' : b64chars.charAt(ord >>> 6 & 63), padlen >= 1 ? '=' : b64chars.charAt(ord & 63)];
return chars.join('');
}; // @ts-ignore
var btoa = global.btoa ? function (b) {
// @ts-ignore
return global.btoa(b);
} : function (b) {
return b.replace(/[\s\S]{1,3}/g, cb_encode);
};
var fromCharCode = String.fromCharCode;
var cb_utob = function (c) {
var cc;
if (c.length < 2) {
cc = c.charCodeAt(0);
return cc < 0x80 ? c : cc < 0x800 ? fromCharCode(0xc0 | cc >>> 6) + fromCharCode(0x80 | cc & 0x3f) : fromCharCode(0xe0 | cc >>> 12 & 0x0f) + fromCharCode(0x80 | cc >>> 6 & 0x3f) + fromCharCode(0x80 | cc & 0x3f);
} else {
cc = 0x10000 + (c.charCodeAt(0) - 0xD800) * 0x400 + (c.charCodeAt(1) - 0xDC00);
return fromCharCode(0xf0 | cc >>> 18 & 0x07) + fromCharCode(0x80 | cc >>> 12 & 0x3f) + fromCharCode(0x80 | cc >>> 6 & 0x3f) + fromCharCode(0x80 | cc & 0x3f);
}
};
var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
var utob = function (u) {
return u.replace(re_utob, cb_utob);
};
var _encode = function (u) {
const isUint8Array = Object.prototype.toString.call(u) === '[object Uint8Array]';
return isUint8Array ? u.toString('base64') : btoa(utob(String(u)));
};
var encode = function (u, urisafe = false) {
return !urisafe ? _encode(u) : _encode(String(u)).replace(/[+\/]/g, function (m0) {
return m0 == '+' ? '-' : '_';
}).replace(/=/g, '');
};
var _default = {
encode
};
exports.default = _default;
/***/ }),
/***/ 12:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
/* eslint-disable */
var _default = {
"add-friends": {
outline: ``,
filled: ``
},
"add": {
outline: ``,
filled: ``
},
"add2": {
outline: ``,
filled: ``
},
"album": {
outline: ``,
filled: ``
},
"arrow": {
outline: ``,
filled: ``
},
"at": {
outline: ``,
filled: ``
},
"back": {
outline: ``,
filled: ``
},
"back2": {
outline: ``,
filled: ``
},
"bellring-off": {
outline: ``,
filled: ``
},
"bellring-on": {
outline: ``,
filled: ``
},
"camera": {
outline: ``,
filled: ``
},
"cellphone": {
outline: ``,
filled: ``
},
"clip": {
outline: ``,
filled: ``
},
"close": {
outline: ``,
filled: ``
},
"close2": {
outline: ``,
filled: ``
},
"comment": {
outline: ``,
filled: ``
},
"contacts": {
outline: ``,
filled: ``
},
"copy": {
outline: ``,
filled: ``
},
"delete-on": {
outline: ``,
filled: ``
},
"delete": {
outline: ``,
filled: ``
},
"discover": {
outline: ``,
filled: ``
},
"display": {
outline: ``,
filled: ``
},
"done": {
outline: ``,
filled: ``
},
"done2": {
outline: ``,
filled: ``
},
"download": {
outline: ``,
filled: ``
},
"email": {
outline: ``,
filled: ``
},
"error": {
outline: ``,
filled: ``
},
"eyes-off": {
outline: ``,
filled: ``
},
"eyes-on": {
outline: ``,
filled: ``
},
"folder": {
outline: ``,
filled: ``
},
"group-detail": {
outline: ``,
filled: ``
},
"help": {
outline: ``,
filled: ``
},
"home": {
outline: ``,
filled: ``
},
"imac": {
outline: ``,
filled: ``
},
"info": {
outline: ``,
filled: ``
},
"keyboard": {
outline: ``,
filled: ``
},
"like": {
outline: ``,
filled: ``
},
"link": {
outline: ``,
filled: ``
},
"location": {
outline: ``,
filled: ``
},
"lock": {
outline: ``,
filled: ``
},
"max-window": {
outline: ``,
filled: ``
},
"me": {
outline: ``,
filled: ``
},
"mike": {
outline: ``,
filled: ``
},
"mike2": {
outline: ``,
filled: ``
},
"mobile-contacts": {
outline: ``,
filled: ``
},
"more": {
outline: ``,
filled: ``
},
"more2": {
outline: ``,
filled: ``
},
"mosaic": {
outline: ``,
filled: ``
},
"music-off": {
outline: ``,
filled: ``
},
"music": {
outline: ``,
filled: ``
},
"note": {
outline: ``,
filled: ``
},
"pad": {
outline: ``,
filled: ``
},
"pause": {
outline: ``,
filled: ``
},
"pencil": {
outline: ``,
filled: ``
},
"photo-wall": {
outline: ``,
filled: ``
},
"play": {
outline: ``,
filled: ``
},
"play2": {
outline: ``,
filled: ``
},
"previous": {
outline: ``,
filled: ``
},
"previous2": {
outline: ``,
filled: ``
},
"qr-code": {
outline: ``,
filled: ``
},
"refresh": {
outline: ``,
filled: ``
},
"report-problem": {
outline: ``,
filled: ``
},
"search": {
outline: ``,
filled: ``
},
"sending": {
outline: ``,
filled: ``
},
"setting": {
outline: ``,
filled: ``
},
"share": {
outline: ``,
filled: ``
},
"shop": {
outline: ``,
filled: ``
},
"star": {
outline: ``,
filled: ``
},
"sticker": {
outline: ``,
filled: ``
},
"tag": {
outline: ``,
filled: ``
},
"text": {
outline: ``,
filled: ``
},
"time": {
outline: ``,
filled: ``
},
"transfer-text": {
outline: ``,
filled: ``
},
"transfer2": {
outline: ``,
filled: ``
},
"translate": {
outline: ``,
filled: ``
},
"tv": {
outline: ``,
filled: ``
},
"video-call": {
outline: ``,
filled: ``
},
"voice": {
outline: ``,
filled: ``
},
"volume-down": {
outline: ``,
filled: ``
},
"volume-off": {
outline: ``,
filled: ``
},
"volume-up": {
outline: ``,
filled: ``
}
};
exports.default = _default;
/***/ })
/******/ });