Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust x-components demo style #1393

Merged
merged 44 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
af09893
feat: 尝试删除compiled
Nov 26, 2024
8b62eb8
feat: 改造compiled
Nov 26, 2024
99d3649
feat: 修改real_release.yml文件
Nov 26, 2024
a601414
fix: eslintignore
Nov 27, 2024
1358c68
fix: 修改beta版本号
Nov 27, 2024
2ff2296
fix: release时不再需要重复run build
Nov 27, 2024
7ce5106
feat: 将几处demo页面列表及组件列表的配置文件改为动态生成
Nov 28, 2024
b38f81b
fix: 合并master
Nov 28, 2024
4add3a1
fix: rm app.json
Nov 28, 2024
5b22f3e
fix: 合并Master迭代
Dec 3, 2024
995f1ad
fix: 提示优化
Dec 3, 2024
fbefbd2
fix: 更改beta版本号
Dec 4, 2024
f42707c
feat: 引入copilot系列组件
Dec 5, 2024
9875266
fix: 合并master
Dec 9, 2024
bd90c2a
feat: Copilot组件框架
Dec 11, 2024
566a68d
fix: 增加编译流程
Dec 12, 2024
ab37591
feat: 升级copilot架构
Dec 12, 2024
8101338
prompts 组件 (#1345)
Ray0329 Jan 2, 2025
55a9907
Merge branch 'master' into feat/x-components
rayhomie Jan 2, 2025
08d59f1
feat: copilot suggestion dev
rayhomie Jan 2, 2025
1ce04c8
Copilot suggestion dev (#1356)
rayhomie Jan 7, 2025
3c21d95
feat: merge prompts & suggestion (#1381)
rayhomie Jan 14, 2025
ddaf664
Feat Conversations (#1388)
rayhomie Jan 23, 2025
7999320
feat: Add copilot components
anotherso1a Jan 23, 2025
52437e4
chore: solve conflicts
anotherso1a Jan 23, 2025
233a610
feat: add dark mode
anotherso1a Jan 23, 2025
d48cf36
copilot系列-思维链组件 (#1355)
coderrorer Jan 24, 2025
7505b83
优化思维链组件 (#1389)
coderrorer Jan 24, 2025
4d4a4a7
fix: adjust wx
anotherso1a Jan 24, 2025
9f7e994
chore: solve conflicts
anotherso1a Jan 24, 2025
187331b
chore: solve conflicts
anotherso1a Jan 24, 2025
3987495
fix: add demos
anotherso1a Jan 24, 2025
d6c92c8
style: change text
anotherso1a Jan 24, 2025
8bdf40d
fix: 修复微信编译问题
Jan 24, 2025
312acb2
fix: fix props & doc contents
anotherso1a Jan 24, 2025
3fd007e
fix: 修复微信兼容问题
Jan 24, 2025
1e2d7c7
fix: merge
Jan 24, 2025
724dee4
fix: 修复demo问题
Jan 24, 2025
005f29b
fix: 更新文档
Jan 24, 2025
cb61254
fix: update doc
Jan 24, 2025
20ea20b
docs: add en path
anotherso1a Jan 24, 2025
5301904
fix: solve conflicts
anotherso1a Jan 24, 2025
8352839
fix: 统一demo样式
anotherso1a Jan 24, 2025
47c862c
fix: solve conflicts
anotherso1a Jan 24, 2025
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
6 changes: 5 additions & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ export default defineConfig({
},
{
title: 'Copilot',
link: '/copilots/conversations-en',
link: '/copilots/bubble-en',
// @ts-ignore
isNew: true,
rightIcon:
'https://mdn.alipayobjects.com/huamei_2jrq4g/afts/img/A*iiKoT73_9ucAAAAAAAAAAAAAetF8AQ/original',
},
{
title: 'Resources',
Expand Down
4 changes: 3 additions & 1 deletion copilot-demo/pages/Actions/index.axml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<view class="navigation-bar" />

<ant-container title="基础用法">
<ant-actions items="{{basicActions}}" onItemTap="handleTapAction" />
</ant-container>

<ant-container title="配合bubble使用">
<ant-container title="配合 Bubble 使用">
<ant-switch checked="{{ showBubble }}" onChange="toggleBubble" />
<ant-bubble
a:if="{{ showBubble }}"
Expand Down
2 changes: 2 additions & 0 deletions copilot-demo/pages/Actions/index.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/// #if ALIPAY
"defaultTitle": "Actions",
"transparentTitle": "auto",
"titlePenetrate": "YES",
/// #endif

"usingComponents": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
/// #if WECHAT
"navigationBarTitleText": "Bubble",
/// #endif

/// #if ALIPAY
"defaultTitle": "Bubble",
"transparentTitle": "auto",
"titlePenetrate": "YES",
/// #endif
"usingComponents": {
"ant-bubble": "../../../src/Bubble/index",
"ant-actions": "../../../src/Actions/index",
Expand Down
4 changes: 0 additions & 4 deletions copilot-demo/pages/Bubble/index.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.navigation-bar {
height: var(--tf-status-bar-height);
}

.ant-copilot-bubble-name {
font-weight: 400;
font-size: 24rpx;
Expand Down
109 changes: 52 additions & 57 deletions copilot-demo/pages/Sender/index.axml
Original file line number Diff line number Diff line change
@@ -1,61 +1,56 @@
<view class="page">
<view class="content">
<ant-container title="基础用法">
<ant-sender value="{{value}}" onChange="handleChange" onSubmit="handleSend" />
</ant-container>
<view class="navigation-bar" />

<ant-container title="发送loading状态">
<ant-sender
value="{{value1}}"
placeholder="输入你想说的话..."
onChange="handleChange1"
onSubmit="handleSend1"
onCancel="handleCancel"
loading="{{loading}}"
/>
</ant-container>

<ant-container title="禁用状态">
<ant-sender disabled="{{true}}" placeholder="输入框已禁用" />
</ant-container>
<ant-container title="基础用法">
<ant-sender value="{{value}}" onChange="handleChange" onSubmit="handleSend" />
</ant-container>

<ant-container title="发送 loading 状态">
<ant-sender
value="{{value1}}"
placeholder="输入你想说的话..."
onChange="handleChange1"
onSubmit="handleSend1"
onCancel="handleCancel"
loading="{{loading}}"
/>
</ant-container>

<ant-container title="配合upload组件">
<ant-sender
value="{{value3}}"
placeholder="可以配合其他组件使用"
onChange="handleChange3"
onSubmit="handleSend3"
>
<view slot="input-header">
<ant-upload defaultFileList="{{[{ url: 'https://gw.alipayobjects.com/mdn/rms_226d75/afts/img/A*znK_ToIL8rQAAAAAAAAAAAAAARQnAQ', status: 'done' }]}}" />
</view>
</ant-sender>
</ant-container>
<ant-container title="禁用状态">
<ant-sender disabled="{{true}}" placeholder="输入框已禁用" />
</ant-container>

<ant-container title="配合bubble和prompts">
<scroll-view scroll-y style="height: 600rpx;" scroll-into-view="{{scrollToView}}">
<view a:for="{{bubbleList}}" id="msg-{{index}}">
<ant-bubble
content="{{item.content}}"
placement="{{index%2 ? 'end' : 'start'}}"
shape="{{index%2 ? 'corner' : 'default'}}"
typing="{{index%2 === 0}}"
/>
</view>
</scroll-view>
<ant-sender
value="{{value4}}"
placeholder="组合使用"
onChange="handleChange4"
onSubmit="handleSend4"
>
<ant-prompts
slot="header"
items="{{horizontalList}}"
vertical="{{false}}"
onItemTap="onItemTap"
></ant-prompts>
</ant-sender>
</ant-container>
</view>
</view>
<ant-container title="配合 ImageUpload 组件">
<ant-sender
value="{{value3}}"
placeholder="可以配合其他组件使用"
onChange="handleChange3"
onSubmit="handleSend3"
>
<view slot="input-header">
<ant-upload defaultFileList="{{[{ url: 'https://gw.alipayobjects.com/mdn/rms_226d75/afts/img/A*znK_ToIL8rQAAAAAAAAAAAAAARQnAQ', status: 'done' }]}}" />
</view>
</ant-sender>
</ant-container>

<ant-container title="配合 Bubble 和 Prompts">
<scroll-view scroll-y style="height: 600rpx;" scroll-into-view="{{scrollToView}}">
<view a:for="{{bubbleList}}" id="msg-{{index}}">
<ant-bubble
content="{{item.content}}"
placement="{{index%2 ? 'end' : 'start'}}"
shape="{{index%2 ? 'corner' : 'default'}}"
typing="{{index%2 === 0}}"
/>
</view>
</scroll-view>
<ant-sender value="{{value4}}" placeholder="组合使用" onChange="handleChange4" onSubmit="handleSend4">
<ant-prompts
slot="header"
items="{{horizontalList}}"
vertical="{{false}}"
onItemTap="onItemTap"
>
</ant-prompts>
</ant-sender>
</ant-container>
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
/// #if WECHAT
"navigationBarTitleText": "Sender",
/// #endif

/// #if ALIPAY
"defaultTitle": "Sender",
"transparentTitle": "auto",
"titlePenetrate": "YES",
/// #endif
"usingComponents": {
"ant-sender": "../../../src/Sender/index",
"ant-upload": "../../../src/ImageUpload/index",
Expand Down
15 changes: 0 additions & 15 deletions copilot-demo/pages/Sender/index.less
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@
.page {
min-height: 100vh;
background: var(--color-background);
box-sizing: border-box;
padding-bottom: 200rpx;
}

.navigation-bar {
margin-bottom: 24rpx;
height: var(--tf-status-bar-height);
}

.content {
padding: 24rpx;
}
6 changes: 4 additions & 2 deletions copilot-demo/pages/ThoughtChain/index.json5
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
/// #if WECHAT
"navigationBarTitleText": "ThoughtChain 组件",
"navigationBarTitleText": "ThoughtChain",
/// #endif

/// #if ALIPAY
"defaultTitle": "ThoughtChain 组件",
"defaultTitle": "ThoughtChain",
"transparentTitle": "auto",
"titlePenetrate": "YES",
/// #endif

"usingComponents": {
Expand Down
6 changes: 4 additions & 2 deletions copilot-demo/pages/Welcome/index.json5
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
/// #if WECHAT
"navigationBarTitleText": "Welcome 组件",
"navigationBarTitleText": "Welcome",
/// #endif

/// #if ALIPAY
"defaultTitle": "Welcome 组件",
"defaultTitle": "Welcome",
"transparentTitle": "auto",
"titlePenetrate": "YES",
/// #endif

"usingComponents": {
Expand Down
Loading