You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.0 KiB
2 lines
1.0 KiB
var F=Object.defineProperty,b=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var m=(r,n,s)=>n in r?F(r,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[n]=s,e=(r,n)=>{for(var s in n||(n={}))B.call(n,s)&&m(r,s,n[s]);if(a)for(var s of a(n))I.call(n,s)&&m(r,s,n[s]);return r},f=(r,n)=>b(r,S(n));import{f as i,u,aj as O}from"./index-f4658ae7.js";function K(r,n,s,l){const p=i(()=>{const{formConfig:t}=u(r),{submitButtonOptions:o}=t||{};return f(e({showAdvancedButton:!0},t),{submitButtonOptions:e({loading:u(l)},o),compact:!0})}),h=i(()=>Object.keys(n).map(o=>o.startsWith("form-")?o:null).filter(o=>!!o));function d(t){var o,c;return t&&(c=(o=t==null?void 0:t.replace)==null?void 0:o.call(t,/form\-/,""))!=null?c:""}function g(t){const{handleSearchInfoFn:o}=u(r);o&&O(o)&&(t=o(t)||t),s({searchInfo:t,page:1})}return{getFormProps:p,replaceFormSlotKey:d,getFormSlotKeys:h,handleSearchInfoChange:g}}export{K as useTableForm};
|