Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2020-09-07 20:41:50 +08:00
8 changed files with 20 additions and 22 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
// Utils
import { createNamespace, isDef, pick } from '../utils';
import { createNamespace, pick } from '../utils';
// Components
import Popup, { popupSharedProps } from '../popup';
@@ -102,7 +102,7 @@ export default createComponent({
};
const renderCancelText = () => {
const text = isDef(props.cancelText) ? props.cancelText : t('cancel');
const text = props.cancelText ?? t('cancel');
if (text) {
return (
<button type="button" class={bem('cancel')} onClick={onCancel}>