k5web/assets/useDisabled.c2cf5fce.js
2024-06-18 21:10:56 +08:00

10 lines
694 B
JavaScript

import{c as s,i as o,g as n}from"./arco.949c921a.js";import{f as d,i as b}from"./index.bb45572c.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};