We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
form-picker组件
钉钉小程序
2.35.1
根据data内部的true和false,动态加载是否能点击弹出picker选择
xml
js: isThreeDaysAgo是一个方法 返回 true 或 false if (isThreeDaysAgo(date)) { this.setData({ isDelayFiling: true, disabledInfo: true }) } else { this.setData({ disabledInfo: false, isDelayFiling: false }) }
The text was updated successfully, but these errors were encountered:
我这边正常的。
<view class="editorial_staff"> <view class="editorial_scroll"> <scroll-view scroll-y class="editorial_info"> <form-picker label="水果" arrow name="fruit" options="{{ fruitList }}" ref="handleRef" disabled="{{pickerDisabled}}" /> pickerDisabled:{{pickerDisabled}} </scroll-view> </view> <view class="editorial_btn"> <ant-button type="primary" onTap="dis"> 改变pickerDisabled </ant-button> </view> </view>
import { Form } from 'antd-mini/es/Form/form'; Page({ data: { fruitList: ['苹果', '香蕉', '橘子', '西瓜'], pickerDisabled: false, }, onLoad() { this.form = new Form(); }, handleRef(ref) { this.form.addItem(ref); }, dis() { const { pickerDisabled } = this.data this.setData({ pickerDisabled: !pickerDisabled }) } });
Sorry, something went wrong.
No branches or pull requests
组件
form-picker组件
基础库版本
设备机型
手机系统
APP
钉钉小程序
组件库版本
2.35.1
预期行为
根据data内部的true和false,动态加载是否能点击弹出picker选择
复现步骤
复现 demo
xml
js: isThreeDaysAgo是一个方法 返回 true 或 false
if (isThreeDaysAgo(date)) {
this.setData({
isDelayFiling: true,
disabledInfo: true
})
} else {
this.setData({
disabledInfo: false,
isDelayFiling: false
})
}
The text was updated successfully, but these errors were encountered: