Form Input Elements and v-model in VueJS slots #9925
Unanswered
lixiaofa
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
// Child Component
`<script setup lang="ts">
import { ref } from 'vue'
const value = ref(1)
</script>
// Parent Component
`import { defineComponent } from 'vue';
import CompA from './CompA.vue';
import { ElInput } from 'element-plus';
const App = defineComponent({
setup() {
return () => (
<CompA
v-slots={{
header: ({ value, count }) => {
return ;
}
}}>
);
}
});
export default App;`
Scope slots passed parameters, not reactivity
ElInput cannot be inputted
Beta Was this translation helpful? Give feedback.
All reactions