Skip to content

chore(release): v3.1.6-beta.15 #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 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 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
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
8 changes: 6 additions & 2 deletions demo/pages/DatePicker/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
onPickerChange="handlePickerChange"
onVisibleChange="handleTriggerPicker"
onCancel="handleDismiss"
onOk="handleOk" />
onOk="handleOk" >
<view slot="content-header">插入一些内容</view>
</ant-date-picker>
</ant-list-item>
<ant-list-item>
请选择日期(点击蒙层不关闭)
Expand Down Expand Up @@ -109,7 +111,9 @@
defaultValue="{{ defaultDateRange }}"
onPickerChange="handlePickerRangeChange"
onVisibleChange="handleTriggerPicker"
onOk="handleRangeOk" />
onOk="handleRangeOk" >
<view slot="content-header">插入一些内容</view>
</ant-date-picker>
</ant-list-item>
<ant-list-item>
受控模式
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.12",
"version": "3.1.6-beta.15",
"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"
}
}
11 changes: 7 additions & 4 deletions src/DatePicker/RangePicker/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@
onVisibleChange="onVisibleChange"
maskClosable="{{ maskClosable }}"
>
<view class="ant-range-picker-selector" slot="content-header">
<template is="selector" data="{{ placeholder: u.isPropsEmpty(startPlaceholder) ? locale.RangePicker.startPlaceholder : startPlaceholder, active: pickerType === 'start', type: 'start', value: currentStartValueStr, precision: precision }}" />
<view class="ant-range-picker-selector-split">{{ splitCharacter }}</view>
<template is="selector" data="{{ placeholder: u.isPropsEmpty(endPlaceholder) ? locale.RangePicker.endPlaceholder : endPlaceholder, active: pickerType === 'end', type: 'end', value: currentEndValueStr, precision: precision }}" />
<view slot="content-header">
<slot name="content-header"></slot>
<view class="ant-range-picker-selector">
<template is="selector" data="{{ placeholder: u.isPropsEmpty(startPlaceholder) ? locale.RangePicker.startPlaceholder : startPlaceholder, active: pickerType === 'start', type: 'start', value: currentStartValueStr, precision: precision }}" />
<view class="ant-range-picker-selector-split">{{ splitCharacter }}</view>
<template is="selector" data="{{ placeholder: u.isPropsEmpty(endPlaceholder) ? locale.RangePicker.endPlaceholder : endPlaceholder, active: pickerType === 'end', type: 'end', value: currentEndValueStr, precision: precision }}" />
</view>
</view>
<slot name="content" slot="content" />
<slot name="title" slot="title" />
Expand Down
14 changes: 14 additions & 0 deletions src/DatePicker/RangePicker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ ComponentWithSignalStoreImpl({
this.setCurrentValue(currentProps);
}
}
if (!equal(currentProps, prevProps)) {
if (this.pickerVisible) {
this.setCurrentValue(currentProps);
}
}
},
/// #endif
/// #if WECHAT
Expand All @@ -380,6 +385,15 @@ ComponentWithSignalStoreImpl({
});
},
observers: {
'**': function (data) {
const prevData = this._prevData || this.data;
this._prevData = { ...data };
if (!equal(prevData, data)) {
if (this.pickerVisible) {
this.setCurrentValue(getValueFromProps(this));
}
}
},
'visible': function (data) {
const prevVisible = this._prevVisible;
this._prevVisible = data;
Expand Down
4 changes: 4 additions & 0 deletions src/DatePicker/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
formattedValueText="{{ formattedValueText }}"
onVisibleChange="onVisibleChange"
maskClosable="{{ maskClosable }}">
<slot
name="content-header"
slot="content-header"
/>
<slot
name="content"
slot="content" />
Expand Down
4 changes: 4 additions & 0 deletions src/DatePicker/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ Page({
| popClassName | 弹出框类名 | string | - |
| popStyle | 弹出框样式 | string | - |
| precision | 选择精度,可选 `year` `month` `day` `hour` `minute` `second` | string | `day` |
| content-header | 弹窗内容顶部 | slot | - |
| style | 样式 | string | - |
| prefix | 前缀 | slot | - |
| style | 样式 | string | - |
| suffix | 后缀 | slot | - |
Expand Down Expand Up @@ -294,6 +296,8 @@ Page({
| precision | 选择精度,可选 `year` `month` `day` `hour` `minute` | string | `day` |
| splitCharacter | 显示连接符 | string | - |
| startPlaceholder | 开始时间提示文案 | string | "未选择" |
| content-header | 弹窗内容顶部 | slot | - |
| style | 样式 | string | - |
| prefix | 前缀 | slot | - |
| style | 样式 | string | - |
| suffix | 后缀 | slot | - |
Expand Down
16 changes: 15 additions & 1 deletion src/DatePicker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Component({
const { min, max, precision, defaultPickerValue } = currentProps;
if (realValue) {
return getValueByDate(realValue, precision,);
}
}
// 处理默认值
let baseDate: Date | null = null;
if (defaultPickerValue) {
Expand Down Expand Up @@ -300,6 +300,11 @@ Component({
this.setCurrentValue(currentProps);
}
}
if (!equal(currentProps, prevProps)) {
if (this.pickerVisible) {
this.setCurrentValue(currentProps);
}
}
},
/// #endif
/// #if WECHAT
Expand All @@ -315,6 +320,15 @@ Component({
});
},
observers: {
'**': function (data) {
const prevData = this._prevData || this.data;
this._prevData = { ...data };
if (!equal(prevData, data)) {
if (this.pickerVisible) {
this.setCurrentValue(getValueFromProps(this));
}
}
},
'mixin.value': function () {
this.setData({
forceUpdate: this.data.forceUpdate + 1,
Expand Down