Skip to content

Commit db79834

Browse files
authored
chore: update build package name (#3974)
* chore: update build package name * chore: fix typos
1 parent 01ccb01 commit db79834

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/components/guide/guide.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,22 +189,22 @@ export default class Guide extends SuperComponent {
189189
},
190190
onTplButtonTap(e) {
191191
const { type } = e.target.dataset;
192-
const parmas = { e, current: this.data.current, total: this.data.steps.length };
192+
const params = { e, current: this.data.current, total: this.data.steps.length };
193193
switch (type) {
194194
case 'next':
195-
this.triggerEvent('next-step-click', { next: this.data.current + 1, ...parmas });
195+
this.triggerEvent('next-step-click', { next: this.data.current + 1, ...params });
196196
this.setData({ current: this.data.current + 1 });
197197
break;
198198
case 'skip':
199-
this.triggerEvent('skip', parmas);
199+
this.triggerEvent('skip', params);
200200
this.setData({ current: -1 });
201201
break;
202202
case 'back':
203-
this.triggerEvent('back', parmas);
203+
this.triggerEvent('back', params);
204204
this.setData({ current: 0 });
205205
break;
206206
case 'finish':
207-
this.triggerEvent('finish', parmas);
207+
this.triggerEvent('finish', params);
208208
this.setData({ current: -1 });
209209
break;
210210
default:

script/gulpfile.example.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ const rename = require('gulp-rename');
66
const gulpLess = require('gulp-less');
77
const sourcemaps = require('gulp-sourcemaps');
88
const plumber = require('gulp-plumber');
9-
const packageJSON = require('../package.json');
109
const base = require('./gulpfile.base');
1110

11+
const PACKAGE_NAME = 'tdesign-miniprogram';
12+
1213
/* config */
1314
const src = 'packages/tdesign-miniprogram/example';
1415
const dist = '_example';
@@ -47,7 +48,7 @@ const since = (task) => (file) => gulp.lastRun(task) > file.stat.ctime ? gulp.la
4748
* 将 packages/tdesign-miniprogram/miniprogram_dist 同步至 _example/miniprogram_npm
4849
* */
4950
const input = 'packages/tdesign-miniprogram/miniprogram_dist';
50-
const output = `_example/miniprogram_npm/${packageJSON.name}`;
51+
const output = `_example/miniprogram_npm/${PACKAGE_NAME}`;
5152
const syncDist = () =>
5253
gulp
5354
.src(`${input}/**`, { base: input, since: since(syncDist) })

0 commit comments

Comments
 (0)