

<script>
/* eslint-disable */
// sd-skip-auto-import
import{DatePicker,TimePicker}from"ant-design-vue";import components from"./_import-components/sd-timestamp-picker-import";var _render=function e(){var t=this,r=t._self._c;return r("false"!==t.designerData.attr.showDate?t.DatePicker:t.TimePicker,{tag:"component",attrs:{format:t.formatStr,"value-format":"x","show-time":"true"===t.designerData.attr.showTime?{minuteStep:5,format:"HH:mm"}:void 0},model:{value:t.designerData.attr.defaultValue,callback:function(e){t.$set(t.designerData.attr,"defaultValue",e)},expression:"designerData.attr.defaultValue"}})};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdTimestampPicker",components:components,props:{designerData:{type:Object,required:true}},date(){return{formatStr:void 0}},computed:{formatStr(){if("false"===this.designerData.attr.showDate)return"HH:mm";else if("true"===this.designerData.attr.showTime)return"YYYY-MM-DD HH:mm";else return"YYYY-MM-DD"}},created(){this.DatePicker=DatePicker;this.TimePicker=TimePicker},render:_render,staticRenderFns:staticRenderFns};</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
