yinghe-lowcode-zln
Version:
基于vue、ant-design-vue,datagrid的低代码平台
1,565 lines (1,500 loc) • 30.8 MB
JavaScript
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/
/******/ };
/******/
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded CSS chunks
/******/ var installedCssChunks = {
/******/ 0: 0
/******/ }
/******/
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // Promise = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ 0: 0
/******/ };
/******/
/******/
/******/
/******/ // script path function
/******/ function jsonpScriptSrc(chunkId) {
/******/ return __webpack_require__.p + "yinghe-lowcode-zln.common." + ({}[chunkId]||chunkId) + ".js"
/******/ }
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ var promises = [];
/******/
/******/
/******/ // mini-css-extract-plugin CSS loading
/******/ var cssChunks = {"1":1};
/******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
/******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
/******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
/******/ var href = "css/" + ({}[chunkId]||chunkId) + "." + {"1":"819092da"}[chunkId] + ".css";
/******/ var fullhref = __webpack_require__.p + href;
/******/ var existingLinkTags = document.getElementsByTagName("link");
/******/ for(var i = 0; i < existingLinkTags.length; i++) {
/******/ var tag = existingLinkTags[i];
/******/ var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
/******/ if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return resolve();
/******/ }
/******/ var existingStyleTags = document.getElementsByTagName("style");
/******/ for(var i = 0; i < existingStyleTags.length; i++) {
/******/ var tag = existingStyleTags[i];
/******/ var dataHref = tag.getAttribute("data-href");
/******/ if(dataHref === href || dataHref === fullhref) return resolve();
/******/ }
/******/ var linkTag = document.createElement("link");
/******/ linkTag.rel = "stylesheet";
/******/ linkTag.type = "text/css";
/******/ linkTag.onload = resolve;
/******/ linkTag.onerror = function(event) {
/******/ var request = event && event.target && event.target.src || fullhref;
/******/ var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + request + ")");
/******/ err.code = "CSS_CHUNK_LOAD_FAILED";
/******/ err.request = request;
/******/ delete installedCssChunks[chunkId]
/******/ linkTag.parentNode.removeChild(linkTag)
/******/ reject(err);
/******/ };
/******/ linkTag.href = fullhref;
/******/
/******/ var head = document.getElementsByTagName("head")[0];
/******/ head.appendChild(linkTag);
/******/ }).then(function() {
/******/ installedCssChunks[chunkId] = 0;
/******/ }));
/******/ }
/******/
/******/ // JSONP chunk loading for javascript
/******/
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunkData) {
/******/ promises.push(installedChunkData[2]);
/******/ } else {
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ promises.push(installedChunkData[2] = promise);
/******/
/******/ // start chunk loading
/******/ var script = document.createElement('script');
/******/ var onScriptComplete;
/******/
/******/ script.charset = 'utf-8';
/******/ script.timeout = 120;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = jsonpScriptSrc(chunkId);
/******/
/******/ // create error before stack unwound to get useful stacktrace later
/******/ var error = new Error();
/******/ onScriptComplete = function (event) {
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var chunk = installedChunks[chunkId];
/******/ if(chunk !== 0) {
/******/ if(chunk) {
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
/******/ var realSrc = event && event.target && event.target.src;
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
/******/ error.name = 'ChunkLoadError';
/******/ error.type = errorType;
/******/ error.request = realSrc;
/******/ chunk[1](error);
/******/ }
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ var timeout = setTimeout(function(){
/******/ onScriptComplete({ type: 'timeout', target: script });
/******/ }, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ document.head.appendChild(script);
/******/ }
/******/ }
/******/ return Promise.all(promises);
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // on error function for async loading
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["webpackJsonpyinghe_lowcode_zln"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpyinghe_lowcode_zln"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ jsonpArray = jsonpArray.slice();
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
/******/ var parentJsonpFunction = oldJsonpFunction;
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
/******/ })
/************************************************************************/
/******/ ({
/***/ 0:
/***/ (function(module, exports) {
/* (ignored) */
/***/ }),
/***/ "0036":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return condition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return alignList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return inputTypeList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return tiaojians; });
/* unused harmony export rJobs */
/* unused harmony export dJobs */
/* unused harmony export dGroupJobs */
/* unused harmony export rJobs2 */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return ynList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return handleInfo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return configLayoutType; });
// 组件类型
var inputTypeList = [{
label: '输入框',
value: 'string'
}, {
label: '选择框',
value: 'select'
}, {
label: '数字框',
value: 'number'
}, {
label: '上传框',
value: 'upload'
}, {
label: '树框',
value: 'tree'
}, {
label: '单选框',
value: 'radio'
}, {
label: '多选',
value: 'checkbox'
}, {
label: '开关框',
value: 'boolean'
}, {
label: '文本框',
value: 'textarea'
}, {
label: '时间框',
value: 'time'
}, {
label: '时间范围',
value: 'timerange'
}, {
label: '级联框',
value: 'cascader'
}, {
label: '日期框',
value: 'date'
}, {
label: '日期时间框',
value: 'datetime'
}];
// 查询条件
var tiaojians = [{
label: '等于',
value: 'andEq'
}, {
label: 'in',
value: 'andIn'
}, {
label: 'notIn',
value: 'andNotIn'
}, {
label: '不等于',
value: 'andNotEq'
}, {
label: 'notBetweenAnd',
value: 'andNotBetween'
}, {
label: 'betweenAnd',
value: 'andBetween'
}, {
label: '大于',
value: 'andGreat'
}, {
label: '大于等于',
value: 'andGreatEq'
}, {
label: '小于',
value: 'andLess'
}, {
label: '小于等于',
value: 'andLessEq'
}, {
label: 'like',
value: 'andLike'
}, {
label: 'leftLike',
value: 'andLeftLike'
}, {
label: 'rightLike',
value: 'andRightLike'
}, {
label: '为空',
value: 'andIsNull'
}, {
label: '不为空',
value: 'andIsNotNull'
}];
// 连接类型
var condition = [{
label: '左连接',
value: 'leftJoin'
}, {
label: '内连接',
value: 'innerJoin'
}, {
label: '一对一',
value: 'oneToOne'
}, {
label: '一对多',
value: 'oneToMany'
}];
// yes or no
var ynList = [{
label: '否',
value: 'false'
}, {
label: '是',
value: 'true'
}];
// 对齐方式
var alignList = [{
label: '居左',
value: 'left'
}, {
label: '居中',
value: 'center'
}, {
label: '居右',
value: 'right'
}];
var dJobs = [{
value: 'DEG',
label: '提空预约',
children: [{
value: 'DEG',
label: 'DEG一般提空'
}, {
value: 'DEK',
label: 'DEK提管空箱'
}]
}, {
value: 'DFG',
label: '提重预约',
children: [{
value: 'DFG',
label: 'DFG一般提重'
}, {
value: 'DFO',
label: 'DFO提退关箱'
}, {
value: 'DTG',
label: 'DTG提转码头箱'
}]
}];
var dGroupJobs = [{
value: 'DEG',
label: '提空预约',
children: [{
value: 'DEG',
label: 'DEG一般提空'
}]
}, {
value: 'DFG',
label: '提重预约',
children: [{
value: 'DFG',
label: 'DFG一般提重'
}, {
value: 'DFO',
label: 'DFO提退关箱'
}, {
value: 'DTG',
label: 'DTG提转码头箱'
}]
}];
var rJobs = [{
value: 'REG',
label: '进空预约',
children: [{
value: 'REG',
label: 'REG一般进空'
}, {
value: 'RED',
label: 'RED直装进空'
}]
}, {
value: 'RFG',
label: '进重预约',
children: [{
value: 'RFA',
label: 'RFA迟到进重'
}, {
value: 'RFB',
label: 'RFB提前进重'
}, {
value: 'RFC',
label: 'RFC纯CFS进重'
}, {
value: 'RFD',
label: 'RFD直装'
}, {
value: 'RFG',
label: 'RFG一般进重'
}, {
value: 'RFP',
label: 'RFP直装普货'
}, {
value: 'RFR',
label: 'RFR进口汽车专场箱预约'
}, {
value: 'RFS',
label: 'RFS进退运箱'
}, {
value: 'RFT',
label: 'RFT转码头进重'
}, {
value: 'RFY',
label: 'RFY提前进重/费率优惠'
}, {
value: 'RFH',
label: 'RFH海铁箱进重'
}]
}];
var rJobs2 = [{
value: '进空预约',
label: '进空预约:',
disabled: true
}, {
value: 'REG',
label: ' REG一般进空',
class: 'selectItem'
}, {
value: 'RED',
label: ' RED直装进空',
class: 'selectItem'
}, {
value: '进重预约',
label: '进重预约:',
disabled: true
}, {
value: 'RFA',
label: 'RFA迟到进重',
class: 'selectItem'
}, {
value: 'RFB',
label: 'RFB提前进重',
class: 'selectItem'
}, {
value: 'RFC',
label: 'RFC纯CFS进重',
class: 'selectItem'
}, {
value: 'RFD',
label: 'RFD直装',
class: 'selectItem'
}, {
value: 'RFG',
label: 'RFG一般进重',
class: 'selectItem'
}, {
value: 'RFP',
label: 'RFP直装普货',
class: 'selectItem'
}, {
value: 'RFR',
label: 'RFR进口汽车专场箱预约',
class: 'selectItem'
}, {
value: 'RFS',
label: ' RFS进退运箱',
class: 'selectItem'
}, {
value: 'RFT',
label: ' RFT转码头进重',
class: 'selectItem'
}, {
value: 'RFY',
label: 'RFY提前进重/费率优惠',
class: 'selectItem'
}, {
value: 'RFH',
label: 'RFH海铁箱进重',
class: 'selectItem'
}];
var handleInfo = [{
eventName: "callInMounted",
info: "组件加载完毕时执行",
code: "",
params: [{
name: "ctos3CommonApi",
info: "接口方法",
type: "Object"
}, {
name: "packageRpcParam",
info: "组包方法",
type: "Object"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}]
}, {
eventName: "handleBusiness",
info: "按钮点击事件",
code: "",
params: [{
name: "operation",
info: "按钮标识",
type: "String"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}]
}, {
eventName: "handleChange",
info: "表单内容变化事件",
code: "",
params: [{
name: "value",
info: "事件对象",
type: "Object"
}, {
name: "key",
info: "表单key",
type: "String"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}]
}, {
eventName: "handleBlur",
info: "表单失去焦点事件",
code: "",
params: [{
name: "value",
info: "事件对象",
type: "Object"
}, {
name: "key",
info: "表单key",
type: "String"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}]
}, {
eventName: "handleEnter",
info: "表单回车事件",
code: "",
params: [{
name: "value",
info: "事件对象",
type: "Object"
}, {
name: "key",
info: "表单key",
type: "String"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}]
}, {
eventName: "logEvent",
info: "表格事件",
code: "",
params: [{
name: "value",
info: "事件对象",
type: "Object"
}, {
name: "key",
info: "表单key",
type: "String"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}]
}, {
eventName: "dynamicFunc",
info: "动态按钮事件",
code: "",
params: [{
name: "operation",
info: "按钮方法",
type: "String"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}]
}, {
eventName: "handleDialogBusiness",
info: "弹窗按钮回调事件",
code: "",
params: [{
name: "operation",
info: "按钮方法(默认保存按钮是handleOk)",
type: "String"
}, {
name: "context",
info: "页面上下文",
type: "Object"
}, {
name: "data",
info: "表单数据",
type: "String"
}]
}];
var configLayoutType = {
GRID: 'Grid',
FLEX: 'flex'
};
/***/ }),
/***/ "0043":
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "3e6cde7f6a3d84c5cff5127be1c019f3.js";
/***/ }),
/***/ "0078":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _core_renderer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5b62");
/* harmony import */ var _core_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ac1d");
/* harmony import */ var _core_utils_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("6bc7");
/* harmony import */ var _core_utils_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("bf95");
/* harmony import */ var _core_component_registrator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("085e");
/* harmony import */ var _core_utils_extend__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("b9af");
/* harmony import */ var _collection_ui_collection_widget_edit_strategy_plain__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("4401");
/* harmony import */ var _slide_out_view__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("70cd");
/* harmony import */ var _collection_ui_collection_widget_edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("0da6");
/* harmony import */ var _list_light__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("af8d");
/* harmony import */ var _core_templates_child_default_template__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("a470");
/* harmony import */ var _core_templates_empty_template__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("0d5c");
/* harmony import */ var _shared_grouped_data_converter_mixin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("6f1d");
/**
* DevExtreme (esm/ui/slide_out.js)
* Version: 22.1.5
* Build date: Fri Sep 02 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
var SLIDEOUT_CLASS = "dx-slideout";
var SLIDEOUT_ITEM_CONTAINER_CLASS = "dx-slideout-item-container";
var SLIDEOUT_MENU = "dx-slideout-menu";
var SLIDEOUT_ITEM_CLASS = "dx-slideout-item";
var SLIDEOUT_ITEM_DATA_KEY = "dxSlideoutItemData";
var SlideOut = _collection_ui_collection_widget_edit__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"].inherit({
ctor: function(element, options) {
this.callBase(element, options);
this._logDeprecatedComponentWarning("20.1", "dxDrawer")
},
_getDefaultOptions: function() {
return Object(_core_utils_extend__WEBPACK_IMPORTED_MODULE_5__[/* extend */ "a"])(this.callBase(), {
activeStateEnabled: false,
menuItemTemplate: "menuItem",
swipeEnabled: true,
menuVisible: false,
menuPosition: "normal",
menuGrouped: false,
menuGroupTemplate: "menuGroup",
onMenuItemRendered: null,
onMenuGroupRendered: null,
contentTemplate: "content",
selectionMode: "single",
selectedIndex: 0,
selectionRequired: true
})
},
_itemClass: function() {
return SLIDEOUT_ITEM_CLASS
},
_itemDataKey: function() {
return SLIDEOUT_ITEM_DATA_KEY
},
_itemContainer: function() {
return Object(_core_renderer__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this._slideOutView.content())
},
_init: function() {
this._selectedItemContentRendered = false;
this.callBase();
this.$element().addClass(SLIDEOUT_CLASS);
this._initSlideOutView()
},
_initTemplates: function() {
this.callBase();
this._templateManager.addDefaultTemplates({
menuItem: new _core_templates_child_default_template__WEBPACK_IMPORTED_MODULE_10__[/* ChildDefaultTemplate */ "a"]("item"),
menuGroup: new _core_templates_child_default_template__WEBPACK_IMPORTED_MODULE_10__[/* ChildDefaultTemplate */ "a"]("group"),
content: new _core_templates_empty_template__WEBPACK_IMPORTED_MODULE_11__[/* EmptyTemplate */ "a"]
})
},
_initEditStrategy: function() {
if (this.option("menuGrouped")) {
var strategy = _collection_ui_collection_widget_edit_strategy_plain__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].inherit({
_getPlainItems: function() {
return this.callBase().reduce((result, group) => {
result.push.apply(result, group.items);
return result
}, [])
}
});
this._editStrategy = new strategy(this)
} else {
this.callBase()
}
},
_initSlideOutView: function() {
this._slideOutView = this._createComponent(this.$element(), _slide_out_view__WEBPACK_IMPORTED_MODULE_7__["default"], {
integrationOptions: {},
menuVisible: this.option("menuVisible"),
swipeEnabled: this.option("swipeEnabled"),
menuPosition: this.option("menuPosition"),
onOptionChanged: this._slideOutViewOptionChanged.bind(this)
});
this._itemContainer().addClass(SLIDEOUT_ITEM_CONTAINER_CLASS)
},
_slideOutViewOptionChanged: function(args) {
if ("menuVisible" === args.name) {
this.option(args.name, args.value)
}
},
_initMarkup: function() {
this._renderList();
this._renderContentTemplate();
this.callBase()
},
_render: function() {
this._slideOutView._renderShield();
this.callBase()
},
_renderList: function() {
var $list = this._list && this._list.$element() || Object(_core_renderer__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])("<div>").addClass(SLIDEOUT_MENU).appendTo(Object(_core_renderer__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this._slideOutView.menuContent()));
this._renderItemClickAction();
this._list = this._createComponent($list, _list_light__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
itemTemplateProperty: "menuTemplate",
selectionMode: this.option("selectionMode"),
selectionRequired: this.option("selectionRequired"),
indicateLoading: false,
onItemClick: this._listItemClickHandler.bind(this),
items: this.option("items"),
dataSource: this._dataSource,
itemTemplate: this._getTemplateByOption("menuItemTemplate"),
grouped: this.option("menuGrouped"),
groupTemplate: this._getTemplateByOption("menuGroupTemplate"),
onItemRendered: this.option("onMenuItemRendered"),
onGroupRendered: this.option("onMenuGroupRendered"),
onContentReady: this._updateSlideOutView.bind(this)
});
this._list.option("selectedIndex", this.option("selectedIndex"))
},
_getGroupedOption: function() {
return this.option("menuGrouped")
},
_updateSlideOutView: function() {
this._slideOutView._dimensionChanged()
},
_renderItemClickAction: function() {
this._itemClickAction = this._createActionByOption("onItemClick")
},
_listItemClickHandler: function(e) {
var selectedIndex = this._list.$element().find(".dx-list-item").index(e.itemElement);
this.option("selectedIndex", selectedIndex);
this._itemClickAction(e)
},
_renderContentTemplate: function() {
if (Object(_core_utils_type__WEBPACK_IMPORTED_MODULE_3__[/* isDefined */ "d"])(this._singleContent)) {
return
}
var itemsLength = this._itemContainer().html().length;
this._getTemplateByOption("contentTemplate").render({
container: Object(_core_element__WEBPACK_IMPORTED_MODULE_1__[/* getPublicElement */ "a"])(this._itemContainer())
});
this._singleContent = this._itemContainer().html().length !== itemsLength
},
_itemClickHandler: _core_utils_common__WEBPACK_IMPORTED_MODULE_2__[/* noop */ "n"],
_renderContentImpl: function() {
if (this._singleContent) {
return
}
var items = this.option("items");
var selectedIndex = this.option("selectedIndex");
if (items.length && selectedIndex > -1) {
this._selectedItemContentRendered = true;
var selectedItem = this._list.getItemByIndex(selectedIndex);
this._renderItems([selectedItem])
}
},
_renderItem: function(index, item) {
this._itemContainer().find("." + SLIDEOUT_ITEM_CLASS).remove();
this.callBase(index, item)
},
_selectedItemElement: function() {
return this._itemElements().eq(0)
},
_updateSelection: function() {
this._prepareContent();
this._renderContent()
},
_getListWidth: function() {
return this._slideOutView._getMenuWidth()
},
_changeMenuOption: function(name, value) {
this._list.option(name, value);
this._updateSlideOutView()
},
_cleanItemContainer: function() {
if (this._singleContent) {
return
}
this.callBase()
},
beginUpdate: function() {
this.callBase();
this._list && this._list.beginUpdate()
},
endUpdate: function() {
this._list && this._list.endUpdate();
this.callBase()
},
_optionChanged: function(args) {
var name = args.name;
var value = args.value;
switch (name) {
case "menuVisible":
case "swipeEnabled":
case "rtlEnabled":
case "menuPosition":
this._slideOutView.option(name, value);
break;
case "width":
this.callBase(args);
this._updateSlideOutView();
break;
case "menuItemTemplate":
this._changeMenuOption("itemTemplate", this._getTemplate(value));
break;
case "items":
this._changeMenuOption("items", this.option("items"));
if (!this._selectedItemContentRendered) {
this._updateSelection()
}
break;
case "dataSource":
case "selectedIndex":
case "selectedItem":
this._changeMenuOption(name, value);
this.callBase(args);
break;
case "menuGrouped":
this._initEditStrategy();
this._changeMenuOption("grouped", value);
break;
case "menuGroupTemplate":
this._changeMenuOption("groupTemplate", this._getTemplate(value));
break;
case "onMenuItemRendered":
this._changeMenuOption("onItemRendered", value);
break;
case "onMenuGroupRendered":
this._changeMenuOption("onGroupRendered", value);
break;
case "onItemClick":
this._renderItemClickAction();
break;
case "contentTemplate":
this._singleContent = null;
this._invalidate();
break;
default:
this.callBase(args)
}
},
showMenu: function() {
return this._slideOutView.toggleMenuVisibility(true)
},
hideMenu: function() {
return this._slideOutView.toggleMenuVisibility(false)
},
toggleMenuVisibility: function(showing) {
return this._slideOutView.toggleMenuVisibility(showing)
}
}).include(_shared_grouped_data_converter_mixin__WEBPACK_IMPORTED_MODULE_12__[/* default */ "a"]);
Object(_core_component_registrator__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])("dxSlideOut", SlideOut);
/* harmony default export */ __webpack_exports__["default"] = (SlideOut);
/***/ }),
/***/ "0081":
/***/ (function(module, exports) {
module.exports = function(hljs) {
var STEP21_IDENT_RE = '[A-Z_][A-Z0-9_.]*';
var STEP21_KEYWORDS = {
keyword: 'HEADER ENDSEC DATA'
};
var STEP21_START = {
className: 'meta',
begin: 'ISO-10303-21;',
relevance: 10
};
var STEP21_CLOSE = {
className: 'meta',
begin: 'END-ISO-10303-21;',
relevance: 10
};
return {
aliases: ['p21', 'step', 'stp'],
case_insensitive: true, // STEP 21 is case insensitive in theory, in practice all non-comments are capitalized.
lexemes: STEP21_IDENT_RE,
keywords: STEP21_KEYWORDS,
contains: [
STEP21_START,
STEP21_CLOSE,
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
hljs.COMMENT('/\\*\\*!', '\\*/'),
hljs.C_NUMBER_MODE,
hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
{
className: 'string',
begin: "'", end: "'"
},
{
className: 'symbol',
variants: [
{
begin: '#', end: '\\d+',
illegal: '\\W'
}
]
}
]
};
};
/***/ }),
/***/ "0083":
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "43a9bcfc200d80676bc68fe9a3c8ab6d.js";
/***/ }),
/***/ "0094":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var FREEZING = __webpack_require__("bb2f");
var global = __webpack_require__("da84");
var uncurryThis = __webpack_require__("e330");
var defineBuiltIns = __webpack_require__("6964");
var InternalMetadataModule = __webpack_require__("f183");
var collection = __webpack_require__("6d61");
var collectionWeak = __webpack_require__("acac");
var isObject = __webpack_require__("861d");
var enforceInternalState = __webpack_require__("69f3").enforce;
var fails = __webpack_require__("d039");
var NATIVE_WEAK_MAP = __webpack_require__("cdce");
var $Object = Object;
// eslint-disable-next-line es/no-array-isarray -- safe
var isArray = Array.isArray;
// eslint-disable-next-line es/no-object-isextensible -- safe
var isExtensible = $Object.isExtensible;
// eslint-disable-next-line es/no-object-isfrozen -- safe
var isFrozen = $Object.isFrozen;
// eslint-disable-next-line es/no-object-issealed -- safe
var isSealed = $Object.isSealed;
// eslint-disable-next-line es/no-object-freeze -- safe
var freeze = $Object.freeze;
// eslint-disable-next-line es/no-object-seal -- safe
var seal = $Object.seal;
var FROZEN = {};
var SEALED = {};
var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
var InternalWeakMap;
var wrapper = function (init) {
return function WeakMap() {
return init(this, arguments.length ? arguments[0] : undefined);
};
};
// `WeakMap` constructor
// https://tc39.es/ecma262/#sec-weakmap-constructor
var $WeakMap = collection('WeakMap', wrapper, collectionWeak);
var WeakMapPrototype = $WeakMap.prototype;
var nativeSet = uncurryThis(WeakMapPrototype.set);
// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them
var hasMSEdgeFreezingBug = function () {
return FREEZING && fails(function () {
var frozenArray = freeze([]);
nativeSet(new $WeakMap(), frozenArray, 1);
return !isFrozen(frozenArray);
});
};
// IE11 WeakMap frozen keys fix
// We can't use feature detection because it crash some old IE builds
// https://github.com/zloirock/core-js/issues/485
if (NATIVE_WEAK_MAP) if (IS_IE11) {
InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
InternalMetadataModule.enable();
var nativeDelete = uncurryThis(WeakMapPrototype['delete']);
var nativeHas = uncurryThis(WeakMapPrototype.has);
var nativeGet = uncurryThis(WeakMapPrototype.get);
defineBuiltIns(WeakMapPrototype, {
'delete': function (key) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
return nativeDelete(this, key) || state.frozen['delete'](key);
} return nativeDelete(this, key);
},
has: function has(key) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
return nativeHas(this, key) || state.frozen.has(key);
} return nativeHas(this, key);
},
get: function get(key) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
} return nativeGet(this, key);
},
set: function set(key, value) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceInternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
} else nativeSet(this, key, value);
return this;
}
});
// Chakra Edge frozen keys fix
} else if (hasMSEdgeFreezingBug()) {
defineBuiltIns(WeakMapPrototype, {
set: function set(key, value) {
var arrayIntegrityLevel;
if (isArray(key)) {
if (isFrozen(key)) arrayIntegrityLevel = FROZEN;
else if (isSealed(key)) arrayIntegrityLevel = SEALED;
}
nativeSet(this, key, value);
if (arrayIntegrityLevel == FROZEN) freeze(key);
if (arrayIntegrityLevel == SEALED) seal(key);
return this;
}
});
}
/***/ }),
/***/ "0096":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/*!
* devextreme-vue
* Version: 22.1.5
* Build date: Fri Sep 02 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-vue
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.setEmitOptionChangedFunc = exports.bindOptionWatchers = void 0;
var helpers_1 = __webpack_require__("a293");
var Configuration = /** @class */ (function () {
function Configuration(updateFunc, name, initialValues, expectedChildren, isCollectionItem, collectionItemIndex, ownerConfig) {
this._updateFunc = updateFunc;
this._name = name;
this._initialValues = initialValues ? initialValues : {};
this._nestedConfigurations = [];
this._isCollectionItem = !!isCollectionItem;
this._collectionItemIndex = collectionItemIndex;
this._expectedChildren = expectedChildren || {};
this._ownerConfig = ownerConfig;
this._componentChanges = [];
this.updateValue = this.updateValue.bind(this);
}
Object.defineProperty(Configuration.prototype, "name", {
get: function () {
return this._name;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "fullName", {
get: function () {
return this._name && this._isCollectionItem
? this._name + "[" + this._collectionItemIndex + "]"
: this._name;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "componentsCountChanged", {
get: function () {
return this._componentChanges;
},
enumerable: false,
configurable: true
});
Configuration.prototype.cleanComponentsCountChanged = function () {
this._componentChanges = [];
};
Object.defineProperty(Configuration.prototype, "fullPath", {
get: function () {
return this._ownerConfig && this._ownerConfig.fullPath
? this._ownerConfig.fullPath + "." + this.fullName
: this.fullName;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "ownerConfig", {
get: function () {
return this._ownerConfig;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "options", {
get: function () {
return this._options;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "initialValues", {
get: function () {
return this._initialValues;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "expectedChildren", {
get: function () {
return this._expectedChildren;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "nested", {
get: function () {
return this._nestedConfigurations;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "prevNestedOptions", {
get: function () {
return this._prevNestedConfigOptions;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "collectionItemIndex", {
get: function () {
return this._collectionItemIndex;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "isCollectionItem", {
get: function () {
return this._isCollectionItem;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Configuration.prototype, "updateFunc", {
get: function () {
return this._updateFunc;
},
enumerable: false,
configurable: true
});
Configuration.prototype.init = function (options) {
this._options = options ? options : [];
};
Object.defineProperty(Configuration.prototype, "emitOptionChanged", {
set: function (handler) {
this._emitOptionChanged = handler;
},
enumerable: false,
configurable: true
});
Configuration.prototype.setPrevNestedOptions = function (value) {
this._prevNestedConfigOptions = value;
};
Configuration.prototype.onOptionChanged = function (args) {
if (helpers_1.isEqual(args.value, args.previousValue)) {
return;
}
this._onOptionChanged(args.fullName.split("."), args);
};
Configuration.prototype.cleanNested = function () {
this._nestedConfigurations = [];
};
Configuration.prototype.createNested = function (name, initialValues, isCollectionItem, expectedChildren) {
var expected = this._expectedChildren[name];
var actualName = name;
var actualIsCollectionItem = isCollectionItem;
if (expected) {
actualIsCollectionItem = expected.isCollectionItem;
if (expected.optionName) {
actualName = expected.optionName;
}
}
var collectionItemIndex = -1;
if (actualIsCollectionItem && actualName) {
collectionItemIndex = this._nestedConfigurations.filter(function (c) { return c._name && c._name === actualName; }).length;
}
var configuration = new Configuration(this._updateFunc, actualName, initialValues, expectedChildren, actualIsCollectionItem, collectionItemIndex, this);
this._nestedConfigurations.push(configuration);
return configuration;
};
Configuration.prototype.updateValue = function (nestedName, value) {
var fullName = [this.fullPath, nestedName].filter(function (n) { return n; }).join(".");
this._updateFunc(fullName, value);
};
Configuration.prototype.getNestedOptionValues = function () {
var values = {};
this._nestedConfigurations.forEach(function (o) {
if (!o._name) {
return;
}
var nestedValue = __assign(__assign({}, o.initialValues), o.getNestedOptionValues());
if (!nestedValue) {
return;
}
if (!o._isCollectionItem) {
values[o._name] = nestedValue;
}
else {
var arr = values[o._name];
if (!arr || !Array.isArray(arr)) {
arr = [];
values[o._name] = arr;
}
arr.push(nestedValue);
}
});
return values;
};
Configuration.prototype.getOptionsToWatch = function () {
var blackList = {};
this._nestedConfigurations.forEach(function (c) { return c._name && (blackList[c._name] = true); });
return this._options.filter(function (o) { return !blackList[o]; });
};
Configuration.prototype._onOptionChanged = function (optionRelPath, args) {
if (optionRelPath.length === 0) {
return;
}
var optionInfo = helpers_1.getOptionInfo(optionRelPath[0]);
if (optionInfo.isCollection || optionRelPath.length > 1) {
var nestedConfig = this._getNestedConfig(optionInfo.fullName);
if (nestedConfig) {
nestedConfig._onOptionChanged(optionRelPath.slice(1), args);
return;
}
this._tryEmitOptionChanged(optionInfo.name, args.component.option(this.fullPath ? this.fullPath + "." + optionInfo.name : optionInfo.name));
}
else {
this._tryEmitOptionChanged(optionInfo.name, args.value);
}
};
Configuration.prototype._getNestedConfig = function (fullName) {
for (var _i = 0, _a = this._nestedConfigurations; _i < _a.length; _i++) {
var nestedConfig = _a[_i];
if (nestedConfig.fullName === fullName) {
return nestedConfig;
}
}
return undefined;
};
Configuration.prototype._tryEmitOptionChanged = function (name, value) {
if (this._emitOptionChanged) {
this._emitOptionChanged(name, value);
}
};
return Configuration;
}());
function bindOptionWatchers(config, vueInstance, innerChanges) {
var targets = config && config.getOptionsToWatch();
if (targets) {
targets.forEach(function (optionName) {
vueInstance.$watch(optionName, function (value) {
if (!innerChanges.hasOwnProperty(optionName) ||
innerChanges[optionName] !== value) {
config.updateValue(optionName, value);
}
delete innerChanges[optionName];
});
});
}
}
exports.bindOptionWatchers = bindOptionWatchers;
function setEmitOptionChangedFunc(config, vueInstance, innerChanges) {
config.emitOptionChanged = function (name, value) {
if (!helpers_1.isEqual(value, vueInstance.$props[name])) {
innerChanges[name] = value;
vueInstance.$emit("update:" + name, value);
}
};
}
exports.setEmitOptionChangedFunc = setEmitOptionChangedFunc;
exports.default = Configuration;
/***/ }),
/***/ "00a0":
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "8681f562786fa45bebe8ee7ed2461026.js";
/***/ }),
/***/ "00b4":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// TODO: Remove from `core-js@4` since it's moved to entry points
__webpack_require__("ac1f");
var $ = __webpack_require__("23e7");
var call = __webpack_require__("c65b");
var isCallable = __webpack_require__("1626");
var anObject = __webpack_require__("825a");
var toString = __webpack_require__("577e");
var DELEGATES_TO_EXEC = function () {
var execCalled = false;
var re = /[ac]/;
re.exec = function () {
execCalled = true;
return /./.exec.apply(this, arguments);
};
return re.test('abc') === true && execCalled;
}();
var nativeTest = /./.test;
// `RegExp.prototype.test` method
// https://tc39.es/ecma262/#sec-regexp.prototype.test
$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
test: function (S) {
var R = anObject(this);
var string = toString(S);
var exec = R.exec;
if (!isCallable(exec)) return call(nativeTest, R, string);
var result = call(exec, R, string);
if (result === null) return false;
anObject(result);
return true;
}
});
/***/ }),
/***/ "00c2":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8366baea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/dashboard/Problem.vue?vue&type=template&id=23ba90c2&scoped=true&
var render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c('div', {}, [_c('div', {
staticClass: "problemContent"
}, [_c('div', {
staticClass: "textContent",
on: {
"click": _vm.goToMainPage
}
}, [_vm._v(" 帮助文档 ")]), _c('div', {
staticClass: "searchProblem"
}, [_c('div', {
staticClass: "searchExpand"
}, [_c('ul', [_c('li', {
class: _vm.isActive === '1' ? 'active' : '',
on: {
"click": function click($event) {
return _vm.change('1');
}
}
}, [_c('span', {
staticClass: "iconfont icon-list"
}), _vm._v(" 代码规范")]), _c('li', {
class: _vm.isActive === '2' ? 'active' : '',
on: {
"click": function click($event) {
return _vm.change('2');
}
}
}, [_c('span', {
staticClass: "iconfont icon-list"
}), _vm._v(" 产品使用手册")]), _c('li', {
class: _vm.isActive === '3' ? 'active' : '',
on: {
"click": function click($event) {
return _vm.change('3');
}
}
}, [_c('span', {
staticClass: "iconfont icon-list"
}), _vm._v(" 其他资料")])])]), _c('div', {
staticClass: "problemDetail"
}, [_c('div', {
directives: [{
name: "show",
rawName: "v-show",
value: _vm.isDetails,
expression: "isDetails"
}]
}, [_c('div', {
staticClass: "title"
}, [_c('span', [_vm._v("[" + _vm._s(_vm.helpDetail.helpName) + "]")])]), _c('div', {
staticClass: "problemDetails"
}, [_c('span', [_vm._v("[简介]")]), _c('p', [_vm._v(_vm._s(_vm.helpDetail.helpDescription) + " ")])]), _c('div', {
staticClass: "problemExample"
}, [_c('span', [_vm._v("[示例]")]), _c('div', {
domProps: {
"innerHTML": _vm._s(_vm.helpDetail.helpExample)
}
})])]), _c('div', {
directives: [{
name: "show",
rawName: "v-show",
value: _vm.isActive === '1' && !_vm.isDetails,
expression: "isActive === '1' && !isDetails"
}],
staticClass: "problemDescribe"
}, [_c('span', {
staticClass: "iconfont icon-list headDescribe"
}, [_vm._v(" 代码规范")]), _c('div', {
staticClass: "describeContent"
}, _vm._l(_vm.he