<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>