@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406095",
4
+ "version": "0.1.230406097",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -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('transparent')"
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)
@@ -447,8 +447,6 @@
447
447
  <br />
448
448
  <br />
449
449
 
450
- <pre class="text-xs break-all">{{ item.instance }}</pre>
451
-
452
450
  </div>
453
451
  </template>
454
452
 
@@ -695,8 +695,8 @@ export default{
695
695
  }, 300),
696
696
 
697
697
  saveLayout: throttle(function(reload = true){
698
- //this.layout.headers = (this.layout.headers ?? []).map((_) => createComponentInstance(_))
699
- //this.layout.footers = (this.layout.footers ?? []).map((_) => createComponentInstance(_))
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-col' ], gap: [],
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',