rashfael / buntpapier Goto Github PK
View Code? Open in Web Editor NEWmixin-based component library
Home Page: https://buntpapier.rash.codes
License: MIT License
mixin-based component library
Home Page: https://buntpapier.rash.codes
License: MIT License
Also investigate general option reactivity.
At pretix we are using your wonderful bunt-icon-button. A feature we are working on requires us to bind to @pointerdown/pointerup-events. Currently bunt-icon-button seems to only support @click.
This works:
bunt-icon-button(@click ="decPointerDown") minus
This does not work/does not bind to the pointerdown-event on the HTML-Element:
bunt-icon-button(@pointerdown="decPointerDown") minus
Would it be possible to transparently bind events, that bunt-icon-button itself does not know about?
Our workaround is to bind the pointer-events to the containing HTML-Element. It works, but looks unnecessarily ugly to me.
In this constellation:
bunt-tabs
bunt-tab(header="A")
p(v-if="true") foo
bunt-tab(header="B")
p(v-if="true") bar
bunt-tab(header="C")
p static text
switching between A<->C and B<->C works, but A<->B does not. This might be a Vue bug, but I'm not sure what to report there.
See https://vuejs.org/v2/guide/list.html#key
Lines 5 to 8 in 6dcbc5f
Allow the rendering of an empty option for the select dropdown, which emits the value to null.
Allow setting inputmode as a less intrusive alternative to type="number".
Use case: <input type="number">
comes with some (unspecified) browser validation. In both Chrome and Firefox the value is reported as empty if it does not validate. This is basically impossible to integrate with vuelidate as, well, it thinks the input is empty. Even a custom validator is nontrivial because transitions of empty <-> invalid do not trigger a revalidate (both have value=""
) -.-
If you type into bunt-select to search, then click away and refocus, the dropdown displays the unfiltered list.
Steps to reproduce:
I initially noticed this behavior when switching tabs while a dropdown was open.
Happens in both Firefox and Chrome, and 1.9.0 as well as 2.0.0-alpha.20.
When deselecting something via escape, the visual state is updated properly, but the model isnt updated (or the input event isn't sent)
SSIA
Using buntpapier2.0.0-alpha.20 and vue 3.2.20.
Updating either header
or disabled
on any bunt-tab causes the bunt-tabs to switch; it does not matter whether the tab in question is currently active. If v-model is set, the value goes to null and nothing is shown at all; otherwise it jumps to the first tab.
Reproduction case:
<template lang="pug">
div
p Current tab={{ tab }}
input(type="checkbox", v-model="disableB")
| Disable Tab B
h2 tabs with v-model:
bunt-tabs(v-model="tab")
bunt-tab(id="a", header="A") Content A
bunt-tab(id="b", header="B", :disabled="disableB") Content B
bunt-tab(id="c", header="C") Content C
h2 Without v-model:
bunt-tabs
bunt-tab(id="a", header="A") Content A
bunt-tab(id="b", header="B", :disabled="disableB") Content B
bunt-tab(id="c", header="C") Content C
</template>
<script>
export default {
data: () => ({
disableB: false,
tab: "c",
})
};
</script>
<style lang="stylus">
.bunt-tabs
tabs-style()
</style>
Steps:
Expected behavior:
Since disabled buttons don't fire events, the tooltip is never shown, or is stuck when a button is being disabled after a click and mouseleave never fires.
When you overwrite errorMessage, the tooltip does not update (i.e. only the first message is displayed). It only works when applying an empty errorMessage in between.
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.