@dolphinweex/weex-vue-render 0.2.79 → 0.2.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +12 -0
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -8,6 +8,9 @@ console.log('START WEEX VUE RENDER: 1.0.36, Build 2018-12-29 17:52.');
|
|
|
8
8
|
(global.WeexVueRender = factory());
|
|
9
9
|
}(this, (function () { 'use strict';
|
|
10
10
|
|
|
11
|
+
// 记录当前已经添加过的字体
|
|
12
|
+
const AddedRules = {}
|
|
13
|
+
|
|
11
14
|
function __$styleInject(css, returnValue) {
|
|
12
15
|
if (typeof document === 'undefined') {
|
|
13
16
|
return returnValue;
|
|
@@ -11323,6 +11326,12 @@ var dom = {
|
|
|
11323
11326
|
* @param {object} styles rules
|
|
11324
11327
|
*/
|
|
11325
11328
|
addRule: function (key, styles) {
|
|
11329
|
+
const rule_key = styles["fontFamily"] + styles["src"]
|
|
11330
|
+
if (AddedRules[rule_key]) {
|
|
11331
|
+
console.log("已经添加过字体了,无需再添加", styles.src)
|
|
11332
|
+
return
|
|
11333
|
+
}
|
|
11334
|
+
|
|
11326
11335
|
var camelToKebab = utils$3.camelToKebab;
|
|
11327
11336
|
var appendCss = utils$3.appendCss;
|
|
11328
11337
|
key = camelToKebab(key);
|
|
@@ -11343,6 +11352,9 @@ var dom = {
|
|
|
11343
11352
|
key,
|
|
11344
11353
|
styles,
|
|
11345
11354
|
}, undefined, undefined, undefined);
|
|
11355
|
+
|
|
11356
|
+
|
|
11357
|
+
AddedRules[rule_key] = styles
|
|
11346
11358
|
}
|
|
11347
11359
|
};
|
|
11348
11360
|
var dom$1 = {
|
package/package.json
CHANGED