tdesign-mobile-vue
Version:
tdesign-mobile-vue
27 lines (21 loc) • 812 B
JavaScript
/**
* tdesign v1.7.0
* (c) 2024 TDesign Group
* @license MIT
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var initName = function initName(defaultIndex) {
var _instance$props;
var index = defaultIndex;
var instance = vue.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;
};
exports.initName = initName;
//# sourceMappingURL=useTabBar.js.map