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

更新 Badge、Grid、Pagination、Toast 的 axml #1041

Merged
merged 5 commits into from
Jan 19, 2024
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
13 changes: 6 additions & 7 deletions compiled/alipay/demo/pages/Badge/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
</badge>
<badge
type="number"
text="{{2}}"
text="{{ 2 }}"
position="top-right">
<view class="box" />
</badge>
<badge
type="number"
text="{{100}}"
text="{{ 100 }}"
position="top-right">
<view class="box" />
</badge>
Expand Down Expand Up @@ -49,14 +49,14 @@
</badge>
<badge
type="number"
text="{{1}}"
text="{{ 1 }}"
stroke
position="top-right">
<view class="box" />
</badge>
<badge
type="number"
text="{{100}}"
text="{{ 100 }}"
stroke
position="top-right">
<view class="box" />
Expand All @@ -75,7 +75,7 @@
<view class="badge-list">
<badge
type="number"
text="{{1}}"
text="{{ 1 }}"
position="top-left">
<view class="box" />
</badge>
Expand All @@ -87,7 +87,7 @@
</badge>
<badge
type="number"
text="{{100}}"
text="{{ 100 }}"
stroke
bgColor="#1677FF">
<view class="box" />
Expand Down Expand Up @@ -141,7 +141,6 @@
<view class="badge-list">
<badge
type="text"
iconType="GlobalOutline"
position="top-right">
<am-icon
type="GlobalOutline"
Expand Down
2 changes: 1 addition & 1 deletion compiled/alipay/demo/pages/Badge/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Page({
data: {},
data: {},
});
60 changes: 30 additions & 30 deletions compiled/alipay/demo/pages/Grid/index.axml
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
<container title="2列">
<grid
items="{{items2}}"
items="{{ items2 }}"
onTap="handleTapItem"
columns="{{2}}" />
columns="{{ 2 }}" />
</container>
<container title="3列">
<grid
items="{{items3}}"
items="{{ items3 }}"
onTap="handleTapItem"
columns="{{3}}" />
columns="{{ 3 }}" />
</container>
<container title="4列">
<grid
items="{{items4}}"
items="{{ items4 }}"
onTap="handleTapItem"
columns="{{4}}" />
columns="{{ 4 }}" />
</container>
<container title="5列">
<grid
items="{{items5}}"
items="{{ items5 }}"
onTap="handleTapItem"
columns="{{5}}" />
columns="{{ 5 }}" />
</container>
<container title="5列-展示分割线">
<grid
items="{{items5}}"
items="{{ items5 }}"
onTap="handleTapItem"
columns="{{5}}"
columns="{{ 5 }}"
showDivider />
</container>
<container title="2列-带描述">
<grid
items="{{items2withDesc}}"
items="{{ items2withDesc }}"
onTap="handleTapItem"
columns="{{2}}" />
columns="{{ 2 }}" />
</container>
<container title="3列-带描述">
<grid
items="{{items3withDesc}}"
items="{{ items3withDesc }}"
onTap="handleTapItem"
columns="{{3}}" />
columns="{{ 3 }}" />
</container>
<container title="2列-元素横向布局">
<grid
items="{{items2}}"
items="{{ items2 }}"
onTap="handleTapItem"
columns="{{2}}"
columns="{{ 2 }}"
gridItemLayout="horizontal" />
</container>
<container title="3列-元素横向布局">
<grid
items="{{items3}}"
items="{{ items3 }}"
onTap="handleTapItem"
columns="{{3}}"
columns="{{ 3 }}"
gridItemLayout="horizontal" />
</container>
<container title="可滑动">
<grid
items="{{items4.concat(items4)}}"
items="{{ items4.concat(items4) }}"
onTap="handleTapItem"
mode="scroll" />
</container>
<container title="自定义图标大小">
<grid
items="{{itemsCustom}}"
items="{{ itemsCustom }}"
onTap="handleTapItem"
columns="{{5}}"
iconSize="{{44}}" />
columns="{{ 5 }}"
iconSize="{{ 44 }}" />
</container>
<container title="自定义">
<grid
items="{{itemsCustom}}"
items="{{ itemsCustom }}"
onTap="handleTapItem"
columns="{{5}}">
columns="{{ 5 }}">
<view
slot="icon"
slot-scope="props">
Expand All @@ -91,14 +91,14 @@
style="width: 44px; height: 44px" />
</view>
<view
slot-scope="props"
slot="title">
第{{ props.index + 1}}项
slot="title"
slot-scope="props">
第{{ props.index + 1 }}项
</view>
<view
slot-scope="props"
slot="description">
描述{{ props.index + 1}}
slot="description"
slot-scope="props">
描述{{ props.index + 1 }}
</view>
</grid>
</container>
Loading
Loading