vue-carousel-3d
Version:
Beautiful, flexible and touch supported 3D Carousel for Vue.js
19 lines (13 loc) • 330 B
JavaScript
;
const { Pattern } = require('hexo-util');
exports.process = file => {
const { path } = file.params;
if (file.type === 'delete') {
file.box.removeView(path);
return;
}
return file.read().then(result => {
file.box.setView(path, result);
});
};
exports.pattern = new Pattern('layout/*path');