Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pkg-pr-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
15 changes: 15 additions & 0 deletions packages/tdesign-uniapp-chat/global.d.ts
Original file line number Diff line number Diff line change
@@ -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 {};
64 changes: 60 additions & 4 deletions packages/tdesign-uniapp-chat/package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
7 changes: 3 additions & 4 deletions packages/tdesign-uniapp-chat/site/docs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '常见问题',
Expand Down Expand Up @@ -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`,
Expand All @@ -163,4 +163,3 @@ export const enDocs = docs.map(doc => ({
}));

export default { enDocs, docs };

2 changes: 1 addition & 1 deletion packages/tdesign-uniapp/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "tdesign-uniapp",
"name": "tdesign-uniapp",
"name": "tdesign-uniapp-example",
"displayName": "tdesign-uniapp 示例工程",
"version": "3.4.9",
"description": "tdesign-uniapp 示例工程",
Expand Down
17 changes: 5 additions & 12 deletions packages/tdesign-uniapp/example/script/release/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -60,5 +54,4 @@ async function prepareOne({
console.log(`[Wrote] done! Length is ${list.length}!`);
}


main();
Loading
Loading