@egova/egova-api 1.3.33 → 1.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +741 -691
- package/dist/index.css +1 -1
- package/dist/index.umd.js +741 -691
- package/dist/index.umd.min.js +3 -3
- package/package.json +99 -99
package/dist/index.common.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = "
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = "cb40");
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -897,7 +897,7 @@ module.exports = require("brace/snippets/json");
|
|
|
897
897
|
/***/ "40aa":
|
|
898
898
|
/***/ (function(module, exports) {
|
|
899
899
|
|
|
900
|
-
module.exports = "<!DOCTYPE html>\n<i-drawer\n width=\"700\"\n draggable\n sticky\n reset-drag-position\n v-model=\"show\"\n class=\"interface-modal diy-modal\"\n transfer\n title=\"已关联流程配置\"\n :mask-closable=\"false\"\n @on-cancel=\"onCancel\"\n>\n <div class=\"drawer-content\">\n <div class=\"header\">\n <i-select v-model=\"proxyName\" :placeholder=\"proxyList?.length ? `已有${proxyList?.length}个代理服务`:'暂无数据'\" @on-select=\"selectProxyName\">\n <i-option v-for=\"item in proxyList\" :value=\"item.id\" :key=\"item.id\"> {{item.name}} </i-option>\n </i-select>\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onAdd\">新增配置</i-button>\n </div>\n\n <template>\n <i-form v-show=\"proxyName || isAdding \" ref=\"configform\" label-position=\"left\" :label-width=\"125\" label-colon :rules=\"rulesValidate\" :model=\"model\">\n <div class=\"form-title\">{{formTitle}}</div>\n <i-form-item v-show=\"isAdding\" label=\"所属分类\" prop=\"categoryId\" class=\"proxy-category-validate\" required>\n <u-tree-selector\n :treeData=\"categoryList\"\n :canChooseFolder=\"true\"\n v-model=\"model.categoryId\"\n @on-select=\"selectCategory\"\n placeholder=\"请选择所属分类\"\n ></u-tree-selector>\n </i-form-item>\n <i-form-item label=\"代理名称\" prop=\"name\" class=\"proxy-name-validate\" required>\n <i-input class=\"diy-input\" v-model=\"model.name\" placeholder=\"请输入代理名称\"></i-input>\n </i-form-item>\n <i-form-item class=\"proxy-name-validate\" prop=\"code\" label=\"接口编码\" required>\n <i-input class=\"diy-input\" v-model=\"model.code\" placeholder=\"请输入接口编码\"></i-input>\n </i-form-item>\n <i-form-item class=\"un-required-item copy-item\" label=\"接口地址\">\n <i-input class=\"diy-input\" disabled :value=\"url\"></i-input>\n <div class=\"set-btn\" @click=\"onCopy(url)\">复制</div>\n </i-form-item>\n <i-form-item label=\"描述\" prop=\"description\" class=\"proxy-description-validate un-required-item\">\n <i-input type=\"textarea\" v-model=\"model.description\" placeholder=\"请输入描述\" :rows=\"2\"></i-input>\n </i-form-item>\n <i-row class=\"retry-wrap\" style=\"padding-top: 8px\">\n <i-col span=\"24\">\n <i-form-item class=\"un-required-item copy-item\">\n <template #label>\n <i-poptip slot=\"label\" trigger=\"hover\" word-wrap transfer>\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\n <div slot=\"content\" style=\"width: 3rem\">\n <span style=\"font-size: 0.14rem\"\n >在右侧勾选日志记录的请求类型。需记录慢接口时,可以设置最小耗时阈值(大于该值将记录日志),不勾选时则不记录。日志表会记录请求头、请求参数和响应体,如果内容较多时建议关闭,请求次数频繁比较占数据库资源。选项【失败】仅记录调用失败的日志</span\n >\n </div>\n </i-poptip>\n <span>记录日志:</span>\n </template>\n <i-checkboxGroup class=\"diy-checkbox\" v-model=\"logSavingEnabledList\">\n <i-checkbox v-for=\"item in loginLevelFlag\" :disabled=\"readonly\" :label=\"item.value\">{{ item.name }}</i-checkbox>\n </i-checkboxGroup>\n <i-form-item class=\"slow-log-threshold\" prop=\"slowLogThreshold\">\n >\n <i-input class=\"diy-input\" type=\"number\" :disabled=\"slowLogThreshold\" v-model=\"model.slowLogThreshold\"> </i-input>\n 毫秒\n </i-form-item>\n </i-form-item>\n </i-col>\n </i-row>\n <template v-if=\"model.logSavingEnabled\">\n <i-row class=\"retry-wrap\">\n <i-col span=\"11\">\n <i-form-item label=\"开启重推\" required>\n <i-select class=\"diy-select\" v-model=\"model.enableRetry\">\n <i-option v-for=\"(item,index) in isRetryList\" :value=\"item.value\" :key=\"index\">{{ item.name }}</i-option>\n </i-select>\n </i-form-item>\n </i-col>\n <i-col span=\"11\">\n <i-form-item class=\"un-required-item\" label=\"重推次数\" prop=\"retryTimes\">\n <tips-table-label class=\"data-type-tips\" slot=\"label\" label-colon labelTitle=\"重推次数\"></tips-table-label>\n <i-input class=\"diy-input\" type=\"number\" :disabled=\"isRetryTimesReadonly\" v-model=\"model.retryTimes\" placeholder=\"请输入重推次数\"></i-input>\n </i-form-item>\n </i-col>\n </i-row>\n <i-row v-show=\"model.enableRetry === 'true' \">\n <i-col span=\"11\">\n <i-form-item class=\"un-required-item status-code\">\n <template #label>\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"当接口状态码和配置项相同时,才触发重推;多个自定义状态码以英文逗号分隔\" word-wrap transfer>\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\n </i-poptip>\n <span>重推接口状态码:</span>\n </template>\n <i-form-item>\n <i-select ref=\"statusCodeSelect\" v-model=\"statusCode\" class=\"diy-select code-select\" @on-change=\"onStatusCodeChange\">\n <i-option v-for=\"item in statusCodeList\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\n </i-select>\n </i-form-item>\n <i-form-item prop=\"retryCode\">\n <i-input\n style=\"min-width: 0.32rem\"\n v-show=\"statusCode === '2'\"\n class=\"diy-input\"\n v-model=\"model.retryCode\"\n placeholder=\"请输入状态码\"\n ></i-input>\n </i-form-item>\n </i-form-item>\n </i-col>\n </i-row>\n </template>\n\n <i-row class=\"retry-wrap\">\n <i-col span=\"11\">\n <i-form-item label=\"需要认证\" class=\"un-required-item copy-item\">\n <i-select class=\"diy-select\" style=\"margin-top: 6px\" v-model=\"model.authFlag\">\n <i-option v-for=\"item in authFlag\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\n </i-select>\n </i-form-item>\n </i-col>\n <i-col span=\"11\">\n <i-form-item class=\"un-required-item copy-item\">\n <template #label>\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"使用用户中心token访问该接口时,将校验登陆是否拥有该资源代码的权限\" word-wrap transfer>\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\n </i-poptip>\n <span>用户中心资源代码:</span>\n </template>\n <i-input\n class=\"diy-input\"\n style=\"margin-top: 6px\"\n v-model=\"model.resourceCode\"\n :disabled=\"!isResourceCodeEnabled\"\n placeholder=\"请输入用户中心资源代码\"\n ></i-input>\n </i-form-item>\n </i-col>\n </i-row>\n <template>\n <i-row class=\"retry-wrap\">\n <i-col span=\"11\">\n <i-form-item label=\"代理类型\">\n <i-input class=\"diy-input\" value=\"外部接口\" disabled></i-input>\n </i-form-item>\n </i-col>\n <i-col span=\"11\">\n <i-form-item label=\"API项目\">\n <i-select disabled class=\"diy-select\" v-model=\"apiModel.projectId\">\n <i-option v-for=\"(item,index) in projectList\" :value=\"item.id\" :key=\"item.id\">{{ item.name }}</i-option>\n </i-select>\n </i-form-item>\n </i-col>\n </i-row>\n <i-form-item label=\"API接口\">\n <u-tree-selector\n readonly\n :treeData=\"apiTree\"\n leaf-name=\"apis\"\n v-model=\"apiModel.typeId\"\n placeholder=\"请选择API接口\"\n @on-select=\"onApiTreeSelect\"\n ></u-tree-selector>\n </i-form-item>\n <i-form-item label=\"接口路径\">\n <i-input class=\"diy-input\" :readonly=\"true\" v-model=\"apiModel.path\" :rows=\"4\"></i-input>\n </i-form-item>\n </template>\n </i-form>\n </template>\n <i-table v-if=\"proxyName || isAdding\" class=\"diy-table\" height=\"200\" :columns=\"apiColumns\" :data=\"apiParamList\"> </i-table>\n <div v-if=\"!proxyName && !isAdding \" class=\"no-data\">暂无数据</div>\n </div>\n <div class=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" :loading=\"loading\" @click.stop=\"onSave\">保存</i-button>\n <i-button class=\"diy-btn-default\" @click.stop=\"onCancel\">取消</i-button>\n </div>\n</i-drawer>\n"
|
|
900
|
+
module.exports = "<!DOCTYPE html>\r\n<i-drawer\r\n width=\"700\"\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"show\"\r\n class=\"interface-modal diy-modal\"\r\n transfer\r\n title=\"已关联流程配置\"\r\n :mask-closable=\"false\"\r\n @on-cancel=\"onCancel\"\r\n>\r\n <div class=\"drawer-content\">\r\n <div class=\"header\">\r\n <i-select v-model=\"proxyName\" :placeholder=\"proxyList?.length ? `已有${proxyList?.length}个代理服务`:'暂无数据'\" @on-select=\"selectProxyName\">\r\n <i-option v-for=\"item in proxyList\" :value=\"item.id\" :key=\"item.id\"> {{item.name}} </i-option>\r\n </i-select>\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onAdd\">新增配置</i-button>\r\n </div>\r\n\r\n <template>\r\n <i-form v-show=\"proxyName || isAdding \" ref=\"configform\" label-position=\"left\" :label-width=\"125\" label-colon :rules=\"rulesValidate\" :model=\"model\">\r\n <div class=\"form-title\">{{formTitle}}</div>\r\n <i-form-item v-show=\"isAdding\" label=\"所属分类\" prop=\"categoryId\" class=\"proxy-category-validate\" required>\r\n <u-tree-selector\r\n :treeData=\"categoryList\"\r\n :canChooseFolder=\"true\"\r\n v-model=\"model.categoryId\"\r\n @on-select=\"selectCategory\"\r\n placeholder=\"请选择所属分类\"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label=\"代理名称\" prop=\"name\" class=\"proxy-name-validate\" required>\r\n <i-input class=\"diy-input\" v-model=\"model.name\" placeholder=\"请输入代理名称\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"proxy-name-validate\" prop=\"code\" label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"model.code\" placeholder=\"请输入接口编码\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"un-required-item copy-item\" label=\"接口地址\">\r\n <i-input class=\"diy-input\" disabled :value=\"url\"></i-input>\r\n <div class=\"set-btn\" @click=\"onCopy(url)\">复制</div>\r\n </i-form-item>\r\n <i-form-item label=\"描述\" prop=\"description\" class=\"proxy-description-validate un-required-item\">\r\n <i-input type=\"textarea\" v-model=\"model.description\" placeholder=\"请输入描述\" :rows=\"2\"></i-input>\r\n </i-form-item>\r\n <i-row class=\"retry-wrap\" style=\"padding-top: 8px\">\r\n <i-col span=\"24\">\r\n <i-form-item class=\"un-required-item copy-item\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n <div slot=\"content\" style=\"width: 3rem\">\r\n <span style=\"font-size: 0.14rem\"\r\n >在右侧勾选日志记录的请求类型。需记录慢接口时,可以设置最小耗时阈值(大于该值将记录日志),不勾选时则不记录。日志表会记录请求头、请求参数和响应体,如果内容较多时建议关闭,请求次数频繁比较占数据库资源。选项【失败】仅记录调用失败的日志</span\r\n >\r\n </div>\r\n </i-poptip>\r\n <span>记录日志:</span>\r\n </template>\r\n <i-checkboxGroup class=\"diy-checkbox\" v-model=\"logSavingEnabledList\">\r\n <i-checkbox v-for=\"item in loginLevelFlag\" :disabled=\"readonly\" :label=\"item.value\">{{ item.name }}</i-checkbox>\r\n </i-checkboxGroup>\r\n <i-form-item class=\"slow-log-threshold\" prop=\"slowLogThreshold\">\r\n >\r\n <i-input class=\"diy-input\" type=\"number\" :disabled=\"slowLogThreshold\" v-model=\"model.slowLogThreshold\"> </i-input>\r\n 毫秒\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template v-if=\"model.logSavingEnabled\">\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"开启重推\" required>\r\n <i-select class=\"diy-select\" v-model=\"model.enableRetry\">\r\n <i-option v-for=\"(item,index) in isRetryList\" :value=\"item.value\" :key=\"index\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item\" label=\"重推次数\" prop=\"retryTimes\">\r\n <tips-table-label class=\"data-type-tips\" slot=\"label\" label-colon labelTitle=\"重推次数\"></tips-table-label>\r\n <i-input class=\"diy-input\" type=\"number\" :disabled=\"isRetryTimesReadonly\" v-model=\"model.retryTimes\" placeholder=\"请输入重推次数\"></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-row v-show=\"model.enableRetry === 'true' \">\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item status-code\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"当接口状态码和配置项相同时,才触发重推;多个自定义状态码以英文逗号分隔\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n </i-poptip>\r\n <span>重推接口状态码:</span>\r\n </template>\r\n <i-form-item>\r\n <i-select ref=\"statusCodeSelect\" v-model=\"statusCode\" class=\"diy-select code-select\" @on-change=\"onStatusCodeChange\">\r\n <i-option v-for=\"item in statusCodeList\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item prop=\"retryCode\">\r\n <i-input\r\n style=\"min-width: 0.32rem\"\r\n v-show=\"statusCode === '2'\"\r\n class=\"diy-input\"\r\n v-model=\"model.retryCode\"\r\n placeholder=\"请输入状态码\"\r\n ></i-input>\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n </template>\r\n\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"需要认证\" class=\"un-required-item copy-item\">\r\n <i-select class=\"diy-select\" style=\"margin-top: 6px\" v-model=\"model.authFlag\">\r\n <i-option v-for=\"item in authFlag\" :value=\"item.value\" :key=\"item.value\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item class=\"un-required-item copy-item\">\r\n <template #label>\r\n <i-poptip slot=\"label\" trigger=\"hover\" content=\"使用用户中心token访问该接口时,将校验登陆是否拥有该资源代码的权限\" word-wrap transfer>\r\n <icon style=\"cursor: help; font-size: 0.16rem\" type=\"ios-information-circle-outline\" />\r\n </i-poptip>\r\n <span>用户中心资源代码:</span>\r\n </template>\r\n <i-input\r\n class=\"diy-input\"\r\n style=\"margin-top: 6px\"\r\n v-model=\"model.resourceCode\"\r\n :disabled=\"!isResourceCodeEnabled\"\r\n placeholder=\"请输入用户中心资源代码\"\r\n ></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template>\r\n <i-row class=\"retry-wrap\">\r\n <i-col span=\"11\">\r\n <i-form-item label=\"代理类型\">\r\n <i-input class=\"diy-input\" value=\"外部接口\" disabled></i-input>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span=\"11\">\r\n <i-form-item label=\"API项目\">\r\n <i-select disabled class=\"diy-select\" v-model=\"apiModel.projectId\">\r\n <i-option v-for=\"(item,index) in projectList\" :value=\"item.id\" :key=\"item.id\">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-form-item label=\"API接口\">\r\n <u-tree-selector\r\n readonly\r\n :treeData=\"apiTree\"\r\n leaf-name=\"apis\"\r\n v-model=\"apiModel.typeId\"\r\n placeholder=\"请选择API接口\"\r\n @on-select=\"onApiTreeSelect\"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label=\"接口路径\">\r\n <i-input class=\"diy-input\" :readonly=\"true\" v-model=\"apiModel.path\" :rows=\"4\"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </template>\r\n <i-table v-if=\"proxyName || isAdding\" class=\"diy-table\" height=\"200\" :columns=\"apiColumns\" :data=\"apiParamList\"> </i-table>\r\n <div v-if=\"!proxyName && !isAdding \" class=\"no-data\">暂无数据</div>\r\n </div>\r\n <div class=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" :loading=\"loading\" @click.stop=\"onSave\">保存</i-button>\r\n <i-button class=\"diy-btn-default\" @click.stop=\"onCancel\">取消</i-button>\r\n </div>\r\n</i-drawer>\r\n"
|
|
901
901
|
|
|
902
902
|
/***/ }),
|
|
903
903
|
|
|
@@ -3988,529 +3988,44 @@ module.exports = function (argument) {
|
|
|
3988
3988
|
|
|
3989
3989
|
/***/ }),
|
|
3990
3990
|
|
|
3991
|
-
/***/ "
|
|
3991
|
+
/***/ "b061":
|
|
3992
|
+
/***/ (function(module, exports) {
|
|
3993
|
+
|
|
3994
|
+
var g;
|
|
3995
|
+
|
|
3996
|
+
// This works in non-strict mode
|
|
3997
|
+
g = (function() {
|
|
3998
|
+
return this;
|
|
3999
|
+
})();
|
|
4000
|
+
|
|
4001
|
+
try {
|
|
4002
|
+
// This works if eval is allowed (see CSP)
|
|
4003
|
+
g = g || new Function("return this")();
|
|
4004
|
+
} catch (e) {
|
|
4005
|
+
// This works if the window reference is available
|
|
4006
|
+
if (typeof window === "object") g = window;
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
// g can still be undefined, but nothing to do about it...
|
|
4010
|
+
// We return undefined, instead of nothing here, so it's
|
|
4011
|
+
// easier to handle this case. if(!global) { ...}
|
|
4012
|
+
|
|
4013
|
+
module.exports = g;
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
/***/ }),
|
|
4017
|
+
|
|
4018
|
+
/***/ "b156":
|
|
3992
4019
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3993
4020
|
|
|
4021
|
+
// extracted by mini-css-extract-plugin
|
|
3994
4022
|
|
|
3995
|
-
|
|
3996
|
-
* vue-awesome-swiper v4.1.1
|
|
3997
|
-
* Copyright (c) Surmon. All rights reserved.
|
|
3998
|
-
* Released under the MIT License.
|
|
3999
|
-
* Surmon <https://github.com/surmon-china>
|
|
4000
|
-
*/
|
|
4023
|
+
/***/ }),
|
|
4001
4024
|
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
*/
|
|
4007
|
-
var CoreNames;
|
|
4008
|
-
(function (CoreNames) {
|
|
4009
|
-
CoreNames["SwiperComponent"] = "Swiper";
|
|
4010
|
-
CoreNames["SwiperSlideComponent"] = "SwiperSlide";
|
|
4011
|
-
CoreNames["SwiperDirective"] = "swiper";
|
|
4012
|
-
CoreNames["SwiperInstance"] = "$swiper";
|
|
4013
|
-
})(CoreNames || (CoreNames = {}));
|
|
4014
|
-
var DEFAULT_CLASSES = Object.freeze({
|
|
4015
|
-
containerClass: 'swiper-container',
|
|
4016
|
-
wrapperClass: 'swiper-wrapper',
|
|
4017
|
-
slideClass: 'swiper-slide'
|
|
4018
|
-
});
|
|
4019
|
-
var ComponentEvents;
|
|
4020
|
-
(function (ComponentEvents) {
|
|
4021
|
-
ComponentEvents["Ready"] = "ready";
|
|
4022
|
-
ComponentEvents["ClickSlide"] = "clickSlide";
|
|
4023
|
-
})(ComponentEvents || (ComponentEvents = {}));
|
|
4024
|
-
var ComponentPropNames;
|
|
4025
|
-
(function (ComponentPropNames) {
|
|
4026
|
-
ComponentPropNames["AutoUpdate"] = "autoUpdate";
|
|
4027
|
-
ComponentPropNames["AutoDestroy"] = "autoDestroy";
|
|
4028
|
-
ComponentPropNames["DeleteInstanceOnDestroy"] = "deleteInstanceOnDestroy";
|
|
4029
|
-
ComponentPropNames["CleanupStylesOnDestroy"] = "cleanupStylesOnDestroy";
|
|
4030
|
-
})(ComponentPropNames || (ComponentPropNames = {}));
|
|
4031
|
-
// https://swiperjs.com/api/#events
|
|
4032
|
-
var SWIPER_EVENTS = [
|
|
4033
|
-
'init',
|
|
4034
|
-
'beforeDestroy',
|
|
4035
|
-
'slideChange',
|
|
4036
|
-
'slideChangeTransitionStart',
|
|
4037
|
-
'slideChangeTransitionEnd',
|
|
4038
|
-
'slideNextTransitionStart',
|
|
4039
|
-
'slideNextTransitionEnd',
|
|
4040
|
-
'slidePrevTransitionStart',
|
|
4041
|
-
'slidePrevTransitionEnd',
|
|
4042
|
-
'transitionStart',
|
|
4043
|
-
'transitionEnd',
|
|
4044
|
-
'touchStart',
|
|
4045
|
-
'touchMove',
|
|
4046
|
-
'touchMoveOpposite',
|
|
4047
|
-
'sliderMove',
|
|
4048
|
-
'touchEnd',
|
|
4049
|
-
'click',
|
|
4050
|
-
'tap',
|
|
4051
|
-
'doubleTap',
|
|
4052
|
-
'imagesReady',
|
|
4053
|
-
'progress',
|
|
4054
|
-
'reachBeginning',
|
|
4055
|
-
'reachEnd',
|
|
4056
|
-
'fromEdge',
|
|
4057
|
-
'setTranslate',
|
|
4058
|
-
'setTransition',
|
|
4059
|
-
'resize',
|
|
4060
|
-
'observerUpdate',
|
|
4061
|
-
'beforeLoopFix',
|
|
4062
|
-
'loopFix'
|
|
4063
|
-
];/*! *****************************************************************************
|
|
4064
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4065
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4066
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
4067
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
4068
|
-
|
|
4069
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
4070
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
4071
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
4072
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
4073
|
-
|
|
4074
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
4075
|
-
and limitations under the License.
|
|
4076
|
-
***************************************************************************** */
|
|
4077
|
-
|
|
4078
|
-
function __spreadArrays() {
|
|
4079
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4080
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4081
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4082
|
-
r[k] = a[j];
|
|
4083
|
-
return r;
|
|
4084
|
-
}/**
|
|
4085
|
-
* @file vue-awesome-swiper
|
|
4086
|
-
* @module utils
|
|
4087
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4088
|
-
*/
|
|
4089
|
-
var kebabcase = function (string) {
|
|
4090
|
-
return string
|
|
4091
|
-
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
|
4092
|
-
.replace(/\s+/g, '-')
|
|
4093
|
-
.toLowerCase();
|
|
4094
|
-
};/**
|
|
4095
|
-
* @file vue-awesome-swiper
|
|
4096
|
-
* @module event
|
|
4097
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4098
|
-
*/
|
|
4099
|
-
var handleClickSlideEvent = function (swiper, event, emit) {
|
|
4100
|
-
var _a, _b, _c;
|
|
4101
|
-
if (swiper && !(swiper.destroyed)) {
|
|
4102
|
-
var eventPath = ((_a = event.composedPath) === null || _a === void 0 ? void 0 : _a.call(event)) || event.path;
|
|
4103
|
-
if ((event === null || event === void 0 ? void 0 : event.target) && eventPath) {
|
|
4104
|
-
var slides_1 = Array.from(swiper.slides);
|
|
4105
|
-
var paths = Array.from(eventPath);
|
|
4106
|
-
// Click slide || slide[children]
|
|
4107
|
-
if (slides_1.includes(event.target) || paths.some(function (item) { return slides_1.includes(item); })) {
|
|
4108
|
-
var clickedIndex = swiper.clickedIndex;
|
|
4109
|
-
var reallyIndex = Number((_c = (_b = swiper.clickedSlide) === null || _b === void 0 ? void 0 : _b.dataset) === null || _c === void 0 ? void 0 : _c.swiperSlideIndex);
|
|
4110
|
-
var reallyIndexValue = Number.isInteger(reallyIndex) ? reallyIndex : null;
|
|
4111
|
-
emit(ComponentEvents.ClickSlide, clickedIndex, reallyIndexValue);
|
|
4112
|
-
emit(kebabcase(ComponentEvents.ClickSlide), clickedIndex, reallyIndexValue);
|
|
4113
|
-
}
|
|
4114
|
-
}
|
|
4115
|
-
}
|
|
4116
|
-
};
|
|
4117
|
-
var bindSwiperEvents = function (swiper, emit) {
|
|
4118
|
-
SWIPER_EVENTS.forEach(function (eventName) {
|
|
4119
|
-
swiper.on(eventName, function () {
|
|
4120
|
-
var arguments$1 = arguments;
|
|
4121
|
-
|
|
4122
|
-
var args = [];
|
|
4123
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4124
|
-
args[_i] = arguments$1[_i];
|
|
4125
|
-
}
|
|
4126
|
-
emit.apply(void 0, __spreadArrays([eventName], args));
|
|
4127
|
-
var kebabcaseName = kebabcase(eventName);
|
|
4128
|
-
if (kebabcaseName !== eventName) {
|
|
4129
|
-
emit.apply(void 0, __spreadArrays([kebabcaseName], args));
|
|
4130
|
-
}
|
|
4131
|
-
});
|
|
4132
|
-
});
|
|
4133
|
-
};/**
|
|
4134
|
-
* @file vue-awesome-swiper
|
|
4135
|
-
* @module directive
|
|
4136
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4137
|
-
*/
|
|
4138
|
-
var INSTANCE_NAME_KEY = 'instanceName';
|
|
4139
|
-
function getDirective(SwiperClass, globalOptions) {
|
|
4140
|
-
var getStandardisedOptionByAttrs = function (vnode, key) {
|
|
4141
|
-
var _a, _b, _c, _d;
|
|
4142
|
-
var value = (_b = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b[key];
|
|
4143
|
-
return value !== undefined
|
|
4144
|
-
? value
|
|
4145
|
-
: (_d = (_c = vnode.data) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d[kebabcase(key)];
|
|
4146
|
-
};
|
|
4147
|
-
// Get swiper instace name in directive
|
|
4148
|
-
var getSwiperInstanceName = function (element, binding, vnode) {
|
|
4149
|
-
return (binding.arg ||
|
|
4150
|
-
getStandardisedOptionByAttrs(vnode, INSTANCE_NAME_KEY) ||
|
|
4151
|
-
element.id ||
|
|
4152
|
-
CoreNames.SwiperInstance);
|
|
4153
|
-
};
|
|
4154
|
-
var getSwiperInstance = function (element, binding, vnode) {
|
|
4155
|
-
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
4156
|
-
return vnode.context[instanceName] || null;
|
|
4157
|
-
};
|
|
4158
|
-
var getSwipeOptions = function (binding) {
|
|
4159
|
-
return binding.value || globalOptions;
|
|
4160
|
-
};
|
|
4161
|
-
var getBooleanValueByInput = function (input) {
|
|
4162
|
-
return [true, undefined, null, ''].includes(input);
|
|
4163
|
-
};
|
|
4164
|
-
// Emit event in Vue directive
|
|
4165
|
-
var getEventEmiter = function (vnode) {
|
|
4166
|
-
var _a, _b;
|
|
4167
|
-
var handlers = ((_a = vnode.data) === null || _a === void 0 ? void 0 : _a.on) || ((_b = vnode.componentOptions) === null || _b === void 0 ? void 0 : _b.listeners);
|
|
4168
|
-
return function (name) {
|
|
4169
|
-
var arguments$1 = arguments;
|
|
4170
|
-
|
|
4171
|
-
var args = [];
|
|
4172
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4173
|
-
args[_i - 1] = arguments$1[_i];
|
|
4174
|
-
}
|
|
4175
|
-
var _a;
|
|
4176
|
-
var handle = (_a = handlers) === null || _a === void 0 ? void 0 : _a[name];
|
|
4177
|
-
if (handle) {
|
|
4178
|
-
handle.fns.apply(handle, args);
|
|
4179
|
-
}
|
|
4180
|
-
};
|
|
4181
|
-
};
|
|
4182
|
-
return {
|
|
4183
|
-
// Init
|
|
4184
|
-
bind: function (element, binding, vnode) {
|
|
4185
|
-
// auto class name
|
|
4186
|
-
if (element.className.indexOf(DEFAULT_CLASSES.containerClass) === -1) {
|
|
4187
|
-
element.className += ((element.className ? ' ' : '') + DEFAULT_CLASSES.containerClass);
|
|
4188
|
-
}
|
|
4189
|
-
// bind click event
|
|
4190
|
-
element.addEventListener('click', function (event) {
|
|
4191
|
-
var emitEvent = getEventEmiter(vnode);
|
|
4192
|
-
var swiper = getSwiperInstance(element, binding, vnode);
|
|
4193
|
-
handleClickSlideEvent(swiper, event, emitEvent);
|
|
4194
|
-
});
|
|
4195
|
-
},
|
|
4196
|
-
// DOM inserted
|
|
4197
|
-
inserted: function (element, binding, vnode) {
|
|
4198
|
-
var context = vnode.context;
|
|
4199
|
-
var swiperOptions = getSwipeOptions(binding);
|
|
4200
|
-
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
4201
|
-
var emitEvent = getEventEmiter(vnode);
|
|
4202
|
-
var vueContext = context;
|
|
4203
|
-
var swiper = vueContext === null || vueContext === void 0 ? void 0 : vueContext[instanceName];
|
|
4204
|
-
// Swiper will destroy but not delete instance, when used <keep-alive>
|
|
4205
|
-
if (!swiper || swiper.destroyed) {
|
|
4206
|
-
swiper = new SwiperClass(element, swiperOptions);
|
|
4207
|
-
vueContext[instanceName] = swiper;
|
|
4208
|
-
bindSwiperEvents(swiper, emitEvent);
|
|
4209
|
-
emitEvent(ComponentEvents.Ready, swiper);
|
|
4210
|
-
// MARK: Reinstance when the nexttick with <keep-alive>
|
|
4211
|
-
// Vue.nextTick(instancing) | setTimeout(instancing)
|
|
4212
|
-
}
|
|
4213
|
-
},
|
|
4214
|
-
// On options changed or DOM updated
|
|
4215
|
-
componentUpdated: function (element, binding, vnode) {
|
|
4216
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4217
|
-
var autoUpdate = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoUpdate);
|
|
4218
|
-
if (getBooleanValueByInput(autoUpdate)) {
|
|
4219
|
-
var swiper = getSwiperInstance(element, binding, vnode);
|
|
4220
|
-
if (swiper) {
|
|
4221
|
-
var swiperOptions = getSwipeOptions(binding);
|
|
4222
|
-
var isLoop = swiperOptions.loop;
|
|
4223
|
-
if (isLoop) {
|
|
4224
|
-
(_b = (_a = swiper) === null || _a === void 0 ? void 0 : _a.loopDestroy) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
4225
|
-
}
|
|
4226
|
-
(_c = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _c === void 0 ? void 0 : _c.call(swiper);
|
|
4227
|
-
(_e = (_d = swiper.navigation) === null || _d === void 0 ? void 0 : _d.update) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
4228
|
-
(_g = (_f = swiper.pagination) === null || _f === void 0 ? void 0 : _f.render) === null || _g === void 0 ? void 0 : _g.call(_f);
|
|
4229
|
-
(_j = (_h = swiper.pagination) === null || _h === void 0 ? void 0 : _h.update) === null || _j === void 0 ? void 0 : _j.call(_h);
|
|
4230
|
-
if (isLoop) {
|
|
4231
|
-
(_l = (_k = swiper) === null || _k === void 0 ? void 0 : _k.loopCreate) === null || _l === void 0 ? void 0 : _l.call(_k);
|
|
4232
|
-
(_m = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _m === void 0 ? void 0 : _m.call(swiper);
|
|
4233
|
-
}
|
|
4234
|
-
}
|
|
4235
|
-
}
|
|
4236
|
-
},
|
|
4237
|
-
// Destroy this directive
|
|
4238
|
-
unbind: function (element, binding, vnode) {
|
|
4239
|
-
var _a;
|
|
4240
|
-
var autoDestroy = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoDestroy);
|
|
4241
|
-
if (getBooleanValueByInput(autoDestroy)) {
|
|
4242
|
-
var swiper = getSwiperInstance(element, binding, vnode);
|
|
4243
|
-
if (swiper && swiper.initialized) {
|
|
4244
|
-
(_a = swiper === null || swiper === void 0 ? void 0 : swiper.destroy) === null || _a === void 0 ? void 0 : _a.call(swiper, getBooleanValueByInput(getStandardisedOptionByAttrs(vnode, ComponentPropNames.DeleteInstanceOnDestroy)), getBooleanValueByInput(getStandardisedOptionByAttrs(vnode, ComponentPropNames.CleanupStylesOnDestroy)));
|
|
4245
|
-
}
|
|
4246
|
-
}
|
|
4247
|
-
}
|
|
4248
|
-
};
|
|
4249
|
-
}/**
|
|
4250
|
-
* @file vue-awesome-swiper
|
|
4251
|
-
* @module SwiperComponent
|
|
4252
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4253
|
-
*/
|
|
4254
|
-
var SlotNames;
|
|
4255
|
-
(function (SlotNames) {
|
|
4256
|
-
SlotNames["ParallaxBg"] = "parallax-bg";
|
|
4257
|
-
SlotNames["Pagination"] = "pagination";
|
|
4258
|
-
SlotNames["Scrollbar"] = "scrollbar";
|
|
4259
|
-
SlotNames["PrevButton"] = "button-prev";
|
|
4260
|
-
SlotNames["NextButton"] = "button-next";
|
|
4261
|
-
})(SlotNames || (SlotNames = {}));
|
|
4262
|
-
function getSwiperComponent(SwiperClass) {
|
|
4263
|
-
var _a;
|
|
4264
|
-
return Vue.extend({
|
|
4265
|
-
name: CoreNames.SwiperComponent,
|
|
4266
|
-
props: (_a = {
|
|
4267
|
-
defaultOptions: {
|
|
4268
|
-
type: Object,
|
|
4269
|
-
required: false,
|
|
4270
|
-
default: function () { return ({}); }
|
|
4271
|
-
},
|
|
4272
|
-
// eslint-disable-next-line vue/require-default-prop
|
|
4273
|
-
options: {
|
|
4274
|
-
type: Object,
|
|
4275
|
-
required: false
|
|
4276
|
-
}
|
|
4277
|
-
},
|
|
4278
|
-
_a[ComponentPropNames.AutoUpdate] = {
|
|
4279
|
-
type: Boolean,
|
|
4280
|
-
default: true
|
|
4281
|
-
},
|
|
4282
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/550/files
|
|
4283
|
-
_a[ComponentPropNames.AutoDestroy] = {
|
|
4284
|
-
type: Boolean,
|
|
4285
|
-
default: true
|
|
4286
|
-
},
|
|
4287
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/388
|
|
4288
|
-
_a[ComponentPropNames.DeleteInstanceOnDestroy] = {
|
|
4289
|
-
type: Boolean,
|
|
4290
|
-
required: false,
|
|
4291
|
-
default: true
|
|
4292
|
-
},
|
|
4293
|
-
_a[ComponentPropNames.CleanupStylesOnDestroy] = {
|
|
4294
|
-
type: Boolean,
|
|
4295
|
-
required: false,
|
|
4296
|
-
default: true
|
|
4297
|
-
},
|
|
4298
|
-
_a),
|
|
4299
|
-
data: function () {
|
|
4300
|
-
var _a;
|
|
4301
|
-
return _a = {},
|
|
4302
|
-
_a[CoreNames.SwiperInstance] = null,
|
|
4303
|
-
_a;
|
|
4304
|
-
},
|
|
4305
|
-
computed: {
|
|
4306
|
-
swiperInstance: {
|
|
4307
|
-
cache: false,
|
|
4308
|
-
set: function (swiper) {
|
|
4309
|
-
this[CoreNames.SwiperInstance] = swiper;
|
|
4310
|
-
},
|
|
4311
|
-
get: function () {
|
|
4312
|
-
return this[CoreNames.SwiperInstance];
|
|
4313
|
-
}
|
|
4314
|
-
},
|
|
4315
|
-
swiperOptions: function () {
|
|
4316
|
-
return this.options || this.defaultOptions;
|
|
4317
|
-
},
|
|
4318
|
-
wrapperClass: function () {
|
|
4319
|
-
return this.swiperOptions.wrapperClass || DEFAULT_CLASSES.wrapperClass;
|
|
4320
|
-
}
|
|
4321
|
-
},
|
|
4322
|
-
methods: {
|
|
4323
|
-
// Feature: click event
|
|
4324
|
-
handleSwiperClick: function (event) {
|
|
4325
|
-
handleClickSlideEvent(this.swiperInstance, event, this.$emit.bind(this));
|
|
4326
|
-
},
|
|
4327
|
-
autoReLoopSwiper: function () {
|
|
4328
|
-
var _a, _b;
|
|
4329
|
-
if (this.swiperInstance && this.swiperOptions.loop) {
|
|
4330
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/593
|
|
4331
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/544
|
|
4332
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/545/files
|
|
4333
|
-
var swiper = this.swiperInstance;
|
|
4334
|
-
(_a = swiper === null || swiper === void 0 ? void 0 : swiper.loopDestroy) === null || _a === void 0 ? void 0 : _a.call(swiper);
|
|
4335
|
-
(_b = swiper === null || swiper === void 0 ? void 0 : swiper.loopCreate) === null || _b === void 0 ? void 0 : _b.call(swiper);
|
|
4336
|
-
}
|
|
4337
|
-
},
|
|
4338
|
-
updateSwiper: function () {
|
|
4339
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4340
|
-
if (this[ComponentPropNames.AutoUpdate] && this.swiperInstance) {
|
|
4341
|
-
this.autoReLoopSwiper();
|
|
4342
|
-
(_b = (_a = this.swiperInstance) === null || _a === void 0 ? void 0 : _a.update) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
4343
|
-
(_d = (_c = this.swiperInstance.navigation) === null || _c === void 0 ? void 0 : _c.update) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
4344
|
-
(_f = (_e = this.swiperInstance.pagination) === null || _e === void 0 ? void 0 : _e.render) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
4345
|
-
(_h = (_g = this.swiperInstance.pagination) === null || _g === void 0 ? void 0 : _g.update) === null || _h === void 0 ? void 0 : _h.call(_g);
|
|
4346
|
-
}
|
|
4347
|
-
},
|
|
4348
|
-
destroySwiper: function () {
|
|
4349
|
-
var _a, _b;
|
|
4350
|
-
if (this[ComponentPropNames.AutoDestroy] && this.swiperInstance) {
|
|
4351
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/341
|
|
4352
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/340
|
|
4353
|
-
if (this.swiperInstance.initialized) {
|
|
4354
|
-
(_b = (_a = this.swiperInstance) === null || _a === void 0 ? void 0 : _a.destroy) === null || _b === void 0 ? void 0 : _b.call(_a, this[ComponentPropNames.DeleteInstanceOnDestroy], this[ComponentPropNames.CleanupStylesOnDestroy]);
|
|
4355
|
-
}
|
|
4356
|
-
}
|
|
4357
|
-
},
|
|
4358
|
-
initSwiper: function () {
|
|
4359
|
-
this.swiperInstance = new SwiperClass(this.$el, this.swiperOptions);
|
|
4360
|
-
bindSwiperEvents(this.swiperInstance, this.$emit.bind(this));
|
|
4361
|
-
this.$emit(ComponentEvents.Ready, this.swiperInstance);
|
|
4362
|
-
}
|
|
4363
|
-
},
|
|
4364
|
-
mounted: function () {
|
|
4365
|
-
if (!this.swiperInstance) {
|
|
4366
|
-
this.initSwiper();
|
|
4367
|
-
}
|
|
4368
|
-
},
|
|
4369
|
-
// Update swiper when the parent component activated with `keep-alive`.
|
|
4370
|
-
activated: function () {
|
|
4371
|
-
this.updateSwiper();
|
|
4372
|
-
},
|
|
4373
|
-
updated: function () {
|
|
4374
|
-
this.updateSwiper();
|
|
4375
|
-
},
|
|
4376
|
-
beforeDestroy: function () {
|
|
4377
|
-
// https://github.com/surmon-china/vue-awesome-swiper/commit/2924a9d4d3d1cf51c0d46076410b1f804b2b8a43#diff-7f4e0261ac562c0f354cb91a1ca8864f
|
|
4378
|
-
this.$nextTick(this.destroySwiper);
|
|
4379
|
-
},
|
|
4380
|
-
render: function (createElement) {
|
|
4381
|
-
return createElement('div', {
|
|
4382
|
-
staticClass: DEFAULT_CLASSES.containerClass,
|
|
4383
|
-
on: {
|
|
4384
|
-
click: this.handleSwiperClick
|
|
4385
|
-
}
|
|
4386
|
-
}, [
|
|
4387
|
-
this.$slots[SlotNames.ParallaxBg],
|
|
4388
|
-
createElement('div', {
|
|
4389
|
-
class: this.wrapperClass
|
|
4390
|
-
}, this.$slots.default),
|
|
4391
|
-
this.$slots[SlotNames.Pagination],
|
|
4392
|
-
this.$slots[SlotNames.PrevButton],
|
|
4393
|
-
this.$slots[SlotNames.NextButton],
|
|
4394
|
-
this.$slots[SlotNames.Scrollbar]
|
|
4395
|
-
]);
|
|
4396
|
-
}
|
|
4397
|
-
});
|
|
4398
|
-
}/**
|
|
4399
|
-
* @file vue-awesome-swiper
|
|
4400
|
-
* @module SwiperSlideComponent
|
|
4401
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4402
|
-
*/
|
|
4403
|
-
var SwiperSlideComponent = Vue.extend({
|
|
4404
|
-
name: CoreNames.SwiperSlideComponent,
|
|
4405
|
-
computed: {
|
|
4406
|
-
slideClass: function () {
|
|
4407
|
-
var _a, _b;
|
|
4408
|
-
return ((_b = (_a = this.$parent) === null || _a === void 0 ? void 0 : _a.swiperOptions) === null || _b === void 0 ? void 0 : _b.slideClass) || DEFAULT_CLASSES.slideClass;
|
|
4409
|
-
}
|
|
4410
|
-
},
|
|
4411
|
-
methods: {
|
|
4412
|
-
update: function () {
|
|
4413
|
-
var _a;
|
|
4414
|
-
var parent = this.$parent;
|
|
4415
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/632
|
|
4416
|
-
if (parent[ComponentPropNames.AutoUpdate]) {
|
|
4417
|
-
(_a = parent === null || parent === void 0 ? void 0 : parent.swiperInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
4418
|
-
}
|
|
4419
|
-
}
|
|
4420
|
-
},
|
|
4421
|
-
mounted: function () {
|
|
4422
|
-
this.update();
|
|
4423
|
-
},
|
|
4424
|
-
updated: function () {
|
|
4425
|
-
this.update();
|
|
4426
|
-
},
|
|
4427
|
-
render: function (createElement) {
|
|
4428
|
-
return createElement('div', {
|
|
4429
|
-
class: this.slideClass
|
|
4430
|
-
}, this.$slots.default);
|
|
4431
|
-
}
|
|
4432
|
-
});/**
|
|
4433
|
-
* @file vue-awesome-swiper
|
|
4434
|
-
* @module exporter
|
|
4435
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4436
|
-
*/
|
|
4437
|
-
var getInstaller = function (SwiperClass) {
|
|
4438
|
-
var install = function (Vue, globalOptions) {
|
|
4439
|
-
if (install.installed)
|
|
4440
|
-
{ return; }
|
|
4441
|
-
var SwiperComponent = getSwiperComponent(SwiperClass);
|
|
4442
|
-
if (globalOptions) {
|
|
4443
|
-
SwiperComponent.options.props.defaultOptions.default = function () { return globalOptions; };
|
|
4444
|
-
}
|
|
4445
|
-
Vue.component(CoreNames.SwiperComponent, SwiperComponent);
|
|
4446
|
-
Vue.component(CoreNames.SwiperSlideComponent, SwiperSlideComponent);
|
|
4447
|
-
Vue.directive(CoreNames.SwiperDirective, getDirective(SwiperClass, globalOptions));
|
|
4448
|
-
install.installed = true;
|
|
4449
|
-
};
|
|
4450
|
-
return install;
|
|
4451
|
-
};
|
|
4452
|
-
function exporter(SwiperClass) {
|
|
4453
|
-
var _a;
|
|
4454
|
-
return _a = {
|
|
4455
|
-
version: '4.1.1',
|
|
4456
|
-
install: getInstaller(SwiperClass),
|
|
4457
|
-
directive: getDirective(SwiperClass)
|
|
4458
|
-
},
|
|
4459
|
-
_a[CoreNames.SwiperComponent] = getSwiperComponent(SwiperClass),
|
|
4460
|
-
_a[CoreNames.SwiperSlideComponent] = SwiperSlideComponent,
|
|
4461
|
-
_a;
|
|
4462
|
-
}/**
|
|
4463
|
-
* @file vue-awesome-swiper
|
|
4464
|
-
* @module default-export
|
|
4465
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4466
|
-
*/
|
|
4467
|
-
var VueAwesomeSwiper = exporter(SwiperClass);
|
|
4468
|
-
var version = VueAwesomeSwiper.version;
|
|
4469
|
-
var install = VueAwesomeSwiper.install;
|
|
4470
|
-
var directive = VueAwesomeSwiper.directive;
|
|
4471
|
-
var Swiper = VueAwesomeSwiper.Swiper;
|
|
4472
|
-
var SwiperSlide = VueAwesomeSwiper.SwiperSlide;exports.Swiper=Swiper;exports.SwiperSlide=SwiperSlide;exports.default=VueAwesomeSwiper;exports.directive=directive;exports.install=install;exports.version=version;Object.defineProperty(exports,'__esModule',{value:true});})));
|
|
4473
|
-
|
|
4474
|
-
/***/ }),
|
|
4475
|
-
|
|
4476
|
-
/***/ "b061":
|
|
4477
|
-
/***/ (function(module, exports) {
|
|
4478
|
-
|
|
4479
|
-
var g;
|
|
4480
|
-
|
|
4481
|
-
// This works in non-strict mode
|
|
4482
|
-
g = (function() {
|
|
4483
|
-
return this;
|
|
4484
|
-
})();
|
|
4485
|
-
|
|
4486
|
-
try {
|
|
4487
|
-
// This works if eval is allowed (see CSP)
|
|
4488
|
-
g = g || new Function("return this")();
|
|
4489
|
-
} catch (e) {
|
|
4490
|
-
// This works if the window reference is available
|
|
4491
|
-
if (typeof window === "object") g = window;
|
|
4492
|
-
}
|
|
4493
|
-
|
|
4494
|
-
// g can still be undefined, but nothing to do about it...
|
|
4495
|
-
// We return undefined, instead of nothing here, so it's
|
|
4496
|
-
// easier to handle this case. if(!global) { ...}
|
|
4497
|
-
|
|
4498
|
-
module.exports = g;
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
/***/ }),
|
|
4502
|
-
|
|
4503
|
-
/***/ "b156":
|
|
4504
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4505
|
-
|
|
4506
|
-
// extracted by mini-css-extract-plugin
|
|
4507
|
-
|
|
4508
|
-
/***/ }),
|
|
4509
|
-
|
|
4510
|
-
/***/ "b61c":
|
|
4511
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4512
|
-
|
|
4513
|
-
// extracted by mini-css-extract-plugin
|
|
4025
|
+
/***/ "b61c":
|
|
4026
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4027
|
+
|
|
4028
|
+
// extracted by mini-css-extract-plugin
|
|
4514
4029
|
|
|
4515
4030
|
/***/ }),
|
|
4516
4031
|
|
|
@@ -4678,126 +4193,7 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
4678
4193
|
|
|
4679
4194
|
/***/ }),
|
|
4680
4195
|
|
|
4681
|
-
/***/ "
|
|
4682
|
-
/***/ (function(module, exports) {
|
|
4683
|
-
|
|
4684
|
-
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :taskCategoryID=\"taskCategoryID\" :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\">\r\n </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"(selection.length && !isContainsPublished) ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <template v-if=\"list&&list.length\">\r\n <i-table class=\"diy-table diy-table-scorll\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\" @on-row-click=\"onRowClick\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未发布\"}}</span>\r\n </template>\r\n <template slot=\"authFlag\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.authFlag\" :true-value=\"1\" :false-value=\"0\" @on-change=\"onAuthFlagChange($event, row, index)\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-a-xinzengzhibiaobeifen9\"></i>\r\n <i @click=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi1\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\r\n <i @click=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-Edit\"></i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </template>\r\n <template v-else>\r\n <div class=\"table-no-data\">\r\n <div class=\"table-no-data-bg\"></div>\r\n <div class=\"table-no-data-text\">暂无数据</div>\r\n </div>\r\n </template>\r\n </section>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
4685
|
-
|
|
4686
|
-
/***/ }),
|
|
4687
|
-
|
|
4688
|
-
/***/ "cd69":
|
|
4689
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4690
|
-
|
|
4691
|
-
"use strict";
|
|
4692
|
-
|
|
4693
|
-
var ceil = Math.ceil;
|
|
4694
|
-
var floor = Math.floor;
|
|
4695
|
-
|
|
4696
|
-
// `Math.trunc` method
|
|
4697
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
4698
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
4699
|
-
module.exports = Math.trunc || function trunc(x) {
|
|
4700
|
-
var n = +x;
|
|
4701
|
-
return (n > 0 ? floor : ceil)(n);
|
|
4702
|
-
};
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
/***/ }),
|
|
4706
|
-
|
|
4707
|
-
/***/ "ce8f":
|
|
4708
|
-
/***/ (function(module, exports) {
|
|
4709
|
-
|
|
4710
|
-
module.exports = require("@egova/flagwind-web/dist/flagwind-web.umd.js");
|
|
4711
|
-
|
|
4712
|
-
/***/ }),
|
|
4713
|
-
|
|
4714
|
-
/***/ "ce97":
|
|
4715
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4716
|
-
|
|
4717
|
-
"use strict";
|
|
4718
|
-
|
|
4719
|
-
var classof = __webpack_require__("aaa6");
|
|
4720
|
-
|
|
4721
|
-
var $String = String;
|
|
4722
|
-
|
|
4723
|
-
module.exports = function (argument) {
|
|
4724
|
-
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
4725
|
-
return $String(argument);
|
|
4726
|
-
};
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
/***/ }),
|
|
4730
|
-
|
|
4731
|
-
/***/ "cebe":
|
|
4732
|
-
/***/ (function(module, exports) {
|
|
4733
|
-
|
|
4734
|
-
module.exports = require("axios");
|
|
4735
|
-
|
|
4736
|
-
/***/ }),
|
|
4737
|
-
|
|
4738
|
-
/***/ "cf8c":
|
|
4739
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4740
|
-
|
|
4741
|
-
"use strict";
|
|
4742
|
-
|
|
4743
|
-
var toIndexedObject = __webpack_require__("485f");
|
|
4744
|
-
var toAbsoluteIndex = __webpack_require__("575c");
|
|
4745
|
-
var lengthOfArrayLike = __webpack_require__("d631");
|
|
4746
|
-
|
|
4747
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
4748
|
-
var createMethod = function (IS_INCLUDES) {
|
|
4749
|
-
return function ($this, el, fromIndex) {
|
|
4750
|
-
var O = toIndexedObject($this);
|
|
4751
|
-
var length = lengthOfArrayLike(O);
|
|
4752
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
4753
|
-
var value;
|
|
4754
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
4755
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4756
|
-
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
4757
|
-
value = O[index++];
|
|
4758
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4759
|
-
if (value !== value) return true;
|
|
4760
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
4761
|
-
} else for (;length > index; index++) {
|
|
4762
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
4763
|
-
} return !IS_INCLUDES && -1;
|
|
4764
|
-
};
|
|
4765
|
-
};
|
|
4766
|
-
|
|
4767
|
-
module.exports = {
|
|
4768
|
-
// `Array.prototype.includes` method
|
|
4769
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4770
|
-
includes: createMethod(true),
|
|
4771
|
-
// `Array.prototype.indexOf` method
|
|
4772
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
4773
|
-
indexOf: createMethod(false)
|
|
4774
|
-
};
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
/***/ }),
|
|
4778
|
-
|
|
4779
|
-
/***/ "cfb3":
|
|
4780
|
-
/***/ (function(module, exports) {
|
|
4781
|
-
|
|
4782
|
-
module.exports = "<article class=\"project-list\">\r\n <header>\r\n <i-input\r\n class=\"diy-input\"\r\n v-model=\"condition.name\"\r\n search\r\n @on-search=\"onQuery\"\r\n placeholder=\"输入关键字检索\"\r\n ></i-input>\r\n </header>\r\n <main>\r\n <header class=\"tool-bar\">\r\n <span>项目列表</span>\r\n <div class=\"right-tool\">\r\n <div class=\"action-btn\">\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i class=\"api-icon icon-import\"></i>\r\n <div>导入项目</div>\r\n </i-upload>\r\n </div>\r\n <div class=\"action-btn\" @click=\"onComment\">\r\n <i\r\n class=\"api-icon icon-star\"\r\n @click=\"onCheckType('list')\"\r\n ></i>\r\n <div>查看项目动态</div>\r\n </div>\r\n <i\r\n class=\"api-icon icon-list\"\r\n :class=\"{'active': type === 'list'}\"\r\n title=\"列表展示\"\r\n @click=\"onCheckType('list')\"\r\n ></i>\r\n <i\r\n class=\"api-icon icon-card\"\r\n :class=\"{'active': type === 'card'}\"\r\n title=\"卡片展示\"\r\n @click=\"onCheckType('card')\"\r\n ></i>\r\n </div>\r\n </header>\r\n <main>\r\n <section class=\"projects\" v-if=\"type==='card'\">\r\n <div class=\"project-card\" @click=\"onAdd\">\r\n <div class=\"add-card\">\r\n <i-icon type=\"md-add\" />\r\n <p>新建项目</p>\r\n </div>\r\n </div>\r\n <u-card\r\n v-for=\"item in dataList\"\r\n :data=\"item\"\r\n :key=\"item.id\"\r\n @on-delete=\"onDelete\"\r\n @on-detail=\"onDetail\"\r\n @on-edit=\"onEdit\"\r\n @on-export=\"onExport\"\r\n ></u-card>\r\n </section>\r\n <section class=\"projects\" v-else>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <span @click=\"onExport(row)\" class=\"action-btn export\"\r\n ><i class=\"api-icon icon-export projects-icon-export\" title=\"导出此项目\"></i\r\n ></span>\r\n <span @click=\"onDetail(row)\" class=\"action-btn detail\"\r\n ><i class=\"api-icon icon-detail\" title=\"详情\"></i\r\n ></span>\r\n <span @click=\"onEdit(row)\" class=\"action-btn detail\"\r\n ><i class=\"api-icon icon-edit\" title=\"修改\"></i\r\n ></span>\r\n <u-confirm\r\n title=\"删除项目\"\r\n @on-ok=\"onDelete(row)\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n >\r\n <span class=\"action-btn delete\"\r\n ><i\r\n class=\"api-icon icon-delete\"\r\n title=\"删除\"\r\n ></i\r\n ></span>\r\n </u-confirm>\r\n </template>\r\n </i-table>\r\n </section>\r\n </main>\r\n </main>\r\n <u-add-modal :visiable.sync=\"showAddModal\" :data=\"current\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showAddModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onSave\"\r\n >确定</i-button\r\n >\r\n </footer>\r\n </u-add-modal>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
|
|
4783
|
-
|
|
4784
|
-
/***/ }),
|
|
4785
|
-
|
|
4786
|
-
/***/ "cfde":
|
|
4787
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4788
|
-
|
|
4789
|
-
// extracted by mini-css-extract-plugin
|
|
4790
|
-
|
|
4791
|
-
/***/ }),
|
|
4792
|
-
|
|
4793
|
-
/***/ "d30a":
|
|
4794
|
-
/***/ (function(module, exports) {
|
|
4795
|
-
|
|
4796
|
-
module.exports = "<div class=\"u-selector-tree-node\" @click=\"onClickNode\">\r\n <i-icon v-if=\"!data.children\" type=\"ios-bookmark-outline\" />\r\n <template v-else>\r\n<!-- <i-->\r\n<!-- class=\"iconfont\"-->\r\n<!-- :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"-->\r\n<!-- ></i>-->\r\n <i class=\"iconfont icon-bumenkaohe\"></i>\r\n </template>\r\n <span>{{data.title}}</span>\r\n</div>\r\n"
|
|
4797
|
-
|
|
4798
|
-
/***/ }),
|
|
4799
|
-
|
|
4800
|
-
/***/ "d345":
|
|
4196
|
+
/***/ "cb40":
|
|
4801
4197
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4802
4198
|
|
|
4803
4199
|
"use strict";
|
|
@@ -4812,7 +4208,7 @@ __webpack_require__.d(__webpack_exports__, "ProjectDetail", function() { return
|
|
|
4812
4208
|
__webpack_require__.d(__webpack_exports__, "ProjectList", function() { return /* reexport */ views_project_list; });
|
|
4813
4209
|
__webpack_require__.d(__webpack_exports__, "injectEnableUserCenterCookie", function() { return /* reexport */ injectEnableUserCenterCookie; });
|
|
4814
4210
|
|
|
4815
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue+cli-service@4.5.
|
|
4211
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue+cli-service@4.5.19_raw-loader@1.0.0_sass-load_6c5aczzntsl4dewyqjyegjkf6q/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
4816
4212
|
// This file is imported into lib/wc client bundles.
|
|
4817
4213
|
|
|
4818
4214
|
if (typeof window !== 'undefined') {
|
|
@@ -9309,14 +8705,7 @@ var combine_model_ProjectCombineModel = /** @class */function (_super) {
|
|
|
9309
8705
|
__extends(ProjectCombineModel, _super);
|
|
9310
8706
|
function ProjectCombineModel() {
|
|
9311
8707
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
9312
|
-
_this.model =
|
|
9313
|
-
authFlag: 1,
|
|
9314
|
-
type: "SCRIPT",
|
|
9315
|
-
status: "NOT_PUBLISHED",
|
|
9316
|
-
relations: [],
|
|
9317
|
-
reqParams: [],
|
|
9318
|
-
respParams: []
|
|
9319
|
-
};
|
|
8708
|
+
_this.model = _this.createDefaultModel();
|
|
9320
8709
|
_this.title = "合并模型";
|
|
9321
8710
|
_this.id = "";
|
|
9322
8711
|
_this.categoryId = "";
|
|
@@ -9375,6 +8764,16 @@ var combine_model_ProjectCombineModel = /** @class */function (_super) {
|
|
|
9375
8764
|
_this.docShow = false;
|
|
9376
8765
|
return _this;
|
|
9377
8766
|
}
|
|
8767
|
+
ProjectCombineModel.prototype.createDefaultModel = function () {
|
|
8768
|
+
return {
|
|
8769
|
+
authFlag: 1,
|
|
8770
|
+
type: "SCRIPT",
|
|
8771
|
+
status: "NOT_PUBLISHED",
|
|
8772
|
+
relations: [],
|
|
8773
|
+
reqParams: [],
|
|
8774
|
+
respParams: []
|
|
8775
|
+
};
|
|
8776
|
+
};
|
|
9378
8777
|
Object.defineProperty(ProjectCombineModel.prototype, "dataModelRelations", {
|
|
9379
8778
|
get: function () {
|
|
9380
8779
|
var _a, _b;
|
|
@@ -9418,6 +8817,11 @@ var combine_model_ProjectCombineModel = /** @class */function (_super) {
|
|
|
9418
8817
|
this.isAdd = this.isEdit && !id;
|
|
9419
8818
|
this.categoryId = categoryId;
|
|
9420
8819
|
this.title = !this.isEdit ? "合并模型详情" : this.isAdd ? "新增合并模型" : "编辑合并模型";
|
|
8820
|
+
if (!id) {
|
|
8821
|
+
this.id = "";
|
|
8822
|
+
this.model = this.createDefaultModel();
|
|
8823
|
+
return;
|
|
8824
|
+
}
|
|
9421
8825
|
if (id !== this.id) {
|
|
9422
8826
|
this.id = id;
|
|
9423
8827
|
this.getById();
|
|
@@ -15045,9 +14449,16 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
15045
14449
|
var _this = this;
|
|
15046
14450
|
this.loadProjectList();
|
|
15047
14451
|
this.$subscribe("api://project-detail-save", function () {
|
|
14452
|
+
if (!_this.isCurrentProjectRoute()) {
|
|
14453
|
+
return;
|
|
14454
|
+
}
|
|
15048
14455
|
_this.init();
|
|
15049
14456
|
});
|
|
15050
14457
|
};
|
|
14458
|
+
ProjectTree.prototype.isCurrentProjectRoute = function () {
|
|
14459
|
+
var _a;
|
|
14460
|
+
return ((_a = this.$route.params) === null || _a === void 0 ? void 0 : _a.id) === this.projectId;
|
|
14461
|
+
};
|
|
15051
14462
|
ProjectTree.prototype.renderContent = function (h, _a) {
|
|
15052
14463
|
var root = _a.root,
|
|
15053
14464
|
node = _a.node,
|
|
@@ -15588,8 +14999,8 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
15588
14999
|
return ProjectTree;
|
|
15589
15000
|
}(flagwind_web_["Component"]);
|
|
15590
15001
|
/* harmony default export */ var views_project_detail_tree = (tree_ProjectTree);
|
|
15591
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-awesome-swiper@4.1.1_swiper@6.8.
|
|
15592
|
-
var vue_awesome_swiper = __webpack_require__("
|
|
15002
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-awesome-swiper@4.1.1_swiper@6.8.4_vue@2.7.16/node_modules/vue-awesome-swiper/dist/vue-awesome-swiper.js
|
|
15003
|
+
var vue_awesome_swiper = __webpack_require__("ed38");
|
|
15593
15004
|
|
|
15594
15005
|
// CONCATENATED MODULE: ./src/views/project-detail/index.ts
|
|
15595
15006
|
|
|
@@ -15635,26 +15046,54 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
15635
15046
|
ProjectDetail.prototype.onSwiperReadied = function (swiper) {
|
|
15636
15047
|
this.swiper = swiper;
|
|
15637
15048
|
};
|
|
15638
|
-
ProjectDetail.prototype.getProjectInfo = function () {
|
|
15049
|
+
ProjectDetail.prototype.getProjectInfo = function (projectId) {
|
|
15639
15050
|
var _a, _b;
|
|
15051
|
+
if (projectId === void 0) {
|
|
15052
|
+
projectId = ((_a = this.$route.params) === null || _a === void 0 ? void 0 : _a.id) || "";
|
|
15053
|
+
}
|
|
15640
15054
|
return __awaiter(this, void 0, void 0, function () {
|
|
15641
15055
|
var res;
|
|
15642
15056
|
return __generator(this, function (_c) {
|
|
15643
15057
|
switch (_c.label) {
|
|
15644
15058
|
case 0:
|
|
15645
|
-
this.projectId =
|
|
15646
|
-
if (!
|
|
15647
|
-
|
|
15059
|
+
this.projectId = projectId;
|
|
15060
|
+
if (!projectId) {
|
|
15061
|
+
this.projectName = "";
|
|
15062
|
+
return [2 /*return*/];
|
|
15063
|
+
}
|
|
15064
|
+
return [4 /*yield*/, this.service.projectInfo(projectId)];
|
|
15648
15065
|
case 1:
|
|
15649
15066
|
res = _c.sent();
|
|
15067
|
+
if (this.projectId !== projectId) {
|
|
15068
|
+
return [2 /*return*/];
|
|
15069
|
+
}
|
|
15650
15070
|
this.projectName = ((_b = res === null || res === void 0 ? void 0 : res.result) === null || _b === void 0 ? void 0 : _b.name) || "";
|
|
15651
|
-
_c.label = 2;
|
|
15652
|
-
case 2:
|
|
15653
15071
|
return [2 /*return*/];
|
|
15654
15072
|
}
|
|
15655
15073
|
});
|
|
15656
15074
|
});
|
|
15657
15075
|
};
|
|
15076
|
+
ProjectDetail.prototype.resetProjectState = function () {
|
|
15077
|
+
this.openInterfaceList.splice(0);
|
|
15078
|
+
this.active = {};
|
|
15079
|
+
this.current = {};
|
|
15080
|
+
this.projectTree = [];
|
|
15081
|
+
this.loading = false;
|
|
15082
|
+
};
|
|
15083
|
+
ProjectDetail.prototype.syncProjectFromRoute = function (route) {
|
|
15084
|
+
var _a;
|
|
15085
|
+
if (route === void 0) {
|
|
15086
|
+
route = this.$route;
|
|
15087
|
+
}
|
|
15088
|
+
var projectId = ((_a = route.params) === null || _a === void 0 ? void 0 : _a.id) || "";
|
|
15089
|
+
var prevProjectId = this.projectId;
|
|
15090
|
+
this.projectId = projectId;
|
|
15091
|
+
if (prevProjectId !== projectId) {
|
|
15092
|
+
this.projectName = "";
|
|
15093
|
+
this.resetProjectState();
|
|
15094
|
+
}
|
|
15095
|
+
this.getProjectInfo(projectId);
|
|
15096
|
+
};
|
|
15658
15097
|
ProjectDetail.prototype.onCheckInterface = function (data, isResume) {
|
|
15659
15098
|
return __awaiter(this, void 0, void 0, function () {
|
|
15660
15099
|
var resumeData, text, set, result, res, index;
|
|
@@ -15775,11 +15214,9 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
15775
15214
|
ProjectDetail.prototype.onOpenEnvModal = function () {
|
|
15776
15215
|
this.showEnvironmentModal = true;
|
|
15777
15216
|
};
|
|
15778
|
-
|
|
15779
|
-
|
|
15780
|
-
var
|
|
15781
|
-
this.getProjectInfo();
|
|
15782
|
-
var _a = this.$route.query,
|
|
15217
|
+
ProjectDetail.prototype.onRouteChange = function (route) {
|
|
15218
|
+
this.syncProjectFromRoute(route);
|
|
15219
|
+
var _a = route.query,
|
|
15783
15220
|
apiId = _a.apiId,
|
|
15784
15221
|
apiName = _a.apiName,
|
|
15785
15222
|
resume = _a.resume;
|
|
@@ -15789,6 +15226,12 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
15789
15226
|
name: apiName
|
|
15790
15227
|
}, resume === "true");
|
|
15791
15228
|
}
|
|
15229
|
+
};
|
|
15230
|
+
ProjectDetail.prototype.mounted = function () {
|
|
15231
|
+
var _this = this;
|
|
15232
|
+
if (!this.projectId) {
|
|
15233
|
+
this.syncProjectFromRoute();
|
|
15234
|
+
}
|
|
15792
15235
|
this.$subscribe("api://project-detail-save-import", function () {
|
|
15793
15236
|
return __awaiter(_this, void 0, void 0, function () {
|
|
15794
15237
|
var res, result;
|
|
@@ -15900,7 +15343,7 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
15900
15343
|
};
|
|
15901
15344
|
ProjectDetail.prototype.onBatchSuccess = function (data) {
|
|
15902
15345
|
if (data) {
|
|
15903
|
-
this.getProjectInfo();
|
|
15346
|
+
this.getProjectInfo(this.projectId);
|
|
15904
15347
|
}
|
|
15905
15348
|
};
|
|
15906
15349
|
ProjectDetail.prototype.onEnvironmentRefresh = function () {
|
|
@@ -15910,6 +15353,9 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
15910
15353
|
this.projectTree = data;
|
|
15911
15354
|
};
|
|
15912
15355
|
__decorate([autowired(project_detail_service)], ProjectDetail.prototype, "service", void 0);
|
|
15356
|
+
__decorate([Object(flagwind_web_["watch"])("$route", {
|
|
15357
|
+
immediate: true
|
|
15358
|
+
})], ProjectDetail.prototype, "onRouteChange", null);
|
|
15913
15359
|
ProjectDetail = __decorate([Object(flagwind_web_["component"])({
|
|
15914
15360
|
name: "ApiProjectDetail",
|
|
15915
15361
|
template: __webpack_require__("d63e"),
|
|
@@ -15942,52 +15388,171 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
15942
15388
|
|
|
15943
15389
|
external_vue_default.a.use(external_halo_math_default.a);
|
|
15944
15390
|
|
|
15945
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue+cli-service@4.5.
|
|
15391
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue+cli-service@4.5.19_raw-loader@1.0.0_sass-load_6c5aczzntsl4dewyqjyegjkf6q/node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
15946
15392
|
|
|
15947
15393
|
|
|
15948
15394
|
|
|
15949
15395
|
|
|
15950
15396
|
/***/ }),
|
|
15951
15397
|
|
|
15952
|
-
/***/ "
|
|
15398
|
+
/***/ "ccf6":
|
|
15399
|
+
/***/ (function(module, exports) {
|
|
15400
|
+
|
|
15401
|
+
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :taskCategoryID=\"taskCategoryID\" :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\">\r\n </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"(selection.length && !isContainsPublished) ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <template v-if=\"list&&list.length\">\r\n <i-table class=\"diy-table diy-table-scorll\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\" @on-row-click=\"onRowClick\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未发布\"}}</span>\r\n </template>\r\n <template slot=\"authFlag\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.authFlag\" :true-value=\"1\" :false-value=\"0\" @on-change=\"onAuthFlagChange($event, row, index)\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-a-xinzengzhibiaobeifen9\"></i>\r\n <i @click=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi1\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\r\n <i @click=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-Edit\"></i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </template>\r\n <template v-else>\r\n <div class=\"table-no-data\">\r\n <div class=\"table-no-data-bg\"></div>\r\n <div class=\"table-no-data-text\">暂无数据</div>\r\n </div>\r\n </template>\r\n </section>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
15402
|
+
|
|
15403
|
+
/***/ }),
|
|
15404
|
+
|
|
15405
|
+
/***/ "cd69":
|
|
15953
15406
|
/***/ (function(module, exports, __webpack_require__) {
|
|
15954
15407
|
|
|
15955
15408
|
"use strict";
|
|
15956
15409
|
|
|
15957
|
-
var
|
|
15958
|
-
var
|
|
15959
|
-
var defineBuiltInAccessor = __webpack_require__("889b");
|
|
15410
|
+
var ceil = Math.ceil;
|
|
15411
|
+
var floor = Math.floor;
|
|
15960
15412
|
|
|
15961
|
-
|
|
15962
|
-
|
|
15413
|
+
// `Math.trunc` method
|
|
15414
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
15415
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
15416
|
+
module.exports = Math.trunc || function trunc(x) {
|
|
15417
|
+
var n = +x;
|
|
15418
|
+
return (n > 0 ? floor : ceil)(n);
|
|
15419
|
+
};
|
|
15963
15420
|
|
|
15964
|
-
// `URLSearchParams.prototype.size` getter
|
|
15965
|
-
// https://github.com/whatwg/url/pull/734
|
|
15966
|
-
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
15967
|
-
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
15968
|
-
get: function size() {
|
|
15969
|
-
var count = 0;
|
|
15970
|
-
forEach(this, function () { count++; });
|
|
15971
|
-
return count;
|
|
15972
|
-
},
|
|
15973
|
-
configurable: true,
|
|
15974
|
-
enumerable: true
|
|
15975
|
-
});
|
|
15976
|
-
}
|
|
15977
15421
|
|
|
15422
|
+
/***/ }),
|
|
15423
|
+
|
|
15424
|
+
/***/ "ce8f":
|
|
15425
|
+
/***/ (function(module, exports) {
|
|
15426
|
+
|
|
15427
|
+
module.exports = require("@egova/flagwind-web/dist/flagwind-web.umd.js");
|
|
15978
15428
|
|
|
15979
15429
|
/***/ }),
|
|
15980
15430
|
|
|
15981
|
-
/***/ "
|
|
15431
|
+
/***/ "ce97":
|
|
15982
15432
|
/***/ (function(module, exports, __webpack_require__) {
|
|
15983
15433
|
|
|
15984
15434
|
"use strict";
|
|
15985
15435
|
|
|
15986
|
-
var
|
|
15987
|
-
var createPropertyDescriptor = __webpack_require__("f2e2");
|
|
15436
|
+
var classof = __webpack_require__("aaa6");
|
|
15988
15437
|
|
|
15989
|
-
|
|
15990
|
-
|
|
15438
|
+
var $String = String;
|
|
15439
|
+
|
|
15440
|
+
module.exports = function (argument) {
|
|
15441
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
15442
|
+
return $String(argument);
|
|
15443
|
+
};
|
|
15444
|
+
|
|
15445
|
+
|
|
15446
|
+
/***/ }),
|
|
15447
|
+
|
|
15448
|
+
/***/ "cebe":
|
|
15449
|
+
/***/ (function(module, exports) {
|
|
15450
|
+
|
|
15451
|
+
module.exports = require("axios");
|
|
15452
|
+
|
|
15453
|
+
/***/ }),
|
|
15454
|
+
|
|
15455
|
+
/***/ "cf8c":
|
|
15456
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15457
|
+
|
|
15458
|
+
"use strict";
|
|
15459
|
+
|
|
15460
|
+
var toIndexedObject = __webpack_require__("485f");
|
|
15461
|
+
var toAbsoluteIndex = __webpack_require__("575c");
|
|
15462
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
15463
|
+
|
|
15464
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
15465
|
+
var createMethod = function (IS_INCLUDES) {
|
|
15466
|
+
return function ($this, el, fromIndex) {
|
|
15467
|
+
var O = toIndexedObject($this);
|
|
15468
|
+
var length = lengthOfArrayLike(O);
|
|
15469
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
15470
|
+
var value;
|
|
15471
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
15472
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
15473
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
15474
|
+
value = O[index++];
|
|
15475
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
15476
|
+
if (value !== value) return true;
|
|
15477
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
15478
|
+
} else for (;length > index; index++) {
|
|
15479
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
15480
|
+
} return !IS_INCLUDES && -1;
|
|
15481
|
+
};
|
|
15482
|
+
};
|
|
15483
|
+
|
|
15484
|
+
module.exports = {
|
|
15485
|
+
// `Array.prototype.includes` method
|
|
15486
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
15487
|
+
includes: createMethod(true),
|
|
15488
|
+
// `Array.prototype.indexOf` method
|
|
15489
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
15490
|
+
indexOf: createMethod(false)
|
|
15491
|
+
};
|
|
15492
|
+
|
|
15493
|
+
|
|
15494
|
+
/***/ }),
|
|
15495
|
+
|
|
15496
|
+
/***/ "cfb3":
|
|
15497
|
+
/***/ (function(module, exports) {
|
|
15498
|
+
|
|
15499
|
+
module.exports = "<article class=\"project-list\">\r\n <header>\r\n <i-input\r\n class=\"diy-input\"\r\n v-model=\"condition.name\"\r\n search\r\n @on-search=\"onQuery\"\r\n placeholder=\"输入关键字检索\"\r\n ></i-input>\r\n </header>\r\n <main>\r\n <header class=\"tool-bar\">\r\n <span>项目列表</span>\r\n <div class=\"right-tool\">\r\n <div class=\"action-btn\">\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i class=\"api-icon icon-import\"></i>\r\n <div>导入项目</div>\r\n </i-upload>\r\n </div>\r\n <div class=\"action-btn\" @click=\"onComment\">\r\n <i\r\n class=\"api-icon icon-star\"\r\n @click=\"onCheckType('list')\"\r\n ></i>\r\n <div>查看项目动态</div>\r\n </div>\r\n <i\r\n class=\"api-icon icon-list\"\r\n :class=\"{'active': type === 'list'}\"\r\n title=\"列表展示\"\r\n @click=\"onCheckType('list')\"\r\n ></i>\r\n <i\r\n class=\"api-icon icon-card\"\r\n :class=\"{'active': type === 'card'}\"\r\n title=\"卡片展示\"\r\n @click=\"onCheckType('card')\"\r\n ></i>\r\n </div>\r\n </header>\r\n <main>\r\n <section class=\"projects\" v-if=\"type==='card'\">\r\n <div class=\"project-card\" @click=\"onAdd\">\r\n <div class=\"add-card\">\r\n <i-icon type=\"md-add\" />\r\n <p>新建项目</p>\r\n </div>\r\n </div>\r\n <u-card\r\n v-for=\"item in dataList\"\r\n :data=\"item\"\r\n :key=\"item.id\"\r\n @on-delete=\"onDelete\"\r\n @on-detail=\"onDetail\"\r\n @on-edit=\"onEdit\"\r\n @on-export=\"onExport\"\r\n ></u-card>\r\n </section>\r\n <section class=\"projects\" v-else>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <span @click=\"onExport(row)\" class=\"action-btn export\"\r\n ><i class=\"api-icon icon-export projects-icon-export\" title=\"导出此项目\"></i\r\n ></span>\r\n <span @click=\"onDetail(row)\" class=\"action-btn detail\"\r\n ><i class=\"api-icon icon-detail\" title=\"详情\"></i\r\n ></span>\r\n <span @click=\"onEdit(row)\" class=\"action-btn detail\"\r\n ><i class=\"api-icon icon-edit\" title=\"修改\"></i\r\n ></span>\r\n <u-confirm\r\n title=\"删除项目\"\r\n @on-ok=\"onDelete(row)\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n >\r\n <span class=\"action-btn delete\"\r\n ><i\r\n class=\"api-icon icon-delete\"\r\n title=\"删除\"\r\n ></i\r\n ></span>\r\n </u-confirm>\r\n </template>\r\n </i-table>\r\n </section>\r\n </main>\r\n </main>\r\n <u-add-modal :visiable.sync=\"showAddModal\" :data=\"current\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showAddModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onSave\"\r\n >确定</i-button\r\n >\r\n </footer>\r\n </u-add-modal>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
|
|
15500
|
+
|
|
15501
|
+
/***/ }),
|
|
15502
|
+
|
|
15503
|
+
/***/ "cfde":
|
|
15504
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15505
|
+
|
|
15506
|
+
// extracted by mini-css-extract-plugin
|
|
15507
|
+
|
|
15508
|
+
/***/ }),
|
|
15509
|
+
|
|
15510
|
+
/***/ "d30a":
|
|
15511
|
+
/***/ (function(module, exports) {
|
|
15512
|
+
|
|
15513
|
+
module.exports = "<div class=\"u-selector-tree-node\" @click=\"onClickNode\">\r\n <i-icon v-if=\"!data.children\" type=\"ios-bookmark-outline\" />\r\n <template v-else>\r\n<!-- <i-->\r\n<!-- class=\"iconfont\"-->\r\n<!-- :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"-->\r\n<!-- ></i>-->\r\n <i class=\"iconfont icon-bumenkaohe\"></i>\r\n </template>\r\n <span>{{data.title}}</span>\r\n</div>\r\n"
|
|
15514
|
+
|
|
15515
|
+
/***/ }),
|
|
15516
|
+
|
|
15517
|
+
/***/ "d371":
|
|
15518
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15519
|
+
|
|
15520
|
+
"use strict";
|
|
15521
|
+
|
|
15522
|
+
var DESCRIPTORS = __webpack_require__("e900");
|
|
15523
|
+
var uncurryThis = __webpack_require__("720f");
|
|
15524
|
+
var defineBuiltInAccessor = __webpack_require__("889b");
|
|
15525
|
+
|
|
15526
|
+
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
15527
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
15528
|
+
|
|
15529
|
+
// `URLSearchParams.prototype.size` getter
|
|
15530
|
+
// https://github.com/whatwg/url/pull/734
|
|
15531
|
+
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
15532
|
+
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
15533
|
+
get: function size() {
|
|
15534
|
+
var count = 0;
|
|
15535
|
+
forEach(this, function () { count++; });
|
|
15536
|
+
return count;
|
|
15537
|
+
},
|
|
15538
|
+
configurable: true,
|
|
15539
|
+
enumerable: true
|
|
15540
|
+
});
|
|
15541
|
+
}
|
|
15542
|
+
|
|
15543
|
+
|
|
15544
|
+
/***/ }),
|
|
15545
|
+
|
|
15546
|
+
/***/ "d5e3":
|
|
15547
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15548
|
+
|
|
15549
|
+
"use strict";
|
|
15550
|
+
|
|
15551
|
+
var fails = __webpack_require__("10a7");
|
|
15552
|
+
var createPropertyDescriptor = __webpack_require__("f2e2");
|
|
15553
|
+
|
|
15554
|
+
module.exports = !fails(function () {
|
|
15555
|
+
var error = new Error('a');
|
|
15991
15556
|
if (!('stack' in error)) return true;
|
|
15992
15557
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
15993
15558
|
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
@@ -16034,7 +15599,7 @@ module.exports = function (METHOD_NAME, argument) {
|
|
|
16034
15599
|
/***/ "d63e":
|
|
16035
15600
|
/***/ (function(module, exports) {
|
|
16036
15601
|
|
|
16037
|
-
module.exports = "<article class=\"project-detail\">\
|
|
15602
|
+
module.exports = "<article class=\"project-detail\">\n <header>\n <div class=\"environment\">\n <i class=\"iconfont icon-zhankai\" @click=\"onBack\"></i>\n <p>{{projectName}}</p>\n <!-- <span>环境变量:</span> -->\n <!-- <i-select class=\"diy-select\"></i-select> -->\n </div>\n <div class=\"btns\">\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary security-btn\" ghost @click=\"onSecurity\"><i class=\"iconfont icon-xinzengzhibiao\"></i>授权认证</i-button>\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onOpenEnvModal\"><i class=\"iconfont icon-bianliang\"></i>环境变量</i-button>\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\n </div>\n </header>\n <!-- <main> -->\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\" @on-success=\"onBatchSuccess\" @on-delete-interface=\"onDeleteInterface\" @on-reset=\"onReset\" @tree-data=\"getTreeData\"></u-tree>\n <section slot=\"right\" class=\"interface-box\">\n <header class=\"interface-bar\">\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\n ></swiper-slide>\n </swiper>\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\n <span>{{item.name}}</span>\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\n </div> -->\n </header>\n <u-settings ref=\"interface-settings\" :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\" :projectTree=\"projectTree\"></u-settings>\n </section>\n </i-split>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n <!-- </main> -->\n <u-global-modal :visiable.sync=\"showGlobalModal\">\n <footer slot=\"footer\">\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\n </footer>\n </u-global-modal>\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectId\"></u-security-modal>\n <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"onEnvironmentRefresh\"></u-environment-modal>\n</article>\n"
|
|
16038
15603
|
|
|
16039
15604
|
/***/ }),
|
|
16040
15605
|
|
|
@@ -16446,12 +16011,497 @@ module.exports = NATIVE_SYMBOL
|
|
|
16446
16011
|
&& typeof Symbol.iterator == 'symbol';
|
|
16447
16012
|
|
|
16448
16013
|
|
|
16014
|
+
/***/ }),
|
|
16015
|
+
|
|
16016
|
+
/***/ "ed38":
|
|
16017
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16018
|
+
|
|
16019
|
+
|
|
16020
|
+
/*!
|
|
16021
|
+
* vue-awesome-swiper v4.1.1
|
|
16022
|
+
* Copyright (c) Surmon. All rights reserved.
|
|
16023
|
+
* Released under the MIT License.
|
|
16024
|
+
* Surmon <https://github.com/surmon-china>
|
|
16025
|
+
*/
|
|
16026
|
+
|
|
16027
|
+
(function(g,f){ true?f(exports,__webpack_require__("d670"),__webpack_require__("8bbf")):undefined;}(this,(function(exports, SwiperClass, Vue){'use strict';SwiperClass=SwiperClass&&Object.prototype.hasOwnProperty.call(SwiperClass,'default')?SwiperClass['default']:SwiperClass;Vue=Vue&&Object.prototype.hasOwnProperty.call(Vue,'default')?Vue['default']:Vue;/**
|
|
16028
|
+
* @file vue-awesome-swiper
|
|
16029
|
+
* @module constants
|
|
16030
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16031
|
+
*/
|
|
16032
|
+
var CoreNames;
|
|
16033
|
+
(function (CoreNames) {
|
|
16034
|
+
CoreNames["SwiperComponent"] = "Swiper";
|
|
16035
|
+
CoreNames["SwiperSlideComponent"] = "SwiperSlide";
|
|
16036
|
+
CoreNames["SwiperDirective"] = "swiper";
|
|
16037
|
+
CoreNames["SwiperInstance"] = "$swiper";
|
|
16038
|
+
})(CoreNames || (CoreNames = {}));
|
|
16039
|
+
var DEFAULT_CLASSES = Object.freeze({
|
|
16040
|
+
containerClass: 'swiper-container',
|
|
16041
|
+
wrapperClass: 'swiper-wrapper',
|
|
16042
|
+
slideClass: 'swiper-slide'
|
|
16043
|
+
});
|
|
16044
|
+
var ComponentEvents;
|
|
16045
|
+
(function (ComponentEvents) {
|
|
16046
|
+
ComponentEvents["Ready"] = "ready";
|
|
16047
|
+
ComponentEvents["ClickSlide"] = "clickSlide";
|
|
16048
|
+
})(ComponentEvents || (ComponentEvents = {}));
|
|
16049
|
+
var ComponentPropNames;
|
|
16050
|
+
(function (ComponentPropNames) {
|
|
16051
|
+
ComponentPropNames["AutoUpdate"] = "autoUpdate";
|
|
16052
|
+
ComponentPropNames["AutoDestroy"] = "autoDestroy";
|
|
16053
|
+
ComponentPropNames["DeleteInstanceOnDestroy"] = "deleteInstanceOnDestroy";
|
|
16054
|
+
ComponentPropNames["CleanupStylesOnDestroy"] = "cleanupStylesOnDestroy";
|
|
16055
|
+
})(ComponentPropNames || (ComponentPropNames = {}));
|
|
16056
|
+
// https://swiperjs.com/api/#events
|
|
16057
|
+
var SWIPER_EVENTS = [
|
|
16058
|
+
'init',
|
|
16059
|
+
'beforeDestroy',
|
|
16060
|
+
'slideChange',
|
|
16061
|
+
'slideChangeTransitionStart',
|
|
16062
|
+
'slideChangeTransitionEnd',
|
|
16063
|
+
'slideNextTransitionStart',
|
|
16064
|
+
'slideNextTransitionEnd',
|
|
16065
|
+
'slidePrevTransitionStart',
|
|
16066
|
+
'slidePrevTransitionEnd',
|
|
16067
|
+
'transitionStart',
|
|
16068
|
+
'transitionEnd',
|
|
16069
|
+
'touchStart',
|
|
16070
|
+
'touchMove',
|
|
16071
|
+
'touchMoveOpposite',
|
|
16072
|
+
'sliderMove',
|
|
16073
|
+
'touchEnd',
|
|
16074
|
+
'click',
|
|
16075
|
+
'tap',
|
|
16076
|
+
'doubleTap',
|
|
16077
|
+
'imagesReady',
|
|
16078
|
+
'progress',
|
|
16079
|
+
'reachBeginning',
|
|
16080
|
+
'reachEnd',
|
|
16081
|
+
'fromEdge',
|
|
16082
|
+
'setTranslate',
|
|
16083
|
+
'setTransition',
|
|
16084
|
+
'resize',
|
|
16085
|
+
'observerUpdate',
|
|
16086
|
+
'beforeLoopFix',
|
|
16087
|
+
'loopFix'
|
|
16088
|
+
];/*! *****************************************************************************
|
|
16089
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16090
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
16091
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
16092
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
16093
|
+
|
|
16094
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
16095
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
16096
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16097
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
16098
|
+
|
|
16099
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
16100
|
+
and limitations under the License.
|
|
16101
|
+
***************************************************************************** */
|
|
16102
|
+
|
|
16103
|
+
function __spreadArrays() {
|
|
16104
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
16105
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
16106
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
16107
|
+
r[k] = a[j];
|
|
16108
|
+
return r;
|
|
16109
|
+
}/**
|
|
16110
|
+
* @file vue-awesome-swiper
|
|
16111
|
+
* @module utils
|
|
16112
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16113
|
+
*/
|
|
16114
|
+
var kebabcase = function (string) {
|
|
16115
|
+
return string
|
|
16116
|
+
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
|
16117
|
+
.replace(/\s+/g, '-')
|
|
16118
|
+
.toLowerCase();
|
|
16119
|
+
};/**
|
|
16120
|
+
* @file vue-awesome-swiper
|
|
16121
|
+
* @module event
|
|
16122
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16123
|
+
*/
|
|
16124
|
+
var handleClickSlideEvent = function (swiper, event, emit) {
|
|
16125
|
+
var _a, _b, _c;
|
|
16126
|
+
if (swiper && !(swiper.destroyed)) {
|
|
16127
|
+
var eventPath = ((_a = event.composedPath) === null || _a === void 0 ? void 0 : _a.call(event)) || event.path;
|
|
16128
|
+
if ((event === null || event === void 0 ? void 0 : event.target) && eventPath) {
|
|
16129
|
+
var slides_1 = Array.from(swiper.slides);
|
|
16130
|
+
var paths = Array.from(eventPath);
|
|
16131
|
+
// Click slide || slide[children]
|
|
16132
|
+
if (slides_1.includes(event.target) || paths.some(function (item) { return slides_1.includes(item); })) {
|
|
16133
|
+
var clickedIndex = swiper.clickedIndex;
|
|
16134
|
+
var reallyIndex = Number((_c = (_b = swiper.clickedSlide) === null || _b === void 0 ? void 0 : _b.dataset) === null || _c === void 0 ? void 0 : _c.swiperSlideIndex);
|
|
16135
|
+
var reallyIndexValue = Number.isInteger(reallyIndex) ? reallyIndex : null;
|
|
16136
|
+
emit(ComponentEvents.ClickSlide, clickedIndex, reallyIndexValue);
|
|
16137
|
+
emit(kebabcase(ComponentEvents.ClickSlide), clickedIndex, reallyIndexValue);
|
|
16138
|
+
}
|
|
16139
|
+
}
|
|
16140
|
+
}
|
|
16141
|
+
};
|
|
16142
|
+
var bindSwiperEvents = function (swiper, emit) {
|
|
16143
|
+
SWIPER_EVENTS.forEach(function (eventName) {
|
|
16144
|
+
swiper.on(eventName, function () {
|
|
16145
|
+
var arguments$1 = arguments;
|
|
16146
|
+
|
|
16147
|
+
var args = [];
|
|
16148
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16149
|
+
args[_i] = arguments$1[_i];
|
|
16150
|
+
}
|
|
16151
|
+
emit.apply(void 0, __spreadArrays([eventName], args));
|
|
16152
|
+
var kebabcaseName = kebabcase(eventName);
|
|
16153
|
+
if (kebabcaseName !== eventName) {
|
|
16154
|
+
emit.apply(void 0, __spreadArrays([kebabcaseName], args));
|
|
16155
|
+
}
|
|
16156
|
+
});
|
|
16157
|
+
});
|
|
16158
|
+
};/**
|
|
16159
|
+
* @file vue-awesome-swiper
|
|
16160
|
+
* @module directive
|
|
16161
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16162
|
+
*/
|
|
16163
|
+
var INSTANCE_NAME_KEY = 'instanceName';
|
|
16164
|
+
function getDirective(SwiperClass, globalOptions) {
|
|
16165
|
+
var getStandardisedOptionByAttrs = function (vnode, key) {
|
|
16166
|
+
var _a, _b, _c, _d;
|
|
16167
|
+
var value = (_b = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b[key];
|
|
16168
|
+
return value !== undefined
|
|
16169
|
+
? value
|
|
16170
|
+
: (_d = (_c = vnode.data) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d[kebabcase(key)];
|
|
16171
|
+
};
|
|
16172
|
+
// Get swiper instace name in directive
|
|
16173
|
+
var getSwiperInstanceName = function (element, binding, vnode) {
|
|
16174
|
+
return (binding.arg ||
|
|
16175
|
+
getStandardisedOptionByAttrs(vnode, INSTANCE_NAME_KEY) ||
|
|
16176
|
+
element.id ||
|
|
16177
|
+
CoreNames.SwiperInstance);
|
|
16178
|
+
};
|
|
16179
|
+
var getSwiperInstance = function (element, binding, vnode) {
|
|
16180
|
+
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
16181
|
+
return vnode.context[instanceName] || null;
|
|
16182
|
+
};
|
|
16183
|
+
var getSwipeOptions = function (binding) {
|
|
16184
|
+
return binding.value || globalOptions;
|
|
16185
|
+
};
|
|
16186
|
+
var getBooleanValueByInput = function (input) {
|
|
16187
|
+
return [true, undefined, null, ''].includes(input);
|
|
16188
|
+
};
|
|
16189
|
+
// Emit event in Vue directive
|
|
16190
|
+
var getEventEmiter = function (vnode) {
|
|
16191
|
+
var _a, _b;
|
|
16192
|
+
var handlers = ((_a = vnode.data) === null || _a === void 0 ? void 0 : _a.on) || ((_b = vnode.componentOptions) === null || _b === void 0 ? void 0 : _b.listeners);
|
|
16193
|
+
return function (name) {
|
|
16194
|
+
var arguments$1 = arguments;
|
|
16195
|
+
|
|
16196
|
+
var args = [];
|
|
16197
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
16198
|
+
args[_i - 1] = arguments$1[_i];
|
|
16199
|
+
}
|
|
16200
|
+
var _a;
|
|
16201
|
+
var handle = (_a = handlers) === null || _a === void 0 ? void 0 : _a[name];
|
|
16202
|
+
if (handle) {
|
|
16203
|
+
handle.fns.apply(handle, args);
|
|
16204
|
+
}
|
|
16205
|
+
};
|
|
16206
|
+
};
|
|
16207
|
+
return {
|
|
16208
|
+
// Init
|
|
16209
|
+
bind: function (element, binding, vnode) {
|
|
16210
|
+
// auto class name
|
|
16211
|
+
if (element.className.indexOf(DEFAULT_CLASSES.containerClass) === -1) {
|
|
16212
|
+
element.className += ((element.className ? ' ' : '') + DEFAULT_CLASSES.containerClass);
|
|
16213
|
+
}
|
|
16214
|
+
// bind click event
|
|
16215
|
+
element.addEventListener('click', function (event) {
|
|
16216
|
+
var emitEvent = getEventEmiter(vnode);
|
|
16217
|
+
var swiper = getSwiperInstance(element, binding, vnode);
|
|
16218
|
+
handleClickSlideEvent(swiper, event, emitEvent);
|
|
16219
|
+
});
|
|
16220
|
+
},
|
|
16221
|
+
// DOM inserted
|
|
16222
|
+
inserted: function (element, binding, vnode) {
|
|
16223
|
+
var context = vnode.context;
|
|
16224
|
+
var swiperOptions = getSwipeOptions(binding);
|
|
16225
|
+
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
16226
|
+
var emitEvent = getEventEmiter(vnode);
|
|
16227
|
+
var vueContext = context;
|
|
16228
|
+
var swiper = vueContext === null || vueContext === void 0 ? void 0 : vueContext[instanceName];
|
|
16229
|
+
// Swiper will destroy but not delete instance, when used <keep-alive>
|
|
16230
|
+
if (!swiper || swiper.destroyed) {
|
|
16231
|
+
swiper = new SwiperClass(element, swiperOptions);
|
|
16232
|
+
vueContext[instanceName] = swiper;
|
|
16233
|
+
bindSwiperEvents(swiper, emitEvent);
|
|
16234
|
+
emitEvent(ComponentEvents.Ready, swiper);
|
|
16235
|
+
// MARK: Reinstance when the nexttick with <keep-alive>
|
|
16236
|
+
// Vue.nextTick(instancing) | setTimeout(instancing)
|
|
16237
|
+
}
|
|
16238
|
+
},
|
|
16239
|
+
// On options changed or DOM updated
|
|
16240
|
+
componentUpdated: function (element, binding, vnode) {
|
|
16241
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
16242
|
+
var autoUpdate = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoUpdate);
|
|
16243
|
+
if (getBooleanValueByInput(autoUpdate)) {
|
|
16244
|
+
var swiper = getSwiperInstance(element, binding, vnode);
|
|
16245
|
+
if (swiper) {
|
|
16246
|
+
var swiperOptions = getSwipeOptions(binding);
|
|
16247
|
+
var isLoop = swiperOptions.loop;
|
|
16248
|
+
if (isLoop) {
|
|
16249
|
+
(_b = (_a = swiper) === null || _a === void 0 ? void 0 : _a.loopDestroy) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
16250
|
+
}
|
|
16251
|
+
(_c = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _c === void 0 ? void 0 : _c.call(swiper);
|
|
16252
|
+
(_e = (_d = swiper.navigation) === null || _d === void 0 ? void 0 : _d.update) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
16253
|
+
(_g = (_f = swiper.pagination) === null || _f === void 0 ? void 0 : _f.render) === null || _g === void 0 ? void 0 : _g.call(_f);
|
|
16254
|
+
(_j = (_h = swiper.pagination) === null || _h === void 0 ? void 0 : _h.update) === null || _j === void 0 ? void 0 : _j.call(_h);
|
|
16255
|
+
if (isLoop) {
|
|
16256
|
+
(_l = (_k = swiper) === null || _k === void 0 ? void 0 : _k.loopCreate) === null || _l === void 0 ? void 0 : _l.call(_k);
|
|
16257
|
+
(_m = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _m === void 0 ? void 0 : _m.call(swiper);
|
|
16258
|
+
}
|
|
16259
|
+
}
|
|
16260
|
+
}
|
|
16261
|
+
},
|
|
16262
|
+
// Destroy this directive
|
|
16263
|
+
unbind: function (element, binding, vnode) {
|
|
16264
|
+
var _a;
|
|
16265
|
+
var autoDestroy = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoDestroy);
|
|
16266
|
+
if (getBooleanValueByInput(autoDestroy)) {
|
|
16267
|
+
var swiper = getSwiperInstance(element, binding, vnode);
|
|
16268
|
+
if (swiper && swiper.initialized) {
|
|
16269
|
+
(_a = swiper === null || swiper === void 0 ? void 0 : swiper.destroy) === null || _a === void 0 ? void 0 : _a.call(swiper, getBooleanValueByInput(getStandardisedOptionByAttrs(vnode, ComponentPropNames.DeleteInstanceOnDestroy)), getBooleanValueByInput(getStandardisedOptionByAttrs(vnode, ComponentPropNames.CleanupStylesOnDestroy)));
|
|
16270
|
+
}
|
|
16271
|
+
}
|
|
16272
|
+
}
|
|
16273
|
+
};
|
|
16274
|
+
}/**
|
|
16275
|
+
* @file vue-awesome-swiper
|
|
16276
|
+
* @module SwiperComponent
|
|
16277
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16278
|
+
*/
|
|
16279
|
+
var SlotNames;
|
|
16280
|
+
(function (SlotNames) {
|
|
16281
|
+
SlotNames["ParallaxBg"] = "parallax-bg";
|
|
16282
|
+
SlotNames["Pagination"] = "pagination";
|
|
16283
|
+
SlotNames["Scrollbar"] = "scrollbar";
|
|
16284
|
+
SlotNames["PrevButton"] = "button-prev";
|
|
16285
|
+
SlotNames["NextButton"] = "button-next";
|
|
16286
|
+
})(SlotNames || (SlotNames = {}));
|
|
16287
|
+
function getSwiperComponent(SwiperClass) {
|
|
16288
|
+
var _a;
|
|
16289
|
+
return Vue.extend({
|
|
16290
|
+
name: CoreNames.SwiperComponent,
|
|
16291
|
+
props: (_a = {
|
|
16292
|
+
defaultOptions: {
|
|
16293
|
+
type: Object,
|
|
16294
|
+
required: false,
|
|
16295
|
+
default: function () { return ({}); }
|
|
16296
|
+
},
|
|
16297
|
+
// eslint-disable-next-line vue/require-default-prop
|
|
16298
|
+
options: {
|
|
16299
|
+
type: Object,
|
|
16300
|
+
required: false
|
|
16301
|
+
}
|
|
16302
|
+
},
|
|
16303
|
+
_a[ComponentPropNames.AutoUpdate] = {
|
|
16304
|
+
type: Boolean,
|
|
16305
|
+
default: true
|
|
16306
|
+
},
|
|
16307
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/550/files
|
|
16308
|
+
_a[ComponentPropNames.AutoDestroy] = {
|
|
16309
|
+
type: Boolean,
|
|
16310
|
+
default: true
|
|
16311
|
+
},
|
|
16312
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/388
|
|
16313
|
+
_a[ComponentPropNames.DeleteInstanceOnDestroy] = {
|
|
16314
|
+
type: Boolean,
|
|
16315
|
+
required: false,
|
|
16316
|
+
default: true
|
|
16317
|
+
},
|
|
16318
|
+
_a[ComponentPropNames.CleanupStylesOnDestroy] = {
|
|
16319
|
+
type: Boolean,
|
|
16320
|
+
required: false,
|
|
16321
|
+
default: true
|
|
16322
|
+
},
|
|
16323
|
+
_a),
|
|
16324
|
+
data: function () {
|
|
16325
|
+
var _a;
|
|
16326
|
+
return _a = {},
|
|
16327
|
+
_a[CoreNames.SwiperInstance] = null,
|
|
16328
|
+
_a;
|
|
16329
|
+
},
|
|
16330
|
+
computed: {
|
|
16331
|
+
swiperInstance: {
|
|
16332
|
+
cache: false,
|
|
16333
|
+
set: function (swiper) {
|
|
16334
|
+
this[CoreNames.SwiperInstance] = swiper;
|
|
16335
|
+
},
|
|
16336
|
+
get: function () {
|
|
16337
|
+
return this[CoreNames.SwiperInstance];
|
|
16338
|
+
}
|
|
16339
|
+
},
|
|
16340
|
+
swiperOptions: function () {
|
|
16341
|
+
return this.options || this.defaultOptions;
|
|
16342
|
+
},
|
|
16343
|
+
wrapperClass: function () {
|
|
16344
|
+
return this.swiperOptions.wrapperClass || DEFAULT_CLASSES.wrapperClass;
|
|
16345
|
+
}
|
|
16346
|
+
},
|
|
16347
|
+
methods: {
|
|
16348
|
+
// Feature: click event
|
|
16349
|
+
handleSwiperClick: function (event) {
|
|
16350
|
+
handleClickSlideEvent(this.swiperInstance, event, this.$emit.bind(this));
|
|
16351
|
+
},
|
|
16352
|
+
autoReLoopSwiper: function () {
|
|
16353
|
+
var _a, _b;
|
|
16354
|
+
if (this.swiperInstance && this.swiperOptions.loop) {
|
|
16355
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/593
|
|
16356
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/544
|
|
16357
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/545/files
|
|
16358
|
+
var swiper = this.swiperInstance;
|
|
16359
|
+
(_a = swiper === null || swiper === void 0 ? void 0 : swiper.loopDestroy) === null || _a === void 0 ? void 0 : _a.call(swiper);
|
|
16360
|
+
(_b = swiper === null || swiper === void 0 ? void 0 : swiper.loopCreate) === null || _b === void 0 ? void 0 : _b.call(swiper);
|
|
16361
|
+
}
|
|
16362
|
+
},
|
|
16363
|
+
updateSwiper: function () {
|
|
16364
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
16365
|
+
if (this[ComponentPropNames.AutoUpdate] && this.swiperInstance) {
|
|
16366
|
+
this.autoReLoopSwiper();
|
|
16367
|
+
(_b = (_a = this.swiperInstance) === null || _a === void 0 ? void 0 : _a.update) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
16368
|
+
(_d = (_c = this.swiperInstance.navigation) === null || _c === void 0 ? void 0 : _c.update) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
16369
|
+
(_f = (_e = this.swiperInstance.pagination) === null || _e === void 0 ? void 0 : _e.render) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
16370
|
+
(_h = (_g = this.swiperInstance.pagination) === null || _g === void 0 ? void 0 : _g.update) === null || _h === void 0 ? void 0 : _h.call(_g);
|
|
16371
|
+
}
|
|
16372
|
+
},
|
|
16373
|
+
destroySwiper: function () {
|
|
16374
|
+
var _a, _b;
|
|
16375
|
+
if (this[ComponentPropNames.AutoDestroy] && this.swiperInstance) {
|
|
16376
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/341
|
|
16377
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/340
|
|
16378
|
+
if (this.swiperInstance.initialized) {
|
|
16379
|
+
(_b = (_a = this.swiperInstance) === null || _a === void 0 ? void 0 : _a.destroy) === null || _b === void 0 ? void 0 : _b.call(_a, this[ComponentPropNames.DeleteInstanceOnDestroy], this[ComponentPropNames.CleanupStylesOnDestroy]);
|
|
16380
|
+
}
|
|
16381
|
+
}
|
|
16382
|
+
},
|
|
16383
|
+
initSwiper: function () {
|
|
16384
|
+
this.swiperInstance = new SwiperClass(this.$el, this.swiperOptions);
|
|
16385
|
+
bindSwiperEvents(this.swiperInstance, this.$emit.bind(this));
|
|
16386
|
+
this.$emit(ComponentEvents.Ready, this.swiperInstance);
|
|
16387
|
+
}
|
|
16388
|
+
},
|
|
16389
|
+
mounted: function () {
|
|
16390
|
+
if (!this.swiperInstance) {
|
|
16391
|
+
this.initSwiper();
|
|
16392
|
+
}
|
|
16393
|
+
},
|
|
16394
|
+
// Update swiper when the parent component activated with `keep-alive`.
|
|
16395
|
+
activated: function () {
|
|
16396
|
+
this.updateSwiper();
|
|
16397
|
+
},
|
|
16398
|
+
updated: function () {
|
|
16399
|
+
this.updateSwiper();
|
|
16400
|
+
},
|
|
16401
|
+
beforeDestroy: function () {
|
|
16402
|
+
// https://github.com/surmon-china/vue-awesome-swiper/commit/2924a9d4d3d1cf51c0d46076410b1f804b2b8a43#diff-7f4e0261ac562c0f354cb91a1ca8864f
|
|
16403
|
+
this.$nextTick(this.destroySwiper);
|
|
16404
|
+
},
|
|
16405
|
+
render: function (createElement) {
|
|
16406
|
+
return createElement('div', {
|
|
16407
|
+
staticClass: DEFAULT_CLASSES.containerClass,
|
|
16408
|
+
on: {
|
|
16409
|
+
click: this.handleSwiperClick
|
|
16410
|
+
}
|
|
16411
|
+
}, [
|
|
16412
|
+
this.$slots[SlotNames.ParallaxBg],
|
|
16413
|
+
createElement('div', {
|
|
16414
|
+
class: this.wrapperClass
|
|
16415
|
+
}, this.$slots.default),
|
|
16416
|
+
this.$slots[SlotNames.Pagination],
|
|
16417
|
+
this.$slots[SlotNames.PrevButton],
|
|
16418
|
+
this.$slots[SlotNames.NextButton],
|
|
16419
|
+
this.$slots[SlotNames.Scrollbar]
|
|
16420
|
+
]);
|
|
16421
|
+
}
|
|
16422
|
+
});
|
|
16423
|
+
}/**
|
|
16424
|
+
* @file vue-awesome-swiper
|
|
16425
|
+
* @module SwiperSlideComponent
|
|
16426
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16427
|
+
*/
|
|
16428
|
+
var SwiperSlideComponent = Vue.extend({
|
|
16429
|
+
name: CoreNames.SwiperSlideComponent,
|
|
16430
|
+
computed: {
|
|
16431
|
+
slideClass: function () {
|
|
16432
|
+
var _a, _b;
|
|
16433
|
+
return ((_b = (_a = this.$parent) === null || _a === void 0 ? void 0 : _a.swiperOptions) === null || _b === void 0 ? void 0 : _b.slideClass) || DEFAULT_CLASSES.slideClass;
|
|
16434
|
+
}
|
|
16435
|
+
},
|
|
16436
|
+
methods: {
|
|
16437
|
+
update: function () {
|
|
16438
|
+
var _a;
|
|
16439
|
+
var parent = this.$parent;
|
|
16440
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/632
|
|
16441
|
+
if (parent[ComponentPropNames.AutoUpdate]) {
|
|
16442
|
+
(_a = parent === null || parent === void 0 ? void 0 : parent.swiperInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
16443
|
+
}
|
|
16444
|
+
}
|
|
16445
|
+
},
|
|
16446
|
+
mounted: function () {
|
|
16447
|
+
this.update();
|
|
16448
|
+
},
|
|
16449
|
+
updated: function () {
|
|
16450
|
+
this.update();
|
|
16451
|
+
},
|
|
16452
|
+
render: function (createElement) {
|
|
16453
|
+
return createElement('div', {
|
|
16454
|
+
class: this.slideClass
|
|
16455
|
+
}, this.$slots.default);
|
|
16456
|
+
}
|
|
16457
|
+
});/**
|
|
16458
|
+
* @file vue-awesome-swiper
|
|
16459
|
+
* @module exporter
|
|
16460
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16461
|
+
*/
|
|
16462
|
+
var getInstaller = function (SwiperClass) {
|
|
16463
|
+
var install = function (Vue, globalOptions) {
|
|
16464
|
+
if (install.installed)
|
|
16465
|
+
{ return; }
|
|
16466
|
+
var SwiperComponent = getSwiperComponent(SwiperClass);
|
|
16467
|
+
if (globalOptions) {
|
|
16468
|
+
SwiperComponent.options.props.defaultOptions.default = function () { return globalOptions; };
|
|
16469
|
+
}
|
|
16470
|
+
Vue.component(CoreNames.SwiperComponent, SwiperComponent);
|
|
16471
|
+
Vue.component(CoreNames.SwiperSlideComponent, SwiperSlideComponent);
|
|
16472
|
+
Vue.directive(CoreNames.SwiperDirective, getDirective(SwiperClass, globalOptions));
|
|
16473
|
+
install.installed = true;
|
|
16474
|
+
};
|
|
16475
|
+
return install;
|
|
16476
|
+
};
|
|
16477
|
+
function exporter(SwiperClass) {
|
|
16478
|
+
var _a;
|
|
16479
|
+
return _a = {
|
|
16480
|
+
version: '4.1.1',
|
|
16481
|
+
install: getInstaller(SwiperClass),
|
|
16482
|
+
directive: getDirective(SwiperClass)
|
|
16483
|
+
},
|
|
16484
|
+
_a[CoreNames.SwiperComponent] = getSwiperComponent(SwiperClass),
|
|
16485
|
+
_a[CoreNames.SwiperSlideComponent] = SwiperSlideComponent,
|
|
16486
|
+
_a;
|
|
16487
|
+
}/**
|
|
16488
|
+
* @file vue-awesome-swiper
|
|
16489
|
+
* @module default-export
|
|
16490
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16491
|
+
*/
|
|
16492
|
+
var VueAwesomeSwiper = exporter(SwiperClass);
|
|
16493
|
+
var version = VueAwesomeSwiper.version;
|
|
16494
|
+
var install = VueAwesomeSwiper.install;
|
|
16495
|
+
var directive = VueAwesomeSwiper.directive;
|
|
16496
|
+
var Swiper = VueAwesomeSwiper.Swiper;
|
|
16497
|
+
var SwiperSlide = VueAwesomeSwiper.SwiperSlide;exports.Swiper=Swiper;exports.SwiperSlide=SwiperSlide;exports.default=VueAwesomeSwiper;exports.directive=directive;exports.install=install;exports.version=version;Object.defineProperty(exports,'__esModule',{value:true});})));
|
|
16498
|
+
|
|
16449
16499
|
/***/ }),
|
|
16450
16500
|
|
|
16451
16501
|
/***/ "ef27":
|
|
16452
16502
|
/***/ (function(module, exports) {
|
|
16453
16503
|
|
|
16454
|
-
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\r\n <header :title=\"data.name\">{{data.name}}</header>\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item :name=\"'export'\">\r\n <i\r\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\r\n title=\"导出此项目\"\r\n @click.stop=\"onExport\"\r\n ></i>\r\n 导出此项目\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n <main></main>\r\n <footer>\r\n <div @click.stop=\"onEdit\">修改</div>\r\n <u-confirm\r\n class=\"delete\"\r\n title=\"删除项目\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n @on-ok=\"onDelete\"\r\n >\r\n <span>删除</span>\r\n </u-confirm>\r\n </footer>\r\n</article>\r\n"
|
|
16504
|
+
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\r\n <header :title=\"data.name\">{{data.name}}</header>\r\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item :name=\"'export'\">\r\n <i\r\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\r\n title=\"导出此项目\"\r\n @click.stop=\"onExport\"\r\n ></i>\r\n 导出此项目\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n <main></main>\r\n <footer>\r\n <div @click.stop=\"onEdit\">修改</div>\r\n <u-confirm\r\n class=\"delete\"\r\n title=\"删除项目\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n @on-ok=\"onDelete\"\r\n >\r\n <span>删除</span>\r\n </u-confirm>\r\n </footer>\r\n</article>\r\n"
|
|
16455
16505
|
|
|
16456
16506
|
/***/ }),
|
|
16457
16507
|
|