style: lint格式化文件

This commit is contained in:
2025-10-21 18:04:02 +08:00
parent f9ca969fec
commit 7629120548
1092 changed files with 148218 additions and 157907 deletions

View File

@ -1,44 +1,35 @@
<template>
<a-time-picker
:size="size"
v-model:value="modelValue"
:placeholder="placeholder"
:format="format"
:valueFormat="format"
:allowClear="allowClear"
:disabled="disabled"
@change="handleChange"
/>
<a-time-picker :size="size" v-model:value="modelValue" :placeholder="placeholder" :format="format" :valueFormat="format" :allowClear="allowClear" :disabled="disabled" @change="handleChange" />
</template>
<script lang="ts" setup>
import dayjs from 'dayjs';
import { ref, watch } from 'vue';
import dayjs from 'dayjs';
import { ref, watch } from 'vue';
const props = defineProps({
value: [dayjs, String, Object],
size: String,
placeholder: String,
format: String,
allowClear: Boolean,
disabled: Boolean,
});
const modelValue = ref<string>();
const emit = defineEmits(['update:value', 'change']);
watch(
() => props.value,
(val) => {
if (val && typeof val !== 'string') {
modelValue.value = val?.format(props.format);
} else {
modelValue.value = val || '';
}
},
{
immediate: true,
},
);
const handleChange = (time) => {
emit('update:value', time);
emit('change');
};
const props = defineProps({
value: [dayjs, String, Object],
size: String,
placeholder: String,
format: String,
allowClear: Boolean,
disabled: Boolean
});
const modelValue = ref<string>();
const emit = defineEmits(['update:value', 'change']);
watch(
() => props.value,
(val) => {
if (val && typeof val !== 'string') {
modelValue.value = val?.format(props.format);
} else {
modelValue.value = val || '';
}
},
{
immediate: true
}
);
const handleChange = (time) => {
emit('update:value', time);
emit('change');
};
</script>