From a47b28f9ffe383e62e3ce95c838a59a7c2f2d830 Mon Sep 17 00:00:00 2001 From: mantou132 <709922234@qq.com> Date: Wed, 2 Oct 2024 18:22:30 +0800 Subject: [PATCH] [duoyun-ui] Closed #122, #133 --- packages/duoyun-ui/src/elements/form.ts | 2 +- packages/duoyun-ui/src/elements/sort-box.ts | 96 +++++++++++++++++ packages/duoyun-ui/src/lib/styles.ts | 36 +++---- packages/duoyun-ui/src/locales/en.ts | 1 + packages/duoyun-ui/src/locales/zh.ts | 1 + packages/duoyun-ui/src/patterns/form.ts | 112 +++++++++++++++++--- packages/gem-examples/src/console/api.ts | 2 +- packages/gem-examples/src/console/users.ts | 13 ++- packages/gem/src/elements/base/gesture.ts | 24 +++-- 9 files changed, 240 insertions(+), 47 deletions(-) create mode 100644 packages/duoyun-ui/src/elements/sort-box.ts 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`