@windward/core 0.21.0 → 0.21.1
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/CHANGELOG.md +3 -0
- package/components/utils/TinyMCEWrapper.vue +17 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
</slot>
|
|
38
38
|
</div>
|
|
39
39
|
<v-btn-toggle
|
|
40
|
-
v-if="
|
|
40
|
+
v-if="hasActions"
|
|
41
41
|
dense
|
|
42
42
|
multiple
|
|
43
43
|
class="pt-1 d-flex justify-end"
|
|
44
44
|
>
|
|
45
45
|
<slot name="actions-prepend" :render="render"></slot>
|
|
46
46
|
<slot name="actions" :render="render">
|
|
47
|
-
<v-btn-toggle dense>
|
|
47
|
+
<v-btn-toggle v-if="allowRead && !render" dense>
|
|
48
48
|
<v-btn color="primary" outlined @click="read">
|
|
49
49
|
<v-icon> mdi-play</v-icon>
|
|
50
50
|
</v-btn>
|
|
@@ -164,6 +164,21 @@ export default {
|
|
|
164
164
|
},
|
|
165
165
|
|
|
166
166
|
computed: {
|
|
167
|
+
hasActions() {
|
|
168
|
+
if (this.allowRead && !render) {
|
|
169
|
+
return true
|
|
170
|
+
}
|
|
171
|
+
// reach into parent text editor to see if a slot has been used.
|
|
172
|
+
// Cant access this.$slots when daisy chained like we're doing with texteditor
|
|
173
|
+
if (_.isEmpty(this.$parent) || _.isEmpty(this.$parent.$slots)) {
|
|
174
|
+
return false
|
|
175
|
+
}
|
|
176
|
+
return (
|
|
177
|
+
typeof this.$parent.$slots['actions-prepend'] !== 'undefined' ||
|
|
178
|
+
typeof this.$parent.$slots['actions'] !== 'undefined' ||
|
|
179
|
+
typeof this.$parent.$slots['actions-append'] !== 'undefined'
|
|
180
|
+
)
|
|
181
|
+
},
|
|
167
182
|
dataCy() {
|
|
168
183
|
return (
|
|
169
184
|
this.dataKey ||
|