@hostlink/nuxt-light 1.14.3 → 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
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">
|