From 4299b514eb12be224cd1821c2d52acfdaaed3614 Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Mon, 5 Oct 2026 03:07:40 +0800 Subject: [PATCH 01/26] fix: resolve dialog trigger, table empty safety, and release workflow issues --- .changeset/moody-cases-itch.md | 5 +++++ .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 8 +++++++- .gitignore | 1 + package.json | 2 +- packages/ui/package.json | 3 +++ packages/ui/src/components/dialog/Dialog.vue | 11 +++++++---- packages/ui/src/components/table/DataTable.vue | 8 +++++--- packages/ui/src/components/tag-input/TagInput.vue | 1 + packages/ui/src/nuxt/types.ts | 6 +++--- packages/ui/vite.config.ts | 2 +- 11 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 .changeset/moody-cases-itch.md diff --git a/.changeset/moody-cases-itch.md b/.changeset/moody-cases-itch.md new file mode 100644 index 0000000..ab4a2e7 --- /dev/null +++ b/.changeset/moody-cases-itch.md @@ -0,0 +1,5 @@ +--- +"@recloudstudio/ui": patch +--- + +Fix Dialog trigger slot handling, DataTable fallback for empty or undefined rows, TagInput IME composition behavior, Nuxt module type prefix, and package externalization. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1789d39..a75b2d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: pull_request: push: - branches: [main] + branches: [main, dev] permissions: contents: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 617810a..ce03a47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: oven-sh/setup-bun@v2 with: bun-version: "1.4.2" @@ -40,6 +42,8 @@ jobs: url: https://npm.pkg.github.com steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-node@v4 with: node-version: 24 @@ -48,7 +52,7 @@ jobs: with: bun-version: "1.4.2" - run: bun install --frozen-lockfile - - run: bun run --cwd packages/ui typecheck && bun run --cwd packages/ui build + - run: bun run --cwd packages/ui typecheck && bun run --cwd packages/ui test && bun run --cwd packages/ui build - run: test "v$(node -p "require('./packages/ui/package.json').version")" = "$GITHUB_REF_NAME" # 重新推送同一 tag 时,跳过已发布过该版本的注册表,只补发失败的那一个 - id: published @@ -64,6 +68,8 @@ jobs: - if: matrix.registry.name == 'npm' && steps.published.outputs.exists != 'true' run: npm publish --provenance --access public --registry=${{ matrix.registry.url }} working-directory: packages/ui + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - if: matrix.registry.name == 'github' && steps.published.outputs.exists != 'true' run: npm publish --registry=${{ matrix.registry.url }} working-directory: packages/ui diff --git a/.gitignore b/.gitignore index 02b0eb3..34d5f83 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ dist/ .turbo/ .nuxt/ .output/ +.vitest/ *.log .DS_Store .direnv/ diff --git a/package.json b/package.json index a408e89..6f90487 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "format": "biome format --write apps packages .github .changeset package.json turbo.json biome.json tsconfig.json README.md", "ci": "bun run lint && bun run typecheck && bun run test && bun run build", "changeset": "changeset", - "version-packages": "changeset version" + "version-packages": "changeset version && bun install" }, "devDependencies": { "@biomejs/biome": "2.5.15", diff --git a/packages/ui/package.json b/packages/ui/package.json index df6e5aa..b30049f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -56,6 +56,9 @@ "peerDependenciesMeta": { "@nuxt/kit": { "optional": true + }, + "@nuxt/schema": { + "optional": true } }, "devDependencies": { diff --git a/packages/ui/src/components/dialog/Dialog.vue b/packages/ui/src/components/dialog/Dialog.vue index 855ac80..733f0d9 100644 --- a/packages/ui/src/components/dialog/Dialog.vue +++ b/packages/ui/src/components/dialog/Dialog.vue @@ -1,6 +1,8 @@