bindbox-game/build/resources/admin/assets/use-form-item-BsnpemL_.js
邹方成 2a89a1ab9d
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 39s
feat(admin): 更新前端资源文件及修复相关功能
refactor(service): 修改banner和guild删除逻辑为软删除
fix(service): 修复删除操作使用软删除而非物理删除

build: 添加SQLite测试仓库实现
docs: 新增奖励管理字段拆分和批量抽奖UI改造文档

ci: 更新CI忽略文件
style: 清理无用资源文件
2025-11-19 01:35:55 +08:00

2 lines
1.2 KiB
JavaScript

import{ch as e,ci 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-CZ0Lvzl5.js";import{f as m,a as v}from"./use-form-common-props-U6f9D53_.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};