Skip to content

Commit

Permalink
feat: update pageListBehavior to export
Browse files Browse the repository at this point in the history
  • Loading branch information
lu.yanjiao committed Dec 17, 2021
1 parent 4527793 commit 9984b6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/list/list.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const pageListBehavior = require('../../mixins/list/index.js');
const { pageListBehavior } = require('../../mixins/index.js');

Component({
options: {
Expand Down
5 changes: 5 additions & 0 deletions mixins/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pageListBehavior from './list/index';

module.exports = {
pageListBehavior,
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mp-list",
"version": "1.0.0",
"description": "小程序列表组件",
"main": "index.js",
"main": "mixins/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit 9984b6f

Please sign in to comment.