@thinkpixellab-public/px-vue 3.0.94 → 3.0.95

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.
@@ -15,7 +15,9 @@
15
15
 
16
16
  <!-- slot -->
17
17
  <component v-else :class="[bem('inner'), innerClass]" :is="innerTag" ref="text">
18
- <slot />
18
+ <slot>
19
+ {{ text }}
20
+ </slot>
19
21
  </component>
20
22
  </component>
21
23
  </template>
@@ -41,6 +43,9 @@ export default {
41
43
  // html that gets set on the inner tag element
42
44
  html: { type: String, default: null },
43
45
 
46
+ // text that gets set on the inner tag element
47
+ text: { type: String, default: null },
48
+
44
49
  // set to false to disable the balancing alorithm
45
50
  enabled: { type: Boolean, default: true },
46
51
 
@@ -59,7 +64,7 @@ export default {
59
64
  },
60
65
  computed: {
61
66
  hasHtml() {
62
- return !!this.htmlValue;
67
+ return !!this.htmlValue && !this.text;
63
68
  },
64
69
 
65
70
  htmlValue() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "3.0.94",
3
+ "version": "3.0.95",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": "Pixel Lab",
6
6
  "license": "MIT",