k5web/assets/useDisabled.242d5b98.js
2024-07-01 22:33:25 +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.e1698f3e.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};