eoss-ui 0.5.15 → 0.5.17

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.
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/input.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/login.js CHANGED
@@ -1965,11 +1965,7 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- if (to.path === '/main' || to.path === '/login') {
1969
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
- } else {
1971
- next && next();
1972
- }
1968
+ next && next();
1973
1969
  } else {
1974
1970
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1975
1971
  ajax({
package/lib/main.js CHANGED
@@ -1965,11 +1965,7 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- if (to.path === '/main' || to.path === '/login') {
1969
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
- } else {
1971
- next && next();
1972
- }
1968
+ next && next();
1973
1969
  } else {
1974
1970
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1975
1971
  ajax({
package/lib/nav.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/page.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/player.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/qr-code.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/select.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
@@ -1965,11 +1965,7 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- if (to.path === '/main' || to.path === '/login') {
1969
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
- } else {
1971
- next && next();
1972
- }
1968
+ next && next();
1973
1969
  } else {
1974
1970
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1975
1971
  ajax({
package/lib/selector.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/sizer.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/steps.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/switch.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/table-form.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/tabs.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/tips.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/tree-group.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/tree.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/upload.js CHANGED
@@ -1965,11 +1965,7 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- if (to.path === '/main' || to.path === '/login') {
1969
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
- } else {
1971
- next && next();
1972
- }
1968
+ next && next();
1973
1969
  } else {
1974
1970
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1975
1971
  ajax({
package/lib/utils/util.js CHANGED
@@ -1883,11 +1883,7 @@ var isLogined = function isLogined(_ref8) {
1883
1883
  // const logined = getStorage('logined');
1884
1884
  // eslint-disable-next-line eqeqeq
1885
1885
  if (token || cookie == true || cookie == 1) {
1886
- if (to.path === '/main' || to.path === '/login') {
1887
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1888
- } else {
1889
- next && next();
1890
- }
1886
+ next && next();
1891
1887
  } else {
1892
1888
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1893
1889
  ajax({
package/lib/wujie.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/lib/wxlogin.js CHANGED
@@ -1966,11 +1966,7 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- if (to.path === '/main' || to.path === '/login') {
1970
- window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
- } else {
1972
- next && next();
1973
- }
1969
+ next && next();
1974
1970
  } else {
1975
1971
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1976
1972
  ajax({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -468,8 +468,8 @@ export default {
468
468
  labelClassName: String,
469
469
  type: String,
470
470
  required: Boolean,
471
- width: String,
472
- minWidth: String,
471
+ width: [Number, String],
472
+ minWidth: [Number, String],
473
473
  hide: Boolean,
474
474
  showOverflowTooltip: Boolean,
475
475
  render: [Function, String],
@@ -321,7 +321,7 @@ export default {
321
321
  height: [Number, String],
322
322
  maxHeight: [Number, String],
323
323
  response: Function,
324
- minWidth: String,
324
+ minWidth: [Number, String],
325
325
  border: {
326
326
  type: Boolean,
327
327
  default: false
@@ -491,6 +491,14 @@ export default {
491
491
  }
492
492
  },
493
493
  watch: {
494
+ showToolbar() {
495
+ this.resetHeight();
496
+ this.doLayout();
497
+ },
498
+ page() {
499
+ this.resetHeight();
500
+ this.doLayout();
501
+ },
494
502
  scale: {
495
503
  deep: true,
496
504
  handler(val) {
@@ -819,7 +827,9 @@ export default {
819
827
  .then((res) => {
820
828
  this.tableLoading = false;
821
829
  if (res.rCode === 0 || res.status === 'success') {
822
- this.$refs.oaTable.resetScroll(0, 0);
830
+ this.$refs.oaTable &&
831
+ this.$refs.oaTable.resetScroll &&
832
+ this.$refs.oaTable.resetScroll(0, 0);
823
833
  let results =
824
834
  this.parseData !== undefined
825
835
  ? this.parseData(res.results || res.data || res)
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.5.15',
120
+ version: '0.5.17',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -1901,11 +1901,7 @@ const isLogined = function ({
1901
1901
  // const logined = getStorage('logined');
1902
1902
  // eslint-disable-next-line eqeqeq
1903
1903
  if (token || cookie == true || cookie == 1) {
1904
- if (to.path === '/main' || to.path === '/login') {
1905
- window.location.replace(urlJoinParams({ url: `.${to.path}.html`, param: to.query }));
1906
- } else {
1907
- next && next();
1908
- }
1904
+ next && next();
1909
1905
  } else {
1910
1906
  if (
1911
1907
  !token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') &&