docs: prefer shorter demo

This commit is contained in:
chenjiahan
2021-01-20 21:00:36 +08:00
parent 3787e82ec7
commit cb3219ab66
57 changed files with 95 additions and 315 deletions
+1 -3
View File
@@ -41,9 +41,7 @@ export default {
const onChange = (value, index) => {
Toast(`Value: ${value}, Index: ${index}`);
};
const onCancel = () => {
Toast('Cancel');
};
const onCancel = () => Toast('Cancel');
return {
columns,
+1 -3
View File
@@ -49,9 +49,7 @@ export default {
const onChange = (value, index) => {
Toast(`当前值: ${value}, 当前索引: ${index}`);
};
const onCancel = () => {
Toast('取消');
};
const onCancel = () => Toast('取消');
return {
columns,
+1 -3
View File
@@ -183,9 +183,7 @@ export default {
Toast(t('toastContent', value, index));
};
const onCancel = () => {
Toast(t('cancel'));
};
const onCancel = () => Toast(t('cancel'));
const onCancel2 = () => {
state.showPicker = false;