1
0
mirror of synced 2026-04-05 16:08:37 +08:00

feat(admin): 更新runtime

This commit is contained in:
roymondchen
2022-08-08 17:10:43 +08:00
committed by jia000
parent 1d8149b5eb
commit eba6cbccde
57 changed files with 42664 additions and 162 deletions

View File

@@ -0,0 +1,95 @@
(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.magicPresetConfigs = factory());
})(this, (function () { 'use strict';
const page = [
{
text: "\u9875\u9762\u6807\u8BC6",
name: "name",
disabled: true,
extra: "\u5728\u591A\u9875\u9762\u7684\u60C5\u51B5\u4E0B\u7528\u6765\u6307\u5B9A\u8981\u6253\u5F00\u7684\u9875\u9762"
},
{
text: "\u9875\u9762\u6807\u9898",
name: "title"
},
{
name: "layout",
text: "\u5BB9\u5668\u5E03\u5C40",
type: "select",
defaultValue: "absolute",
options: [
{ value: "absolute", text: "\u7EDD\u5BF9\u5B9A\u4F4D" },
{ value: "relative", text: "\u6D41\u5F0F\u5E03\u5C40" }
]
}
];
const container = [
{
name: "layout",
text: "\u5BB9\u5668\u5E03\u5C40",
type: "select",
defaultValue: "absolute",
options: [
{ value: "absolute", text: "\u7EDD\u5BF9\u5B9A\u4F4D" },
{ value: "relative", text: "\u6D41\u5F0F\u5E03\u5C40" }
]
}
];
const button = [
{
text: "\u6587\u672C",
name: "text"
}
];
const text = [
{
name: "text",
text: "\u6587\u672C"
},
{
name: "multiple",
text: "\u591A\u884C\u6587\u672C",
type: "switch"
}
];
const img = [
{
text: "\u56FE\u7247",
name: "src"
},
{
text: "\u94FE\u63A5",
name: "url"
}
];
const qrcode = [
{
text: "\u94FE\u63A5",
name: "url"
}
];
const overlay = [];
const configs = {
"page": page,
"container": container,
"button": button,
"text": text,
"img": img,
"qrcode": qrcode,
"overlay": overlay
};
return configs;
}));
//# sourceMappingURL=index.umd.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,47 @@
(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.magicPresetEvents = factory());
})(this, (function () { 'use strict';
const page = {
methods: [
{
label: "\u5237\u65B0\u9875\u9762",
value: "refresh"
}
]
};
const overlay = {
methods: [
{
label: "\u6253\u5F00\u8499\u5C42",
value: "openOverlay"
},
{
label: "\u5173\u95ED\u8499\u5C42",
value: "closeOverlay"
}
],
events: [
{
label: "\u6253\u5F00\u8499\u5C42",
value: "overlay:open"
},
{
label: "\u5173\u95ED\u8499\u5C42",
value: "overlay:close"
}
]
};
const events = {
"page": page,
"overlay": overlay
};
return events;
}));
//# sourceMappingURL=index.umd.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.umd.js","sources":["../../../../../packages/ui/src/page/src/event.ts","../../../../../packages/ui/src/overlay/src/event.ts","../../../.tmagic/event-entry.ts"],"sourcesContent":["export default {\n methods: [\n {\n label: '刷新页面',\n value: 'refresh',\n },\n ],\n};\n","export default {\n methods: [\n {\n label: '打开蒙层',\n value: 'openOverlay',\n },\n {\n label: '关闭蒙层',\n value: 'closeOverlay',\n },\n ],\n events: [\n {\n label: '打开蒙层',\n value: 'overlay:open',\n },\n {\n label: '关闭蒙层',\n value: 'overlay:close',\n },\n ],\n};\n","import page from '/data/magic/tmagic-editor/packages/ui/src/page/src/event';\nimport overlay from '/data/magic/tmagic-editor/packages/ui/src/overlay/src/event';\n\nconst events: Record<string, any> = {\n 'page': page,\n 'overlay': overlay,\n};\n\nexport default events;"],"names":[],"mappings":";;;;;;AAAA,eAAe;EAAA,EACb,OAAS,EAAA;EAAA,IACP;EAAA,MACE,KAAO,EAAA,0BAAA;EAAA,MACP,KAAO,EAAA,SAAA;EAAA,KACT;EAAA,GACF;EACF,CAAA;;ACPA,kBAAe;EAAA,EACb,OAAS,EAAA;EAAA,IACP;EAAA,MACE,KAAO,EAAA,0BAAA;EAAA,MACP,KAAO,EAAA,aAAA;EAAA,KACT;EAAA,IACA;EAAA,MACE,KAAO,EAAA,0BAAA;EAAA,MACP,KAAO,EAAA,cAAA;EAAA,KACT;EAAA,GACF;EAAA,EACA,MAAQ,EAAA;EAAA,IACN;EAAA,MACE,KAAO,EAAA,0BAAA;EAAA,MACP,KAAO,EAAA,cAAA;EAAA,KACT;EAAA,IACA;EAAA,MACE,KAAO,EAAA,0BAAA;EAAA,MACP,KAAO,EAAA,eAAA;EAAA,KACT;EAAA,GACF;EACF,CAAA;;AClBA,QAAM,MAA8B,GAAA;EAAA,EAClC,MAAQ,EAAA,IAAA;EAAA,EACR,SAAW,EAAA,OAAA;EACb;;;;;;;;"}

View File

@@ -0,0 +1,90 @@
(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.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/static/vue3/runtime/page/favicon.png" type="image/png">
<title>Vue3 Page</title>
<style>
html,
body,
#app {
width: 100%;
height: 100%;
}
#app {
position: relative;
overflow: auto;
}
#app::-webkit-scrollbar {
width: 0 !important;
display: none;
}
</style>
<script src="https://unpkg.com/vue@next/dist/vue.runtime.global.js"></script>
<script type="module" crossorigin src="/static/vue3/runtime/page/assets/index.b9c60957.js"></script>
<script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
<body>
<div id="app"></div>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="/static/vue3/runtime/page/assets/polyfills-legacy.7a061a97.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/static/vue3/runtime/page/assets/index-legacy.9fd49d9c.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
System.register([],(function(e){"use strict";return{execute:function(){e("default",{})}}}));
//# sourceMappingURL=plugin-entry-legacy.7d9da6d6.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"plugin-entry-legacy.7d9da6d6.js","sources":["../../../../.tmagic/plugin-entry.ts"],"sourcesContent":["const plugins: Record<string, any> = {};\nexport default plugins;"],"names":["exports"],"mappings":"uEAAqCA,EAAA,UAAA,CAAA"}

View File

@@ -0,0 +1,2 @@
const s={};export{s as default};
//# sourceMappingURL=plugin-entry.b765d2c2.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"plugin-entry.b765d2c2.js","sources":["../../../../.tmagic/plugin-entry.ts"],"sourcesContent":["const plugins: Record<string, any> = {};\nexport default plugins;"],"names":[],"mappings":"AAAA,KAAM,GAA+B,CAAA"}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en" style="font-size: 100px">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/static/vue3/runtime/playground/favicon.png" type="image/png">
<title>Vue3 Playground</title>
<style>
html,body {margin: 0; padding: 0}
.magic-ui-page {
overflow: hidden;
}
::-webkit-scrollbar {
width: 0;
}
html,
body,
#app {
width: 100%;
height: 100%;
}
#app {
position: relative;
overflow: auto;
}
.magic-ui-container {
background-color: rgba(136, 136, 136, 0.5);
}
.action-area {
background-color: rgba(51, 153, 255, 0.5) !important;
}
</style>
<script type="module" crossorigin src="/static/vue3/runtime/playground/assets/index.79d6c210.js"></script>
<script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
<body style="font-size: 14px">
<div id="app"></div>
<script src="https://unpkg.com/vue@next/dist/vue.global.js"></script>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="/static/vue3/runtime/playground/assets/polyfills-legacy.ebeee3b7.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="/static/vue3/runtime/playground/assets/index-legacy.ac8fb9e1.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>