@egova/egova-api 1.3.29 → 1.3.30
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 +734 -707
- package/dist/index.css +1 -1
- package/dist/index.umd.js +734 -707
- package/dist/index.umd.min.js +3 -3
- package/package.json +98 -98
package/dist/index.umd.js
CHANGED
|
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
91
91
|
/******/
|
|
92
92
|
/******/
|
|
93
93
|
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s = "
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = "cb40");
|
|
95
95
|
/******/ })
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
@@ -906,7 +906,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__3fb3__;
|
|
|
906
906
|
/***/ "40aa":
|
|
907
907
|
/***/ (function(module, exports) {
|
|
908
908
|
|
|
909
|
-
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"
|
|
909
|
+
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"
|
|
910
910
|
|
|
911
911
|
/***/ }),
|
|
912
912
|
|
|
@@ -1685,7 +1685,7 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
|
1685
1685
|
/***/ "7640":
|
|
1686
1686
|
/***/ (function(module, exports) {
|
|
1687
1687
|
|
|
1688
|
-
module.exports = "<article class=\"params-setting\">\r\n <i-collapse v-model=\"value\" simple>\r\n <i-panel name=\"1\">\r\n <span>Query参数</span>\r\n <i-icon class=\"help-icon\" type=\"md-alert\" @click.stop=\"showScriptDoc\" title=\"说明文档\"> </i-icon>\r\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddRequestParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table class=\"diy-table\" @on-selection-change=\"onQuerySelectionChange\" :columns=\"paramColumns\" :data=\"queryDataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-switch size=\"large\" :value=\"!queryDataList[index].disabled\" @on-change=\"onChangeDisabled($event,queryDataList[index],'query')\">\r\n <span slot=\"open\">开启</span>\r\n <span slot=\"close\">禁用</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"queryDataList[index].name\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"queryDataList[index].valueContent\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"queryDataList[index].requireFlag\" :disabled=\"queryDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"queryDataList[index].text\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,row.indexFlag,'query')\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index>0\" class=\"iconfont icon-up\" @click=\"onUp(queryDataList,index)\" title=\"上移\"></i>\r\n <i v-if=\"index>0\" class=\"iconfont icon-top\" title=\"置顶\" @click=\"onTop(queryDataList,index)\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onDown(queryDataList,index)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onBottom(queryDataList,index)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n </main>\r\n </div>\r\n </i-panel>\r\n <i-panel name=\"2\">\r\n <span>Body参数</span>\r\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button v-if=\"isFormData\" type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddBodyParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n <i-button v-else type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onBeautify\"> <i class=\"api-icon icon-view\"></i>格式化 </i-button>\r\n <i-select transfer v-model=\"interfaceModel.info.requestBodyType\" class=\"diy-select\">\r\n <i-option v-for=\"item in requestBodyTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table\r\n class=\"diy-table\"\r\n @on-selection-change=\"onBodySelectionChange\"\r\n :columns=\"bodyColumns\"\r\n :data=\"bodyDataList\"\r\n v-if=\"isFormData\"\r\n >\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-switch size=\"large\" :value=\"!bodyDataList[index].disabled\" @on-change=\"onChangeDisabled($event,bodyDataList[index],'body')\">\r\n <span slot=\"open\">开启</span>\r\n <span slot=\"close\">禁用</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <div class=\"body-name-row\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"bodyDataList[index].name\"></i-input>\r\n <i-select class=\"diy-select\" v-if=\"bodyType === 'Form'\" v-model=\"row.valueType\" @on-change=\"onChangeFormParamType(index, row)\" transfer>\r\n <i-option v-for=\"item in formParamTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input v-if=\"row.valueType !== 'FILE'\" class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"bodyDataList[index].valueContent\"></i-input>\r\n <i-upload v-if=\"row.valueType === 'FILE' && !row.fileName\" action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i-button class=\"file-btn\" icon=\"ios-cloud-upload-outline\" @click=\"onClickRow(row)\">选择文件</i-button>\r\n </i-upload>\r\n <div class=\"file-wrap\" v-if=\"row.valueType === 'FILE' && row.fileName\">\r\n <div class=\"file-name\" :title=\"row.fileName\">{{ row.fileName }}</div>\r\n <i-icon type=\"ios-close\" @click=\"onClearFile(row)\" />\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"bodyDataList[index].requireFlag\" :disabled=\"bodyDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"bodyDataList[index].
|
|
1688
|
+
module.exports = "<article class=\"params-setting\">\r\n <i-collapse v-model=\"value\" simple>\r\n <i-panel name=\"1\">\r\n <span>Query参数</span>\r\n <i-icon class=\"help-icon\" type=\"md-alert\" @click.stop=\"showScriptDoc\" title=\"说明文档\"> </i-icon>\r\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddRequestParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table class=\"diy-table\" @on-selection-change=\"onQuerySelectionChange\" :columns=\"paramColumns\" :data=\"queryDataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-switch size=\"large\" :value=\"!queryDataList[index].disabled\" @on-change=\"onChangeDisabled($event,queryDataList[index],'query')\">\r\n <span slot=\"open\">开启</span>\r\n <span slot=\"close\">禁用</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"queryDataList[index].name\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"queryDataList[index].valueContent\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"queryDataList[index].requireFlag\" :disabled=\"queryDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"queryDataList[index].text\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,row.indexFlag,'query')\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index>0\" class=\"iconfont icon-up\" @click=\"onUp(queryDataList,index)\" title=\"上移\"></i>\r\n <i v-if=\"index>0\" class=\"iconfont icon-top\" title=\"置顶\" @click=\"onTop(queryDataList,index)\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onDown(queryDataList,index)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onBottom(queryDataList,index)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n </main>\r\n </div>\r\n </i-panel>\r\n <i-panel name=\"2\" v-if=\"showBodyPanel\">\r\n <span>Body参数</span>\r\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button v-if=\"isFormData\" type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddBodyParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n <i-button v-else type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onBeautify\"> <i class=\"api-icon icon-view\"></i>格式化 </i-button>\r\n <i-select transfer v-model=\"interfaceModel.info.requestBodyType\" class=\"diy-select\">\r\n <i-option v-for=\"item in requestBodyTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table\r\n class=\"diy-table\"\r\n @on-selection-change=\"onBodySelectionChange\"\r\n :columns=\"bodyColumns\"\r\n :data=\"bodyDataList\"\r\n v-if=\"isFormData\"\r\n >\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-switch size=\"large\" :value=\"!bodyDataList[index].disabled\" @on-change=\"onChangeDisabled($event,bodyDataList[index],'body')\">\r\n <span slot=\"open\">开启</span>\r\n <span slot=\"close\">禁用</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <div class=\"body-name-row\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"bodyDataList[index].name\"></i-input>\r\n <i-select class=\"diy-select\" v-if=\"bodyType === 'Form'\" v-model=\"row.valueType\" @on-change=\"onChangeFormParamType(index, row)\" transfer>\r\n <i-option v-for=\"item in formParamTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input v-if=\"row.valueType !== 'FILE'\" class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"bodyDataList[index].valueContent\"></i-input>\r\n <i-upload v-if=\"row.valueType === 'FILE' && !row.fileName\" action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i-button class=\"file-btn\" icon=\"ios-cloud-upload-outline\" @click=\"onClickRow(row)\">选择文件</i-button>\r\n </i-upload>\r\n <div class=\"file-wrap\" v-if=\"row.valueType === 'FILE' && row.fileName\">\r\n <div class=\"file-name\" :title=\"row.fileName\">{{ row.fileName }}</div>\r\n <i-icon type=\"ios-close\" @click=\"onClearFile(row)\" />\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"bodyDataList[index].requireFlag\" :disabled=\"bodyDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"bodyDataList[index].text\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDeleteBodyParam(interfaceModel.formParams,row.indexFlag,'body')\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index > 0\" class=\"iconfont icon-up\" @click=\"onUpBodyParam(interfaceModel.formParams,row.id)\" title=\"上移\"></i>\r\n <i v-if=\"index > 0\" class=\"iconfont icon-top\" @click=\"onTopBodyParam(interfaceModel.formParams,row.id)\" title=\"置顶\"></i>\r\n <i v-if=\"index < bodyDataList.length - 1\" @click=\"onDownBodyParam(interfaceModel.formParams,row.id)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i\r\n v-if=\"index < bodyDataList.length - 1\"\r\n @click=\"onBottomBodyParam(interfaceModel.formParams,row.id)\"\r\n class=\"iconfont icon-bottom\"\r\n title=\"置底\"\r\n ></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n <u-editor v-else :value.sync=\"interfaceModel.json\" lang=\"json\" @inited=\"onEditorInited\"></u-editor>\r\n </main>\r\n </div>\r\n </i-panel>\r\n </i-collapse>\r\n <u-doc-modal class=\"script-doc-modal\" v-model=\"scriptDocShow\" :doc=\"scriptDoc\"></u-doc-modal>\r\n</article>\r\n"
|
|
1689
1689
|
|
|
1690
1690
|
/***/ }),
|
|
1691
1691
|
|
|
@@ -3997,529 +3997,44 @@ module.exports = function (argument) {
|
|
|
3997
3997
|
|
|
3998
3998
|
/***/ }),
|
|
3999
3999
|
|
|
4000
|
-
/***/ "
|
|
4000
|
+
/***/ "b061":
|
|
4001
|
+
/***/ (function(module, exports) {
|
|
4002
|
+
|
|
4003
|
+
var g;
|
|
4004
|
+
|
|
4005
|
+
// This works in non-strict mode
|
|
4006
|
+
g = (function() {
|
|
4007
|
+
return this;
|
|
4008
|
+
})();
|
|
4009
|
+
|
|
4010
|
+
try {
|
|
4011
|
+
// This works if eval is allowed (see CSP)
|
|
4012
|
+
g = g || new Function("return this")();
|
|
4013
|
+
} catch (e) {
|
|
4014
|
+
// This works if the window reference is available
|
|
4015
|
+
if (typeof window === "object") g = window;
|
|
4016
|
+
}
|
|
4017
|
+
|
|
4018
|
+
// g can still be undefined, but nothing to do about it...
|
|
4019
|
+
// We return undefined, instead of nothing here, so it's
|
|
4020
|
+
// easier to handle this case. if(!global) { ...}
|
|
4021
|
+
|
|
4022
|
+
module.exports = g;
|
|
4023
|
+
|
|
4024
|
+
|
|
4025
|
+
/***/ }),
|
|
4026
|
+
|
|
4027
|
+
/***/ "b156":
|
|
4001
4028
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4002
4029
|
|
|
4030
|
+
// extracted by mini-css-extract-plugin
|
|
4003
4031
|
|
|
4004
|
-
|
|
4005
|
-
* vue-awesome-swiper v4.1.1
|
|
4006
|
-
* Copyright (c) Surmon. All rights reserved.
|
|
4007
|
-
* Released under the MIT License.
|
|
4008
|
-
* Surmon <https://github.com/surmon-china>
|
|
4009
|
-
*/
|
|
4032
|
+
/***/ }),
|
|
4010
4033
|
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
*/
|
|
4016
|
-
var CoreNames;
|
|
4017
|
-
(function (CoreNames) {
|
|
4018
|
-
CoreNames["SwiperComponent"] = "Swiper";
|
|
4019
|
-
CoreNames["SwiperSlideComponent"] = "SwiperSlide";
|
|
4020
|
-
CoreNames["SwiperDirective"] = "swiper";
|
|
4021
|
-
CoreNames["SwiperInstance"] = "$swiper";
|
|
4022
|
-
})(CoreNames || (CoreNames = {}));
|
|
4023
|
-
var DEFAULT_CLASSES = Object.freeze({
|
|
4024
|
-
containerClass: 'swiper-container',
|
|
4025
|
-
wrapperClass: 'swiper-wrapper',
|
|
4026
|
-
slideClass: 'swiper-slide'
|
|
4027
|
-
});
|
|
4028
|
-
var ComponentEvents;
|
|
4029
|
-
(function (ComponentEvents) {
|
|
4030
|
-
ComponentEvents["Ready"] = "ready";
|
|
4031
|
-
ComponentEvents["ClickSlide"] = "clickSlide";
|
|
4032
|
-
})(ComponentEvents || (ComponentEvents = {}));
|
|
4033
|
-
var ComponentPropNames;
|
|
4034
|
-
(function (ComponentPropNames) {
|
|
4035
|
-
ComponentPropNames["AutoUpdate"] = "autoUpdate";
|
|
4036
|
-
ComponentPropNames["AutoDestroy"] = "autoDestroy";
|
|
4037
|
-
ComponentPropNames["DeleteInstanceOnDestroy"] = "deleteInstanceOnDestroy";
|
|
4038
|
-
ComponentPropNames["CleanupStylesOnDestroy"] = "cleanupStylesOnDestroy";
|
|
4039
|
-
})(ComponentPropNames || (ComponentPropNames = {}));
|
|
4040
|
-
// https://swiperjs.com/api/#events
|
|
4041
|
-
var SWIPER_EVENTS = [
|
|
4042
|
-
'init',
|
|
4043
|
-
'beforeDestroy',
|
|
4044
|
-
'slideChange',
|
|
4045
|
-
'slideChangeTransitionStart',
|
|
4046
|
-
'slideChangeTransitionEnd',
|
|
4047
|
-
'slideNextTransitionStart',
|
|
4048
|
-
'slideNextTransitionEnd',
|
|
4049
|
-
'slidePrevTransitionStart',
|
|
4050
|
-
'slidePrevTransitionEnd',
|
|
4051
|
-
'transitionStart',
|
|
4052
|
-
'transitionEnd',
|
|
4053
|
-
'touchStart',
|
|
4054
|
-
'touchMove',
|
|
4055
|
-
'touchMoveOpposite',
|
|
4056
|
-
'sliderMove',
|
|
4057
|
-
'touchEnd',
|
|
4058
|
-
'click',
|
|
4059
|
-
'tap',
|
|
4060
|
-
'doubleTap',
|
|
4061
|
-
'imagesReady',
|
|
4062
|
-
'progress',
|
|
4063
|
-
'reachBeginning',
|
|
4064
|
-
'reachEnd',
|
|
4065
|
-
'fromEdge',
|
|
4066
|
-
'setTranslate',
|
|
4067
|
-
'setTransition',
|
|
4068
|
-
'resize',
|
|
4069
|
-
'observerUpdate',
|
|
4070
|
-
'beforeLoopFix',
|
|
4071
|
-
'loopFix'
|
|
4072
|
-
];/*! *****************************************************************************
|
|
4073
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4074
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4075
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
4076
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
4077
|
-
|
|
4078
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
4079
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
4080
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
4081
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
4082
|
-
|
|
4083
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
4084
|
-
and limitations under the License.
|
|
4085
|
-
***************************************************************************** */
|
|
4086
|
-
|
|
4087
|
-
function __spreadArrays() {
|
|
4088
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
4089
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
4090
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
4091
|
-
r[k] = a[j];
|
|
4092
|
-
return r;
|
|
4093
|
-
}/**
|
|
4094
|
-
* @file vue-awesome-swiper
|
|
4095
|
-
* @module utils
|
|
4096
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4097
|
-
*/
|
|
4098
|
-
var kebabcase = function (string) {
|
|
4099
|
-
return string
|
|
4100
|
-
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
|
4101
|
-
.replace(/\s+/g, '-')
|
|
4102
|
-
.toLowerCase();
|
|
4103
|
-
};/**
|
|
4104
|
-
* @file vue-awesome-swiper
|
|
4105
|
-
* @module event
|
|
4106
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4107
|
-
*/
|
|
4108
|
-
var handleClickSlideEvent = function (swiper, event, emit) {
|
|
4109
|
-
var _a, _b, _c;
|
|
4110
|
-
if (swiper && !(swiper.destroyed)) {
|
|
4111
|
-
var eventPath = ((_a = event.composedPath) === null || _a === void 0 ? void 0 : _a.call(event)) || event.path;
|
|
4112
|
-
if ((event === null || event === void 0 ? void 0 : event.target) && eventPath) {
|
|
4113
|
-
var slides_1 = Array.from(swiper.slides);
|
|
4114
|
-
var paths = Array.from(eventPath);
|
|
4115
|
-
// Click slide || slide[children]
|
|
4116
|
-
if (slides_1.includes(event.target) || paths.some(function (item) { return slides_1.includes(item); })) {
|
|
4117
|
-
var clickedIndex = swiper.clickedIndex;
|
|
4118
|
-
var reallyIndex = Number((_c = (_b = swiper.clickedSlide) === null || _b === void 0 ? void 0 : _b.dataset) === null || _c === void 0 ? void 0 : _c.swiperSlideIndex);
|
|
4119
|
-
var reallyIndexValue = Number.isInteger(reallyIndex) ? reallyIndex : null;
|
|
4120
|
-
emit(ComponentEvents.ClickSlide, clickedIndex, reallyIndexValue);
|
|
4121
|
-
emit(kebabcase(ComponentEvents.ClickSlide), clickedIndex, reallyIndexValue);
|
|
4122
|
-
}
|
|
4123
|
-
}
|
|
4124
|
-
}
|
|
4125
|
-
};
|
|
4126
|
-
var bindSwiperEvents = function (swiper, emit) {
|
|
4127
|
-
SWIPER_EVENTS.forEach(function (eventName) {
|
|
4128
|
-
swiper.on(eventName, function () {
|
|
4129
|
-
var arguments$1 = arguments;
|
|
4130
|
-
|
|
4131
|
-
var args = [];
|
|
4132
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4133
|
-
args[_i] = arguments$1[_i];
|
|
4134
|
-
}
|
|
4135
|
-
emit.apply(void 0, __spreadArrays([eventName], args));
|
|
4136
|
-
var kebabcaseName = kebabcase(eventName);
|
|
4137
|
-
if (kebabcaseName !== eventName) {
|
|
4138
|
-
emit.apply(void 0, __spreadArrays([kebabcaseName], args));
|
|
4139
|
-
}
|
|
4140
|
-
});
|
|
4141
|
-
});
|
|
4142
|
-
};/**
|
|
4143
|
-
* @file vue-awesome-swiper
|
|
4144
|
-
* @module directive
|
|
4145
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4146
|
-
*/
|
|
4147
|
-
var INSTANCE_NAME_KEY = 'instanceName';
|
|
4148
|
-
function getDirective(SwiperClass, globalOptions) {
|
|
4149
|
-
var getStandardisedOptionByAttrs = function (vnode, key) {
|
|
4150
|
-
var _a, _b, _c, _d;
|
|
4151
|
-
var value = (_b = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b[key];
|
|
4152
|
-
return value !== undefined
|
|
4153
|
-
? value
|
|
4154
|
-
: (_d = (_c = vnode.data) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d[kebabcase(key)];
|
|
4155
|
-
};
|
|
4156
|
-
// Get swiper instace name in directive
|
|
4157
|
-
var getSwiperInstanceName = function (element, binding, vnode) {
|
|
4158
|
-
return (binding.arg ||
|
|
4159
|
-
getStandardisedOptionByAttrs(vnode, INSTANCE_NAME_KEY) ||
|
|
4160
|
-
element.id ||
|
|
4161
|
-
CoreNames.SwiperInstance);
|
|
4162
|
-
};
|
|
4163
|
-
var getSwiperInstance = function (element, binding, vnode) {
|
|
4164
|
-
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
4165
|
-
return vnode.context[instanceName] || null;
|
|
4166
|
-
};
|
|
4167
|
-
var getSwipeOptions = function (binding) {
|
|
4168
|
-
return binding.value || globalOptions;
|
|
4169
|
-
};
|
|
4170
|
-
var getBooleanValueByInput = function (input) {
|
|
4171
|
-
return [true, undefined, null, ''].includes(input);
|
|
4172
|
-
};
|
|
4173
|
-
// Emit event in Vue directive
|
|
4174
|
-
var getEventEmiter = function (vnode) {
|
|
4175
|
-
var _a, _b;
|
|
4176
|
-
var handlers = ((_a = vnode.data) === null || _a === void 0 ? void 0 : _a.on) || ((_b = vnode.componentOptions) === null || _b === void 0 ? void 0 : _b.listeners);
|
|
4177
|
-
return function (name) {
|
|
4178
|
-
var arguments$1 = arguments;
|
|
4179
|
-
|
|
4180
|
-
var args = [];
|
|
4181
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4182
|
-
args[_i - 1] = arguments$1[_i];
|
|
4183
|
-
}
|
|
4184
|
-
var _a;
|
|
4185
|
-
var handle = (_a = handlers) === null || _a === void 0 ? void 0 : _a[name];
|
|
4186
|
-
if (handle) {
|
|
4187
|
-
handle.fns.apply(handle, args);
|
|
4188
|
-
}
|
|
4189
|
-
};
|
|
4190
|
-
};
|
|
4191
|
-
return {
|
|
4192
|
-
// Init
|
|
4193
|
-
bind: function (element, binding, vnode) {
|
|
4194
|
-
// auto class name
|
|
4195
|
-
if (element.className.indexOf(DEFAULT_CLASSES.containerClass) === -1) {
|
|
4196
|
-
element.className += ((element.className ? ' ' : '') + DEFAULT_CLASSES.containerClass);
|
|
4197
|
-
}
|
|
4198
|
-
// bind click event
|
|
4199
|
-
element.addEventListener('click', function (event) {
|
|
4200
|
-
var emitEvent = getEventEmiter(vnode);
|
|
4201
|
-
var swiper = getSwiperInstance(element, binding, vnode);
|
|
4202
|
-
handleClickSlideEvent(swiper, event, emitEvent);
|
|
4203
|
-
});
|
|
4204
|
-
},
|
|
4205
|
-
// DOM inserted
|
|
4206
|
-
inserted: function (element, binding, vnode) {
|
|
4207
|
-
var context = vnode.context;
|
|
4208
|
-
var swiperOptions = getSwipeOptions(binding);
|
|
4209
|
-
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
4210
|
-
var emitEvent = getEventEmiter(vnode);
|
|
4211
|
-
var vueContext = context;
|
|
4212
|
-
var swiper = vueContext === null || vueContext === void 0 ? void 0 : vueContext[instanceName];
|
|
4213
|
-
// Swiper will destroy but not delete instance, when used <keep-alive>
|
|
4214
|
-
if (!swiper || swiper.destroyed) {
|
|
4215
|
-
swiper = new SwiperClass(element, swiperOptions);
|
|
4216
|
-
vueContext[instanceName] = swiper;
|
|
4217
|
-
bindSwiperEvents(swiper, emitEvent);
|
|
4218
|
-
emitEvent(ComponentEvents.Ready, swiper);
|
|
4219
|
-
// MARK: Reinstance when the nexttick with <keep-alive>
|
|
4220
|
-
// Vue.nextTick(instancing) | setTimeout(instancing)
|
|
4221
|
-
}
|
|
4222
|
-
},
|
|
4223
|
-
// On options changed or DOM updated
|
|
4224
|
-
componentUpdated: function (element, binding, vnode) {
|
|
4225
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4226
|
-
var autoUpdate = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoUpdate);
|
|
4227
|
-
if (getBooleanValueByInput(autoUpdate)) {
|
|
4228
|
-
var swiper = getSwiperInstance(element, binding, vnode);
|
|
4229
|
-
if (swiper) {
|
|
4230
|
-
var swiperOptions = getSwipeOptions(binding);
|
|
4231
|
-
var isLoop = swiperOptions.loop;
|
|
4232
|
-
if (isLoop) {
|
|
4233
|
-
(_b = (_a = swiper) === null || _a === void 0 ? void 0 : _a.loopDestroy) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
4234
|
-
}
|
|
4235
|
-
(_c = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _c === void 0 ? void 0 : _c.call(swiper);
|
|
4236
|
-
(_e = (_d = swiper.navigation) === null || _d === void 0 ? void 0 : _d.update) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
4237
|
-
(_g = (_f = swiper.pagination) === null || _f === void 0 ? void 0 : _f.render) === null || _g === void 0 ? void 0 : _g.call(_f);
|
|
4238
|
-
(_j = (_h = swiper.pagination) === null || _h === void 0 ? void 0 : _h.update) === null || _j === void 0 ? void 0 : _j.call(_h);
|
|
4239
|
-
if (isLoop) {
|
|
4240
|
-
(_l = (_k = swiper) === null || _k === void 0 ? void 0 : _k.loopCreate) === null || _l === void 0 ? void 0 : _l.call(_k);
|
|
4241
|
-
(_m = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _m === void 0 ? void 0 : _m.call(swiper);
|
|
4242
|
-
}
|
|
4243
|
-
}
|
|
4244
|
-
}
|
|
4245
|
-
},
|
|
4246
|
-
// Destroy this directive
|
|
4247
|
-
unbind: function (element, binding, vnode) {
|
|
4248
|
-
var _a;
|
|
4249
|
-
var autoDestroy = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoDestroy);
|
|
4250
|
-
if (getBooleanValueByInput(autoDestroy)) {
|
|
4251
|
-
var swiper = getSwiperInstance(element, binding, vnode);
|
|
4252
|
-
if (swiper && swiper.initialized) {
|
|
4253
|
-
(_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)));
|
|
4254
|
-
}
|
|
4255
|
-
}
|
|
4256
|
-
}
|
|
4257
|
-
};
|
|
4258
|
-
}/**
|
|
4259
|
-
* @file vue-awesome-swiper
|
|
4260
|
-
* @module SwiperComponent
|
|
4261
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4262
|
-
*/
|
|
4263
|
-
var SlotNames;
|
|
4264
|
-
(function (SlotNames) {
|
|
4265
|
-
SlotNames["ParallaxBg"] = "parallax-bg";
|
|
4266
|
-
SlotNames["Pagination"] = "pagination";
|
|
4267
|
-
SlotNames["Scrollbar"] = "scrollbar";
|
|
4268
|
-
SlotNames["PrevButton"] = "button-prev";
|
|
4269
|
-
SlotNames["NextButton"] = "button-next";
|
|
4270
|
-
})(SlotNames || (SlotNames = {}));
|
|
4271
|
-
function getSwiperComponent(SwiperClass) {
|
|
4272
|
-
var _a;
|
|
4273
|
-
return Vue.extend({
|
|
4274
|
-
name: CoreNames.SwiperComponent,
|
|
4275
|
-
props: (_a = {
|
|
4276
|
-
defaultOptions: {
|
|
4277
|
-
type: Object,
|
|
4278
|
-
required: false,
|
|
4279
|
-
default: function () { return ({}); }
|
|
4280
|
-
},
|
|
4281
|
-
// eslint-disable-next-line vue/require-default-prop
|
|
4282
|
-
options: {
|
|
4283
|
-
type: Object,
|
|
4284
|
-
required: false
|
|
4285
|
-
}
|
|
4286
|
-
},
|
|
4287
|
-
_a[ComponentPropNames.AutoUpdate] = {
|
|
4288
|
-
type: Boolean,
|
|
4289
|
-
default: true
|
|
4290
|
-
},
|
|
4291
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/550/files
|
|
4292
|
-
_a[ComponentPropNames.AutoDestroy] = {
|
|
4293
|
-
type: Boolean,
|
|
4294
|
-
default: true
|
|
4295
|
-
},
|
|
4296
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/388
|
|
4297
|
-
_a[ComponentPropNames.DeleteInstanceOnDestroy] = {
|
|
4298
|
-
type: Boolean,
|
|
4299
|
-
required: false,
|
|
4300
|
-
default: true
|
|
4301
|
-
},
|
|
4302
|
-
_a[ComponentPropNames.CleanupStylesOnDestroy] = {
|
|
4303
|
-
type: Boolean,
|
|
4304
|
-
required: false,
|
|
4305
|
-
default: true
|
|
4306
|
-
},
|
|
4307
|
-
_a),
|
|
4308
|
-
data: function () {
|
|
4309
|
-
var _a;
|
|
4310
|
-
return _a = {},
|
|
4311
|
-
_a[CoreNames.SwiperInstance] = null,
|
|
4312
|
-
_a;
|
|
4313
|
-
},
|
|
4314
|
-
computed: {
|
|
4315
|
-
swiperInstance: {
|
|
4316
|
-
cache: false,
|
|
4317
|
-
set: function (swiper) {
|
|
4318
|
-
this[CoreNames.SwiperInstance] = swiper;
|
|
4319
|
-
},
|
|
4320
|
-
get: function () {
|
|
4321
|
-
return this[CoreNames.SwiperInstance];
|
|
4322
|
-
}
|
|
4323
|
-
},
|
|
4324
|
-
swiperOptions: function () {
|
|
4325
|
-
return this.options || this.defaultOptions;
|
|
4326
|
-
},
|
|
4327
|
-
wrapperClass: function () {
|
|
4328
|
-
return this.swiperOptions.wrapperClass || DEFAULT_CLASSES.wrapperClass;
|
|
4329
|
-
}
|
|
4330
|
-
},
|
|
4331
|
-
methods: {
|
|
4332
|
-
// Feature: click event
|
|
4333
|
-
handleSwiperClick: function (event) {
|
|
4334
|
-
handleClickSlideEvent(this.swiperInstance, event, this.$emit.bind(this));
|
|
4335
|
-
},
|
|
4336
|
-
autoReLoopSwiper: function () {
|
|
4337
|
-
var _a, _b;
|
|
4338
|
-
if (this.swiperInstance && this.swiperOptions.loop) {
|
|
4339
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/593
|
|
4340
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/544
|
|
4341
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/545/files
|
|
4342
|
-
var swiper = this.swiperInstance;
|
|
4343
|
-
(_a = swiper === null || swiper === void 0 ? void 0 : swiper.loopDestroy) === null || _a === void 0 ? void 0 : _a.call(swiper);
|
|
4344
|
-
(_b = swiper === null || swiper === void 0 ? void 0 : swiper.loopCreate) === null || _b === void 0 ? void 0 : _b.call(swiper);
|
|
4345
|
-
}
|
|
4346
|
-
},
|
|
4347
|
-
updateSwiper: function () {
|
|
4348
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4349
|
-
if (this[ComponentPropNames.AutoUpdate] && this.swiperInstance) {
|
|
4350
|
-
this.autoReLoopSwiper();
|
|
4351
|
-
(_b = (_a = this.swiperInstance) === null || _a === void 0 ? void 0 : _a.update) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
4352
|
-
(_d = (_c = this.swiperInstance.navigation) === null || _c === void 0 ? void 0 : _c.update) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
4353
|
-
(_f = (_e = this.swiperInstance.pagination) === null || _e === void 0 ? void 0 : _e.render) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
4354
|
-
(_h = (_g = this.swiperInstance.pagination) === null || _g === void 0 ? void 0 : _g.update) === null || _h === void 0 ? void 0 : _h.call(_g);
|
|
4355
|
-
}
|
|
4356
|
-
},
|
|
4357
|
-
destroySwiper: function () {
|
|
4358
|
-
var _a, _b;
|
|
4359
|
-
if (this[ComponentPropNames.AutoDestroy] && this.swiperInstance) {
|
|
4360
|
-
// https://github.com/surmon-china/vue-awesome-swiper/pull/341
|
|
4361
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/340
|
|
4362
|
-
if (this.swiperInstance.initialized) {
|
|
4363
|
-
(_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]);
|
|
4364
|
-
}
|
|
4365
|
-
}
|
|
4366
|
-
},
|
|
4367
|
-
initSwiper: function () {
|
|
4368
|
-
this.swiperInstance = new SwiperClass(this.$el, this.swiperOptions);
|
|
4369
|
-
bindSwiperEvents(this.swiperInstance, this.$emit.bind(this));
|
|
4370
|
-
this.$emit(ComponentEvents.Ready, this.swiperInstance);
|
|
4371
|
-
}
|
|
4372
|
-
},
|
|
4373
|
-
mounted: function () {
|
|
4374
|
-
if (!this.swiperInstance) {
|
|
4375
|
-
this.initSwiper();
|
|
4376
|
-
}
|
|
4377
|
-
},
|
|
4378
|
-
// Update swiper when the parent component activated with `keep-alive`.
|
|
4379
|
-
activated: function () {
|
|
4380
|
-
this.updateSwiper();
|
|
4381
|
-
},
|
|
4382
|
-
updated: function () {
|
|
4383
|
-
this.updateSwiper();
|
|
4384
|
-
},
|
|
4385
|
-
beforeDestroy: function () {
|
|
4386
|
-
// https://github.com/surmon-china/vue-awesome-swiper/commit/2924a9d4d3d1cf51c0d46076410b1f804b2b8a43#diff-7f4e0261ac562c0f354cb91a1ca8864f
|
|
4387
|
-
this.$nextTick(this.destroySwiper);
|
|
4388
|
-
},
|
|
4389
|
-
render: function (createElement) {
|
|
4390
|
-
return createElement('div', {
|
|
4391
|
-
staticClass: DEFAULT_CLASSES.containerClass,
|
|
4392
|
-
on: {
|
|
4393
|
-
click: this.handleSwiperClick
|
|
4394
|
-
}
|
|
4395
|
-
}, [
|
|
4396
|
-
this.$slots[SlotNames.ParallaxBg],
|
|
4397
|
-
createElement('div', {
|
|
4398
|
-
class: this.wrapperClass
|
|
4399
|
-
}, this.$slots.default),
|
|
4400
|
-
this.$slots[SlotNames.Pagination],
|
|
4401
|
-
this.$slots[SlotNames.PrevButton],
|
|
4402
|
-
this.$slots[SlotNames.NextButton],
|
|
4403
|
-
this.$slots[SlotNames.Scrollbar]
|
|
4404
|
-
]);
|
|
4405
|
-
}
|
|
4406
|
-
});
|
|
4407
|
-
}/**
|
|
4408
|
-
* @file vue-awesome-swiper
|
|
4409
|
-
* @module SwiperSlideComponent
|
|
4410
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4411
|
-
*/
|
|
4412
|
-
var SwiperSlideComponent = Vue.extend({
|
|
4413
|
-
name: CoreNames.SwiperSlideComponent,
|
|
4414
|
-
computed: {
|
|
4415
|
-
slideClass: function () {
|
|
4416
|
-
var _a, _b;
|
|
4417
|
-
return ((_b = (_a = this.$parent) === null || _a === void 0 ? void 0 : _a.swiperOptions) === null || _b === void 0 ? void 0 : _b.slideClass) || DEFAULT_CLASSES.slideClass;
|
|
4418
|
-
}
|
|
4419
|
-
},
|
|
4420
|
-
methods: {
|
|
4421
|
-
update: function () {
|
|
4422
|
-
var _a;
|
|
4423
|
-
var parent = this.$parent;
|
|
4424
|
-
// https://github.com/surmon-china/vue-awesome-swiper/issues/632
|
|
4425
|
-
if (parent[ComponentPropNames.AutoUpdate]) {
|
|
4426
|
-
(_a = parent === null || parent === void 0 ? void 0 : parent.swiperInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
4427
|
-
}
|
|
4428
|
-
}
|
|
4429
|
-
},
|
|
4430
|
-
mounted: function () {
|
|
4431
|
-
this.update();
|
|
4432
|
-
},
|
|
4433
|
-
updated: function () {
|
|
4434
|
-
this.update();
|
|
4435
|
-
},
|
|
4436
|
-
render: function (createElement) {
|
|
4437
|
-
return createElement('div', {
|
|
4438
|
-
class: this.slideClass
|
|
4439
|
-
}, this.$slots.default);
|
|
4440
|
-
}
|
|
4441
|
-
});/**
|
|
4442
|
-
* @file vue-awesome-swiper
|
|
4443
|
-
* @module exporter
|
|
4444
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4445
|
-
*/
|
|
4446
|
-
var getInstaller = function (SwiperClass) {
|
|
4447
|
-
var install = function (Vue, globalOptions) {
|
|
4448
|
-
if (install.installed)
|
|
4449
|
-
{ return; }
|
|
4450
|
-
var SwiperComponent = getSwiperComponent(SwiperClass);
|
|
4451
|
-
if (globalOptions) {
|
|
4452
|
-
SwiperComponent.options.props.defaultOptions.default = function () { return globalOptions; };
|
|
4453
|
-
}
|
|
4454
|
-
Vue.component(CoreNames.SwiperComponent, SwiperComponent);
|
|
4455
|
-
Vue.component(CoreNames.SwiperSlideComponent, SwiperSlideComponent);
|
|
4456
|
-
Vue.directive(CoreNames.SwiperDirective, getDirective(SwiperClass, globalOptions));
|
|
4457
|
-
install.installed = true;
|
|
4458
|
-
};
|
|
4459
|
-
return install;
|
|
4460
|
-
};
|
|
4461
|
-
function exporter(SwiperClass) {
|
|
4462
|
-
var _a;
|
|
4463
|
-
return _a = {
|
|
4464
|
-
version: '4.1.1',
|
|
4465
|
-
install: getInstaller(SwiperClass),
|
|
4466
|
-
directive: getDirective(SwiperClass)
|
|
4467
|
-
},
|
|
4468
|
-
_a[CoreNames.SwiperComponent] = getSwiperComponent(SwiperClass),
|
|
4469
|
-
_a[CoreNames.SwiperSlideComponent] = SwiperSlideComponent,
|
|
4470
|
-
_a;
|
|
4471
|
-
}/**
|
|
4472
|
-
* @file vue-awesome-swiper
|
|
4473
|
-
* @module default-export
|
|
4474
|
-
* @author Surmon <https://github.com/surmon-china>
|
|
4475
|
-
*/
|
|
4476
|
-
var VueAwesomeSwiper = exporter(SwiperClass);
|
|
4477
|
-
var version = VueAwesomeSwiper.version;
|
|
4478
|
-
var install = VueAwesomeSwiper.install;
|
|
4479
|
-
var directive = VueAwesomeSwiper.directive;
|
|
4480
|
-
var Swiper = VueAwesomeSwiper.Swiper;
|
|
4481
|
-
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});})));
|
|
4482
|
-
|
|
4483
|
-
/***/ }),
|
|
4484
|
-
|
|
4485
|
-
/***/ "b061":
|
|
4486
|
-
/***/ (function(module, exports) {
|
|
4487
|
-
|
|
4488
|
-
var g;
|
|
4489
|
-
|
|
4490
|
-
// This works in non-strict mode
|
|
4491
|
-
g = (function() {
|
|
4492
|
-
return this;
|
|
4493
|
-
})();
|
|
4494
|
-
|
|
4495
|
-
try {
|
|
4496
|
-
// This works if eval is allowed (see CSP)
|
|
4497
|
-
g = g || new Function("return this")();
|
|
4498
|
-
} catch (e) {
|
|
4499
|
-
// This works if the window reference is available
|
|
4500
|
-
if (typeof window === "object") g = window;
|
|
4501
|
-
}
|
|
4502
|
-
|
|
4503
|
-
// g can still be undefined, but nothing to do about it...
|
|
4504
|
-
// We return undefined, instead of nothing here, so it's
|
|
4505
|
-
// easier to handle this case. if(!global) { ...}
|
|
4506
|
-
|
|
4507
|
-
module.exports = g;
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
/***/ }),
|
|
4511
|
-
|
|
4512
|
-
/***/ "b156":
|
|
4513
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4514
|
-
|
|
4515
|
-
// extracted by mini-css-extract-plugin
|
|
4516
|
-
|
|
4517
|
-
/***/ }),
|
|
4518
|
-
|
|
4519
|
-
/***/ "b61c":
|
|
4520
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4521
|
-
|
|
4522
|
-
// extracted by mini-css-extract-plugin
|
|
4034
|
+
/***/ "b61c":
|
|
4035
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4036
|
+
|
|
4037
|
+
// extracted by mini-css-extract-plugin
|
|
4523
4038
|
|
|
4524
4039
|
/***/ }),
|
|
4525
4040
|
|
|
@@ -4687,126 +4202,7 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
4687
4202
|
|
|
4688
4203
|
/***/ }),
|
|
4689
4204
|
|
|
4690
|
-
/***/ "
|
|
4691
|
-
/***/ (function(module, exports) {
|
|
4692
|
-
|
|
4693
|
-
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"
|
|
4694
|
-
|
|
4695
|
-
/***/ }),
|
|
4696
|
-
|
|
4697
|
-
/***/ "cd69":
|
|
4698
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4699
|
-
|
|
4700
|
-
"use strict";
|
|
4701
|
-
|
|
4702
|
-
var ceil = Math.ceil;
|
|
4703
|
-
var floor = Math.floor;
|
|
4704
|
-
|
|
4705
|
-
// `Math.trunc` method
|
|
4706
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
4707
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
4708
|
-
module.exports = Math.trunc || function trunc(x) {
|
|
4709
|
-
var n = +x;
|
|
4710
|
-
return (n > 0 ? floor : ceil)(n);
|
|
4711
|
-
};
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
/***/ }),
|
|
4715
|
-
|
|
4716
|
-
/***/ "ce8f":
|
|
4717
|
-
/***/ (function(module, exports) {
|
|
4718
|
-
|
|
4719
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_ce8f__;
|
|
4720
|
-
|
|
4721
|
-
/***/ }),
|
|
4722
|
-
|
|
4723
|
-
/***/ "ce97":
|
|
4724
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4725
|
-
|
|
4726
|
-
"use strict";
|
|
4727
|
-
|
|
4728
|
-
var classof = __webpack_require__("aaa6");
|
|
4729
|
-
|
|
4730
|
-
var $String = String;
|
|
4731
|
-
|
|
4732
|
-
module.exports = function (argument) {
|
|
4733
|
-
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
4734
|
-
return $String(argument);
|
|
4735
|
-
};
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
/***/ }),
|
|
4739
|
-
|
|
4740
|
-
/***/ "cebe":
|
|
4741
|
-
/***/ (function(module, exports) {
|
|
4742
|
-
|
|
4743
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_cebe__;
|
|
4744
|
-
|
|
4745
|
-
/***/ }),
|
|
4746
|
-
|
|
4747
|
-
/***/ "cf8c":
|
|
4748
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4749
|
-
|
|
4750
|
-
"use strict";
|
|
4751
|
-
|
|
4752
|
-
var toIndexedObject = __webpack_require__("485f");
|
|
4753
|
-
var toAbsoluteIndex = __webpack_require__("575c");
|
|
4754
|
-
var lengthOfArrayLike = __webpack_require__("d631");
|
|
4755
|
-
|
|
4756
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
4757
|
-
var createMethod = function (IS_INCLUDES) {
|
|
4758
|
-
return function ($this, el, fromIndex) {
|
|
4759
|
-
var O = toIndexedObject($this);
|
|
4760
|
-
var length = lengthOfArrayLike(O);
|
|
4761
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
4762
|
-
var value;
|
|
4763
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
4764
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4765
|
-
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
4766
|
-
value = O[index++];
|
|
4767
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4768
|
-
if (value !== value) return true;
|
|
4769
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
4770
|
-
} else for (;length > index; index++) {
|
|
4771
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
4772
|
-
} return !IS_INCLUDES && -1;
|
|
4773
|
-
};
|
|
4774
|
-
};
|
|
4775
|
-
|
|
4776
|
-
module.exports = {
|
|
4777
|
-
// `Array.prototype.includes` method
|
|
4778
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4779
|
-
includes: createMethod(true),
|
|
4780
|
-
// `Array.prototype.indexOf` method
|
|
4781
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
4782
|
-
indexOf: createMethod(false)
|
|
4783
|
-
};
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
/***/ }),
|
|
4787
|
-
|
|
4788
|
-
/***/ "cfb3":
|
|
4789
|
-
/***/ (function(module, exports) {
|
|
4790
|
-
|
|
4791
|
-
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"
|
|
4792
|
-
|
|
4793
|
-
/***/ }),
|
|
4794
|
-
|
|
4795
|
-
/***/ "cfde":
|
|
4796
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4797
|
-
|
|
4798
|
-
// extracted by mini-css-extract-plugin
|
|
4799
|
-
|
|
4800
|
-
/***/ }),
|
|
4801
|
-
|
|
4802
|
-
/***/ "d30a":
|
|
4803
|
-
/***/ (function(module, exports) {
|
|
4804
|
-
|
|
4805
|
-
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"
|
|
4806
|
-
|
|
4807
|
-
/***/ }),
|
|
4808
|
-
|
|
4809
|
-
/***/ "d345":
|
|
4205
|
+
/***/ "cb40":
|
|
4810
4206
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4811
4207
|
|
|
4812
4208
|
"use strict";
|
|
@@ -4821,7 +4217,7 @@ __webpack_require__.d(__webpack_exports__, "ProjectDetail", function() { return
|
|
|
4821
4217
|
__webpack_require__.d(__webpack_exports__, "ProjectList", function() { return /* reexport */ views_project_list; });
|
|
4822
4218
|
__webpack_require__.d(__webpack_exports__, "injectEnableUserCenterCookie", function() { return /* reexport */ injectEnableUserCenterCookie; });
|
|
4823
4219
|
|
|
4824
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue+cli-service@4.5.
|
|
4220
|
+
// 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
|
|
4825
4221
|
// This file is imported into lib/wc client bundles.
|
|
4826
4222
|
|
|
4827
4223
|
if (typeof window !== 'undefined') {
|
|
@@ -12401,6 +11797,15 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
12401
11797
|
enumerable: false,
|
|
12402
11798
|
configurable: true
|
|
12403
11799
|
});
|
|
11800
|
+
Object.defineProperty(ParamsSetting.prototype, "showBodyPanel", {
|
|
11801
|
+
get: function () {
|
|
11802
|
+
var _a, _b, _c;
|
|
11803
|
+
var method = (((_b = (_a = this.interfaceModel) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.method) || ((_c = this.interfaceModel) === null || _c === void 0 ? void 0 : _c.method) || "").toUpperCase();
|
|
11804
|
+
return method !== "GET" && method !== "DELETE";
|
|
11805
|
+
},
|
|
11806
|
+
enumerable: false,
|
|
11807
|
+
configurable: true
|
|
11808
|
+
});
|
|
12404
11809
|
ParamsSetting.prototype.getExpand = function (value) {
|
|
12405
11810
|
return this.value.includes(value);
|
|
12406
11811
|
};
|
|
@@ -12521,6 +11926,9 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
12521
11926
|
});
|
|
12522
11927
|
this.queryDataList = this.interfaceModel.queryParams;
|
|
12523
11928
|
this.interfaceModel.formParams.forEach(function (item) {
|
|
11929
|
+
if ((item.text === undefined || item.text === null || item.text === "") && item.remark !== undefined) {
|
|
11930
|
+
item.text = item.remark;
|
|
11931
|
+
}
|
|
12524
11932
|
if (!item.indexFlag) {
|
|
12525
11933
|
item.indexFlag = _this.formParamsIndex++ + "_" + _this.interfaceModel.info.id;
|
|
12526
11934
|
}
|
|
@@ -14329,12 +13737,27 @@ var interface_settings_InterfaceSettings = /** @class */function (_super) {
|
|
|
14329
13737
|
};
|
|
14330
13738
|
InterfaceSettings.prototype.onSave = function () {
|
|
14331
13739
|
return __awaiter(this, void 0, void 0, function () {
|
|
14332
|
-
var tmpInterfaceModel;
|
|
13740
|
+
var tmpInterfaceModel, normalizedFormParams;
|
|
14333
13741
|
return __generator(this, function (_a) {
|
|
14334
13742
|
switch (_a.label) {
|
|
14335
13743
|
case 0:
|
|
14336
13744
|
this.loading = true;
|
|
14337
13745
|
tmpInterfaceModel = this.interfaceModel.$clone();
|
|
13746
|
+
normalizedFormParams = [];
|
|
13747
|
+
if (Array.isArray(tmpInterfaceModel.formParams)) {
|
|
13748
|
+
normalizedFormParams = tmpInterfaceModel.formParams.map(function (item) {
|
|
13749
|
+
var normalized = __assign({}, item);
|
|
13750
|
+
if ((normalized.text === undefined || normalized.text === null || normalized.text === "") && normalized.remark !== undefined) {
|
|
13751
|
+
normalized.text = normalized.remark;
|
|
13752
|
+
}
|
|
13753
|
+
delete normalized.remark;
|
|
13754
|
+
return normalized;
|
|
13755
|
+
});
|
|
13756
|
+
tmpInterfaceModel.formParams = normalizedFormParams;
|
|
13757
|
+
this.interfaceModel.formParams = normalizedFormParams.map(function (item) {
|
|
13758
|
+
return __assign({}, item);
|
|
13759
|
+
});
|
|
13760
|
+
}
|
|
14338
13761
|
if (tmpInterfaceModel.name && tmpInterfaceModel.name !== tmpInterfaceModel.info.name) {
|
|
14339
13762
|
tmpInterfaceModel.info.name = tmpInterfaceModel.name;
|
|
14340
13763
|
}
|
|
@@ -15588,8 +15011,8 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
15588
15011
|
return ProjectTree;
|
|
15589
15012
|
}(flagwind_web_["Component"]);
|
|
15590
15013
|
/* 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__("
|
|
15014
|
+
// 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
|
|
15015
|
+
var vue_awesome_swiper = __webpack_require__("ed38");
|
|
15593
15016
|
|
|
15594
15017
|
// CONCATENATED MODULE: ./src/views/project-detail/index.ts
|
|
15595
15018
|
|
|
@@ -15942,106 +15365,225 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
15942
15365
|
|
|
15943
15366
|
external_vue_default.a.use(external_halo_math_default.a);
|
|
15944
15367
|
|
|
15945
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue+cli-service@4.5.
|
|
15368
|
+
// 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
15369
|
|
|
15947
15370
|
|
|
15948
15371
|
|
|
15949
15372
|
|
|
15950
15373
|
/***/ }),
|
|
15951
15374
|
|
|
15952
|
-
/***/ "
|
|
15953
|
-
/***/ (function(module, exports
|
|
15954
|
-
|
|
15955
|
-
"use strict";
|
|
15956
|
-
|
|
15957
|
-
var DESCRIPTORS = __webpack_require__("e900");
|
|
15958
|
-
var uncurryThis = __webpack_require__("720f");
|
|
15959
|
-
var defineBuiltInAccessor = __webpack_require__("889b");
|
|
15960
|
-
|
|
15961
|
-
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
15962
|
-
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
15963
|
-
|
|
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
|
-
}
|
|
15375
|
+
/***/ "ccf6":
|
|
15376
|
+
/***/ (function(module, exports) {
|
|
15977
15377
|
|
|
15378
|
+
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"
|
|
15978
15379
|
|
|
15979
15380
|
/***/ }),
|
|
15980
15381
|
|
|
15981
|
-
/***/ "
|
|
15382
|
+
/***/ "cd69":
|
|
15982
15383
|
/***/ (function(module, exports, __webpack_require__) {
|
|
15983
15384
|
|
|
15984
15385
|
"use strict";
|
|
15985
15386
|
|
|
15986
|
-
var
|
|
15987
|
-
var
|
|
15387
|
+
var ceil = Math.ceil;
|
|
15388
|
+
var floor = Math.floor;
|
|
15988
15389
|
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
return
|
|
15995
|
-
}
|
|
15390
|
+
// `Math.trunc` method
|
|
15391
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
15392
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
15393
|
+
module.exports = Math.trunc || function trunc(x) {
|
|
15394
|
+
var n = +x;
|
|
15395
|
+
return (n > 0 ? floor : ceil)(n);
|
|
15396
|
+
};
|
|
15996
15397
|
|
|
15997
15398
|
|
|
15998
15399
|
/***/ }),
|
|
15999
15400
|
|
|
16000
|
-
/***/ "
|
|
16001
|
-
/***/ (function(module, exports
|
|
16002
|
-
|
|
16003
|
-
"use strict";
|
|
16004
|
-
|
|
16005
|
-
var toLength = __webpack_require__("8a91");
|
|
16006
|
-
|
|
16007
|
-
// `LengthOfArrayLike` abstract operation
|
|
16008
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
16009
|
-
module.exports = function (obj) {
|
|
16010
|
-
return toLength(obj.length);
|
|
16011
|
-
};
|
|
15401
|
+
/***/ "ce8f":
|
|
15402
|
+
/***/ (function(module, exports) {
|
|
16012
15403
|
|
|
15404
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_ce8f__;
|
|
16013
15405
|
|
|
16014
15406
|
/***/ }),
|
|
16015
15407
|
|
|
16016
|
-
/***/ "
|
|
15408
|
+
/***/ "ce97":
|
|
16017
15409
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16018
15410
|
|
|
16019
15411
|
"use strict";
|
|
16020
15412
|
|
|
16021
|
-
var
|
|
15413
|
+
var classof = __webpack_require__("aaa6");
|
|
16022
15414
|
|
|
16023
|
-
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
|
|
16028
|
-
});
|
|
15415
|
+
var $String = String;
|
|
15416
|
+
|
|
15417
|
+
module.exports = function (argument) {
|
|
15418
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
15419
|
+
return $String(argument);
|
|
16029
15420
|
};
|
|
16030
15421
|
|
|
16031
15422
|
|
|
16032
15423
|
/***/ }),
|
|
16033
15424
|
|
|
16034
|
-
/***/ "
|
|
15425
|
+
/***/ "cebe":
|
|
16035
15426
|
/***/ (function(module, exports) {
|
|
16036
15427
|
|
|
16037
|
-
module.exports =
|
|
15428
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_cebe__;
|
|
16038
15429
|
|
|
16039
15430
|
/***/ }),
|
|
16040
15431
|
|
|
16041
|
-
/***/ "
|
|
16042
|
-
/***/ (function(module, exports) {
|
|
15432
|
+
/***/ "cf8c":
|
|
15433
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
16043
15434
|
|
|
16044
|
-
|
|
15435
|
+
"use strict";
|
|
15436
|
+
|
|
15437
|
+
var toIndexedObject = __webpack_require__("485f");
|
|
15438
|
+
var toAbsoluteIndex = __webpack_require__("575c");
|
|
15439
|
+
var lengthOfArrayLike = __webpack_require__("d631");
|
|
15440
|
+
|
|
15441
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
15442
|
+
var createMethod = function (IS_INCLUDES) {
|
|
15443
|
+
return function ($this, el, fromIndex) {
|
|
15444
|
+
var O = toIndexedObject($this);
|
|
15445
|
+
var length = lengthOfArrayLike(O);
|
|
15446
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
15447
|
+
var value;
|
|
15448
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
15449
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
15450
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
15451
|
+
value = O[index++];
|
|
15452
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
15453
|
+
if (value !== value) return true;
|
|
15454
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
15455
|
+
} else for (;length > index; index++) {
|
|
15456
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
15457
|
+
} return !IS_INCLUDES && -1;
|
|
15458
|
+
};
|
|
15459
|
+
};
|
|
15460
|
+
|
|
15461
|
+
module.exports = {
|
|
15462
|
+
// `Array.prototype.includes` method
|
|
15463
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
15464
|
+
includes: createMethod(true),
|
|
15465
|
+
// `Array.prototype.indexOf` method
|
|
15466
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
15467
|
+
indexOf: createMethod(false)
|
|
15468
|
+
};
|
|
15469
|
+
|
|
15470
|
+
|
|
15471
|
+
/***/ }),
|
|
15472
|
+
|
|
15473
|
+
/***/ "cfb3":
|
|
15474
|
+
/***/ (function(module, exports) {
|
|
15475
|
+
|
|
15476
|
+
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"
|
|
15477
|
+
|
|
15478
|
+
/***/ }),
|
|
15479
|
+
|
|
15480
|
+
/***/ "cfde":
|
|
15481
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15482
|
+
|
|
15483
|
+
// extracted by mini-css-extract-plugin
|
|
15484
|
+
|
|
15485
|
+
/***/ }),
|
|
15486
|
+
|
|
15487
|
+
/***/ "d30a":
|
|
15488
|
+
/***/ (function(module, exports) {
|
|
15489
|
+
|
|
15490
|
+
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"
|
|
15491
|
+
|
|
15492
|
+
/***/ }),
|
|
15493
|
+
|
|
15494
|
+
/***/ "d371":
|
|
15495
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15496
|
+
|
|
15497
|
+
"use strict";
|
|
15498
|
+
|
|
15499
|
+
var DESCRIPTORS = __webpack_require__("e900");
|
|
15500
|
+
var uncurryThis = __webpack_require__("720f");
|
|
15501
|
+
var defineBuiltInAccessor = __webpack_require__("889b");
|
|
15502
|
+
|
|
15503
|
+
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
15504
|
+
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
|
|
15505
|
+
|
|
15506
|
+
// `URLSearchParams.prototype.size` getter
|
|
15507
|
+
// https://github.com/whatwg/url/pull/734
|
|
15508
|
+
if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
|
|
15509
|
+
defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
|
|
15510
|
+
get: function size() {
|
|
15511
|
+
var count = 0;
|
|
15512
|
+
forEach(this, function () { count++; });
|
|
15513
|
+
return count;
|
|
15514
|
+
},
|
|
15515
|
+
configurable: true,
|
|
15516
|
+
enumerable: true
|
|
15517
|
+
});
|
|
15518
|
+
}
|
|
15519
|
+
|
|
15520
|
+
|
|
15521
|
+
/***/ }),
|
|
15522
|
+
|
|
15523
|
+
/***/ "d5e3":
|
|
15524
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15525
|
+
|
|
15526
|
+
"use strict";
|
|
15527
|
+
|
|
15528
|
+
var fails = __webpack_require__("10a7");
|
|
15529
|
+
var createPropertyDescriptor = __webpack_require__("f2e2");
|
|
15530
|
+
|
|
15531
|
+
module.exports = !fails(function () {
|
|
15532
|
+
var error = new Error('a');
|
|
15533
|
+
if (!('stack' in error)) return true;
|
|
15534
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
15535
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
15536
|
+
return error.stack !== 7;
|
|
15537
|
+
});
|
|
15538
|
+
|
|
15539
|
+
|
|
15540
|
+
/***/ }),
|
|
15541
|
+
|
|
15542
|
+
/***/ "d631":
|
|
15543
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15544
|
+
|
|
15545
|
+
"use strict";
|
|
15546
|
+
|
|
15547
|
+
var toLength = __webpack_require__("8a91");
|
|
15548
|
+
|
|
15549
|
+
// `LengthOfArrayLike` abstract operation
|
|
15550
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
15551
|
+
module.exports = function (obj) {
|
|
15552
|
+
return toLength(obj.length);
|
|
15553
|
+
};
|
|
15554
|
+
|
|
15555
|
+
|
|
15556
|
+
/***/ }),
|
|
15557
|
+
|
|
15558
|
+
/***/ "d631e":
|
|
15559
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15560
|
+
|
|
15561
|
+
"use strict";
|
|
15562
|
+
|
|
15563
|
+
var fails = __webpack_require__("10a7");
|
|
15564
|
+
|
|
15565
|
+
module.exports = function (METHOD_NAME, argument) {
|
|
15566
|
+
var method = [][METHOD_NAME];
|
|
15567
|
+
return !!method && fails(function () {
|
|
15568
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
15569
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
15570
|
+
});
|
|
15571
|
+
};
|
|
15572
|
+
|
|
15573
|
+
|
|
15574
|
+
/***/ }),
|
|
15575
|
+
|
|
15576
|
+
/***/ "d63e":
|
|
15577
|
+
/***/ (function(module, exports) {
|
|
15578
|
+
|
|
15579
|
+
module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <i class=\"iconfont icon-zhankai\" @click=\"onBack\"></i>\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\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>\r\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onOpenEnvModal\"><i class=\"iconfont icon-bianliang\"></i>环境变量</i-button>\r\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>\r\n </div>\r\n </header>\r\n <!-- <main> -->\r\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\r\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>\r\n <section slot=\"right\" class=\"interface-box\">\r\n <header class=\"interface-bar\">\r\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\r\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\r\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\r\n <span>{{item.name}}</span>\r\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\r\n </div> -->\r\n </header>\r\n <u-settings ref=\"interface-settings\" :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\" :projectTree=\"projectTree\"></u-settings>\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 <!-- </main> -->\r\n <u-global-modal :visiable.sync=\"showGlobalModal\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\r\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectId\"></u-security-modal>\r\n <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"onEnvironmentRefresh\"></u-environment-modal>\r\n</article>\r\n"
|
|
15580
|
+
|
|
15581
|
+
/***/ }),
|
|
15582
|
+
|
|
15583
|
+
/***/ "d670":
|
|
15584
|
+
/***/ (function(module, exports) {
|
|
15585
|
+
|
|
15586
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_d670__;
|
|
16045
15587
|
|
|
16046
15588
|
/***/ }),
|
|
16047
15589
|
|
|
@@ -16446,6 +15988,491 @@ module.exports = NATIVE_SYMBOL
|
|
|
16446
15988
|
&& typeof Symbol.iterator == 'symbol';
|
|
16447
15989
|
|
|
16448
15990
|
|
|
15991
|
+
/***/ }),
|
|
15992
|
+
|
|
15993
|
+
/***/ "ed38":
|
|
15994
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
15995
|
+
|
|
15996
|
+
|
|
15997
|
+
/*!
|
|
15998
|
+
* vue-awesome-swiper v4.1.1
|
|
15999
|
+
* Copyright (c) Surmon. All rights reserved.
|
|
16000
|
+
* Released under the MIT License.
|
|
16001
|
+
* Surmon <https://github.com/surmon-china>
|
|
16002
|
+
*/
|
|
16003
|
+
|
|
16004
|
+
(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;/**
|
|
16005
|
+
* @file vue-awesome-swiper
|
|
16006
|
+
* @module constants
|
|
16007
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16008
|
+
*/
|
|
16009
|
+
var CoreNames;
|
|
16010
|
+
(function (CoreNames) {
|
|
16011
|
+
CoreNames["SwiperComponent"] = "Swiper";
|
|
16012
|
+
CoreNames["SwiperSlideComponent"] = "SwiperSlide";
|
|
16013
|
+
CoreNames["SwiperDirective"] = "swiper";
|
|
16014
|
+
CoreNames["SwiperInstance"] = "$swiper";
|
|
16015
|
+
})(CoreNames || (CoreNames = {}));
|
|
16016
|
+
var DEFAULT_CLASSES = Object.freeze({
|
|
16017
|
+
containerClass: 'swiper-container',
|
|
16018
|
+
wrapperClass: 'swiper-wrapper',
|
|
16019
|
+
slideClass: 'swiper-slide'
|
|
16020
|
+
});
|
|
16021
|
+
var ComponentEvents;
|
|
16022
|
+
(function (ComponentEvents) {
|
|
16023
|
+
ComponentEvents["Ready"] = "ready";
|
|
16024
|
+
ComponentEvents["ClickSlide"] = "clickSlide";
|
|
16025
|
+
})(ComponentEvents || (ComponentEvents = {}));
|
|
16026
|
+
var ComponentPropNames;
|
|
16027
|
+
(function (ComponentPropNames) {
|
|
16028
|
+
ComponentPropNames["AutoUpdate"] = "autoUpdate";
|
|
16029
|
+
ComponentPropNames["AutoDestroy"] = "autoDestroy";
|
|
16030
|
+
ComponentPropNames["DeleteInstanceOnDestroy"] = "deleteInstanceOnDestroy";
|
|
16031
|
+
ComponentPropNames["CleanupStylesOnDestroy"] = "cleanupStylesOnDestroy";
|
|
16032
|
+
})(ComponentPropNames || (ComponentPropNames = {}));
|
|
16033
|
+
// https://swiperjs.com/api/#events
|
|
16034
|
+
var SWIPER_EVENTS = [
|
|
16035
|
+
'init',
|
|
16036
|
+
'beforeDestroy',
|
|
16037
|
+
'slideChange',
|
|
16038
|
+
'slideChangeTransitionStart',
|
|
16039
|
+
'slideChangeTransitionEnd',
|
|
16040
|
+
'slideNextTransitionStart',
|
|
16041
|
+
'slideNextTransitionEnd',
|
|
16042
|
+
'slidePrevTransitionStart',
|
|
16043
|
+
'slidePrevTransitionEnd',
|
|
16044
|
+
'transitionStart',
|
|
16045
|
+
'transitionEnd',
|
|
16046
|
+
'touchStart',
|
|
16047
|
+
'touchMove',
|
|
16048
|
+
'touchMoveOpposite',
|
|
16049
|
+
'sliderMove',
|
|
16050
|
+
'touchEnd',
|
|
16051
|
+
'click',
|
|
16052
|
+
'tap',
|
|
16053
|
+
'doubleTap',
|
|
16054
|
+
'imagesReady',
|
|
16055
|
+
'progress',
|
|
16056
|
+
'reachBeginning',
|
|
16057
|
+
'reachEnd',
|
|
16058
|
+
'fromEdge',
|
|
16059
|
+
'setTranslate',
|
|
16060
|
+
'setTransition',
|
|
16061
|
+
'resize',
|
|
16062
|
+
'observerUpdate',
|
|
16063
|
+
'beforeLoopFix',
|
|
16064
|
+
'loopFix'
|
|
16065
|
+
];/*! *****************************************************************************
|
|
16066
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16067
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
16068
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
16069
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
16070
|
+
|
|
16071
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
16072
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
16073
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16074
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
16075
|
+
|
|
16076
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
16077
|
+
and limitations under the License.
|
|
16078
|
+
***************************************************************************** */
|
|
16079
|
+
|
|
16080
|
+
function __spreadArrays() {
|
|
16081
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
16082
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
16083
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
16084
|
+
r[k] = a[j];
|
|
16085
|
+
return r;
|
|
16086
|
+
}/**
|
|
16087
|
+
* @file vue-awesome-swiper
|
|
16088
|
+
* @module utils
|
|
16089
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16090
|
+
*/
|
|
16091
|
+
var kebabcase = function (string) {
|
|
16092
|
+
return string
|
|
16093
|
+
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
|
16094
|
+
.replace(/\s+/g, '-')
|
|
16095
|
+
.toLowerCase();
|
|
16096
|
+
};/**
|
|
16097
|
+
* @file vue-awesome-swiper
|
|
16098
|
+
* @module event
|
|
16099
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16100
|
+
*/
|
|
16101
|
+
var handleClickSlideEvent = function (swiper, event, emit) {
|
|
16102
|
+
var _a, _b, _c;
|
|
16103
|
+
if (swiper && !(swiper.destroyed)) {
|
|
16104
|
+
var eventPath = ((_a = event.composedPath) === null || _a === void 0 ? void 0 : _a.call(event)) || event.path;
|
|
16105
|
+
if ((event === null || event === void 0 ? void 0 : event.target) && eventPath) {
|
|
16106
|
+
var slides_1 = Array.from(swiper.slides);
|
|
16107
|
+
var paths = Array.from(eventPath);
|
|
16108
|
+
// Click slide || slide[children]
|
|
16109
|
+
if (slides_1.includes(event.target) || paths.some(function (item) { return slides_1.includes(item); })) {
|
|
16110
|
+
var clickedIndex = swiper.clickedIndex;
|
|
16111
|
+
var reallyIndex = Number((_c = (_b = swiper.clickedSlide) === null || _b === void 0 ? void 0 : _b.dataset) === null || _c === void 0 ? void 0 : _c.swiperSlideIndex);
|
|
16112
|
+
var reallyIndexValue = Number.isInteger(reallyIndex) ? reallyIndex : null;
|
|
16113
|
+
emit(ComponentEvents.ClickSlide, clickedIndex, reallyIndexValue);
|
|
16114
|
+
emit(kebabcase(ComponentEvents.ClickSlide), clickedIndex, reallyIndexValue);
|
|
16115
|
+
}
|
|
16116
|
+
}
|
|
16117
|
+
}
|
|
16118
|
+
};
|
|
16119
|
+
var bindSwiperEvents = function (swiper, emit) {
|
|
16120
|
+
SWIPER_EVENTS.forEach(function (eventName) {
|
|
16121
|
+
swiper.on(eventName, function () {
|
|
16122
|
+
var arguments$1 = arguments;
|
|
16123
|
+
|
|
16124
|
+
var args = [];
|
|
16125
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16126
|
+
args[_i] = arguments$1[_i];
|
|
16127
|
+
}
|
|
16128
|
+
emit.apply(void 0, __spreadArrays([eventName], args));
|
|
16129
|
+
var kebabcaseName = kebabcase(eventName);
|
|
16130
|
+
if (kebabcaseName !== eventName) {
|
|
16131
|
+
emit.apply(void 0, __spreadArrays([kebabcaseName], args));
|
|
16132
|
+
}
|
|
16133
|
+
});
|
|
16134
|
+
});
|
|
16135
|
+
};/**
|
|
16136
|
+
* @file vue-awesome-swiper
|
|
16137
|
+
* @module directive
|
|
16138
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16139
|
+
*/
|
|
16140
|
+
var INSTANCE_NAME_KEY = 'instanceName';
|
|
16141
|
+
function getDirective(SwiperClass, globalOptions) {
|
|
16142
|
+
var getStandardisedOptionByAttrs = function (vnode, key) {
|
|
16143
|
+
var _a, _b, _c, _d;
|
|
16144
|
+
var value = (_b = (_a = vnode.data) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b[key];
|
|
16145
|
+
return value !== undefined
|
|
16146
|
+
? value
|
|
16147
|
+
: (_d = (_c = vnode.data) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d[kebabcase(key)];
|
|
16148
|
+
};
|
|
16149
|
+
// Get swiper instace name in directive
|
|
16150
|
+
var getSwiperInstanceName = function (element, binding, vnode) {
|
|
16151
|
+
return (binding.arg ||
|
|
16152
|
+
getStandardisedOptionByAttrs(vnode, INSTANCE_NAME_KEY) ||
|
|
16153
|
+
element.id ||
|
|
16154
|
+
CoreNames.SwiperInstance);
|
|
16155
|
+
};
|
|
16156
|
+
var getSwiperInstance = function (element, binding, vnode) {
|
|
16157
|
+
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
16158
|
+
return vnode.context[instanceName] || null;
|
|
16159
|
+
};
|
|
16160
|
+
var getSwipeOptions = function (binding) {
|
|
16161
|
+
return binding.value || globalOptions;
|
|
16162
|
+
};
|
|
16163
|
+
var getBooleanValueByInput = function (input) {
|
|
16164
|
+
return [true, undefined, null, ''].includes(input);
|
|
16165
|
+
};
|
|
16166
|
+
// Emit event in Vue directive
|
|
16167
|
+
var getEventEmiter = function (vnode) {
|
|
16168
|
+
var _a, _b;
|
|
16169
|
+
var handlers = ((_a = vnode.data) === null || _a === void 0 ? void 0 : _a.on) || ((_b = vnode.componentOptions) === null || _b === void 0 ? void 0 : _b.listeners);
|
|
16170
|
+
return function (name) {
|
|
16171
|
+
var arguments$1 = arguments;
|
|
16172
|
+
|
|
16173
|
+
var args = [];
|
|
16174
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
16175
|
+
args[_i - 1] = arguments$1[_i];
|
|
16176
|
+
}
|
|
16177
|
+
var _a;
|
|
16178
|
+
var handle = (_a = handlers) === null || _a === void 0 ? void 0 : _a[name];
|
|
16179
|
+
if (handle) {
|
|
16180
|
+
handle.fns.apply(handle, args);
|
|
16181
|
+
}
|
|
16182
|
+
};
|
|
16183
|
+
};
|
|
16184
|
+
return {
|
|
16185
|
+
// Init
|
|
16186
|
+
bind: function (element, binding, vnode) {
|
|
16187
|
+
// auto class name
|
|
16188
|
+
if (element.className.indexOf(DEFAULT_CLASSES.containerClass) === -1) {
|
|
16189
|
+
element.className += ((element.className ? ' ' : '') + DEFAULT_CLASSES.containerClass);
|
|
16190
|
+
}
|
|
16191
|
+
// bind click event
|
|
16192
|
+
element.addEventListener('click', function (event) {
|
|
16193
|
+
var emitEvent = getEventEmiter(vnode);
|
|
16194
|
+
var swiper = getSwiperInstance(element, binding, vnode);
|
|
16195
|
+
handleClickSlideEvent(swiper, event, emitEvent);
|
|
16196
|
+
});
|
|
16197
|
+
},
|
|
16198
|
+
// DOM inserted
|
|
16199
|
+
inserted: function (element, binding, vnode) {
|
|
16200
|
+
var context = vnode.context;
|
|
16201
|
+
var swiperOptions = getSwipeOptions(binding);
|
|
16202
|
+
var instanceName = getSwiperInstanceName(element, binding, vnode);
|
|
16203
|
+
var emitEvent = getEventEmiter(vnode);
|
|
16204
|
+
var vueContext = context;
|
|
16205
|
+
var swiper = vueContext === null || vueContext === void 0 ? void 0 : vueContext[instanceName];
|
|
16206
|
+
// Swiper will destroy but not delete instance, when used <keep-alive>
|
|
16207
|
+
if (!swiper || swiper.destroyed) {
|
|
16208
|
+
swiper = new SwiperClass(element, swiperOptions);
|
|
16209
|
+
vueContext[instanceName] = swiper;
|
|
16210
|
+
bindSwiperEvents(swiper, emitEvent);
|
|
16211
|
+
emitEvent(ComponentEvents.Ready, swiper);
|
|
16212
|
+
// MARK: Reinstance when the nexttick with <keep-alive>
|
|
16213
|
+
// Vue.nextTick(instancing) | setTimeout(instancing)
|
|
16214
|
+
}
|
|
16215
|
+
},
|
|
16216
|
+
// On options changed or DOM updated
|
|
16217
|
+
componentUpdated: function (element, binding, vnode) {
|
|
16218
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
16219
|
+
var autoUpdate = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoUpdate);
|
|
16220
|
+
if (getBooleanValueByInput(autoUpdate)) {
|
|
16221
|
+
var swiper = getSwiperInstance(element, binding, vnode);
|
|
16222
|
+
if (swiper) {
|
|
16223
|
+
var swiperOptions = getSwipeOptions(binding);
|
|
16224
|
+
var isLoop = swiperOptions.loop;
|
|
16225
|
+
if (isLoop) {
|
|
16226
|
+
(_b = (_a = swiper) === null || _a === void 0 ? void 0 : _a.loopDestroy) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
16227
|
+
}
|
|
16228
|
+
(_c = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _c === void 0 ? void 0 : _c.call(swiper);
|
|
16229
|
+
(_e = (_d = swiper.navigation) === null || _d === void 0 ? void 0 : _d.update) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
16230
|
+
(_g = (_f = swiper.pagination) === null || _f === void 0 ? void 0 : _f.render) === null || _g === void 0 ? void 0 : _g.call(_f);
|
|
16231
|
+
(_j = (_h = swiper.pagination) === null || _h === void 0 ? void 0 : _h.update) === null || _j === void 0 ? void 0 : _j.call(_h);
|
|
16232
|
+
if (isLoop) {
|
|
16233
|
+
(_l = (_k = swiper) === null || _k === void 0 ? void 0 : _k.loopCreate) === null || _l === void 0 ? void 0 : _l.call(_k);
|
|
16234
|
+
(_m = swiper === null || swiper === void 0 ? void 0 : swiper.update) === null || _m === void 0 ? void 0 : _m.call(swiper);
|
|
16235
|
+
}
|
|
16236
|
+
}
|
|
16237
|
+
}
|
|
16238
|
+
},
|
|
16239
|
+
// Destroy this directive
|
|
16240
|
+
unbind: function (element, binding, vnode) {
|
|
16241
|
+
var _a;
|
|
16242
|
+
var autoDestroy = getStandardisedOptionByAttrs(vnode, ComponentPropNames.AutoDestroy);
|
|
16243
|
+
if (getBooleanValueByInput(autoDestroy)) {
|
|
16244
|
+
var swiper = getSwiperInstance(element, binding, vnode);
|
|
16245
|
+
if (swiper && swiper.initialized) {
|
|
16246
|
+
(_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)));
|
|
16247
|
+
}
|
|
16248
|
+
}
|
|
16249
|
+
}
|
|
16250
|
+
};
|
|
16251
|
+
}/**
|
|
16252
|
+
* @file vue-awesome-swiper
|
|
16253
|
+
* @module SwiperComponent
|
|
16254
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16255
|
+
*/
|
|
16256
|
+
var SlotNames;
|
|
16257
|
+
(function (SlotNames) {
|
|
16258
|
+
SlotNames["ParallaxBg"] = "parallax-bg";
|
|
16259
|
+
SlotNames["Pagination"] = "pagination";
|
|
16260
|
+
SlotNames["Scrollbar"] = "scrollbar";
|
|
16261
|
+
SlotNames["PrevButton"] = "button-prev";
|
|
16262
|
+
SlotNames["NextButton"] = "button-next";
|
|
16263
|
+
})(SlotNames || (SlotNames = {}));
|
|
16264
|
+
function getSwiperComponent(SwiperClass) {
|
|
16265
|
+
var _a;
|
|
16266
|
+
return Vue.extend({
|
|
16267
|
+
name: CoreNames.SwiperComponent,
|
|
16268
|
+
props: (_a = {
|
|
16269
|
+
defaultOptions: {
|
|
16270
|
+
type: Object,
|
|
16271
|
+
required: false,
|
|
16272
|
+
default: function () { return ({}); }
|
|
16273
|
+
},
|
|
16274
|
+
// eslint-disable-next-line vue/require-default-prop
|
|
16275
|
+
options: {
|
|
16276
|
+
type: Object,
|
|
16277
|
+
required: false
|
|
16278
|
+
}
|
|
16279
|
+
},
|
|
16280
|
+
_a[ComponentPropNames.AutoUpdate] = {
|
|
16281
|
+
type: Boolean,
|
|
16282
|
+
default: true
|
|
16283
|
+
},
|
|
16284
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/550/files
|
|
16285
|
+
_a[ComponentPropNames.AutoDestroy] = {
|
|
16286
|
+
type: Boolean,
|
|
16287
|
+
default: true
|
|
16288
|
+
},
|
|
16289
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/388
|
|
16290
|
+
_a[ComponentPropNames.DeleteInstanceOnDestroy] = {
|
|
16291
|
+
type: Boolean,
|
|
16292
|
+
required: false,
|
|
16293
|
+
default: true
|
|
16294
|
+
},
|
|
16295
|
+
_a[ComponentPropNames.CleanupStylesOnDestroy] = {
|
|
16296
|
+
type: Boolean,
|
|
16297
|
+
required: false,
|
|
16298
|
+
default: true
|
|
16299
|
+
},
|
|
16300
|
+
_a),
|
|
16301
|
+
data: function () {
|
|
16302
|
+
var _a;
|
|
16303
|
+
return _a = {},
|
|
16304
|
+
_a[CoreNames.SwiperInstance] = null,
|
|
16305
|
+
_a;
|
|
16306
|
+
},
|
|
16307
|
+
computed: {
|
|
16308
|
+
swiperInstance: {
|
|
16309
|
+
cache: false,
|
|
16310
|
+
set: function (swiper) {
|
|
16311
|
+
this[CoreNames.SwiperInstance] = swiper;
|
|
16312
|
+
},
|
|
16313
|
+
get: function () {
|
|
16314
|
+
return this[CoreNames.SwiperInstance];
|
|
16315
|
+
}
|
|
16316
|
+
},
|
|
16317
|
+
swiperOptions: function () {
|
|
16318
|
+
return this.options || this.defaultOptions;
|
|
16319
|
+
},
|
|
16320
|
+
wrapperClass: function () {
|
|
16321
|
+
return this.swiperOptions.wrapperClass || DEFAULT_CLASSES.wrapperClass;
|
|
16322
|
+
}
|
|
16323
|
+
},
|
|
16324
|
+
methods: {
|
|
16325
|
+
// Feature: click event
|
|
16326
|
+
handleSwiperClick: function (event) {
|
|
16327
|
+
handleClickSlideEvent(this.swiperInstance, event, this.$emit.bind(this));
|
|
16328
|
+
},
|
|
16329
|
+
autoReLoopSwiper: function () {
|
|
16330
|
+
var _a, _b;
|
|
16331
|
+
if (this.swiperInstance && this.swiperOptions.loop) {
|
|
16332
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/593
|
|
16333
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/544
|
|
16334
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/545/files
|
|
16335
|
+
var swiper = this.swiperInstance;
|
|
16336
|
+
(_a = swiper === null || swiper === void 0 ? void 0 : swiper.loopDestroy) === null || _a === void 0 ? void 0 : _a.call(swiper);
|
|
16337
|
+
(_b = swiper === null || swiper === void 0 ? void 0 : swiper.loopCreate) === null || _b === void 0 ? void 0 : _b.call(swiper);
|
|
16338
|
+
}
|
|
16339
|
+
},
|
|
16340
|
+
updateSwiper: function () {
|
|
16341
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
16342
|
+
if (this[ComponentPropNames.AutoUpdate] && this.swiperInstance) {
|
|
16343
|
+
this.autoReLoopSwiper();
|
|
16344
|
+
(_b = (_a = this.swiperInstance) === null || _a === void 0 ? void 0 : _a.update) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
16345
|
+
(_d = (_c = this.swiperInstance.navigation) === null || _c === void 0 ? void 0 : _c.update) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
16346
|
+
(_f = (_e = this.swiperInstance.pagination) === null || _e === void 0 ? void 0 : _e.render) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
16347
|
+
(_h = (_g = this.swiperInstance.pagination) === null || _g === void 0 ? void 0 : _g.update) === null || _h === void 0 ? void 0 : _h.call(_g);
|
|
16348
|
+
}
|
|
16349
|
+
},
|
|
16350
|
+
destroySwiper: function () {
|
|
16351
|
+
var _a, _b;
|
|
16352
|
+
if (this[ComponentPropNames.AutoDestroy] && this.swiperInstance) {
|
|
16353
|
+
// https://github.com/surmon-china/vue-awesome-swiper/pull/341
|
|
16354
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/340
|
|
16355
|
+
if (this.swiperInstance.initialized) {
|
|
16356
|
+
(_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]);
|
|
16357
|
+
}
|
|
16358
|
+
}
|
|
16359
|
+
},
|
|
16360
|
+
initSwiper: function () {
|
|
16361
|
+
this.swiperInstance = new SwiperClass(this.$el, this.swiperOptions);
|
|
16362
|
+
bindSwiperEvents(this.swiperInstance, this.$emit.bind(this));
|
|
16363
|
+
this.$emit(ComponentEvents.Ready, this.swiperInstance);
|
|
16364
|
+
}
|
|
16365
|
+
},
|
|
16366
|
+
mounted: function () {
|
|
16367
|
+
if (!this.swiperInstance) {
|
|
16368
|
+
this.initSwiper();
|
|
16369
|
+
}
|
|
16370
|
+
},
|
|
16371
|
+
// Update swiper when the parent component activated with `keep-alive`.
|
|
16372
|
+
activated: function () {
|
|
16373
|
+
this.updateSwiper();
|
|
16374
|
+
},
|
|
16375
|
+
updated: function () {
|
|
16376
|
+
this.updateSwiper();
|
|
16377
|
+
},
|
|
16378
|
+
beforeDestroy: function () {
|
|
16379
|
+
// https://github.com/surmon-china/vue-awesome-swiper/commit/2924a9d4d3d1cf51c0d46076410b1f804b2b8a43#diff-7f4e0261ac562c0f354cb91a1ca8864f
|
|
16380
|
+
this.$nextTick(this.destroySwiper);
|
|
16381
|
+
},
|
|
16382
|
+
render: function (createElement) {
|
|
16383
|
+
return createElement('div', {
|
|
16384
|
+
staticClass: DEFAULT_CLASSES.containerClass,
|
|
16385
|
+
on: {
|
|
16386
|
+
click: this.handleSwiperClick
|
|
16387
|
+
}
|
|
16388
|
+
}, [
|
|
16389
|
+
this.$slots[SlotNames.ParallaxBg],
|
|
16390
|
+
createElement('div', {
|
|
16391
|
+
class: this.wrapperClass
|
|
16392
|
+
}, this.$slots.default),
|
|
16393
|
+
this.$slots[SlotNames.Pagination],
|
|
16394
|
+
this.$slots[SlotNames.PrevButton],
|
|
16395
|
+
this.$slots[SlotNames.NextButton],
|
|
16396
|
+
this.$slots[SlotNames.Scrollbar]
|
|
16397
|
+
]);
|
|
16398
|
+
}
|
|
16399
|
+
});
|
|
16400
|
+
}/**
|
|
16401
|
+
* @file vue-awesome-swiper
|
|
16402
|
+
* @module SwiperSlideComponent
|
|
16403
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16404
|
+
*/
|
|
16405
|
+
var SwiperSlideComponent = Vue.extend({
|
|
16406
|
+
name: CoreNames.SwiperSlideComponent,
|
|
16407
|
+
computed: {
|
|
16408
|
+
slideClass: function () {
|
|
16409
|
+
var _a, _b;
|
|
16410
|
+
return ((_b = (_a = this.$parent) === null || _a === void 0 ? void 0 : _a.swiperOptions) === null || _b === void 0 ? void 0 : _b.slideClass) || DEFAULT_CLASSES.slideClass;
|
|
16411
|
+
}
|
|
16412
|
+
},
|
|
16413
|
+
methods: {
|
|
16414
|
+
update: function () {
|
|
16415
|
+
var _a;
|
|
16416
|
+
var parent = this.$parent;
|
|
16417
|
+
// https://github.com/surmon-china/vue-awesome-swiper/issues/632
|
|
16418
|
+
if (parent[ComponentPropNames.AutoUpdate]) {
|
|
16419
|
+
(_a = parent === null || parent === void 0 ? void 0 : parent.swiperInstance) === null || _a === void 0 ? void 0 : _a.update();
|
|
16420
|
+
}
|
|
16421
|
+
}
|
|
16422
|
+
},
|
|
16423
|
+
mounted: function () {
|
|
16424
|
+
this.update();
|
|
16425
|
+
},
|
|
16426
|
+
updated: function () {
|
|
16427
|
+
this.update();
|
|
16428
|
+
},
|
|
16429
|
+
render: function (createElement) {
|
|
16430
|
+
return createElement('div', {
|
|
16431
|
+
class: this.slideClass
|
|
16432
|
+
}, this.$slots.default);
|
|
16433
|
+
}
|
|
16434
|
+
});/**
|
|
16435
|
+
* @file vue-awesome-swiper
|
|
16436
|
+
* @module exporter
|
|
16437
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16438
|
+
*/
|
|
16439
|
+
var getInstaller = function (SwiperClass) {
|
|
16440
|
+
var install = function (Vue, globalOptions) {
|
|
16441
|
+
if (install.installed)
|
|
16442
|
+
{ return; }
|
|
16443
|
+
var SwiperComponent = getSwiperComponent(SwiperClass);
|
|
16444
|
+
if (globalOptions) {
|
|
16445
|
+
SwiperComponent.options.props.defaultOptions.default = function () { return globalOptions; };
|
|
16446
|
+
}
|
|
16447
|
+
Vue.component(CoreNames.SwiperComponent, SwiperComponent);
|
|
16448
|
+
Vue.component(CoreNames.SwiperSlideComponent, SwiperSlideComponent);
|
|
16449
|
+
Vue.directive(CoreNames.SwiperDirective, getDirective(SwiperClass, globalOptions));
|
|
16450
|
+
install.installed = true;
|
|
16451
|
+
};
|
|
16452
|
+
return install;
|
|
16453
|
+
};
|
|
16454
|
+
function exporter(SwiperClass) {
|
|
16455
|
+
var _a;
|
|
16456
|
+
return _a = {
|
|
16457
|
+
version: '4.1.1',
|
|
16458
|
+
install: getInstaller(SwiperClass),
|
|
16459
|
+
directive: getDirective(SwiperClass)
|
|
16460
|
+
},
|
|
16461
|
+
_a[CoreNames.SwiperComponent] = getSwiperComponent(SwiperClass),
|
|
16462
|
+
_a[CoreNames.SwiperSlideComponent] = SwiperSlideComponent,
|
|
16463
|
+
_a;
|
|
16464
|
+
}/**
|
|
16465
|
+
* @file vue-awesome-swiper
|
|
16466
|
+
* @module default-export
|
|
16467
|
+
* @author Surmon <https://github.com/surmon-china>
|
|
16468
|
+
*/
|
|
16469
|
+
var VueAwesomeSwiper = exporter(SwiperClass);
|
|
16470
|
+
var version = VueAwesomeSwiper.version;
|
|
16471
|
+
var install = VueAwesomeSwiper.install;
|
|
16472
|
+
var directive = VueAwesomeSwiper.directive;
|
|
16473
|
+
var Swiper = VueAwesomeSwiper.Swiper;
|
|
16474
|
+
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});})));
|
|
16475
|
+
|
|
16449
16476
|
/***/ }),
|
|
16450
16477
|
|
|
16451
16478
|
/***/ "ef27":
|