no preview support for shadow control (for themes 3 editor)
This commit is contained in:
parent
9370ee8c17
commit
22cc96705a
|
@ -34,12 +34,11 @@ const toModel = (object = {}) => ({
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: [
|
props: [
|
||||||
'modelValue', 'fallback', 'separateInset'
|
'modelValue', 'fallback', 'separateInset', 'noPreview'
|
||||||
],
|
],
|
||||||
emits: ['update:modelValue'],
|
emits: ['update:modelValue'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
lightGrid: false,
|
|
||||||
selectedId: 0,
|
selectedId: 0,
|
||||||
// TODO there are some bugs regarding display of array (it's not getting updated when deleting for some reason)
|
// TODO there are some bugs regarding display of array (it's not getting updated when deleting for some reason)
|
||||||
cValue: (this.modelValue ?? this.fallback ?? []).map(toModel)
|
cValue: (this.modelValue ?? this.fallback ?? []).map(toModel)
|
||||||
|
|
|
@ -68,6 +68,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.-no-preview {
|
||||||
|
.shadow-tweak {
|
||||||
|
order: 0;
|
||||||
|
flex: 2 0 20em;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.inset-alert {
|
.inset-alert {
|
||||||
padding: 0.25em 0.5em;
|
padding: 0.25em 0.5em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="label shadow-control"
|
class="label shadow-control"
|
||||||
:class="{ disabled: !present }"
|
:class="{ disabled: !present, '-no-preview': noPreview }"
|
||||||
>
|
>
|
||||||
<ComponentPreview
|
<ComponentPreview
|
||||||
|
v-if="!noPreview"
|
||||||
class="shadow-preview"
|
class="shadow-preview"
|
||||||
:shadow-control="true"
|
:shadow-control="true"
|
||||||
:shadow="selected"
|
:shadow="selected"
|
||||||
|
|
Loading…
Reference in a new issue