[improvement] Functional components be just functions (#2735)

This commit is contained in:
neverland
2019-02-14 11:56:02 +08:00
committed by GitHub
parent 166397dad4
commit 5a9143c736
21 changed files with 704 additions and 674 deletions

View File

@@ -1,11 +1,11 @@
import { use } from '../utils';
import Loading from '../loading';
import SwitchMixin from '../mixins/switch';
import { switchProps } from './shared';
const [sfc, bem] = use('switch');
export default sfc({
mixins: [SwitchMixin],
props: switchProps,
methods: {
onClick() {