Skip to content

Commit

Permalink
Adjust x-components demo style (#1393)
Browse files Browse the repository at this point in the history
* feat: 尝试删除compiled

* feat: 改造compiled

* feat: 修改real_release.yml文件

* fix: eslintignore

* fix: 修改beta版本号

* fix: release时不再需要重复run build

* feat: 将几处demo页面列表及组件列表的配置文件改为动态生成

* fix: rm app.json

* fix: 提示优化

* fix: 更改beta版本号

* feat: Copilot组件框架

* fix: 增加编译流程

* prompts 组件 (#1345)

* Feat/noticebar support multiple line (#1333)

* fix: temp

* feat: noticeBar组件支持多行展示

* fix: del compiled

* fix: del app.json

* fix: rerun cloudflare pages

---------

Co-authored-by: dennis.zpf <[email protected]>

* fix: 闭合 Button 标签 (#1329)

* fix: 闭合 Button 标签

* docs: checkbox Introducing

---------

Co-authored-by: 柏丘 <[email protected]>
Co-authored-by: rayhomie <[email protected]>

* feat: release.yml增加npm run build指令 (#1335)

* fix: temp

* feat: noticeBar组件支持多行展示

* fix: del compiled

* fix: del app.json

* fix: rerun cloudflare pages

* fix: release.yml脚本增加npm run build

---------

Co-authored-by: dennis.zpf <[email protected]>

* chore(release): v3.0.2 (#1336)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: popover theme color (#1338)

* fix: tabs wechat error (#1340)

* chore(release): v3.0.3 (#1342)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* feat: 新增组件prompts框架

* feat: 新增组件prompts

* feat: demo调整

* feat: css 样式变量化 为暗黑模式适配留坑位

* feat: css 样式变量化 为暗黑模式适配留坑位

* feat: demo 完善

* feat: demo 完善

* feat: demo 完善

* feat: demo 完善

* feat: 命名优化

---------

Co-authored-by: Dennis <[email protected]>
Co-authored-by: dennis.zpf <[email protected]>
Co-authored-by: 赵林 <[email protected]>
Co-authored-by: 柏丘 <[email protected]>
Co-authored-by: rayhomie <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: weifang.jiagweifan <[email protected]>

* feat: copilot suggestion dev

* Copilot suggestion dev (#1356)

* feat: copilot suggestion dev

* feat: copilot suggestion dev

* feat: copilot prompts dev

* feat: copilot prompts dev

* feat: merge prompts & suggestion (#1381)

* Feat Conversations (#1388)

* feat: init copilot conversations

* feat: dev copilot conversations

* feat: dev copilot conversations

* feat: dev copilot conversations

* feat: dev copilot conversations

* feat: dev copilot conversations

* feat: dev copilot conversations

* feat: Add copilot components

* feat: add dark mode

* copilot系列-思维链组件 (#1355)

* feat: thought-chain组件开发

* feat: 思考链组件demo及文档完善

* fix: 修改标题

* CascaderPicker引用路径错误修正 (#1343)

* fix: popup title cant display in wechat platform (#1358)

* fix-some-demo-op (#1341)

* fix: 优化选人组件高度

* fix: 优化文案

---------

Co-authored-by: shijia.sj <[email protected]>

* Update the link to the correct migration documentation (#1325)

* Update faq.md

迁移文档的链接指的是本地主机而不是文档域。


The link to the migration document refers to the localhost instead of the documentation domain.

* Include all instance of localhost.

* docs: update doc

* Feat/table ellipse (#1359)

* fix: temp

* fix: 删除无用代码

* feat: table组件支持多行省略配置 & tabs bar增加一个类配置

* fix: 还原文件格式

* fix: 格式优化

* fix: 触发flouer page

---------

Co-authored-by: dennis.zpf <[email protected]>

* chore(release): v3.0.5 (#1362)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Wx problem fix (#1364)

* fix: inline button style fix in wechat platform

* docs: translate doc

* docs: translate doc

* Add wx:key (#1370)

* fix: inline button style fix in wechat platform

* docs: translate doc

* docs: translate doc

* feat: wx:key add

* Feat/table ellipse (#1365)

* fix: temp

* fix: 删除无用代码

* feat: table组件支持多行省略配置 & tabs bar增加一个类配置

* fix: 还原文件格式

* fix: 格式优化

* fix: 触发flouer page

* feat: 表头也支持换行

* fix: 去掉注释

---------

Co-authored-by: dennis.zpf <[email protected]>

* fix: form onValueChange validate time series problem (#1372)

* fix: form onValueChange validate time series problem

* fix: form onValueChange validate time series problem

* chore(release): v3.0.6 (#1376)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: card divider (#1377)

* Fix card divier (#1378)

* fix: card divider

* fix: button add loading

* fix: aide button in wechat platform

* fix: display range problem (#1383)

* chore(release): v3.0.7 (#1384)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: adjust doc

* chore: nav 新增功能动效

* chore: nav 新增功能动效

* fix: 更新chain-thought组件

* fix: 优化事件和文档

* feat: welcome组件

---------

Co-authored-by: dennis.zpf <[email protected]>
Co-authored-by: dahlzb <[email protected]>
Co-authored-by: homi <[email protected]>
Co-authored-by: ShiJia <[email protected]>
Co-authored-by: shijia.sj <[email protected]>
Co-authored-by: Michael Gichia <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* 优化思维链组件 (#1389)

* feat: thought-chain组件开发

* feat: 思考链组件demo及文档完善

* fix: 修改标题

* CascaderPicker引用路径错误修正 (#1343)

* fix: popup title cant display in wechat platform (#1358)

* fix-some-demo-op (#1341)

* fix: 优化选人组件高度

* fix: 优化文案

---------

Co-authored-by: shijia.sj <[email protected]>

* Update the link to the correct migration documentation (#1325)

* Update faq.md

迁移文档的链接指的是本地主机而不是文档域。


The link to the migration document refers to the localhost instead of the documentation domain.

* Include all instance of localhost.

* docs: update doc

* Feat/table ellipse (#1359)

* fix: temp

* fix: 删除无用代码

* feat: table组件支持多行省略配置 & tabs bar增加一个类配置

* fix: 还原文件格式

* fix: 格式优化

* fix: 触发flouer page

---------

Co-authored-by: dennis.zpf <[email protected]>

* chore(release): v3.0.5 (#1362)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Wx problem fix (#1364)

* fix: inline button style fix in wechat platform

* docs: translate doc

* docs: translate doc

* Add wx:key (#1370)

* fix: inline button style fix in wechat platform

* docs: translate doc

* docs: translate doc

* feat: wx:key add

* Feat/table ellipse (#1365)

* fix: temp

* fix: 删除无用代码

* feat: table组件支持多行省略配置 & tabs bar增加一个类配置

* fix: 还原文件格式

* fix: 格式优化

* fix: 触发flouer page

* feat: 表头也支持换行

* fix: 去掉注释

---------

Co-authored-by: dennis.zpf <[email protected]>

* fix: form onValueChange validate time series problem (#1372)

* fix: form onValueChange validate time series problem

* fix: form onValueChange validate time series problem

* chore(release): v3.0.6 (#1376)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: card divider (#1377)

* Fix card divier (#1378)

* fix: card divider

* fix: button add loading

* fix: aide button in wechat platform

* fix: display range problem (#1383)

* chore(release): v3.0.7 (#1384)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: adjust doc

* chore: nav 新增功能动效

* chore: nav 新增功能动效

* fix: 更新chain-thought组件

* fix: 优化事件和文档

* feat: welcome组件

* fix: 修复深色模式问题

---------

Co-authored-by: dennis.zpf <[email protected]>
Co-authored-by: dahlzb <[email protected]>
Co-authored-by: homi <[email protected]>
Co-authored-by: ShiJia <[email protected]>
Co-authored-by: shijia.sj <[email protected]>
Co-authored-by: Michael Gichia <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix: adjust wx

* fix: add demos

* style: change text

* fix: 修复微信编译问题

* fix: fix props & doc contents

* fix: 修复微信兼容问题

* fix: 修复demo问题

* fix: 更新文档

* fix: update doc

* docs: add en path

* fix: 统一demo样式

---------

Co-authored-by: dennis.zpf <[email protected]>
Co-authored-by: Ray0329 <[email protected]>
Co-authored-by: Dennis <[email protected]>
Co-authored-by: 赵林 <[email protected]>
Co-authored-by: 柏丘 <[email protected]>
Co-authored-by: rayhomie <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: weifang.jiagweifan <[email protected]>
Co-authored-by: dahlzb <[email protected]>
Co-authored-by: ShiJia <[email protected]>
Co-authored-by: shijia.sj <[email protected]>
Co-authored-by: Michael Gichia <[email protected]>
  • Loading branch information
14 people authored Jan 24, 2025
1 parent a513442 commit f4f1e27
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 81 deletions.
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

0 comments on commit f4f1e27

Please sign in to comment.