1 |
- import{d,r as n,A as g,f as t,w as i,aJ as m,y as C,F as s}from"./index-6198d9d3-1731319840132.js";const E="_CdataWrap_1919n_1",h="_dateIcons_1919n_13",r={CdataWrap:E,dateIcons:h},f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAhBJREFUWEftWE1LW0EUPeeFuChdqLukMd1bsH9Buij4BwrtuhTELjSG/oiSjy4UoXSt0D8gdFH6F1rQfWOIOytUujBkjkwk6ZBE3jDvBV7gZfm459zDuXNv5g7h8au0tWUG+GxDowLedfd46gGbCgnhoU+ickMXgio2lmC3V+eaD24yJoTHS2CpYeQmu6xHXrhJgSE8XolCiGc5HMIzJbDa0rOB8NYIL0FUIT0OKac3hryB0ImIbwXiS6fGMxc7Frj+VUvXF2hJ2AYUeSdINZCGxNHyGmrnr3h7f+YBDMV1cCroRar5AskIfl+uYsuKHAosN3UgaSeQby4wkoe9fb6nPXN9g19uWe0oAfChWMCP33u8DDncvk3ytK1Sf4BNAB9Ho+weS1OMsMEnTbWNtDsitOKiCM+7NV6Nvs1T4ChHpaVVY/DTFRmRn1hq6AzQuiPwTa/OE9eBkAE7y8E4nnJDrwUd/8fynKWm/rqjZKnAsi2rmyDkL2qWwDgeW+7bgXpjLHnDtMqXVqdM6lk8gcVHXE3LjRCe/j+Nm3PYy5OWhpDOE5MLTOrulIME/yQlTYIXtOLiF6+LQ2/LSVxzsYs/B3MHY85CXuKkzZI7mDuYvTHjceVPWjZf/ANX/vilyTdB0riZS5PP2pk0sQ/+wbXTZ3H3SRAaE7u4W+JMP31YgZl/PBqLzOrzm3t+svaAeQe1fZLUTESVNwAAAABJRU5ErkJggg==",S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAZtJREFUWEftmDFLBDEQhb9TFAWxEm1ExFJEwcpSLEQQ/LFWctWVVoIiliJio1iJoCgn8mADMe6yk+wu7EJSHXszb15eJpNMRtjGGrBXmF4Dzza3f1bROCNjoGNgobD9BMZGv9AsGsdK8CyIdJ5IMBpnkASXgQ1gFVgEZhPVsrpNgQ/gBXgE3nxHX8EZYAfYtCJ3ZPcA3AI/wncERe4AWOkoaCzsK3Apko7gbg+UCychJW9EUDl3GPyrUnIHaCb6Hb37KiQrw1H50spte6XMuU9EUHm35QGK0AT48r51SdCFmS+EcvVW3+9F8AhY8shcAU+BAtEFtkLBOpx1YN/zfRfB06CU6JSQiv6IPqIqCNbhSD1Nwo2pCLa1fLE7tcr+D59BErxoS4pEnJPwJAmXOBG3G7eyJe4mUiLqIAl+J062Lbe5uhxMvYy2RXD4ZSYrWJMLeYmbbpasYFYwl5nYMmO58jfNK6t/6ZXf0jRZAzS1K22aLG1n08AW/8q209K4WwKk2tQ27gLu9dOHCPb+8ciR7O3zm58/vXrA/AXVhWYx5GPH2gAAAABJRU5ErkJggg==",D=d({name:"CDatePicker",props:{type:{type:String,default:"daterange"},separator:{type:String,default:"-"},timerValue:{type:Array,default:[]},placeholder:{type:String,default:"选择日期时间"},startPlaceholder:{type:String,default:"结束日期时间"},endPlaceholder:{type:String,default:"开始日期时间"}},setup(e,{emit:u,attrs:o}){const l=n(!1),a=n(null),c=()=>{console.log("更新日期",a.value),u("update:value",a.value)};return a.value=e.timerValue&&e.timerValue.length>0?e.timerValue:null,g(()=>e.timerValue,A=>{a.value=A&&A.length?A:null}),()=>t(s,null,[t("div",{class:r.CdataWrap},[t(i,{previewDisabled:!0,class:r.dateIcons,src:l.value?f:S},null),t(m,C(o,{class:r.CDatePicker,value:a.value,"onUpdate:value":[A=>a.value=A,c],separator:e.separator,type:e.type,placeholder:e.placeholder,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,onFocus:()=>{l.value=!0},onBlur:()=>{l.value=!1}}),{"date-icon":()=>t(s,null,[t("span",null,null)])})])])}});export{D as C};
|