k5web/assets/useDisabled.1ea0b0ca.js
2024-07-02 10:58:02 +08:00

10 lines
694 B
JavaScript

import{c as s,i as o,g as n}from"./arco.7f845a67.js";import{g as d,h as b}from"./index.84328ebd.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var f=d,t=b,v="[object Boolean]";function c(e){return e===!0||e===!1||t(e)&&f(e)==v}var a=c;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function p(e){var u=n(),i=s(function(){return u.props.disabled}),l=o("formDisabled",Object.create(null));return s(function(){var r;return a(e==null?void 0:e.beforeDisabled.value)?e.beforeDisabled.value:a(i.value)?i.value:a(e==null?void 0:e.afterDisabled.value)?e.afterDisabled.value:a((r=l.disabled)===null||r===void 0?void 0:r.value)?l.disabled.value:!1})}export{a as i,p as u};