push
This commit is contained in:
27
lib/component/form/time-picker/time-picker.vue
Normal file
27
lib/component/form/time-picker/time-picker.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user