| | |
| | | v-model="isShow" |
| | | draggable |
| | | :width="width" |
| | | :close-on-click-modal="false" |
| | | :close-on-click-modal="closeOnClickModal" |
| | | @closed="handleClosedClick" |
| | | > |
| | | <template #header> |
| | |
| | | |
| | | const props = defineProps(YWDialogProps); |
| | | const emits = defineEmits(YWDialogEmits); |
| | | const modelValue = toRef(props, 'modelValue'); |
| | | |
| | | const isShow = computed({ |
| | | get() { |
| | | return modelValue.value; |
| | | }, |
| | | set(value) { |
| | | emits('update:modelValue', value); |
| | | }, |
| | | const isShow = defineModel({ |
| | | type: Boolean, |
| | | default: false, |
| | | }); |
| | | |
| | | |
| | | const { handleCloseClick, handleSubmitClick, handleClosedClick } = useYWDialog(props, emits); |
| | | </script> |
| | | <style scoped lang="scss"></style> |