@mixd-id/web-scaffold 0.1.230406095 → 0.1.230406097
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
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="grid grid-cols-2 gap-4">
|
|
18
|
-
<button type="button" @click="select('
|
|
18
|
+
<button type="button" @click="select('')"
|
|
19
19
|
class="w-full p-1 border-text-100 border-[1px] rounded-lg">None</button>
|
|
20
20
|
<button type="button" v-if="mode !== 'class' && Boolean(customColor)"
|
|
21
21
|
class="w-full p-1 border-text-100 border-[1px] rounded-lg"
|
|
@@ -70,9 +70,8 @@ export default{
|
|
|
70
70
|
methods: {
|
|
71
71
|
|
|
72
72
|
select(color){
|
|
73
|
-
console.log('select', this.mode, this.prefix, color)
|
|
74
73
|
if(this.mode === 'class'){
|
|
75
|
-
this.$emit('update:modelValue', this.prefix + color)
|
|
74
|
+
this.$emit('update:modelValue', color ? this.prefix + color : '')
|
|
76
75
|
}
|
|
77
76
|
else{
|
|
78
77
|
this.$emit('update:modelValue', color)
|
|
@@ -695,8 +695,8 @@ export default{
|
|
|
695
695
|
}, 300),
|
|
696
696
|
|
|
697
697
|
saveLayout: throttle(function(reload = true){
|
|
698
|
-
|
|
699
|
-
|
|
698
|
+
this.layout.headers = (this.layout.headers ?? []).map((_) => this.createComponentInstance(_))
|
|
699
|
+
this.layout.footers = (this.layout.footers ?? []).map((_) => this.createComponentInstance(_))
|
|
700
700
|
|
|
701
701
|
this.socketEmit2('layout.save', this.layout)
|
|
702
702
|
.then(() => {
|
|
@@ -947,7 +947,7 @@ export default{
|
|
|
947
947
|
}},
|
|
948
948
|
|
|
949
949
|
{ type:'Flex', name:'Flex', group:'Layouts', items:[], props:{
|
|
950
|
-
flexColumns: [], direction: [ 'flex-
|
|
950
|
+
flexColumns: [], direction: [ 'flex-row' ], gap: [],
|
|
951
951
|
}},
|
|
952
952
|
|
|
953
953
|
{ type:'Grid', name:'Grid', group:'Layouts', items:[], gap:[], props:{
|
|
@@ -990,6 +990,7 @@ export default{
|
|
|
990
990
|
'aspectRatio',
|
|
991
991
|
'bdSize', 'bdColor', 'bdRadius', 'bdStyle',
|
|
992
992
|
'bgColors', 'bgSize', 'bgPosition', 'bgRepeat',
|
|
993
|
+
'gap',
|
|
993
994
|
'padding', 'margin',
|
|
994
995
|
'direction', 'columns', 'display',
|
|
995
996
|
'width', 'minWidth', 'maxWidth',
|