Fixed #549 - Declare events in "emits" section of every component

pull/590/head
Cagatay Civici 2020-10-21 21:03:17 +03:00
parent 41074b0e7e
commit 4044be48cb
60 changed files with 70 additions and 0 deletions

View File

@ -25,6 +25,7 @@
import UniqueComponentId from '../utils/UniqueComponentId';
export default {
emits: ['tab-close', 'tab-open', 'update:activeIndex'],
props: {
multiple: Boolean,
activeIndex: [Number,Array]

View File

@ -38,6 +38,7 @@ import Ripple from '../ripple/Ripple';
export default {
inheritAttrs: false,
emits: ['update:modelValue', 'item-select', 'item-select', 'dropdown-click', 'clear', 'complete'],
props: {
modelValue: null,
suggestions: {

View File

@ -8,6 +8,7 @@
import DomHandler from '../utils/DomHandler';
export default {
emits: ['block', 'unblock'],
props: {
blocked: {
type: Boolean,

View File

@ -138,6 +138,7 @@ import Ripple from '../ripple/Ripple';
export default {
inheritAttrs: false,
emits: ['show', 'hide', 'month-change', 'year-change', 'date-select', 'update:modelValue', 'today-click', 'clear-click'],
props: {
modelValue: null,
selectionMode: {

View File

@ -58,6 +58,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update-page'],
props: {
value: null,
page: {

View File

@ -8,6 +8,7 @@
import * as Chart from 'chart.js';
export default {
emits: ['select'],
props: {
type: String,
data: null,

View File

@ -14,6 +14,7 @@ import ObjectUtils from '../utils/ObjectUtils';
export default {
inheritAttrs: false,
emits: ['click', 'update:modelValue', 'change'],
props: {
value: null,
modelValue: null,

View File

@ -18,6 +18,7 @@
<script>
export default {
inheritAttrs: false,
emits: ['update:modelValue', 'add', 'remove'],
props: {
modelValue: {
type: Array,

View File

@ -24,6 +24,7 @@ import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandle
import DomHandler from '../utils/DomHandler';
export default {
emits: ['update:modelValue'],
props: {
modelValue: {
type: null,

View File

@ -28,6 +28,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['leaf-click'],
name: 'sub-menu',
props: {
model: {

View File

@ -37,6 +37,8 @@ import RowCheckbox from './RowCheckbox.vue';
import Ripple from '../ripple/Ripple';
export default {
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-complete', 'row-edit-cancel',
'row-toggle', 'radio-change', 'checkbox-change'],
props: {
rowData: {
type: Object,

View File

@ -140,6 +140,11 @@ import TableBody from './TableBody.vue';
import TableFooter from './TableFooter.vue';
export default {
emits: ['update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click',
'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all',
'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'virtual-scroll',
'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
props: {
value: {
type: Array,

View File

@ -12,6 +12,7 @@
<script>
export default {
inheritAttrs: false,
emits: ['change'],
props: {
checked: null
},

View File

@ -12,6 +12,7 @@
<script>
export default {
inheritAttrs: false,
emits: ['change'],
props: {
value: null,
checked: null

View File

@ -12,6 +12,7 @@
<script>
export default {
inheritAttrs: false,
emits: ['change'],
props: {
value: null,
disabled: null,

View File

@ -50,6 +50,7 @@ import DomHandler from '../utils/DomHandler';
import TableLoadingBody from './TableLoadingBody';
export default {
emits: ['virtual-scroll'],
props: {
frozen: {
type: Boolean,

View File

@ -48,6 +48,10 @@ import ObjectUtils from '../utils/ObjectUtils';
import BodyCell from './BodyCell.vue';
export default {
emits: ['rowgroup-toggle', 'row-click', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
props: {
value: {
type: Array,

View File

@ -49,6 +49,8 @@ import DomHandler from '../utils/DomHandler';
import HeaderCheckbox from './HeaderCheckbox.vue';
export default {
emits: ['column-click', 'column-mousedown', 'column-dragstart', 'column-dragover', 'column-dragleave', 'column-drop',
'column-resizestart', 'checkbox-change', 'column-click'],
props: {
columnGroup: {
type: null,

View File

@ -44,6 +44,7 @@ import ObjectUtils from '../utils/ObjectUtils';
import Paginator from '../paginator/Paginator';
export default {
emits: ['update:first', 'update:rows', 'page'],
props: {
value: {
type: Array,

View File

@ -11,6 +11,7 @@
<script>
export default {
emits: ['update:modelValue'],
props: {
modelValue: String
},

View File

@ -6,6 +6,7 @@
<script>
export default {
emits: ['load'],
data() {
return {
loaded: false

View File

@ -32,6 +32,7 @@ import Ripple from '../ripple/Ripple';
export default {
inheritAttrs: false,
emits: ['update:visible', 'show', 'hide'],
props: {
header: null,
footer: null,

View File

@ -46,6 +46,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:modelValue', 'before-show', 'before-hide', 'show', 'hide', 'change', 'filter'],
props: {
modelValue: null,
options: Array,

View File

@ -51,6 +51,7 @@
import Quill from "quill";
export default {
emits: ['update:modelValue', 'text-change'],
props: {
modelValue: String,
placeholder: String,

View File

@ -28,6 +28,7 @@ import UniqueComponentId from '../utils/UniqueComponentId';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:collapsed', 'toggle'],
props: {
legend: String,
toggleable: Boolean,

View File

@ -47,6 +47,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['select', 'uploader', 'before-upload', 'progress', 'upload', 'error', 'before-send', 'clear'],
props: {
name: {
type: String,

View File

@ -14,6 +14,7 @@ import DomHandler from '../utils/DomHandler';
export default {
inheritAttrs: false,
emits: ['update:activeIndex', 'update:visible'],
props: {
id: {
type: String,

View File

@ -33,6 +33,7 @@ import Ripple from '../ripple/Ripple';
export default {
inheritAttrs: false,
interval: null,
emits: ['activeitem-change', 'mask-hide'],
data() {
return {
id: this.$attrs.id || UniqueComponentId(),

View File

@ -29,6 +29,7 @@
import Ripple from '../ripple/Ripple';
export default {
emits: ['start-slideshow', 'stop-slideshow', 'update:activeIndex'],
props: {
circular: {
type: Boolean,

View File

@ -30,6 +30,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['stop-slideshow', 'update:activeIndex'],
props: {
containerId: {
type: String,

View File

@ -14,6 +14,7 @@
import Button from '../button/Button';
export default {
emits: ['open', 'close', 'update:active'],
props: {
closable: {
type: Boolean,

View File

@ -7,6 +7,7 @@
import DomHandler from '../utils/DomHandler';
export default {
emits: ['update:modelValue', 'focus', 'blur', 'keydown', 'complete', 'keypress', 'paste'],
props: {
modelValue: null,
slotChar: {

View File

@ -17,6 +17,7 @@ import Button from '../button/Button';
export default {
inheritAttrs: false,
emits: ['start-slideshow', 'input'],
props: {
modelValue: {
type: Number,

View File

@ -11,6 +11,7 @@
<script>
export default {
inheritAttrs: false,
emits: ['update:modelValue', 'click', 'change'],
props: {
modelValue: Boolean,
class: null,

View File

@ -4,6 +4,7 @@
<script>
export default {
emits: ['update:modelValue'],
props: {
modelValue: null
},

View File

@ -26,6 +26,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:modelValue', 'change', 'filter'],
props: {
modelValue: null,
options: Array,

View File

@ -61,6 +61,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:modelValue', 'before-show', 'before-hide', 'change', 'show', 'hide', 'filter'],
props: {
modelValue: null,
options: Array,

View File

@ -30,6 +30,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change'],
props: {
modelValue: {
type: Array,

View File

@ -10,6 +10,7 @@
import OrganizationChartNode from './OrganizationChartNode';
export default {
emits: ['node-unselect', 'node-select', 'update:selectionKeys', 'node-expand', 'node-collapse', 'update:collapsedKeys'],
props: {
value: {
type: null,

View File

@ -43,6 +43,7 @@
import DomHandler from '../utils/DomHandler';
export default {
emits: ['node-click', 'node-toggle'],
name: 'sub-node',
props: {
node: {

View File

@ -9,6 +9,7 @@ import Ripple from '../ripple/Ripple';
export default {
inheritAttrs: false,
emits: ['click'],
props: {
value: Array,
page: Number

View File

@ -30,6 +30,7 @@ import PrevPageLink from './PrevPageLink';
import RowsPerPageDropdown from './RowsPerPageDropdown';
export default {
emits: ['update:first', 'update:rows', 'page'],
props: {
totalRecords: {
type: Number,

View File

@ -8,6 +8,7 @@ import Dropdown from '../dropdown/Dropdown';
export default {
inheritAttrs: false,
emits: ['rows-change'],
props: {
options: Array,
rows: Number

View File

@ -27,6 +27,7 @@ import UniqueComponentId from '../utils/UniqueComponentId';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:collapsed', 'toggle'],
props: {
header: String,
toggleable: Boolean,

View File

@ -16,6 +16,7 @@ import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandle
import DomHandler from '../utils/DomHandler';
export default {
emits: ['update:modelValue'],
props: {
modelValue: String,
promptLabel: {

View File

@ -54,6 +54,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source'],
props: {
modelValue: {
type: Array,

View File

@ -14,6 +14,7 @@ import ObjectUtils from '../utils/ObjectUtils';
export default {
inheritAttrs: false,
emits: ['click', 'update:modelValue', 'change'],
props: {
value: null,
modelValue: null,

View File

@ -8,6 +8,7 @@
<script>
export default {
emits: ['update:modelValue', 'change'],
props: {
modelValue: {
type: Number,

View File

@ -16,6 +16,7 @@ import ObjectUtils from '../utils/ObjectUtils';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:modelValue', 'focus', 'blur'],
props: {
modelValue: null,
options: Array,

View File

@ -16,6 +16,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:visible', 'show', 'hide'],
props: {
visible: {
type: Boolean,

View File

@ -14,6 +14,7 @@
import DomHandler from '../utils/DomHandler';
export default {
emits: ['update:modelValue', 'change', 'slideend'],
props: {
modelValue: [Number,Array],
min: {

View File

@ -22,6 +22,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:activeIndex', 'tab-change'],
props: {
activeIndex: {
type: Number,

View File

@ -4,6 +4,7 @@
<script>
export default {
emits: ['update:modelValue'],
props: {
modelValue: null,
autoResize: Boolean

View File

@ -27,6 +27,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['leaf-click', 'keydown-item'],
name: 'sub-menu',
props: {
model: {

View File

@ -17,6 +17,7 @@
import Ripple from '../ripple/Ripple';
export default {
emits: ['close'],
props: {
message: null
},

View File

@ -9,6 +9,7 @@
import Ripple from '../ripple/Ripple';
export default {
emits: ['update:modelValue', 'change'],
props: {
modelValue: Boolean,
onIcon: String,

View File

@ -23,6 +23,7 @@ import TreeNode from './TreeNode';
import ObjectUtils from '../utils/ObjectUtils';
export default {
emits: ['node-expand', 'node-collapse', 'update:expandedKeys', 'update:selectionKeys', 'node-select', 'node-unselect'],
props: {
value: {
type: null,

View File

@ -30,6 +30,7 @@ import DomHandler from '../utils/DomHandler';
import Ripple from '../ripple/Ripple';
export default {
emits: ['node-toggle', 'node-click', 'checkbox-change'],
name: 'sub-treenode',
props: {
node: {

View File

@ -82,6 +82,8 @@ import TreeTableRow from './TreeTableRow';
import Paginator from '../paginator/Paginator';
export default {
emits: ['node-expand', 'node-collapse', 'update:expandedKeys', 'update:selectionKeys', 'node-select', 'node-unselect',
'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'column-resize-end'],
props: {
value: {
type: null,

View File

@ -12,6 +12,7 @@
<script>
export default {
inheritAttrs: false,
emits: ['click', 'update:modelValue', 'change'],
props: {
modelValue: null,
class: null,