@hostlink/nuxt-light 1.14.2 → 1.14.4
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/dist/module.json +1 -1
- package/dist/runtime/components/L/Fieldset.vue +32 -0
- package/dist/runtime/components/l-input.vue +4 -1
- package/dist/runtime/components/l-table.vue +1 -0
- package/dist/runtime/formkit/Form.vue +2 -2
- package/dist/runtime/formkit/index.js +0 -1
- package/dist/runtime/pages/System/database/table.vue +16 -1
- package/dist/runtime/pages/System/setting.vue +1 -1
- package/dist/runtime/pages/User/index.vue +0 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
|
|
3
|
+
import { useI18n } from 'vue-i18n';
|
|
4
|
+
|
|
5
|
+
const i18n = useI18n();
|
|
6
|
+
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
gutter: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "none"
|
|
11
|
+
},
|
|
12
|
+
label: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: null
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<style scoped>
|
|
22
|
+
body.body--dark fieldset{border-color:hsla(0,0%,100%,.6)}fieldset{border:1px solid rgba(0,0,0,.24);border-radius:4px;margin:0}legend{padding-left:.5rem;padding-right:.5rem}
|
|
23
|
+
</style>
|
|
24
|
+
<template>
|
|
25
|
+
<fieldset :class="`q-gutter-${props.gutter}`">
|
|
26
|
+
<legend v-if="props.label">{{ i18n.t(props.label) }}</legend>
|
|
27
|
+
<slot></slot>
|
|
28
|
+
|
|
29
|
+
{{ props }}
|
|
30
|
+
|
|
31
|
+
</fieldset>
|
|
32
|
+
</template>
|
|
@@ -5,7 +5,7 @@ import tc2sc from "../lib/tc2sc";
|
|
|
5
5
|
import { useLight } from '#imports';
|
|
6
6
|
|
|
7
7
|
import type { QInputProps } from "quasar";
|
|
8
|
-
export interface LInputProps extends
|
|
8
|
+
export interface LInputProps extends QInputProps {
|
|
9
9
|
showPassword?: boolean;
|
|
10
10
|
translate?: boolean;
|
|
11
11
|
required?: boolean;
|
|
@@ -26,8 +26,10 @@ const props = withDefaults(defineProps<LInputProps>(), {
|
|
|
26
26
|
stackLabel: undefined,
|
|
27
27
|
required: false,
|
|
28
28
|
hideBottomSpace: true,
|
|
29
|
+
dark: undefined,
|
|
29
30
|
});
|
|
30
31
|
|
|
32
|
+
|
|
31
33
|
const emit = defineEmits(["update:modelValue"]);
|
|
32
34
|
|
|
33
35
|
//clone rules to new_rules
|
|
@@ -147,6 +149,7 @@ const attrs = computed(() => {
|
|
|
147
149
|
if (props.color === undefined) a.color = light.color
|
|
148
150
|
return a;
|
|
149
151
|
})
|
|
152
|
+
|
|
150
153
|
</script>
|
|
151
154
|
<template>
|
|
152
155
|
<q-input v-bind="attrs" v-model="localValue" :rules="new_rules" :type="localType">
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { ref } from 'vue'
|
|
3
2
|
import { useRouter, useRoute } from "vue-router";
|
|
4
3
|
import { useQuasar } from "quasar";
|
|
5
4
|
import { model } from "#imports"
|
|
@@ -26,6 +25,7 @@ if (props.context.bordered !== undefined) {
|
|
|
26
25
|
|
|
27
26
|
let redirect = true;
|
|
28
27
|
if (props.context.attrs.onSubmitted) {
|
|
28
|
+
|
|
29
29
|
redirect = false;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -96,7 +96,7 @@ if (!props.context.onSubmit) {
|
|
|
96
96
|
</div>
|
|
97
97
|
</q-card-section>
|
|
98
98
|
|
|
99
|
-
<q-card-actions align="right">
|
|
99
|
+
<q-card-actions align="right" v-if="context.actions">
|
|
100
100
|
<l-btn icon="sym_o_check" :label="context.submitLabel ?? 'Submit'" @click="onSubmit"
|
|
101
101
|
:disabled="!context.state.dirty" :loading="context.state.loading"></l-btn>
|
|
102
102
|
</q-card-actions>
|
|
@@ -9,8 +9,10 @@ const { system: { database } } = await api.query({
|
|
|
9
9
|
system: {
|
|
10
10
|
database: {
|
|
11
11
|
table: true,
|
|
12
|
-
version: true
|
|
12
|
+
version: true,
|
|
13
|
+
tableStatus: true
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
}
|
|
15
17
|
})
|
|
16
18
|
|
|
@@ -121,6 +123,19 @@ const removeField = async (table) => {
|
|
|
121
123
|
</l-list>
|
|
122
124
|
</l-card>
|
|
123
125
|
|
|
126
|
+
|
|
127
|
+
<q-card flat bordered>
|
|
128
|
+
<q-list class="rounded-borders" separator bordered>
|
|
129
|
+
<q-expansion-item label="Table Status" dense>
|
|
130
|
+
<div class="q-ma-sm">
|
|
131
|
+
<q-table :rows="database.tableStatus" hide-pagination flat bordered separator="cell" dense
|
|
132
|
+
:rows-per-page-options="[0]">
|
|
133
|
+
</q-table>
|
|
134
|
+
</div>
|
|
135
|
+
</q-expansion-item>
|
|
136
|
+
</q-list>
|
|
137
|
+
</q-card>
|
|
138
|
+
|
|
124
139
|
<q-card flat bordered>
|
|
125
140
|
<q-list class="rounded-borders" separator bordered>
|
|
126
141
|
<q-expansion-item :label="table.name" v-for="table in tables" dense>
|
|
@@ -151,7 +151,7 @@ const tab = ref('general')
|
|
|
151
151
|
false-value="0" />
|
|
152
152
|
</q-field>
|
|
153
153
|
|
|
154
|
-
<FormKit type="
|
|
154
|
+
<FormKit type="l-select" label="Revision" name="revision" use-input use-chips multiple
|
|
155
155
|
hide-dropdown-icon input-debounce="0" new-value-mode="add-unique" />
|
|
156
156
|
|
|
157
157
|
|