Skip to content

Commit

Permalink
documented events emitted on some components
Browse files Browse the repository at this point in the history
  • Loading branch information
zeezo887 committed Apr 26, 2024
1 parent 169e7b7 commit 3a681a4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions frontend/js/components/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export default {
name: 'A17Button',
emits: ['click'],
props: {
el: {
type: String,
Expand Down Expand Up @@ -69,9 +70,9 @@
render: function () {
const elOpts = {
class: this.buttonClasses,
// onClick: (event) => {
// this.onClick(event)
// }
onClick: (event) => {
this.onClick(event)
}
}
// button
Expand Down
1 change: 1 addition & 0 deletions frontend/js/components/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
export default {
name: 'A17Checkbox',
mixins: [randKeyMixin],
emits: ['change'],
props: {
value: {
default: ''
Expand Down
1 change: 1 addition & 0 deletions frontend/js/components/ColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
export default {
name: 'a17ColorPicker',
emits: ['change'],
props: {
color: {
type: String,
Expand Down
3 changes: 2 additions & 1 deletion frontend/js/components/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="datePicker__group" :ref="refs.flatPicker">
<div class="form__field datePicker__field">
<input type="text" :name="name" :id="uniqId" :required="required" :placeholder="placeHolder" data-input
@blur="onBlur" @input.stop="onInput" v-model="date" :disabled="disabled">
@blur="onBlur" @input="onInput" v-model="date" :disabled="disabled">
<a href="#" v-if="clear" class="datePicker__reset" :class="{ 'datePicker__reset--cleared' : !date }"
@click.prevent="onClear"><span v-svg symbol="close_icon"></span></a>
</div>
Expand All @@ -26,6 +26,7 @@
export default {
name: 'A17DatePicker',
mixins: [randKeyMixin, InputframeMixin, FormStoreMixin],
emits: ['input', 'open', 'close', 'blur'],
props: {
/* @see: https://chmln.github.io/flatpickr/options/ */
name: { // FlatPicker hidden input name
Expand Down
1 change: 1 addition & 0 deletions frontend/js/components/Infotip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script>
export default {
name: 'A17Infotip',
emits: ['click'],
props: {
text: {
default: ''
Expand Down

0 comments on commit 3a681a4

Please sign in to comment.