You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
623 B
27 lines
623 B
<template>
|
|
<a-time-picker :format="format" style="width: 100%" />
|
|
</template>
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
export default defineComponent({
|
|
name: 'NsTimePicker',
|
|
props: {
|
|
format: {
|
|
type: String,
|
|
default: 'HH:mm',
|
|
},
|
|
size: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
},
|
|
setup(props) {
|
|
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
const { format, size } = props;
|
|
|
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
return { format, size };
|
|
},
|
|
});
|
|
</script>
|
|
<style lang="less" scoped></style>
|
|
|