bindbox-game/build/resources/admin/assets/use-form-item-ByasanrX.js
邹方成 6ee627139c
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 40s
feat: 新增支付测试小程序与微信支付集成
feat(pay): 添加支付API基础结构
feat(miniapp): 创建支付测试小程序页面与配置
feat(wechatpay): 配置微信支付参数与证书
fix(guild): 修复成员列表查询条件
docs: 更新代码规范文档与需求文档
style: 统一前后端枚举显示与注释格式
refactor(admin): 重构用户奖励发放接口参数处理
test(title): 添加称号效果参数验证测试
2025-11-17 00:42:08 +08:00

2 lines
1.2 KiB
JavaScript

import{cc as e,cd as a,a3 as r,a8 as t,u as n,a as o,c as l,o as u,w as s,ao as d,aH as i}from"./index-DBHnxsy6.js";import{f as m,a as v}from"./use-form-common-props-BOfz9xGR.js";const I={prefix:Math.floor(1e4*Math.random()),current:0},p=Symbol("elIdInjection"),c=()=>t()?r(p,I):I,f=r=>{const t=c(),o=e();return a(()=>n(r)||`${o.value}-id-${t.prefix}-${t.current++}`)},b=()=>({form:r(m,void 0),formItem:r(v,void 0)}),x=(e,{formItemContext:a,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=o(!1)),n||(n=o(!1));const m=t(),v=o();let I;const p=l(()=>{var r;return!!(!e.label&&!e.ariaLabel&&a&&a.inputIds&&(null==(r=a.inputIds)?void 0:r.length)<=1)});return u(()=>{I=s([d(e,"id"),r],([e,r])=>{const t=null!=e?e:r?void 0:f().value;t!==v.value&&((null==a?void 0:a.removeInputId)&&!(()=>{let e=null==m?void 0:m.parent;for(;e;){if("ElFormItem"===e.type.name)return!1;if("ElLabelWrap"===e.type.name)return!0;e=e.parent}return!1})()&&(v.value&&a.removeInputId(v.value),(null==n?void 0:n.value)||r||!t||a.addInputId(t)),v.value=t)},{immediate:!0})}),i(()=>{I&&I(),(null==a?void 0:a.removeInputId)&&v.value&&a.removeInputId(v.value)}),{isLabeledByFormItem:p,inputId:v}};export{b as a,x as b,c,f as u};