@hostlink/nuxt-light 1.1.6 → 1.1.8
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
|
@@ -9,7 +9,7 @@ const emits = defineEmits(["update:modelValue"]);
|
|
|
9
9
|
const { t } = useI18n();
|
|
10
10
|
const light = useLight();
|
|
11
11
|
interface LSelectProps extends QSelectProps {
|
|
12
|
-
required?: boolean
|
|
12
|
+
required?: boolean,
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
@@ -30,6 +30,7 @@ const props = withDefaults(defineProps<LSelectProps>(), {
|
|
|
30
30
|
dense: undefined,
|
|
31
31
|
square: undefined,
|
|
32
32
|
stackLabel: undefined,
|
|
33
|
+
|
|
33
34
|
})
|
|
34
35
|
|
|
35
36
|
|
|
@@ -7,11 +7,14 @@ const props = defineProps({
|
|
|
7
7
|
|
|
8
8
|
const { error, errorMessage } = getErrorMessage(props.context.node);
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
|
|
10
12
|
const value = computed({
|
|
11
13
|
get: () => props.context.value,
|
|
12
14
|
set: (val) => props.context.node.input(val)
|
|
13
15
|
})
|
|
14
16
|
|
|
17
|
+
console.log(props.context.node.props.parsedRules);
|
|
15
18
|
|
|
16
19
|
//check required in parsedRules
|
|
17
20
|
let required = false;
|
|
@@ -29,11 +32,10 @@ if (required) { //no clearable
|
|
|
29
32
|
clearable = true;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
|
|
33
35
|
</script>
|
|
34
36
|
<template>
|
|
35
37
|
<l-select v-model="value" :label="context.label" v-bind="context.attrs" :error="error" :error-message="errorMessage"
|
|
36
|
-
:clearable="clearable">
|
|
38
|
+
:clearable="clearable" :required="required">
|
|
37
39
|
<template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
|
|
38
40
|
<slot :name="name" v-bind="props ?? {}"></slot>
|
|
39
41
|
</template>
|