tdesign-mobile-vue
Version:
tdesign-mobile-vue
23 lines (19 loc) • 737 B
JavaScript
/**
* tdesign v1.7.0
* (c) 2024 TDesign Group
* @license MIT
*/
import { getCurrentInstance } from 'vue';
var initName = function initName(defaultIndex) {
var _instance$props;
var index = defaultIndex;
var instance = getCurrentInstance();
if (typeof (instance === null || instance === void 0 || (_instance$props = instance.props) === null || _instance$props === void 0 ? void 0 : _instance$props.value) !== "undefined") {
var _instance$props2;
return instance === null || instance === void 0 || (_instance$props2 = instance.props) === null || _instance$props2 === void 0 ? void 0 : _instance$props2.value;
}
index.value += 1;
return index.value;
};
export { initName };
//# sourceMappingURL=useTabBar.js.map