motla / vue-file-toolbar-menu Goto Github PK
View Code? Open in Web Editor NEW:desktop_computer: UI file/toolbar menus for Vue apps
Home Page: https://motla.github.io/vue-file-toolbar-menu
License: MIT License
:desktop_computer: UI file/toolbar menus for Vue apps
Home Page: https://motla.github.io/vue-file-toolbar-menu
License: MIT License
When I call the click handlers of a menu button they execute, but the button remains open.
Iโm see this in multi steps menus.
What am I missing? Is there a way to programmatically close the menu?
Thanks!
In our project we have the package of icons from https://materialdesignicons.com/, the one used by Buefy and other big projects.
However this lib uses https://material.io/resources/icons/
This is suboptimal because we have two styles of icons.
So my request would be:
vue-file-toolbar-menu
install them. Make them optional (this could apply to emojis too)Currently we are able to add "class" to button, can we do the same with "ids" please?
Thanks a lot!!
The color picker is turned off every time it is clicked.
When using like chrome color picker, I might need to input the hex value of the color. However, the color picker is turned off when I click on the input box, which makes it impossible to use.
It seems to be the behavior of all bar buttons. Do you have any ideas about how to preserve the popup menu after clicking or selection?
Hello, not really a support question, but rather a request.
Are there any plans to implement auto placement? or it would be nice to have an option to where you prefer the float menu to show: top, right, bottom, left.
Thanks in advance and regards.
Love the framework, but can't figure out how to disable an item on the fly. I'm a Vue newbie, so apologize if it should be obvious.
For example, I only want the Copy item enabled if text is selected...
When i disable button, it changes it style. However I still can click it.
Is this a expected behavior or a bug?
ES6 import error
Dear motla,
I have one question.
Actually I don't know how i can ask you, so i decided to use this area.
I know it can break your rule, so sorry for that.
In your code, under src/bar/Bar.vue, BarButtonGeneric.vue ....
I can see < component > element.
what this element means?
It looks as if it changes to many other components like BarButtonGeneric, BarSapcer, BarSeperator.. and so on in Bar.vue.
it's very hard to find the function or meaning of < component > element.
Could you let me understand its meaning?
Thanks in advance
June Chung.
--bar-menu-min-width
is not documented in the README
I installed a new Vue 3 + Vite.js app and used the example from the README and it is giving me this error:
Uncaught SyntaxError: The requested module '/node_modules/node-emoji/index.js?v=2bd32581' does not provide an export named 'default'
Here is my App.vue
<template>
<div> <vue-file-toolbar-menu :content="my_menu" /> </div>
</template>
<script>
import VueFileToolbarMenu from 'vue-file-toolbar-menu'
export default {
components: { VueFileToolbarMenu },
data () { return { happy: false } },
computed: {
my_menu () {
return [
{ text: "My Menu", menu: [
{ text: "Item 1", click: () => alert("Action 1") },
{ text: "Item 2", click: () => alert("Action 2") }
] }, {
text: "My Button",
active: this.happy,
icon: this.happy ? "sentiment_very_satisfied" : "sentiment_satisfied",
click: () => { this.happy = !this.happy }
}
]
}
}
}
</script>
and my package.json:
{
"name": "my-vue-app",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.25",
"vue-file-toolbar-menu": "^2.0.1"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.0.0",
"sass": "^1.49.7",
"vite": "^2.7.2"
}
}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Clear console
Additional context
Problem is here
Solution
https://v3.vuejs.org/guide/migration/listeners-removed.html#overview
I installed a new Vue 3 + Vite.js app and used the example from the README and it is giving me this warning:
[@vue/compiler-sfc] ::v-deep usage as a combinator has been deprecated. Use :deep() instead.
Here is my App.vue
<template>
<div> <vue-file-toolbar-menu :content="my_menu" /> </div>
</template>
<script>
import VueFileToolbarMenu from 'vue-file-toolbar-menu'
export default {
components: { VueFileToolbarMenu },
data () { return { happy: false } },
computed: {
my_menu () {
return [
{ text: "My Menu", menu: [
{ text: "Item 1", click: () => alert("Action 1") },
{ text: "Item 2", click: () => alert("Action 2") }
] }, {
text: "My Button",
active: this.happy,
icon: this.happy ? "sentiment_very_satisfied" : "sentiment_satisfied",
click: () => { this.happy = !this.happy }
}
]
}
}
}
</script>
and my package.json:
{
"name": "my-vue-app",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.25",
"vue-file-toolbar-menu": "^2.0.1"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.0.0",
"sass": "^1.49.7",
"vite": "^2.7.2"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.