diff --git a/.github/workflows/pkg-pr-new.yml b/.github/workflows/pkg-pr-new.yml index 951f953c3..769009045 100644 --- a/.github/workflows/pkg-pr-new.yml +++ b/.github/workflows/pkg-pr-new.yml @@ -25,4 +25,4 @@ jobs: with: node-version: 20 - - run: pnpm dlx pkg-pr-new publish 'packages/tdesign-miniprogram' 'packages/tdesign-uniapp/npm_dist' 'packages/tdesign-uniapp-chat/npm_dist' + - run: pnpm dlx pkg-pr-new publish 'packages/tdesign-miniprogram' 'packages/tdesign-uniapp' 'packages/tdesign-uniapp-chat' diff --git a/packages/uniapp-pro-components/chat/CHANGELOG.md b/packages/tdesign-uniapp-chat/CHANGELOG.md similarity index 100% rename from packages/uniapp-pro-components/chat/CHANGELOG.md rename to packages/tdesign-uniapp-chat/CHANGELOG.md diff --git a/packages/uniapp-components/LICENSE b/packages/tdesign-uniapp-chat/LICENSE similarity index 100% rename from packages/uniapp-components/LICENSE rename to packages/tdesign-uniapp-chat/LICENSE diff --git a/packages/uniapp-pro-components/chat/README.md b/packages/tdesign-uniapp-chat/README.md similarity index 100% rename from packages/uniapp-pro-components/chat/README.md rename to packages/tdesign-uniapp-chat/README.md diff --git a/packages/tdesign-uniapp-chat/global.d.ts b/packages/tdesign-uniapp-chat/global.d.ts new file mode 100644 index 000000000..16a860138 --- /dev/null +++ b/packages/tdesign-uniapp-chat/global.d.ts @@ -0,0 +1,15 @@ +declare module 'vue' { + export interface GlobalComponents { + TAttachments: typeof import('tdesign-uniapp-chat/attachments/attachments.vue').default; + TChatActionbar: typeof import('tdesign-uniapp-chat/chat-actionbar/chat-actionbar.vue').default; + TChatContent: typeof import('tdesign-uniapp-chat/chat-content/chat-content.vue').default; + TChatList: typeof import('tdesign-uniapp-chat/chat-list/chat-list.vue').default; + TChatLoading: typeof import('tdesign-uniapp-chat/chat-loading/chat-loading.vue').default; + TChatMarkdown: typeof import('tdesign-uniapp-chat/chat-markdown/chat-markdown.vue').default; + TChatMessage: typeof import('tdesign-uniapp-chat/chat-message/chat-message.vue').default; + TChatSender: typeof import('tdesign-uniapp-chat/chat-sender/chat-sender.vue').default; + TChatThinking: typeof import('tdesign-uniapp-chat/chat-thinking/chat-thinking.vue').default; + } +} + +export {}; diff --git a/packages/tdesign-uniapp-chat/package.json b/packages/tdesign-uniapp-chat/package.json index b9800a38e..907d3c70d 100644 --- a/packages/tdesign-uniapp-chat/package.json +++ b/packages/tdesign-uniapp-chat/package.json @@ -1,8 +1,64 @@ { - "name": "tdesign-uniapp", - "version": "0.0.0", - "private": "true", - "homepage": "https://uwayfly.com/tdesign-uniapp/", + "name": "tdesign-uniapp-chat", + "version": "0.1.1", + "typings": "./npm_dist/types/index.d.ts", + "exports": { + "./*": "./npm_dist/*", + "./attachments/attachments.vue": { + "types": "./npm_dist/types/attachments.d.ts", + "import": "./npm_dist/attachments/attachments.vue", + "default": "./npm_dist/attachments/attachments.vue" + }, + "./chat-actionbar/chat-actionbar.vue": { + "types": "./npm_dist/types/chat-actionbar.d.ts", + "import": "./npm_dist/chat-actionbar/chat-actionbar.vue", + "default": "./npm_dist/chat-actionbar/chat-actionbar.vue" + }, + "./chat-content/chat-content.vue": { + "types": "./npm_dist/types/chat-content.d.ts", + "import": "./npm_dist/chat-content/chat-content.vue", + "default": "./npm_dist/chat-content/chat-content.vue" + }, + "./chat-list/chat-list.vue": { + "types": "./npm_dist/types/chat-list.d.ts", + "import": "./npm_dist/chat-list/chat-list.vue", + "default": "./npm_dist/chat-list/chat-list.vue" + }, + "./chat-loading/chat-loading.vue": { + "types": "./npm_dist/types/chat-loading.d.ts", + "import": "./npm_dist/chat-loading/chat-loading.vue", + "default": "./npm_dist/chat-loading/chat-loading.vue" + }, + "./chat-markdown/chat-markdown.vue": { + "types": "./npm_dist/types/chat-markdown.d.ts", + "import": "./npm_dist/chat-markdown/chat-markdown.vue", + "default": "./npm_dist/chat-markdown/chat-markdown.vue" + }, + "./chat-message/chat-message.vue": { + "types": "./npm_dist/types/chat-message.d.ts", + "import": "./npm_dist/chat-message/chat-message.vue", + "default": "./npm_dist/chat-message/chat-message.vue" + }, + "./chat-sender/chat-sender.vue": { + "types": "./npm_dist/types/chat-sender.d.ts", + "import": "./npm_dist/chat-sender/chat-sender.vue", + "default": "./npm_dist/chat-sender/chat-sender.vue" + }, + "./chat-thinking/chat-thinking.vue": { + "types": "./npm_dist/types/chat-thinking.d.ts", + "import": "./npm_dist/chat-thinking/chat-thinking.vue", + "default": "./npm_dist/chat-thinking/chat-thinking.vue" + } + }, + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, + "files": [ + "npm_dist", + "global.d.ts", + "README.md", + "CHANGELOG.md" + ], "bugs": { "url": "https://github.com/Tencent/tdesign-miniprogram/issues" }, diff --git a/packages/tdesign-uniapp-chat/site/docs.config.js b/packages/tdesign-uniapp-chat/site/docs.config.js index 4193a5df5..61d6d79d9 100644 --- a/packages/tdesign-uniapp-chat/site/docs.config.js +++ b/packages/tdesign-uniapp-chat/site/docs.config.js @@ -17,7 +17,7 @@ export const docs = [ titleEn: 'CHANGELOG', name: 'changelog', path: '/tdesign-uniapp-chat/changelog', - component: () => import('@/CHANGELOG.md'), + component: () => import('../CHANGELOG.md'), }, { title: '常见问题', @@ -150,10 +150,10 @@ export const docs = [ }, ]; -export const enDocs = docs.map(doc => ({ +export const enDocs = docs.map((doc) => ({ ...doc, title: doc.titleEn || '', - children: doc?.children?.map(child => ({ + children: doc?.children?.map((child) => ({ title: child.titleEn || '', name: `${child.name}-en`, path: `${child.path}-en`, @@ -163,4 +163,3 @@ export const enDocs = docs.map(doc => ({ })); export default { enDocs, docs }; - diff --git a/packages/uniapp-components/CHANGELOG.md b/packages/tdesign-uniapp/CHANGELOG.md similarity index 100% rename from packages/uniapp-components/CHANGELOG.md rename to packages/tdesign-uniapp/CHANGELOG.md diff --git a/packages/uniapp-pro-components/chat/LICENSE b/packages/tdesign-uniapp/LICENSE similarity index 100% rename from packages/uniapp-pro-components/chat/LICENSE rename to packages/tdesign-uniapp/LICENSE diff --git a/packages/uniapp-components/README.md b/packages/tdesign-uniapp/README.md similarity index 100% rename from packages/uniapp-components/README.md rename to packages/tdesign-uniapp/README.md diff --git a/packages/tdesign-uniapp/app/package.json b/packages/tdesign-uniapp/app/package.json index 77e421f34..17fe194a0 100644 --- a/packages/tdesign-uniapp/app/package.json +++ b/packages/tdesign-uniapp/app/package.json @@ -1,6 +1,6 @@ { "id": "tdesign-uniapp", - "name": "tdesign-uniapp", + "name": "tdesign-uniapp-example", "displayName": "tdesign-uniapp 示例工程", "version": "3.4.9", "description": "tdesign-uniapp 示例工程", diff --git a/packages/tdesign-uniapp/example/script/release/prepare.js b/packages/tdesign-uniapp/example/script/release/prepare.js index 120f2c8a4..9350c53d5 100644 --- a/packages/tdesign-uniapp/example/script/release/prepare.js +++ b/packages/tdesign-uniapp/example/script/release/prepare.js @@ -28,24 +28,18 @@ async function main() { }); } -async function prepareOne({ - targetDir, - sourceGlob, - sourceDir, -}) { +async function prepareOne({ targetDir, sourceGlob, sourceDir }) { deleteFolder(targetDir); const list = glob.sync(sourceGlob, { - ignore: '**/{node_modules,_example}/**/*', + cwd: sourceDir, + ignore: ['**/{node_modules,_example}/**/*', 'package.json'], nodir: true, dot: true, - }).filter(item => !item.includes('_example') && !item.includes('node_modules')); + }); for (const item of list) { const relativePath = path.relative(sourceDir, item); - const { - relativeTargetByCwd, - relativeSourceByCwd, - } = await copy({ + const { relativeTargetByCwd, relativeSourceByCwd } = await copy({ relativePath, filePath: item, config: { @@ -60,5 +54,4 @@ async function prepareOne({ console.log(`[Wrote] done! Length is ${list.length}!`); } - main(); diff --git a/packages/uniapp-components/global.d.ts b/packages/tdesign-uniapp/global.d.ts similarity index 100% rename from packages/uniapp-components/global.d.ts rename to packages/tdesign-uniapp/global.d.ts diff --git a/packages/tdesign-uniapp/package.json b/packages/tdesign-uniapp/package.json index cb28b6056..9b63845a9 100644 --- a/packages/tdesign-uniapp/package.json +++ b/packages/tdesign-uniapp/package.json @@ -1,8 +1,15 @@ { "name": "tdesign-uniapp", - "version": "0.0.0", - "private": "true", - "homepage": "https://uwayfly.com/tdesign-uniapp/", + "version": "0.5.5", + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, + "files": [ + "npm_dist", + "global.d.ts", + "README.md", + "CHANGELOG.md" + ], "bugs": { "url": "https://github.com/Tencent/tdesign-miniprogram/issues" }, @@ -10,6 +17,400 @@ "type": "git", "url": "git+https://github.com/Tencent/tdesign-miniprogram.git" }, + "typings": "./npm_dist/types/index.d.ts", + "exports": { + "./*": "./npm_dist/*", + "./action-sheet/action-sheet.vue": { + "types": "./npm_dist/types/action-sheet.d.ts", + "import": "./npm_dist/action-sheet/action-sheet.vue", + "default": "./npm_dist/action-sheet/action-sheet.vue" + }, + "./avatar/avatar.vue": { + "types": "./npm_dist/types/avatar.d.ts", + "import": "./npm_dist/avatar/avatar.vue", + "default": "./npm_dist/avatar/avatar.vue" + }, + "./avatar-group/avatar-group.vue": { + "types": "./npm_dist/types/avatar-group.d.ts", + "import": "./npm_dist/avatar-group/avatar-group.vue", + "default": "./npm_dist/avatar-group/avatar-group.vue" + }, + "./back-top/back-top.vue": { + "types": "./npm_dist/types/back-top.d.ts", + "import": "./npm_dist/back-top/back-top.vue", + "default": "./npm_dist/back-top/back-top.vue" + }, + "./badge/badge.vue": { + "types": "./npm_dist/types/badge.d.ts", + "import": "./npm_dist/badge/badge.vue", + "default": "./npm_dist/badge/badge.vue" + }, + "./button/button.vue": { + "types": "./npm_dist/types/button.d.ts", + "import": "./npm_dist/button/button.vue", + "default": "./npm_dist/button/button.vue" + }, + "./calendar/calendar.vue": { + "types": "./npm_dist/types/calendar.d.ts", + "import": "./npm_dist/calendar/calendar.vue", + "default": "./npm_dist/calendar/calendar.vue" + }, + "./cascader/cascader.vue": { + "types": "./npm_dist/types/cascader.d.ts", + "import": "./npm_dist/cascader/cascader.vue", + "default": "./npm_dist/cascader/cascader.vue" + }, + "./cell/cell.vue": { + "types": "./npm_dist/types/cell.d.ts", + "import": "./npm_dist/cell/cell.vue", + "default": "./npm_dist/cell/cell.vue" + }, + "./cell-group/cell-group.vue": { + "types": "./npm_dist/types/cell-group.d.ts", + "import": "./npm_dist/cell-group/cell-group.vue", + "default": "./npm_dist/cell-group/cell-group.vue" + }, + "./check-tag/check-tag.vue": { + "types": "./npm_dist/types/check-tag.d.ts", + "import": "./npm_dist/check-tag/check-tag.vue", + "default": "./npm_dist/check-tag/check-tag.vue" + }, + "./checkbox/checkbox.vue": { + "types": "./npm_dist/types/checkbox.d.ts", + "import": "./npm_dist/checkbox/checkbox.vue", + "default": "./npm_dist/checkbox/checkbox.vue" + }, + "./checkbox-group/checkbox-group.vue": { + "types": "./npm_dist/types/checkbox-group.d.ts", + "import": "./npm_dist/checkbox-group/checkbox-group.vue", + "default": "./npm_dist/checkbox-group/checkbox-group.vue" + }, + "./col/col.vue": { + "types": "./npm_dist/types/col.d.ts", + "import": "./npm_dist/col/col.vue", + "default": "./npm_dist/col/col.vue" + }, + "./collapse/collapse.vue": { + "types": "./npm_dist/types/collapse.d.ts", + "import": "./npm_dist/collapse/collapse.vue", + "default": "./npm_dist/collapse/collapse.vue" + }, + "./collapse-panel/collapse-panel.vue": { + "types": "./npm_dist/types/collapse-panel.d.ts", + "import": "./npm_dist/collapse-panel/collapse-panel.vue", + "default": "./npm_dist/collapse-panel/collapse-panel.vue" + }, + "./color-picker/color-picker.vue": { + "types": "./npm_dist/types/color-picker.d.ts", + "import": "./npm_dist/color-picker/color-picker.vue", + "default": "./npm_dist/color-picker/color-picker.vue" + }, + "./count-down/count-down.vue": { + "types": "./npm_dist/types/count-down.d.ts", + "import": "./npm_dist/count-down/count-down.vue", + "default": "./npm_dist/count-down/count-down.vue" + }, + "./date-time-picker/date-time-picker.vue": { + "types": "./npm_dist/types/date-time-picker.d.ts", + "import": "./npm_dist/date-time-picker/date-time-picker.vue", + "default": "./npm_dist/date-time-picker/date-time-picker.vue" + }, + "./dialog/dialog.vue": { + "types": "./npm_dist/types/dialog.d.ts", + "import": "./npm_dist/dialog/dialog.vue", + "default": "./npm_dist/dialog/dialog.vue" + }, + "./divider/divider.vue": { + "types": "./npm_dist/types/divider.d.ts", + "import": "./npm_dist/divider/divider.vue", + "default": "./npm_dist/divider/divider.vue" + }, + "./drawer/drawer.vue": { + "types": "./npm_dist/types/drawer.d.ts", + "import": "./npm_dist/drawer/drawer.vue", + "default": "./npm_dist/drawer/drawer.vue" + }, + "./dropdown-item/dropdown-item.vue": { + "types": "./npm_dist/types/dropdown-item.d.ts", + "import": "./npm_dist/dropdown-item/dropdown-item.vue", + "default": "./npm_dist/dropdown-item/dropdown-item.vue" + }, + "./dropdown-menu/dropdown-menu.vue": { + "types": "./npm_dist/types/dropdown-menu.d.ts", + "import": "./npm_dist/dropdown-menu/dropdown-menu.vue", + "default": "./npm_dist/dropdown-menu/dropdown-menu.vue" + }, + "./empty/empty.vue": { + "types": "./npm_dist/types/empty.d.ts", + "import": "./npm_dist/empty/empty.vue", + "default": "./npm_dist/empty/empty.vue" + }, + "./fab/fab.vue": { + "types": "./npm_dist/types/fab.d.ts", + "import": "./npm_dist/fab/fab.vue", + "default": "./npm_dist/fab/fab.vue" + }, + "./footer/footer.vue": { + "types": "./npm_dist/types/footer.d.ts", + "import": "./npm_dist/footer/footer.vue", + "default": "./npm_dist/footer/footer.vue" + }, + "./form/form.vue": { + "types": "./npm_dist/types/form.d.ts", + "import": "./npm_dist/form/form.vue", + "default": "./npm_dist/form/form.vue" + }, + "./form-item/form-item.vue": { + "types": "./npm_dist/types/form-item.d.ts", + "import": "./npm_dist/form-item/form-item.vue", + "default": "./npm_dist/form-item/form-item.vue" + }, + "./grid/grid.vue": { + "types": "./npm_dist/types/grid.d.ts", + "import": "./npm_dist/grid/grid.vue", + "default": "./npm_dist/grid/grid.vue" + }, + "./grid-item/grid-item.vue": { + "types": "./npm_dist/types/grid-item.d.ts", + "import": "./npm_dist/grid-item/grid-item.vue", + "default": "./npm_dist/grid-item/grid-item.vue" + }, + "./guide/guide.vue": { + "types": "./npm_dist/types/guide.d.ts", + "import": "./npm_dist/guide/guide.vue", + "default": "./npm_dist/guide/guide.vue" + }, + "./icon/icon.vue": { + "types": "./npm_dist/types/icon.d.ts", + "import": "./npm_dist/icon/icon.vue", + "default": "./npm_dist/icon/icon.vue" + }, + "./image/image.vue": { + "types": "./npm_dist/types/image.d.ts", + "import": "./npm_dist/image/image.vue", + "default": "./npm_dist/image/image.vue" + }, + "./image-viewer/image-viewer.vue": { + "types": "./npm_dist/types/image-viewer.d.ts", + "import": "./npm_dist/image-viewer/image-viewer.vue", + "default": "./npm_dist/image-viewer/image-viewer.vue" + }, + "./indexes/indexes.vue": { + "types": "./npm_dist/types/indexes.d.ts", + "import": "./npm_dist/indexes/indexes.vue", + "default": "./npm_dist/indexes/indexes.vue" + }, + "./indexes-anchor/indexes-anchor.vue": { + "types": "./npm_dist/types/indexes-anchor.d.ts", + "import": "./npm_dist/indexes-anchor/indexes-anchor.vue", + "default": "./npm_dist/indexes-anchor/indexes-anchor.vue" + }, + "./input/input.vue": { + "types": "./npm_dist/types/input.d.ts", + "import": "./npm_dist/input/input.vue", + "default": "./npm_dist/input/input.vue" + }, + "./link/link.vue": { + "types": "./npm_dist/types/link.d.ts", + "import": "./npm_dist/link/link.vue", + "default": "./npm_dist/link/link.vue" + }, + "./loading/loading.vue": { + "types": "./npm_dist/types/loading.d.ts", + "import": "./npm_dist/loading/loading.vue", + "default": "./npm_dist/loading/loading.vue" + }, + "./message/message.vue": { + "types": "./npm_dist/types/message.d.ts", + "import": "./npm_dist/message/message.vue", + "default": "./npm_dist/message/message.vue" + }, + "./navbar/navbar.vue": { + "types": "./npm_dist/types/navbar.d.ts", + "import": "./npm_dist/navbar/navbar.vue", + "default": "./npm_dist/navbar/navbar.vue" + }, + "./notice-bar/notice-bar.vue": { + "types": "./npm_dist/types/notice-bar.d.ts", + "import": "./npm_dist/notice-bar/notice-bar.vue", + "default": "./npm_dist/notice-bar/notice-bar.vue" + }, + "./overlay/overlay.vue": { + "types": "./npm_dist/types/overlay.d.ts", + "import": "./npm_dist/overlay/overlay.vue", + "default": "./npm_dist/overlay/overlay.vue" + }, + "./picker/picker.vue": { + "types": "./npm_dist/types/picker.d.ts", + "import": "./npm_dist/picker/picker.vue", + "default": "./npm_dist/picker/picker.vue" + }, + "./picker-item/picker-item.vue": { + "types": "./npm_dist/types/picker-item.d.ts", + "import": "./npm_dist/picker-item/picker-item.vue", + "default": "./npm_dist/picker-item/picker-item.vue" + }, + "./popup/popup.vue": { + "types": "./npm_dist/types/popup.d.ts", + "import": "./npm_dist/popup/popup.vue", + "default": "./npm_dist/popup/popup.vue" + }, + "./progress/progress.vue": { + "types": "./npm_dist/types/progress.d.ts", + "import": "./npm_dist/progress/progress.vue", + "default": "./npm_dist/progress/progress.vue" + }, + "./pull-down-refresh/pull-down-refresh.vue": { + "types": "./npm_dist/types/pull-down-refresh.d.ts", + "import": "./npm_dist/pull-down-refresh/pull-down-refresh.vue", + "default": "./npm_dist/pull-down-refresh/pull-down-refresh.vue" + }, + "./qrcode/qrcode.vue": { + "types": "./npm_dist/types/qrcode.d.ts", + "import": "./npm_dist/qrcode/qrcode.vue", + "default": "./npm_dist/qrcode/qrcode.vue" + }, + "./radio/radio.vue": { + "types": "./npm_dist/types/radio.d.ts", + "import": "./npm_dist/radio/radio.vue", + "default": "./npm_dist/radio/radio.vue" + }, + "./radio-group/radio-group.vue": { + "types": "./npm_dist/types/radio-group.d.ts", + "import": "./npm_dist/radio-group/radio-group.vue", + "default": "./npm_dist/radio-group/radio-group.vue" + }, + "./rate/rate.vue": { + "types": "./npm_dist/types/rate.d.ts", + "import": "./npm_dist/rate/rate.vue", + "default": "./npm_dist/rate/rate.vue" + }, + "./result/result.vue": { + "types": "./npm_dist/types/result.d.ts", + "import": "./npm_dist/result/result.vue", + "default": "./npm_dist/result/result.vue" + }, + "./row/row.vue": { + "types": "./npm_dist/types/row.d.ts", + "import": "./npm_dist/row/row.vue", + "default": "./npm_dist/row/row.vue" + }, + "./search/search.vue": { + "types": "./npm_dist/types/search.d.ts", + "import": "./npm_dist/search/search.vue", + "default": "./npm_dist/search/search.vue" + }, + "./side-bar/side-bar.vue": { + "types": "./npm_dist/types/side-bar.d.ts", + "import": "./npm_dist/side-bar/side-bar.vue", + "default": "./npm_dist/side-bar/side-bar.vue" + }, + "./side-bar-item/side-bar-item.vue": { + "types": "./npm_dist/types/side-bar-item.d.ts", + "import": "./npm_dist/side-bar-item/side-bar-item.vue", + "default": "./npm_dist/side-bar-item/side-bar-item.vue" + }, + "./skeleton/skeleton.vue": { + "types": "./npm_dist/types/skeleton.d.ts", + "import": "./npm_dist/skeleton/skeleton.vue", + "default": "./npm_dist/skeleton/skeleton.vue" + }, + "./slider/slider.vue": { + "types": "./npm_dist/types/slider.d.ts", + "import": "./npm_dist/slider/slider.vue", + "default": "./npm_dist/slider/slider.vue" + }, + "./step-item/step-item.vue": { + "types": "./npm_dist/types/step-item.d.ts", + "import": "./npm_dist/step-item/step-item.vue", + "default": "./npm_dist/step-item/step-item.vue" + }, + "./stepper/stepper.vue": { + "types": "./npm_dist/types/stepper.d.ts", + "import": "./npm_dist/stepper/stepper.vue", + "default": "./npm_dist/stepper/stepper.vue" + }, + "./steps/steps.vue": { + "types": "./npm_dist/types/steps.d.ts", + "import": "./npm_dist/steps/steps.vue", + "default": "./npm_dist/steps/steps.vue" + }, + "./sticky/sticky.vue": { + "types": "./npm_dist/types/sticky.d.ts", + "import": "./npm_dist/sticky/sticky.vue", + "default": "./npm_dist/sticky/sticky.vue" + }, + "./swipe-cell/swipe-cell.vue": { + "types": "./npm_dist/types/swipe-cell.d.ts", + "import": "./npm_dist/swipe-cell/swipe-cell.vue", + "default": "./npm_dist/swipe-cell/swipe-cell.vue" + }, + "./swiper/swiper.vue": { + "types": "./npm_dist/types/swiper.d.ts", + "import": "./npm_dist/swiper/swiper.vue", + "default": "./npm_dist/swiper/swiper.vue" + }, + "./swiper-nav/swiper-nav.vue": { + "types": "./npm_dist/types/swiper-nav.d.ts", + "import": "./npm_dist/swiper-nav/swiper-nav.vue", + "default": "./npm_dist/swiper-nav/swiper-nav.vue" + }, + "./switch/switch.vue": { + "types": "./npm_dist/types/switch.d.ts", + "import": "./npm_dist/switch/switch.vue", + "default": "./npm_dist/switch/switch.vue" + }, + "./tab-bar/tab-bar.vue": { + "types": "./npm_dist/types/tab-bar.d.ts", + "import": "./npm_dist/tab-bar/tab-bar.vue", + "default": "./npm_dist/tab-bar/tab-bar.vue" + }, + "./tab-bar-item/tab-bar-item.vue": { + "types": "./npm_dist/types/tab-bar-item.d.ts", + "import": "./npm_dist/tab-bar-item/tab-bar-item.vue", + "default": "./npm_dist/tab-bar-item/tab-bar-item.vue" + }, + "./tab-panel/tab-panel.vue": { + "types": "./npm_dist/types/tab-panel.d.ts", + "import": "./npm_dist/tab-panel/tab-panel.vue", + "default": "./npm_dist/tab-panel/tab-panel.vue" + }, + "./tabs/tabs.vue": { + "types": "./npm_dist/types/tabs.d.ts", + "import": "./npm_dist/tabs/tabs.vue", + "default": "./npm_dist/tabs/tabs.vue" + }, + "./tag/tag.vue": { + "types": "./npm_dist/types/tag.d.ts", + "import": "./npm_dist/tag/tag.vue", + "default": "./npm_dist/tag/tag.vue" + }, + "./textarea/textarea.vue": { + "types": "./npm_dist/types/textarea.d.ts", + "import": "./npm_dist/textarea/textarea.vue", + "default": "./npm_dist/textarea/textarea.vue" + }, + "./toast/toast.vue": { + "types": "./npm_dist/types/toast.d.ts", + "import": "./npm_dist/toast/toast.vue", + "default": "./npm_dist/toast/toast.vue" + }, + "./tree-select/tree-select.vue": { + "types": "./npm_dist/types/tree-select.d.ts", + "import": "./npm_dist/tree-select/tree-select.vue", + "default": "./npm_dist/tree-select/tree-select.vue" + }, + "./upload/upload.vue": { + "types": "./npm_dist/types/upload.d.ts", + "import": "./npm_dist/upload/upload.vue", + "default": "./npm_dist/upload/upload.vue" + }, + "./watermark/watermark.vue": { + "types": "./npm_dist/types/watermark.d.ts", + "import": "./npm_dist/watermark/watermark.vue", + "default": "./npm_dist/watermark/watermark.vue" + } + }, "scripts": { "dev": "concurrently \"npm run watch\" \"pnpm --filter=\"./example\" dev:h5\" \"pnpm --filter=\"./site\" dev\"", "dev:h5": "concurrently \"npm run watch\" \"pnpm --filter=\"./example\" dev:h5\"", diff --git a/packages/tdesign-uniapp/site/docs.config.js b/packages/tdesign-uniapp/site/docs.config.js index 15d100e25..99095f774 100644 --- a/packages/tdesign-uniapp/site/docs.config.js +++ b/packages/tdesign-uniapp/site/docs.config.js @@ -17,7 +17,7 @@ export const docs = [ titleEn: 'CHANGELOG', name: 'changelog', path: '/uniapp/changelog', - component: () => import('@/CHANGELOG.md'), + component: () => import('../CHANGELOG.md'), }, { title: '组件概览', @@ -611,10 +611,10 @@ export const docs = [ }, ]; -const enDocs = docs.map(doc => ({ +const enDocs = docs.map((doc) => ({ ...doc, title: doc.titleEn, - children: doc?.children?.map(child => ({ + children: doc?.children?.map((child) => ({ title: child.titleEn, name: `${child.name}-en`, path: `${child.path}-en`, diff --git a/packages/uniapp-components/.npmrc b/packages/uniapp-components/.npmrc deleted file mode 100644 index 214c29d13..000000000 --- a/packages/uniapp-components/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://registry.npmjs.org/ diff --git a/packages/uniapp-components/package.json b/packages/uniapp-components/package.json index 168e261ee..0541f998f 100644 --- a/packages/uniapp-components/package.json +++ b/packages/uniapp-components/package.json @@ -1,5 +1,6 @@ { - "name": "tdesign-uniapp", + "name": "@tdesign/uniapp-components", + "private": true, "id": "tdesign-uniapp", "version": "0.5.5", "author": "novlan1", diff --git a/packages/uniapp-pro-components/chat/.npmrc b/packages/uniapp-pro-components/chat/.npmrc deleted file mode 100644 index 214c29d13..000000000 --- a/packages/uniapp-pro-components/chat/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://registry.npmjs.org/ diff --git a/packages/uniapp-pro-components/chat/global.d.ts b/packages/uniapp-pro-components/chat/global.d.ts deleted file mode 100644 index a2752f1e9..000000000 --- a/packages/uniapp-pro-components/chat/global.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -declare module 'vue' { - export interface GlobalComponents { - TAttachments: typeof import('tdesign-uniapp/attachments/attachments.vue').default; - TChatActionbar: typeof import('tdesign-uniapp/chat-actionbar/chat-actionbar.vue').default; - TChatContent: typeof import('tdesign-uniapp/chat-content/chat-content.vue').default; - TChatList: typeof import('tdesign-uniapp/chat-list/chat-list.vue').default; - TChatLoading: typeof import('tdesign-uniapp/chat-loading/chat-loading.vue').default; - TChatMarkdown: typeof import('tdesign-uniapp/chat-markdown/chat-markdown.vue').default; - TChatMessage: typeof import('tdesign-uniapp/chat-message/chat-message.vue').default; - TChatSender: typeof import('tdesign-uniapp/chat-sender/chat-sender.vue').default; - TChatThinking: typeof import('tdesign-uniapp/chat-thinking/chat-thinking.vue').default; - } -} - -export {}; diff --git a/packages/uniapp-pro-components/chat/package.json b/packages/uniapp-pro-components/chat/package.json index f05fb3763..aec39ee40 100644 --- a/packages/uniapp-pro-components/chat/package.json +++ b/packages/uniapp-pro-components/chat/package.json @@ -1,8 +1,7 @@ { - "name": "tdesign-uniapp-chat", + "name": "@tdesign/uniapp-pro-components-chat", "id": "tdesign-uniapp-chat", - "version": "0.1.1", - "author": "novlan1", + "private": true, "title": "tdesign-uniapp-chat", "description": "TDesign Chat Component for uniapp", "typings": "./types/index.d.ts",