Giter VIP home page Giter VIP logo

Comments (3)

ribrewguy avatar ribrewguy commented on May 17, 2024 1

Thanks for the quick reply! I found that the inline template approach didn't work, but the separate component approach as you described worked well. Thanks!

from flowy-vue.

remcoplasmeyer avatar remcoplasmeyer commented on May 17, 2024

Hi @redijedi, I'll gladly look into it if you can provide a reproducing repo. At the moment I'm guessing however this error is not due to flowy vue.

from flowy-vue.

KjetilHaaheim avatar KjetilHaaheim commented on May 17, 2024

I've tried to get vuetify to work in the same way that quasar seems to, but continually get Unknown custom element errors and no rendering. Is there any recommended approach for using other UI frameworks?

I have no problems using flowy with Vuetify. Example of FlowBlock:

<template>
	<div class="ma-0 pa-0">
		<flowy-drag-handle>
			<v-card
				outlined
				:color="node.color"
				cols="auto"
				width="140"
				height="80"
				class="d-flex flex-column align-center text-center pt-2"
			>
				<h3 class="caption" v-text="node.title" />
				<v-card-actions>
					<v-btn block style="width: 100%" color="grey-7" text>
						<v-icon large>mdi-drag-horizontal</v-icon>
					</v-btn>
				</v-card-actions>
			</v-card>
		</flowy-drag-handle>
	</div>
</template>

<script>
export default {
	name: 'FlowBlock',

	props: {
		node: Object,
	},
}
</script>

My block is globally imported:

import FlowBlock from '@/components/flow/FlowBlock'
Vue.component('FlowBlock', FlowBlock)

In your dataset, make sure each item contains the nodeComponent property:

const nodes = [
  {
    id: "node-420,
    name: "Noodle",
    parentId: -1,
    nodeComponent: "FlowBlock"
  }
]

from flowy-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.