UNPKG

@aiot-toolkit/velasim

Version:

vela for sim

977 lines (950 loc) 22.9 kB
export default function(global, globalThis, window, $app_exports$){ var createPageHandler = function() { return /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!./node_modules/babel-loader/lib/index.js?cwd=/home/zhoubingqing/workspace/vela/vela-qapp-samples&cacheDirectory&plugins[]=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/packager/babel.config.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=script!./src/component/general/style/position/index.ux?uxType=page": /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!./node_modules/babel-loader/lib/index.js?cwd=/home/zhoubingqing/workspace/vela/vela-qapp-samples&cacheDirectory&plugins[]=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/packager/babel.config.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=script!./src/component/general/style/position/index.ux?uxType=page ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = function __scriptModule__ (module, exports, $app_require$){"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _system = _interopRequireDefault($app_require$("@app-module/system.router")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { onReady() {}, back() { _system.default.back(); } }; exports.default = _default; const moduleOwn = exports.default || module.exports; const accessors = ['public', 'protected', 'private']; if (moduleOwn.data && accessors.some(function (acc) { return moduleOwn[acc]; })) { throw new Error('页面VM对象中的属性data不可与"' + accessors.join(',') + '"同时存在,请使用private替换data名称'); } else if (!moduleOwn.data) { moduleOwn.data = {}; moduleOwn._descriptor = {}; accessors.forEach(function (acc) { const accType = typeof moduleOwn[acc]; if (accType === 'object') { moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]); for (const name in moduleOwn[acc]) { moduleOwn._descriptor[name] = { access: acc }; } } else if (accType === 'function') { console.warn('页面VM对象中的属性' + acc + '的值不能是函数,请使用对象'); } }); }} /***/ }), /***/ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=style!./src/component/general/style/position/index.ux?uxType=page": /*!**********************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=style!./src/component/general/style/position/index.ux?uxType=page ***! \**********************************************************************************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = [ [ [ [ 0, "page" ] ], { "paddingTop": "60px", "paddingRight": "60px", "paddingBottom": "60px", "paddingLeft": "60px", "flexDirection": "column" } ], [ [ [ 0, "column" ] ], { "flexDirection": "column" } ], [ [ [ 0, "row" ] ], { "flexDirection": "row" } ], [ [ [ 0, "header" ] ], { "fontWeight": "bold", "marginBottom": "10px", "marginTop": "20px", "fontSize": "30px" } ], [ [ [ 0, "link" ] ], { "color": "#0099ff", "textDecoration": "underline" } ], [ [ [ 0, "link-ing" ] ], { "color": "#FFA500" } ], [ [ [ 0, "back" ] ], { "textAlign": "center", "fontSize": "30px", "color": "#0099ff", "textDecoration": "underline" } ], [ [ [ 0, "bug" ] ], { "color": "#DD4731" } ], [ [ [ 0, "not-support" ] ], { "color": "#808080" } ], [ [ [ 0, "gray" ] ], { "color": "#808080" } ], [ [ [ 0, "box" ] ], { "width": "200px", "height": "80px", "marginBottom": "10px", "backgroundColor": "#800080" } ], [ [ [ 0, "group" ] ], { "marginBottom": "15px" } ], [ [ [ 0, "label" ] ], { "marginTop": "10px" } ], [ [ [ 0, "border" ] ], { "borderTopWidth": "1px", "borderRightWidth": "1px", "borderBottomWidth": "1px", "borderLeftWidth": "1px", "borderStyle": "solid", "borderTopColor": "#800080", "borderRightColor": "#800080", "borderBottomColor": "#800080", "borderLeftColor": "#800080" } ], [ [ [ 0, "tips" ] ], { "paddingTop": "5px", "paddingRight": "5px", "paddingBottom": "5px", "paddingLeft": "5px", "backgroundColor": "rgb(240,228,204)", "color": "rgb(230,151,4)", "borderRadius": "5px", "marginTop": "5px", "marginBottom": "5px" } ], [ [ [ 0, "code" ] ], { "backgroundColor": "#f0f0f0", "borderRadius": "5px", "borderTopWidth": "1px", "borderRightWidth": "1px", "borderBottomWidth": "1px", "borderLeftWidth": "1px", "borderStyle": "solid", "borderTopColor": "#D3D3D3", "borderRightColor": "#D3D3D3", "borderBottomColor": "#D3D3D3", "borderLeftColor": "#D3D3D3", "paddingTop": "2px", "paddingRight": "4px", "paddingBottom": "2px", "paddingLeft": "4px", "fontSize": "24px" } ], [ [ [ 0, "btn" ] ], { "height": "60px", "width": "360px", "textAlign": "center", "borderRadius": "5px", "marginBottom": "30px", "color": "#ffffff", "fontSize": "30px", "backgroundColor": "#0faeff" } ], [ [ [ 2, "text" ] ], { "fontSize": "26px" } ], [ [ [ 0, "box1" ] ], { "width": "50px", "height": "50px", "backgroundColor": "#FFA500" } ], [ [ [ 0, "box2" ] ], { "width": "50px", "height": "50px", "backgroundColor": "#009900" } ], [ [ [ 0, "box3" ] ], { "width": "50px", "height": "50px", "backgroundColor": "#0099ff" } ], [ [ [ 0, "box4" ] ], { "height": "50px", "backgroundColor": "#FFA500" } ], [ [ [ 0, "box5" ] ], { "width": "50px", "backgroundColor": "#009900" } ], [ [ [ 0, "box6" ] ], { "backgroundColor": "#0099ff" } ], [ [ [ 0, "small-text" ] ], { "fontSize": "16px" } ] ] /***/ }), /***/ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./src/component/general/style/position/index.ux?uxType=page&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./src/component/general/style/position/index.ux?uxType=page& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((module) => { module.exports = function (vm) { const _vm_ = vm || this return aiot.__ce__("div", { "classList": [ "column", "page" ] }, [ aiot.__ce__("text", { "classList": [ "back" ], "events": { "click": function (evt) {_vm_.back(evt)} }, "value": "返回" }), aiot.__ce__("text", { "classList": [ "header" ], "value": "1. absolute" }), aiot.__ce__("text", { "classList": [ "label" ], "value": "left/top" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box1" ], "style": { "position": "absolute", "left": "10px", "top": "10px" } }), aiot.__ce__("text", { "classList": [ "box2" ], "style": { "position": "absolute", "left": "20px", "top": "20px" } }), aiot.__ce__("text", { "classList": [ "box3" ], "style": { "position": "absolute", "left": "30px", "top": "30px" } }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "left/bottom" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box1" ], "style": { "position": "absolute", "left": "10px", "bottom": "10px" } }), aiot.__ce__("text", { "classList": [ "box2" ], "style": { "position": "absolute", "left": "20px", "bottom": "20px" } }), aiot.__ce__("text", { "classList": [ "box3" ], "style": { "position": "absolute", "left": "30px", "bottom": "30px" } }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "right/top" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box1" ], "style": { "position": "absolute", "right": "10px", "top": "10px" } }), aiot.__ce__("text", { "classList": [ "box2" ], "style": { "position": "absolute", "right": "20px", "top": "20px" } }), aiot.__ce__("text", { "classList": [ "box3" ], "style": { "position": "absolute", "right": "30px", "top": "30px" } }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "right/bottom" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box1" ], "style": { "position": "absolute", "right": "10px", "bottom": "10px" } }), aiot.__ce__("text", { "classList": [ "box2" ], "style": { "position": "absolute", "right": "20px", "bottom": "20px" } }), aiot.__ce__("text", { "classList": [ "box3" ], "style": { "position": "absolute", "right": "30px", "bottom": "30px" } }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "同时设置:left/right" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box4" ], "style": { "position": "absolute", "left": "10px", "right": "10px", "top": "10px" } }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "同时设置:top/bottom" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box5" ], "style": { "position": "absolute", "left": "10px", "right": "10px", "top": "10px", "bottom": "10px" } }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "同时设置:left/right/top/bottom" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box6" ], "style": { "position": "absolute", "left": "10px", "right": "10px", "top": "10px", "bottom": "10px" } }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "百分比: left/right" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box1", "small-text" ], "style": { "position": "absolute", "left": "10%", "top": "10px" }, "value": "l:10%" }), aiot.__ce__("text", { "classList": [ "box2", "small-text" ], "style": { "position": "absolute", "left": "50%", "top": "20px" }, "value": "l:50%" }), aiot.__ce__("text", { "classList": [ "box3", "small-text" ], "style": { "position": "absolute", "left": "90%", "top": "10px" }, "value": "l:90%" }), aiot.__ce__("text", { "classList": [ "box3", "small-text" ], "style": { "position": "absolute", "right": "10%", "top": "50px" }, "value": "r:10%" }), aiot.__ce__("text", { "classList": [ "box1", "small-text" ], "style": { "position": "absolute", "right": "50%", "top": "60px" }, "value": "r:50%" }) ]), aiot.__ce__("text", { "classList": [ "label" ], "value": "百分比: top/bottom" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box1", "small-text" ], "style": { "position": "absolute", "top": "10%", "left": "10px" }, "value": "t:10%" }), aiot.__ce__("text", { "classList": [ "box2", "small-text" ], "style": { "position": "absolute", "top": "50%", "left": "20px" }, "value": "t:50%" }), aiot.__ce__("text", { "classList": [ "box3", "small-text" ], "style": { "position": "absolute", "bottom": "50%", "left": "70px" }, "value": "b:50%" }), aiot.__ce__("text", { "classList": [ "box1", "small-text" ], "style": { "position": "absolute", "bottom": "10%", "left": "80px" }, "value": "b:10%" }) ]), aiot.__ce__("text", { "classList": [ "header" ], "value": "2. relative" }), aiot.__ce__("text", { "classList": [ "label" ], "value": "left/top" }), aiot.__ce__("div", { "classList": [ "group", "box" ] }, [ aiot.__ce__("text", { "style": { "color": "#FFFFFF" }, "value": "这里是没有定位的元素..." }), aiot.__ce__("text", { "classList": [ "box1" ], "style": { "position": "relative", "left": "10px", "top": "10px" } }), aiot.__ce__("text", { "classList": [ "box2" ], "style": { "position": "relative", "left": "20px", "top": "20px" } }) ]) ]) } /***/ }), /***/ "./src/component/general/style/position/index.ux?uxType=page": /*!*******************************************************************!*\ !*** ./src/component/general/style/position/index.ux?uxType=page ***! \*******************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var $app_style$ = __webpack_require__(/*! !../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=style!./index.ux?uxType=page */ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/style-loader.js?index=0&type=style!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=style!./src/component/general/style/position/index.ux?uxType=page") var $app_script$ = __webpack_require__(/*! !../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!../../../../../node_modules/babel-loader/lib/index.js?cwd=/home/zhoubingqing/workspace/vela/vela-qapp-samples&cacheDirectory&plugins[]=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/packager/babel.config.js!../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=script!./index.ux?uxType=page */ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/script-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/module-loader.js!./node_modules/babel-loader/lib/index.js?cwd=/home/zhoubingqing/workspace/vela/vela-qapp-samples&cacheDirectory&plugins[]=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/babel-plugin-jsx.js&comments=false&configFile=/home/zhoubingqing/workspace/vela/vela-qapp-samples/node_modules/@aiot-toolkit/packager/babel.config.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/access-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=script!./src/component/general/style/position/index.ux?uxType=page") var $app_template$ = __webpack_require__(/*! !../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!../../../../../node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./index.ux?uxType=page& */ "./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/template-loader.js!./node_modules/@aiot-toolkit/dsl-xvm/lib/loaders/fragment-loader.js?index=0&type=template!./src/component/general/style/position/index.ux?uxType=page&") $app_script$({}, $app_exports$, $app_require$); $app_exports$.default.template = $app_template$; $app_exports$.default.style = $app_style$; module.exports = $app_exports$.default; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(__webpack_module_cache__[moduleId]) { /******/ return __webpack_module_cache__[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined /******/ var __webpack_exports__ = __webpack_require__("./src/component/general/style/position/index.ux?uxType=page"); /******/ /******/ })() ; }; return createPageHandler(); };