eztech-core-components 1.0.64 → 1.0.66

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.
@@ -3,15 +3,14 @@
3
3
  <div v-if="loading" class="bg-[#525659] px-20 h-[900px] flex items-center justify-center text-slate-200 text-lg font-medium gap-2">
4
4
  <i class="el-icon-loading" /> Түр хүлээнэ үү..
5
5
  </div>
6
- <div v-else-if="href" class="relative w-full h-[900px]">
6
+ <div v-else-if="hrefBlob" class="relative w-full h-[900px]">
7
7
  <iframe
8
8
  id="pdfFrame"
9
- :src="href + pdfUrlParams"
9
+ :src="hrefBlob + pdfUrlParams"
10
10
  class="w-full h-full"
11
11
  frameborder="0"
12
12
  @load="handlePrintPdf"
13
13
  />
14
- <div class="absolute inset-0 bg-transparent pointer-events-none" @mousedown.right.prevent />
15
14
  </div>
16
15
  </el-dialog>
17
16
  </template>
@@ -22,7 +21,7 @@ export default {
22
21
  return {
23
22
  pdfDownload: false,
24
23
  loading: false,
25
- href: null,
24
+ hrefBlob: null,
26
25
  numPages: 0
27
26
  }
28
27
  },
@@ -40,7 +39,7 @@ export default {
40
39
  },
41
40
  set () {
42
41
  if (!this.isPdfPrint) {
43
- this.href = null
42
+ this.hrefBlob = null
44
43
  }
45
44
  this.set_pdf_url({ url: null, title: '' })
46
45
  }
@@ -58,7 +57,7 @@ export default {
58
57
  async handlePrint () {
59
58
  try {
60
59
  this.loading = true
61
- this.href = null
60
+ this.hrefBlob = null
62
61
  const response = await this.$axios.get(this.pdfUrl, {
63
62
  responseType: 'blob',
64
63
  params: {
@@ -66,7 +65,7 @@ export default {
66
65
  }
67
66
  })
68
67
  const pdfUrl = URL.createObjectURL(response.data)
69
- this.href = pdfUrl
68
+ this.hrefBlob = pdfUrl
70
69
  } catch (err) {
71
70
  this.$showErrorBlob(err)
72
71
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eztech-core-components",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },