@mixd-id/web-scaffold 0.1.230406154 → 0.1.230406155
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
package/src/components/Radio.vue
CHANGED
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
<div class="flex flex-row gap-2">
|
|
155
155
|
<label class="flex-1 text-text-400">{{ $t('Header')}}</label>
|
|
156
156
|
<button type="button" class="text-primary"
|
|
157
|
-
@click="$refs.webPageComponentSelector.open({ items:layout.headers })">
|
|
157
|
+
@click="$refs.webPageComponentSelector.open({ items:layout.headers, isLayout:true })">
|
|
158
158
|
Add Header
|
|
159
159
|
</button>
|
|
160
160
|
</div>
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
<div class="flex flex-row gap-2">
|
|
175
175
|
<label class="flex-1 text-text-400">{{ $t('Footer')}}</label>
|
|
176
176
|
<button type="button" class="text-primary"
|
|
177
|
-
@click="$refs.webPageComponentSelector.open({ items:layout.footers })">
|
|
177
|
+
@click="$refs.webPageComponentSelector.open({ items:layout.footers, isLayout:true })">
|
|
178
178
|
Add Footer
|
|
179
179
|
</button>
|
|
180
180
|
</div>
|
|
@@ -513,7 +513,7 @@ export default{
|
|
|
513
513
|
|
|
514
514
|
methods: {
|
|
515
515
|
|
|
516
|
-
addComponent({ type, items }){
|
|
516
|
+
addComponent({ type, items, isLayout }){
|
|
517
517
|
|
|
518
518
|
let obj = this.availableComponents.find((_) => _.type === type)
|
|
519
519
|
obj = JSON.parse(JSON.stringify(obj))
|
|
@@ -529,6 +529,8 @@ export default{
|
|
|
529
529
|
this.store.selectedComponent = [ obj.uid ]
|
|
530
530
|
|
|
531
531
|
this.$refs.webPageComponentSelector.close()
|
|
532
|
+
|
|
533
|
+
isLayout ? this.saveLayout() : this.save()
|
|
532
534
|
},
|
|
533
535
|
|
|
534
536
|
addDatasource(datasource){
|