@asd20/ui 3.2.563 → 3.2.564

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.563",
8
+ "version": "3.2.564",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -200,18 +200,41 @@ export default {
200
200
 
201
201
  // this.tabs ? this.tabsList[0].hash : 'one',
202
202
  },
203
+ // created() {
204
+ // if (typeof window !== 'undefined' && this.tabsList.length) {
205
+ // window.location.hash = this.tabsList[0].hash
206
+ // console.log(this.tabsList[0].hash)
207
+ // if (
208
+ // typeof window !== 'undefined' &&
209
+ // window.location.hash.indexOf('#tab-') > -1
210
+ // ) {
211
+ // this.tab = window.location.hash
212
+ // console.log(window.location.hash)
213
+ // }
214
+ // window.focus(this.tab)
215
+ // }
216
+ // },
217
+
203
218
  created() {
204
- if (typeof window !== 'undefined' && this.tabsList.length) {
205
- window.location.hash = this.tabsList[0].hash
206
- if (
207
- typeof window !== 'undefined' &&
208
- window.location.hash.indexOf('#tab-') > -1
209
- ) {
219
+ if (
220
+ typeof window !== 'undefined' &&
221
+ window.location.hash.indexOf('#tab-') > -1
222
+ ) {
223
+ this.tab = window.location.hash
224
+ console.log('#tab-check=', window.location.hash)
225
+ } else {
226
+ if (typeof window !== 'undefined' && this.tabsList.length) {
227
+ window.location.hash = this.tabsList[0].hash
210
228
  this.tab = window.location.hash
229
+ console.log('forced tab =', this.tabsList[0].hash)
211
230
  }
212
- window.focus(this.tab)
213
231
  }
232
+ window.focus(this.tab)
233
+ },
234
+ mounted() {
235
+ window.focus(this.tab)
214
236
  },
237
+
215
238
  computed: {
216
239
  pageHeaderContent() {
217
240
  return {