How to use the toRefs function from vue
Find comprehensive JavaScript vue.toRefs code examples handpicked from public code repositorys.
GitHub: hacfins/vue3-multi-page

82 83 84 85 86 87 88 89 90 91
if (!afterLeaveFlag.value) return; afterLeaveFlag.value = false; destroySelf(); } const componentSetupConfig = Object.assign(Object.assign({}, vue.toRefs(data)), { setText, close, handleAfterLeave }); const elLoadingComponent = { name: 'ElLoading',
GitHub: hacfins/vue3-multi-page

157 158 159 160 161 162 163 164 165 166
visible: true, hitState: false, hover: false, }); const { currentLabel, itemSelected, isDisabled, select, hoverItem, } = useOption(props, states); const { visible, hover, } = vue.toRefs(states); const vm = vue.getCurrentInstance().proxy; select.onOptionCreate(vm); vue.onBeforeUnmount(() => { const { selected } = select;
34 35 36 37 38 39 40 41 42
const { type, success, warning, info } = vue.toRefs(props); return { className: vue.computed(() => { let className = type.value === "link" ? "px-0 " : "";
75 76 77 78 79 80 81 82 83
}, setup(props) { const { collapsed } = _vue.toRefs(props); const route = vueRouter.useRoute(); const router = vueRouter.useRouter();
+ 3 other calls in file
GitHub: csii-cli/vue-template
40 41 42 43 44 45 46 47 48 49
}) } exports.Editor = vue_1.defineComponent({ props: EditorPropTypes_1.editorProps, setup: function (props, ctx) { var _a = vue_1.toRefs(props), disabled = _a.disabled, modelValue = _a.modelValue var element = vue_1.ref(null) var vueEditor = null
vue.createElementBlock is the most popular function in vue (2388 examples)