mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
91 lines
1.7 KiB
JavaScript
91 lines
1.7 KiB
JavaScript
(function (global, factory) {
|
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.magicPresetValues = factory());
|
|
})(this, (function () { 'use strict';
|
|
|
|
const page = {
|
|
items: [],
|
|
style: {
|
|
width: "100%",
|
|
height: "100%"
|
|
}
|
|
};
|
|
|
|
const container = {
|
|
items: [],
|
|
style: {
|
|
width: "375",
|
|
height: "100"
|
|
}
|
|
};
|
|
|
|
const button = {
|
|
text: "\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",
|
|
multiple: true,
|
|
style: {
|
|
width: "270",
|
|
height: "37.5",
|
|
border: 0,
|
|
backgroundColor: "#fb6f00"
|
|
}
|
|
};
|
|
|
|
const text = {
|
|
type: "text",
|
|
text: "\u8BF7\u8F93\u5165\u6587\u672C\u5185\u5BB9",
|
|
multiple: true,
|
|
style: {
|
|
width: "100",
|
|
height: "auto"
|
|
}
|
|
};
|
|
|
|
const img = {
|
|
src: "https://puui.qpic.cn/vupload/0/1573555382625_bhp0wud8l6w.png/0",
|
|
url: "",
|
|
style: {
|
|
position: "absolute",
|
|
left: "57",
|
|
width: "176",
|
|
height: "176"
|
|
}
|
|
};
|
|
|
|
const qrcode = {
|
|
url: "https://m.film.qq.com",
|
|
style: {
|
|
position: "absolute",
|
|
left: "57",
|
|
width: "176",
|
|
height: "176"
|
|
}
|
|
};
|
|
|
|
const overlay = {
|
|
style: {
|
|
position: "fixed",
|
|
width: "100%",
|
|
height: "100%",
|
|
top: 0,
|
|
left: 0,
|
|
backgroundColor: "rgba(0, 0, 0, 0.8)"
|
|
},
|
|
items: []
|
|
};
|
|
|
|
const values = {
|
|
"page": page,
|
|
"container": container,
|
|
"button": button,
|
|
"text": text,
|
|
"img": img,
|
|
"qrcode": qrcode,
|
|
"overlay": overlay
|
|
};
|
|
|
|
return values;
|
|
|
|
}));
|
|
//# sourceMappingURL=index.umd.cjs.map
|