This commit is contained in:
Ling53666
2025-08-18 09:11:51 +08:00
commit 02554225da
2516 changed files with 133155 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import { TabBarDefaultProps } from './props';
import { Component, triggerEvent } from '../_util/simply';
import mixinValue from '../mixins/value';
Component(TabBarDefaultProps, {
onChange: function (e) {
var index = e.currentTarget.dataset.index;
if (index === this.getValue()) {
return;
}
if (!this.isControlled()) {
this.update(index);
}
triggerEvent(this, 'change', index, e);
},
}, null, [
mixinValue({
valueKey: 'current',
defaultValueKey: 'defaultCurrent',
}),
]);