@@ -229,10 +229,12 @@ export default Vue.extend({
width calc(100% - 32px)
text-align center
background var(--face)
- border-radius 8px
color var(--faceText)
opacity 0
+ &.round
+ border-radius 8px
+
> .icon
font-size 32px
diff --git a/src/client/app/common/views/components/page-editor/page-editor.input.vue b/src/client/app/common/views/components/page-editor/page-editor.input.vue
index 1f3754252b..4e13840439 100644
--- a/src/client/app/common/views/components/page-editor/page-editor.input.vue
+++ b/src/client/app/common/views/components/page-editor/page-editor.input.vue
@@ -43,6 +43,13 @@ export default Vue.extend({
created() {
if (this.value.name == null) Vue.set(this.value, 'name', '');
if (this.value.inputType == null) Vue.set(this.value, 'inputType', 'string');
+
+ this.$watch('value.inputType', t => {
+ if (this.value.default != null) {
+ if (t === 'number') this.value.default = parseInt(this.value.default, 10);
+ if (t === 'string') this.value.default = this.value.default.toString();
+ }
+ });
},
});
diff --git a/src/client/app/common/views/components/page-editor/page-editor.script-block.vue b/src/client/app/common/views/components/page-editor/page-editor.script-block.vue
index 3122832030..9554c75d04 100644
--- a/src/client/app/common/views/components/page-editor/page-editor.script-block.vue
+++ b/src/client/app/common/views/components/page-editor/page-editor.script-block.vue
@@ -16,8 +16,8 @@
-