Skip to content

chore(release): v3.1.6-beta.20 #1419

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

Open
wants to merge 71 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
13a5f57
feat: refactor Component construct
rayhomie Feb 24, 2025
b64439c
feat: refactor Component construct
rayhomie Feb 24, 2025
5dfe3e7
feat: refactor Component construct
rayhomie Feb 24, 2025
80dbab4
fix: wx input cursor problem
rayhomie Feb 25, 2025
bfab75d
fix: wx input cursor problem
rayhomie Feb 25, 2025
6d1b226
Merge branch 'master' into refactor-component-constructor
rayhomie Feb 26, 2025
3caff01
fix: imageUpload default maxCount
rayhomie Feb 26, 2025
f122742
fix: imageUpload default maxCount
rayhomie Feb 26, 2025
130bf27
Merge branch 'refactor-component-constructor' of github.com:ant-desig…
rayhomie Feb 26, 2025
983c370
Merge branch 'refactor-component-constructor' into 3.1.6-beta
rayhomie Feb 26, 2025
a5198fa
Merge branch 'refactor-component-constructor' of github.com:ant-desig…
rayhomie Feb 26, 2025
bbfd055
feat: adjust input max min default value
rayhomie Feb 27, 2025
33ac340
Merge branch 'refactor-component-constructor' into 3.1.6-beta
rayhomie Feb 27, 2025
3e5f1cd
feat: adjust input max min default value
rayhomie Feb 27, 2025
60719a7
feat: adjust input max min default value
rayhomie Feb 27, 2025
4808d7e
Merge branch 'master' into refactor-component-constructor
rayhomie Feb 27, 2025
b21c2f7
feat: 表单项单行都可以点击
rayhomie Mar 4, 2025
1c113c9
Merge branch 'feat-form-layout' into 3.1.6-beta
rayhomie Mar 4, 2025
d38c13a
feat: 表单项单行都可以点击
rayhomie Mar 4, 2025
defc73d
Merge branch 'master' into 3.1.6-beta
rayhomie Mar 4, 2025
7f3cb5c
fix: table width
rayhomie Mar 12, 2025
3f1707c
Merge branch 'fix-table-width' into 3.1.6-beta
rayhomie Mar 12, 2025
cddb96c
fix: form setfiledsvalues override
rayhomie Mar 14, 2025
35b7cc7
fix: form setfiledsvalues override
rayhomie Mar 14, 2025
d2e543d
fix: form setfiledsvalues override
rayhomie Mar 14, 2025
ea7a951
Merge branch 'fix-form-setfields-value' into 3.1.6-beta
rayhomie Mar 14, 2025
8b69a7e
fix: form setfiledsvalues override
rayhomie Mar 14, 2025
48f41f4
fix: calendar week titlearea disappear in popup
rayhomie Mar 24, 2025
8b0460f
Merge branch 'fix-calendar-autoresize' into 3.1.6-beta
rayhomie Mar 24, 2025
ee4b98e
fix: checkbox icon change
rayhomie Mar 27, 2025
7368b41
fix: checkbox icon change
rayhomie Mar 27, 2025
f8abdf3
Merge branch 'style-checkbox-icon' into 3.1.6-beta
rayhomie Mar 28, 2025
43de2ed
Merge branch 'master' into 3.1.6-beta
rayhomie Mar 28, 2025
a064468
fix: form empty array readonly logic
rayhomie Mar 31, 2025
39275d8
Merge branch 'fix-form-readonly' into 3.1.6-beta
rayhomie Mar 31, 2025
39e3a0e
fix: form empty array readonly logic
rayhomie Mar 31, 2025
67fc996
fix: collapse support miniplugin
rayhomie Apr 3, 2025
7314a55
Merge branch 'feat-collapse-support-miniplugin' into 3.1.6-beta
rayhomie Apr 3, 2025
4a07ebf
Merge branch 'master' into 3.1.6-beta
rayhomie Apr 11, 2025
c5e2c46
fix: publish problem
rayhomie Apr 11, 2025
ad39753
fix: publish problem
rayhomie Apr 11, 2025
177f564
fix: publish problem
rayhomie Apr 11, 2025
a0dfcc5
fix: textarea controlled problem
rayhomie Apr 15, 2025
0a7463b
Merge branch 'fix-textArea-controlled' into 3.1.6-beta
rayhomie Apr 15, 2025
5194f1c
chore: update verison
rayhomie Apr 15, 2025
524f3fb
Merge branch 'master' into 3.1.6-beta
rayhomie Apr 15, 2025
1b7b66e
fix: wx ontap double trigger
rayhomie Apr 22, 2025
75972f6
Merge branch 'fix-wx-ontap' into 3.1.6-beta
rayhomie Apr 22, 2025
2de72c0
fix: wx ontap double trigger
rayhomie Apr 22, 2025
db2e8f8
feat: date-picker支持content-header插槽
rayhomie Apr 22, 2025
fe94684
feat: date-picker 属性变化后,需要更新渲染的值
rayhomie Apr 22, 2025
a140f01
Merge branch 'feat-data-picker-slot' into 3.1.6-beta
rayhomie Apr 22, 2025
b6193c6
feat: date-picker 属性变化后,需要更新渲染的值
rayhomie Apr 22, 2025
2c7deb1
feat: 插槽定制Header
rayhomie May 14, 2025
74921c2
feat: 插槽定制Header
rayhomie May 14, 2025
ff81c9c
feat: 插槽定制Header
rayhomie May 14, 2025
44cdcef
Merge branch 'feat-popup-close-slot' into 3.1.6-beta
rayhomie May 14, 2025
c797dc0
feat: 插槽定制Header
rayhomie May 14, 2025
8cb4f75
feat: bundle兼容component2
rayhomie May 17, 2025
859363a
feat: bundle兼容component2
rayhomie May 17, 2025
2a97479
Merge branch 'feat-component2' into 3.1.6-beta
rayhomie May 19, 2025
3fcfdfd
feat: bundle兼容component2
rayhomie May 19, 2025
e3cdcb9
fix: datePicker弹窗关闭后重置暂存的选项
rayhomie May 22, 2025
453716d
Merge branch 'fix-date-picker' into 3.1.6-beta
rayhomie May 22, 2025
b84a667
feat: 版本号更新
rayhomie May 22, 2025
d4f72e2
fix: popup的visible假值变化问题
rayhomie May 29, 2025
f5f7257
Merge branch 'fix-popup-visible' into 3.1.6-beta
rayhomie May 29, 2025
45a6d57
fix: popup的visible假值变化问题
rayhomie May 29, 2025
8e72fb1
Merge branch 'master' into 3.1.6-beta
rayhomie May 29, 2025
f612bd5
fIx: 修复日历组件sticky标题位置错乱问题
rayhomie Jun 3, 2025
6948a83
Merge branch 'fix-calendar-sticky-title' into 3.1.6-beta
rayhomie Jun 3, 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
4 changes: 3 additions & 1 deletion demo/pages/Calendar/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@
width="{{250}}"
height="{{600}}"
onClose="onPopupClose">
<ant-calendar></ant-calendar>
<ant-calendar
monthRange="{{demo10.monthRange}}"
></ant-calendar>
</ant-popup>

</view>
4 changes: 4 additions & 0 deletions demo/pages/Calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ Page({
},
demo10: {
visible: false,
monthRange: [
dayjs().subtract(1, 'year').valueOf(),
dayjs().add(1, 'year').valueOf(),
],
},
},
demo3NextMonth() {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antd-mini",
"version": "3.1.14",
"version": "3.1.6-beta.20",
"description": "antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。",
"miniprogram": "compiled/wechat/src",
"scripts": {
Expand Down Expand Up @@ -159,4 +159,4 @@
],
"license": "MIT",
"homepage": "https://github.com/ant-design/ant-design-mini"
}
}
4 changes: 2 additions & 2 deletions src/Calendar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
}

&-cell {
box-sizing: border-box;
box-sizing: content-box;
width: calc((100% - 6 * @calendar-cell-space-size) / 7);
height: @calendar-cell-height;
margin-bottom: @calendar-cell-bottom-margin;
padding-bottom: @calendar-cell-bottom-margin;
position: relative;

&-container {
Expand Down
39 changes: 21 additions & 18 deletions src/Calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,34 +82,37 @@ ComponentWithSignalStoreImpl({
},
measurement() {
const { elementSize } = this.data;
// 组件如果内嵌在 slot 里, 一定会被渲染出来, 但是此时 cellHight 为 0
// 组件如果内嵌在 slot 里, 一定会被渲染出来, 但是此时 cellHeight 为 0
// 此时需要重新计算
if (!elementSize || elementSize.cellHight === 0) {
if (!elementSize || elementSize.cellHeight === 0) {
this.measurementFn();
}
},
measurementFn() {
Promise.all([
this.getBoundingClientRect('.ant-calendar-body-container'),
this.getBoundingClientRect('.ant-calendar-cells'),
this.getBoundingClientRect('.ant-calendar-cell'),
this.getBoundingClientRect('.ant-calendar-title-container'),
])
.then(([bodyContainer, cellContainer, Title]) => {
// 滚动的时候 top 和 bottom 等尺寸会变
// 所以只能依赖 height 来计算
const paddingHeight =
bodyContainer.height - cellContainer.height - Title.height;
const monthTitleHeight = Title.height + paddingHeight;
const cellHight =
cellContainer.height / (this.data.monthList[0].cells.length / 7);
this.setData({
elementSize: {
monthTitleHeight,
cellHight,
paddingHeight,
},
});
})
.then(
([bodyContainer, cellsContainer, cellContainer, titleContainer]) => {
// 滚动的时候 top 和 bottom 等尺寸会变
// 所以只能依赖 height 来计算
const paddingHeight =
bodyContainer.height -
cellsContainer.height -
titleContainer.height;
const monthTitleHeight = titleContainer.height + paddingHeight;
this.setData({
elementSize: {
monthTitleHeight,
cellHeight: cellContainer.height,
paddingHeight,
},
});
}
)
.catch(() => {
this.setData({ elementSize: null });
});
Expand Down
6 changes: 3 additions & 3 deletions src/Calendar/scroll.sjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function handleScroll(event, ownerComponent) {
if (!elementSize) {
return;
}
// 组件如果内嵌在 slot 里, 一定会被渲染出来, 但是此时 cellHight 为 0
if (elementSize.cellHight === 0) {
// 组件如果内嵌在 slot 里, 一定会被渲染出来, 但是此时 cellHeight 为 0
if (elementSize.cellHeight === 0) {
ownerComponent.callMethod('measurement');
return;
}
Expand All @@ -19,7 +19,7 @@ function handleScroll(event, ownerComponent) {
}
const monthHeight = elementSize.monthTitleHeight;
const paddingHeight = elementSize.paddingHeight;
const cellHeight = elementSize.cellHight;
const cellHeight = elementSize.cellHeight;
const heightList = monthList.map((p) => {
return monthHeight + (cellHeight * p.cells.length) / 7;
});
Expand Down