diff --git a/packages/duoyun-ui/src/elements/form.ts b/packages/duoyun-ui/src/elements/form.ts index 52d3335c..c53d1526 100644 --- a/packages/duoyun-ui/src/elements/form.ts +++ b/packages/duoyun-ui/src/elements/form.ts @@ -356,7 +356,7 @@ export class DuoyunFormItemElement extends GemElement { render = () => { const { invalidMessage } = this.#state; return html` - ${this.#type === 'checkbox' + ${this.#type === 'checkbox' || !this.label ? '' : html`