1 |
- import{E as _,ah as y}from"./index.1417328f.js";const g=o=>o?y(o).format("YYYY-MM-DD"):"";function v(o,l,u){const s=_(null);function m(n){var c;const{result:a,deleteProps:r}=o?o(n):{result:{},deleteProps:[]},e={...n,...a};if(u){const{formItems:d}=u;d.forEach(h=>{const{field:t,type_field:f,otherOptions:Y={},type:i}=h,{startProp:p,endProp:P}=Y;(p||P)&&(e[t]===null&&i==="date_picker"&&(e[t]=[]),e[p]=i==="date_picker"?g(e[t][0]):e[t][0],e[P]=i==="date_picker"?g(e[t][1]):e[t][1],delete e[t]),f&&(e[e[f]]=e[t],delete e[t],delete e[f])})}r.forEach(d=>delete e[d]),(c=s.value)==null||c.getPageData(e)}function D(n){var r;const{result:a}=o?o(n):{result:{}};(r=s.value)==null||r.getPageData(a),l&&l()}return{pageContentRef:s,handleSearchClick:m,handleResetClick:D}}export{v as u};
|