eoss-ui 0.5.96 → 0.5.97

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/lib/main.js CHANGED
@@ -3979,81 +3979,83 @@ module.exports = require("wujie-vue2");
3979
3979
  // ESM COMPAT FLAG
3980
3980
  __webpack_require__.r(__webpack_exports__);
3981
3981
 
3982
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=f52b5d68&
3982
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=c342434c&
3983
3983
  var render = function () {
3984
3984
  var _vm = this
3985
3985
  var _h = _vm.$createElement
3986
3986
  var _c = _vm._self._c || _h
3987
- return _c(
3988
- "div",
3989
- { staticClass: "es-main-box" },
3990
- [
3991
- _vm.type == "simplicity"
3992
- ? _c(
3993
- "simplicity",
3994
- _vm._g(
3995
- _vm._b(
3996
- { ref: "main", attrs: { appCode: _vm.appCode } },
3987
+ return _vm.isLogin
3988
+ ? _c(
3989
+ "div",
3990
+ { staticClass: "es-main-box" },
3991
+ [
3992
+ _vm.type == "simplicity"
3993
+ ? _c(
3997
3994
  "simplicity",
3998
- _vm.$attrs,
3995
+ _vm._g(
3996
+ _vm._b(
3997
+ { ref: "main", attrs: { appCode: _vm.appCode } },
3998
+ "simplicity",
3999
+ _vm.$attrs,
4000
+ false
4001
+ ),
4002
+ _vm.$listeners
4003
+ )
4004
+ )
4005
+ : _c(
4006
+ "main-default",
4007
+ _vm._g(
4008
+ _vm._b({ ref: "main" }, "main-default", _vm.$attrs, false),
4009
+ _vm.$listeners
4010
+ )
4011
+ ),
4012
+ _vm._l(_vm.dialogs, function (item, index) {
4013
+ return _c(
4014
+ "es-dialog",
4015
+ _vm._b(
4016
+ {
4017
+ key: item.id || item.name || index,
4018
+ attrs: { visible: _vm.visibles[index], size: "md" },
4019
+ on: {
4020
+ "update:visible": function ($event) {
4021
+ _vm.$set(_vm.visibles, index, $event)
4022
+ },
4023
+ closed: function ($event) {
4024
+ _vm.handleClosed(item, index)
4025
+ },
4026
+ },
4027
+ },
4028
+ "es-dialog",
4029
+ _vm.exclAttribute({
4030
+ data: item,
4031
+ attrs: ["visible", "url"],
4032
+ }),
3999
4033
  false
4000
4034
  ),
4001
- _vm.$listeners
4002
- )
4003
- )
4004
- : _c(
4005
- "main-default",
4006
- _vm._g(
4007
- _vm._b({ ref: "main" }, "main-default", _vm.$attrs, false),
4008
- _vm.$listeners
4035
+ [
4036
+ _vm.visibles[index]
4037
+ ? _c("iframe", {
4038
+ attrs: {
4039
+ width: "100%",
4040
+ height: "100%",
4041
+ frameborder: "0",
4042
+ src: item.url,
4043
+ },
4044
+ })
4045
+ : _vm._e(),
4046
+ ]
4009
4047
  )
4010
- ),
4011
- _vm._l(_vm.dialogs, function (item, index) {
4012
- return _c(
4013
- "es-dialog",
4014
- _vm._b(
4015
- {
4016
- key: item.id || item.name || index,
4017
- attrs: { visible: _vm.visibles[index], size: "md" },
4018
- on: {
4019
- "update:visible": function ($event) {
4020
- _vm.$set(_vm.visibles, index, $event)
4021
- },
4022
- closed: function ($event) {
4023
- _vm.handleClosed(item, index)
4024
- },
4025
- },
4026
- },
4027
- "es-dialog",
4028
- _vm.exclAttribute({
4029
- data: item,
4030
- attrs: ["visible", "url"],
4031
- }),
4032
- false
4033
- ),
4034
- [
4035
- _vm.visibles[index]
4036
- ? _c("iframe", {
4037
- attrs: {
4038
- width: "100%",
4039
- height: "100%",
4040
- frameborder: "0",
4041
- src: item.url,
4042
- },
4043
- })
4044
- : _vm._e(),
4045
- ]
4046
- )
4047
- }),
4048
- ],
4049
- 2
4050
- )
4048
+ }),
4049
+ ],
4050
+ 2
4051
+ )
4052
+ : _vm._e()
4051
4053
  }
4052
4054
  var staticRenderFns = []
4053
4055
  render._withStripped = true
4054
4056
 
4055
4057
 
4056
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=f52b5d68&
4058
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=c342434c&
4057
4059
 
4058
4060
  // EXTERNAL MODULE: ./src/config/image.js
4059
4061
  var config_image = __webpack_require__(18);
@@ -15498,7 +15500,8 @@ var bus = external_wujie_vue2_default.a.bus;
15498
15500
  appCode: '',
15499
15501
  params: {},
15500
15502
  dialogs: [],
15501
- visibles: []
15503
+ visibles: [],
15504
+ isLogin: false
15502
15505
  };
15503
15506
  },
15504
15507
  created: function created() {
@@ -15652,6 +15655,7 @@ var bus = external_wujie_vue2_default.a.bus;
15652
15655
  var _this3 = this;
15653
15656
 
15654
15657
  var token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
15658
+ this.isLogin = token ? true : false;
15655
15659
  if (!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType')) {
15656
15660
  return false;
15657
15661
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.96",
3
+ "version": "0.5.97",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="es-main-box">
2
+ <div class="es-main-box" v-if="isLogin">
3
3
  <simplicity
4
4
  ref="main"
5
5
  v-if="type == 'simplicity'"
@@ -90,7 +90,8 @@ export default {
90
90
  appCode: '',
91
91
  params: {},
92
92
  dialogs: [],
93
- visibles: []
93
+ visibles: [],
94
+ isLogin: false
94
95
  };
95
96
  },
96
97
  created() {
@@ -255,6 +256,7 @@ export default {
255
256
  getConfig(query) {
256
257
  const token =
257
258
  util.getStorage('token') || util.getStorage('Authorization');
259
+ this.isLogin = token ? true : false;
258
260
  if (
259
261
  !token &&
260
262
  Object.prototype.hasOwnProperty.call(query, 'serverId') &&
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.96',
124
+ version: '0.5.97',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,