@nixweb/nixloc-ui 0.0.187 → 0.0.188

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixweb/nixloc-ui",
3
- "version": "0.0.187",
3
+ "version": "0.0.188",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="div-main">
3
- <label>
3
+ <label v-if="title">
4
4
  <span class="title">{{ title }}</span>
5
5
  <span class="required" v-if="required">*</span>
6
6
  <Tip :field="field" :formName="formName" />
@@ -52,6 +52,12 @@ export default {
52
52
  },
53
53
  deep: true,
54
54
  },
55
+ initialValue: {
56
+ handler(initialValue) {
57
+ this.tos = initialValue;
58
+ },
59
+ deep: true,
60
+ },
55
61
  },
56
62
 
57
63
  };
@@ -1,22 +1,24 @@
1
1
  <template>
2
- <!-- used `style="height: 100vh;"` because without it in the Firefox 89 and Chrome 91 (June 2021) the `vue-pdf-app` is not rendering on the page, just empty space without any errors (since `vue-pdf-app` does not have height and it is the top tag in the generated markup ) -->
3
- <!-- or you can just wrap `vue-pdf-app` in <div> tag and set height for it via CSS (like in `Script tag (unpkg)` example below) -->
4
2
  <div>
5
- <vue-pdf-app
6
- style="height: 100vh"
7
- pdf="https://file-examples-com.github.io/uploads/2017/10/file-example_PDF_1MB.pdf"
8
- ></vue-pdf-app>
3
+ <iframe src="https://espaco.blob.core.windows.net/nixloc-preview/H0R078NIPG6BXT8703S0_3.pdf" width="100%" height="800px"></iframe>
9
4
  </div>
10
5
  </template>
11
6
 
12
7
  <script>
13
- import VuePdfApp from "vue-pdf-app";
14
8
 
15
9
  export default {
16
- components: {
17
- VuePdfApp,
18
- },
10
+ name: "PDFViewer",
11
+ props: {
12
+ pdfSrc: String,
13
+ }
19
14
  };
20
15
  </script>
21
16
 
22
- <style scoped></style>
17
+ <style>
18
+ iframe {
19
+ width: 100%;
20
+ height: 800px;
21
+ border: 0px;
22
+ border-radius: 10px;
23
+ }
24
+ </style>