UNPKG

@aiot-toolkit/velasim

Version:

vela for sim

1,041 lines (1,014 loc) 25.3 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/margin_padding/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/margin_padding/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/margin_padding/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/margin_padding/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": "200px", "height": "80px", "backgroundColor": "#800080", "opacity": 0.7 } ] ] /***/ }), /***/ "./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/margin_padding/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/margin_padding/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. margin" }), aiot.__ce__("div", { "classList": [ "column", "group" ] }, [ aiot.__ce__("text", { "value": "不设置margin" }), aiot.__ce__("div", { "classList": [ "box1" ] }), aiot.__ce__("text", { "value": "margin: 0" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "0px", "marginRight": "0px", "marginBottom": "0px", "marginLeft": "0px" } }), aiot.__ce__("text", { "value": "margin: 20px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "20px", "marginRight": "20px", "marginBottom": "20px", "marginLeft": "20px" } }), aiot.__ce__("text", { "value": "margin: 10px 20px 30px 40px" }), aiot.__ce__("div", { "style": { "borderTopWidth": "1px", "borderRightWidth": "1px", "borderBottomWidth": "1px", "borderLeftWidth": "1px", "borderStyle": "solid", "borderTopColor": "#800080", "borderRightColor": "#800080", "borderBottomColor": "#800080", "borderLeftColor": "#800080", "width": "260px" } }, [ aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "10px", "marginRight": "20px", "marginBottom": "30px", "marginLeft": "40px" } }) ]) ]), aiot.__ce__("text", { "classList": [ "header" ], "value": "2. margin-left|top|right|bottom" }), aiot.__ce__("div", { "classList": [ "column", "group" ] }, [ aiot.__ce__("text", { "value": "margin-top: 20px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "20px" } }), aiot.__ce__("text", { "value": "margin-bottom: 20px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginBottom": "20px" } }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "200px", "height": "5px" } }), aiot.__ce__("text", { "value": "margin-left: 20px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginLeft": "20px" } }), aiot.__ce__("text", { "value": "margin-right: 20px" }), aiot.__ce__("div", {}, [ aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginRight": "20px" } }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "5px", "height": "80px" } }) ]) ]), aiot.__ce__("text", { "classList": [ "header" ], "value": "3. margin负值" }), aiot.__ce__("div", { "classList": [ "column", "group" ] }, [ aiot.__ce__("text", { "value": "margin: 0px" }), aiot.__ce__("div", { "style": { "borderTopWidth": "1px", "borderRightWidth": "1px", "borderBottomWidth": "1px", "borderLeftWidth": "1px", "borderStyle": "solid", "borderTopColor": "#009900", "borderRightColor": "#009900", "borderBottomColor": "#009900", "borderLeftColor": "#009900", "paddingTop": "0px", "paddingRight": "0px", "paddingBottom": "0px", "paddingLeft": "0px", "width": "202px" } }, [ aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "0px", "marginRight": "0px", "marginBottom": "0px", "marginLeft": "0px" } }) ]), aiot.__ce__("text", { "classList": [ "bug" ], "value": "margin: -10px" }), aiot.__ce__("div", { "style": { "borderTopWidth": "1px", "borderRightWidth": "1px", "borderBottomWidth": "1px", "borderLeftWidth": "1px", "borderStyle": "solid", "borderTopColor": "#009900", "borderRightColor": "#009900", "borderBottomColor": "#009900", "borderLeftColor": "#009900", "paddingTop": "0px", "paddingRight": "0px", "paddingBottom": "0px", "paddingLeft": "0px", "width": "202px" } }, [ aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "-10px", "marginRight": "-10px", "marginBottom": "-10px", "marginLeft": "-10px" } }) ]), aiot.__ce__("text", { "value": "margin: 0px" }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "210px", "height": "5px", "marginTop": "5px", "marginLeft": "5px" } }), aiot.__ce__("div", {}, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "5px", "height": "80px", "marginLeft": "5px" } }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "0px", "marginRight": "0px", "marginBottom": "0px", "marginLeft": "0px" } }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "5px", "height": "80px" } }) ]), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "210px", "height": "5px", "marginLeft": "5px" } }), aiot.__ce__("text", { "classList": [ "bug" ], "value": "margin: -10px" }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "210px", "height": "5px", "marginTop": "5px", "marginLeft": "5px" } }), aiot.__ce__("div", {}, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "5px", "height": "80px", "marginLeft": "5px" } }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "-10px", "marginRight": "-10px", "marginBottom": "-10px", "marginLeft": "-10px" } }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "5px", "height": "80px" } }) ]), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "210px", "height": "5px", "marginLeft": "5px" } }), aiot.__ce__("text", { "value": "margin-top: -20px" }), aiot.__ce__("div", { "style": { "flexDirection": "column", "alignItems": "center", "width": "220px", "height": "100px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "220px", "height": "5px", "marginTop": "20px" } }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginTop": "-20px" } }) ]), aiot.__ce__("text", { "value": "margin-bottom: -20px" }), aiot.__ce__("div", { "style": { "flexDirection": "column", "alignItems": "center", "width": "220px", "height": "100px" } }, [ aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginBottom": "-20px" } }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "220px", "height": "5px" } }) ]), aiot.__ce__("text", { "value": "margin-left: -20px" }), aiot.__ce__("div", { "style": { "alignItems": "center", "width": "220px", "height": "100px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "5px", "height": "100px", "marginLeft": "20px" } }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginLeft": "-20px" } }) ]), aiot.__ce__("text", { "value": "margin-right: -20px" }), aiot.__ce__("div", { "style": { "alignItems": "center", "width": "220px", "height": "100px" } }, [ aiot.__ce__("div", { "classList": [ "box1" ], "style": { "marginRight": "-20px" } }), aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "5px", "height": "100px" } }) ]) ]), aiot.__ce__("text", { "classList": [ "header" ], "value": "4. padding" }), aiot.__ce__("div", { "classList": [ "column", "group" ] }, [ aiot.__ce__("text", { "value": "padding: 0" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "paddingTop": "0px", "paddingRight": "0px", "paddingBottom": "0px", "paddingLeft": "0px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "100%", "height": "100%" } }) ]), aiot.__ce__("text", { "value": "padding: 10px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "paddingTop": "10px", "paddingRight": "10px", "paddingBottom": "10px", "paddingLeft": "10px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "100%", "height": "100%" } }) ]), aiot.__ce__("text", { "value": "padding: -10px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "paddingTop": "-10px", "paddingRight": "-10px", "paddingBottom": "-10px", "paddingLeft": "-10px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "100%", "height": "100%" } }) ]) ]), aiot.__ce__("text", { "classList": [ "header" ], "value": "5. padding-left|top|right|bottom" }), aiot.__ce__("div", { "classList": [ "column", "group" ] }, [ aiot.__ce__("text", { "value": "padding-left: 10px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "paddingLeft": "10px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "100%", "height": "100%" } }) ]), aiot.__ce__("text", { "value": "padding-right: 10px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "paddingRight": "10px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "100%", "height": "100%" } }) ]), aiot.__ce__("text", { "value": "padding-top: 10px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "paddingTop": "10px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "100%", "height": "100%" } }) ]), aiot.__ce__("text", { "value": "padding-bottom: 10px" }), aiot.__ce__("div", { "classList": [ "box1" ], "style": { "paddingBottom": "10px" } }, [ aiot.__ce__("div", { "style": { "backgroundColor": "#009900", "width": "100%", "height": "100%" } }) ]) ]), aiot.__ce__("text", { "classList": [ "header" ], "value": "6. 根元素padding-bottom问题" }), aiot.__ce__("text", { "classList": [ "tips" ], "value": "这个页面目前设置了padding: 30px" }) ]) } /***/ }), /***/ "./src/component/general/style/margin_padding/index.ux?uxType=page": /*!*************************************************************************!*\ !*** ./src/component/general/style/margin_padding/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/margin_padding/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/margin_padding/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/margin_padding/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/margin_padding/index.ux?uxType=page"); /******/ /******/ })() ; }; return createPageHandler(); };