@hostlink/nuxt-light 1.26.4 → 1.26.6
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
|
@@ -5,14 +5,14 @@ export interface LColProps {
|
|
|
5
5
|
md?: number | string;
|
|
6
6
|
sm?: number | string;
|
|
7
7
|
xs?: number | string;
|
|
8
|
-
gutter?: "xs" | "sm" | "md" | "lg" | "xl" | "none";
|
|
8
|
+
// gutter?: "xs" | "sm" | "md" | "lg" | "xl" | "none";
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const props = withDefaults(defineProps<LColProps>(), {
|
|
12
12
|
md: 12,
|
|
13
13
|
sm: 12,
|
|
14
14
|
xs: 12,
|
|
15
|
-
gutter: "md"
|
|
15
|
+
// gutter: "md"
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
const classes = computed(() => {
|
|
@@ -27,9 +27,6 @@ const classes = computed(() => {
|
|
|
27
27
|
</script>
|
|
28
28
|
<template>
|
|
29
29
|
<div :class="classes">
|
|
30
|
-
<
|
|
31
|
-
<slot></slot>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
30
|
+
<slot></slot>
|
|
34
31
|
</div>
|
|
35
32
|
</template>
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { getErrorMessage } from 'formkit-quasar';
|
|
4
|
-
import { useI18n } from 'vue-i18n';
|
|
5
4
|
|
|
6
5
|
const props = defineProps({
|
|
7
6
|
context: Object
|
|
8
7
|
});
|
|
9
8
|
|
|
10
|
-
const { t } = useI18n()
|
|
11
|
-
|
|
12
9
|
const { error, errorMessage } = getErrorMessage(props.context.node);
|
|
13
10
|
|
|
14
11
|
const value = computed({
|
|
@@ -16,15 +13,6 @@ const value = computed({
|
|
|
16
13
|
set: (val) => props.context.node.input(val)
|
|
17
14
|
})
|
|
18
15
|
|
|
19
|
-
/* const label = computed(() => {
|
|
20
|
-
let l = t(props.context.label);
|
|
21
|
-
if (props.context.state.required) {
|
|
22
|
-
l = "* " + l
|
|
23
|
-
}
|
|
24
|
-
return l
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
*/
|
|
28
16
|
</script>
|
|
29
17
|
<template>
|
|
30
18
|
<l-date-picker v-model="value" v-bind="context.attrs" :label="context.label" :error="error"
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { getErrorMessage } from 'formkit-quasar';
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
context: Object
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
const { t } = useI18n()
|
|
10
|
-
|
|
11
9
|
const { error, errorMessage } = getErrorMessage(props.context.node);
|
|
12
10
|
|
|
13
11
|
const value = computed({
|
|
@@ -15,17 +13,11 @@ const value = computed({
|
|
|
15
13
|
set: (val) => props.context.node.input(val)
|
|
16
14
|
})
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
let l = t(props.context.label);
|
|
20
|
-
if (props.context.state.required) {
|
|
21
|
-
l = "* " + l
|
|
22
|
-
}
|
|
23
|
-
return l
|
|
24
|
-
})
|
|
16
|
+
|
|
25
17
|
</script>
|
|
26
18
|
<template>
|
|
27
|
-
<l-time-picker v-model="value" v-bind="context.attrs" :label="label" :error="error" :type="context.inputType"
|
|
28
|
-
:error-message="errorMessage" >
|
|
19
|
+
<l-time-picker v-model="value" v-bind="context.attrs" :label="context.label" :error="error" :type="context.inputType"
|
|
20
|
+
:error-message="errorMessage" :disable="context.disabled" :required="context.state.required">
|
|
29
21
|
<template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
|
|
30
22
|
<slot :name="name" v-bind="props ?? {}"></slot>
|
|
31
23
|
</template>
|