Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/components/guide/guide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,22 @@ export default class Guide extends SuperComponent {
},
onTplButtonTap(e) {
const { type } = e.target.dataset;
const parmas = { e, current: this.data.current, total: this.data.steps.length };
const params = { e, current: this.data.current, total: this.data.steps.length };
switch (type) {
case 'next':
this.triggerEvent('next-step-click', { next: this.data.current + 1, ...parmas });
this.triggerEvent('next-step-click', { next: this.data.current + 1, ...params });
this.setData({ current: this.data.current + 1 });
break;
case 'skip':
this.triggerEvent('skip', parmas);
this.triggerEvent('skip', params);
this.setData({ current: -1 });
break;
case 'back':
this.triggerEvent('back', parmas);
this.triggerEvent('back', params);
this.setData({ current: 0 });
break;
case 'finish':
this.triggerEvent('finish', parmas);
this.triggerEvent('finish', params);
this.setData({ current: -1 });
break;
default:
Expand Down
5 changes: 3 additions & 2 deletions script/gulpfile.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const rename = require('gulp-rename');
const gulpLess = require('gulp-less');
const sourcemaps = require('gulp-sourcemaps');
const plumber = require('gulp-plumber');
const packageJSON = require('../package.json');
const base = require('./gulpfile.base');

const PACKAGE_NAME = 'tdesign-miniprogram';

/* config */
const src = 'packages/tdesign-miniprogram/example';
const dist = '_example';
Expand Down Expand Up @@ -47,7 +48,7 @@ const since = (task) => (file) => gulp.lastRun(task) > file.stat.ctime ? gulp.la
* 将 packages/tdesign-miniprogram/miniprogram_dist 同步至 _example/miniprogram_npm
* */
const input = 'packages/tdesign-miniprogram/miniprogram_dist';
const output = `_example/miniprogram_npm/${packageJSON.name}`;
const output = `_example/miniprogram_npm/${PACKAGE_NAME}`;
const syncDist = () =>
gulp
.src(`${input}/**`, { base: input, since: since(syncDist) })
Expand Down
Loading