-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5301904
commit 8352839
Showing
9 changed files
with
83 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
copilot-demo/pages/Bubble/index.json → copilot-demo/pages/Bubble/index.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
9 changes: 9 additions & 0 deletions
9
copilot-demo/pages/Sender/index.json → copilot-demo/pages/Sender/index.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters