free-fe-core-modules 0.0.51 → 0.0.52
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.
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:key="index"
|
|
19
19
|
clickable
|
|
20
20
|
v-close-popup
|
|
21
|
-
@click="
|
|
21
|
+
@click="setTheme(tm)"
|
|
22
22
|
:active="theme === tm"
|
|
23
23
|
>
|
|
24
24
|
<q-item-section>{{$t(tm)}}</q-item-section>
|
|
@@ -39,6 +39,7 @@ export default defineComponent({
|
|
|
39
39
|
icon: { type: String, default: 'fas fa-palette' },
|
|
40
40
|
dense: { type: Boolean, default: true },
|
|
41
41
|
hide: { type: Boolean, default: false },
|
|
42
|
+
reload: { type: Boolean, default: false },
|
|
42
43
|
},
|
|
43
44
|
data() {
|
|
44
45
|
return {
|
|
@@ -102,6 +103,17 @@ export default defineComponent({
|
|
|
102
103
|
const appStore = useAppStore();
|
|
103
104
|
this.theme = appStore.theme || this.ctx.config.defaultTheme || (this.themes && (this.themes.length > 0) && this.themes[0]);
|
|
104
105
|
},
|
|
106
|
+
methods: {
|
|
107
|
+
setTheme(tm) {
|
|
108
|
+
if (!tm || this.theme === tm) return;
|
|
109
|
+
|
|
110
|
+
this.theme = tm;
|
|
111
|
+
|
|
112
|
+
if (this.reload) {
|
|
113
|
+
window.location.reload();
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
},
|
|
105
117
|
});
|
|
106
118
|
</script>
|
|
107
119
|
|
|
@@ -157,7 +157,7 @@ export default defineComponent({
|
|
|
157
157
|
|
|
158
158
|
const inputNode = computed(() => h(QInput, {
|
|
159
159
|
type: mask.value ? 'text' : 'number',
|
|
160
|
-
mask,
|
|
160
|
+
mask: mask.value,
|
|
161
161
|
maxlength: props.Field.Options?.MaxLength,
|
|
162
162
|
autocomplete: 'off',
|
|
163
163
|
// bottomSlots: true,
|
|
@@ -166,10 +166,10 @@
|
|
|
166
166
|
{{$t(option.opt.Tooltip) || ''}}
|
|
167
167
|
</q-tooltip>
|
|
168
168
|
<div class="option-inner-extra" v-if="option.InnerExtra?.length">
|
|
169
|
-
<
|
|
169
|
+
<free-field
|
|
170
170
|
v-for="(fld, idx) in option.InnerExtra || []" :key="idx"
|
|
171
171
|
:Field="fld"
|
|
172
|
-
:values="data"></
|
|
172
|
+
:values="data"></free-field>
|
|
173
173
|
</div>
|
|
174
174
|
</q-checkbox>
|
|
175
175
|
</div>
|