Files
QingLong/WebRoot/html/cdn/lib/hooks/use-prop/index.js
2025-08-15 09:13:13 +08:00

17 lines
382 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
const useProp = (name) => {
const vm = vue.getCurrentInstance();
return vue.computed(() => {
var _a, _b;
return (_b = (_a = vm.proxy) == null ? void 0 : _a.$props[name]) != null ? _b : void 0;
});
};
exports.useProp = useProp;
//# sourceMappingURL=index.js.map