Merge branch 'shadow-control-2.0' into themes3-grand-finale-maybe

This commit is contained in:
Henry Jameson 2024-09-25 23:20:31 +03:00
commit b4a1bcd070
3 changed files with 11 additions and 3 deletions

View file

@ -34,12 +34,11 @@ const toModel = (object = {}) => ({
export default {
props: [
'modelValue', 'fallback', 'separateInset'
'modelValue', 'fallback', 'separateInset', 'noPreview'
],
emits: ['update:modelValue'],
data () {
return {
lightGrid: false,
selectedId: 0,
// 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)

View file

@ -68,6 +68,14 @@
}
}
&.-no-preview {
.shadow-tweak {
order: 0;
flex: 2 0 20em;
max-width: 100%;
}
}
.inset-alert {
padding: 0.25em 0.5em;
}

View file

@ -1,9 +1,10 @@
<template>
<div
class="label shadow-control"
:class="{ disabled: !present }"
:class="{ disabled: !present, '-no-preview': noPreview }"
>
<ComponentPreview
v-if="!noPreview"
class="shadow-preview"
:shadow-control="true"
:shadow="selected"