Fixed #549 - Declare events in "emits" section of every component
parent
41074b0e7e
commit
4044be48cb
|
@ -25,6 +25,7 @@
|
|||
import UniqueComponentId from '../utils/UniqueComponentId';
|
||||
|
||||
export default {
|
||||
emits: ['tab-close', 'tab-open', 'update:activeIndex'],
|
||||
props: {
|
||||
multiple: Boolean,
|
||||
activeIndex: [Number,Array]
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
import DomHandler from '../utils/DomHandler';
|
||||
|
||||
export default {
|
||||
emits: ['block', 'unblock'],
|
||||
props: {
|
||||
blocked: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -58,6 +58,7 @@ import DomHandler from '../utils/DomHandler';
|
|||
import Ripple from '../ripple/Ripple';
|
||||
|
||||
export default {
|
||||
emits: ['update-page'],
|
||||
props: {
|
||||
value: null,
|
||||
page: {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
import * as Chart from 'chart.js';
|
||||
|
||||
export default {
|
||||
emits: ['select'],
|
||||
props: {
|
||||
type: String,
|
||||
data: null,
|
||||
|
|
|
@ -14,6 +14,7 @@ import ObjectUtils from '../utils/ObjectUtils';
|
|||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['click', 'update:modelValue', 'change'],
|
||||
props: {
|
||||
value: null,
|
||||
modelValue: null,
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
<script>
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['update:modelValue', 'add', 'remove'],
|
||||
props: {
|
||||
modelValue: {
|
||||
type: Array,
|
||||
|
|
|
@ -24,6 +24,7 @@ import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandle
|
|||
import DomHandler from '../utils/DomHandler';
|
||||
|
||||
export default {
|
||||
emits: ['update:modelValue'],
|
||||
props: {
|
||||
modelValue: {
|
||||
type: null,
|
||||
|
|
|
@ -28,6 +28,7 @@ import DomHandler from '../utils/DomHandler';
|
|||
import Ripple from '../ripple/Ripple';
|
||||
|
||||
export default {
|
||||
emits: ['leaf-click'],
|
||||
name: 'sub-menu',
|
||||
props: {
|
||||
model: {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<script>
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['change'],
|
||||
props: {
|
||||
checked: null
|
||||
},
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<script>
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['change'],
|
||||
props: {
|
||||
value: null,
|
||||
checked: null
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<script>
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['change'],
|
||||
props: {
|
||||
value: null,
|
||||
disabled: null,
|
||||
|
|
|
@ -50,6 +50,7 @@ import DomHandler from '../utils/DomHandler';
|
|||
import TableLoadingBody from './TableLoadingBody';
|
||||
|
||||
export default {
|
||||
emits: ['virtual-scroll'],
|
||||
props: {
|
||||
frozen: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
emits: ['update:modelValue'],
|
||||
props: {
|
||||
modelValue: String
|
||||
},
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
emits: ['load'],
|
||||
data() {
|
||||
return {
|
||||
loaded: false
|
||||
|
|
|
@ -32,6 +32,7 @@ import Ripple from '../ripple/Ripple';
|
|||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['update:visible', 'show', 'hide'],
|
||||
props: {
|
||||
header: null,
|
||||
footer: null,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
import Quill from "quill";
|
||||
|
||||
export default {
|
||||
emits: ['update:modelValue', 'text-change'],
|
||||
props: {
|
||||
modelValue: String,
|
||||
placeholder: String,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -14,6 +14,7 @@ import DomHandler from '../utils/DomHandler';
|
|||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['update:activeIndex', 'update:visible'],
|
||||
props: {
|
||||
id: {
|
||||
type: String,
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
import Ripple from '../ripple/Ripple';
|
||||
|
||||
export default {
|
||||
emits: ['start-slideshow', 'stop-slideshow', 'update:activeIndex'],
|
||||
props: {
|
||||
circular: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
import Button from '../button/Button';
|
||||
|
||||
export default {
|
||||
emits: ['open', 'close', 'update:active'],
|
||||
props: {
|
||||
closable: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import DomHandler from '../utils/DomHandler';
|
||||
|
||||
export default {
|
||||
emits: ['update:modelValue', 'focus', 'blur', 'keydown', 'complete', 'keypress', 'paste'],
|
||||
props: {
|
||||
modelValue: null,
|
||||
slotChar: {
|
||||
|
|
|
@ -17,6 +17,7 @@ import Button from '../button/Button';
|
|||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['start-slideshow', 'input'],
|
||||
props: {
|
||||
modelValue: {
|
||||
type: Number,
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
<script>
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['update:modelValue', 'click', 'change'],
|
||||
props: {
|
||||
modelValue: Boolean,
|
||||
class: null,
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
emits: ['update:modelValue'],
|
||||
props: {
|
||||
modelValue: null
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
import DomHandler from '../utils/DomHandler';
|
||||
|
||||
export default {
|
||||
emits: ['node-click', 'node-toggle'],
|
||||
name: 'sub-node',
|
||||
props: {
|
||||
node: {
|
||||
|
|
|
@ -9,6 +9,7 @@ import Ripple from '../ripple/Ripple';
|
|||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['click'],
|
||||
props: {
|
||||
value: Array,
|
||||
page: Number
|
||||
|
|
|
@ -30,6 +30,7 @@ import PrevPageLink from './PrevPageLink';
|
|||
import RowsPerPageDropdown from './RowsPerPageDropdown';
|
||||
|
||||
export default {
|
||||
emits: ['update:first', 'update:rows', 'page'],
|
||||
props: {
|
||||
totalRecords: {
|
||||
type: Number,
|
||||
|
|
|
@ -8,6 +8,7 @@ import Dropdown from '../dropdown/Dropdown';
|
|||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['rows-change'],
|
||||
props: {
|
||||
options: Array,
|
||||
rows: Number
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -16,6 +16,7 @@ import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandle
|
|||
import DomHandler from '../utils/DomHandler';
|
||||
|
||||
export default {
|
||||
emits: ['update:modelValue'],
|
||||
props: {
|
||||
modelValue: String,
|
||||
promptLabel: {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -14,6 +14,7 @@ import ObjectUtils from '../utils/ObjectUtils';
|
|||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['click', 'update:modelValue', 'change'],
|
||||
props: {
|
||||
value: null,
|
||||
modelValue: null,
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
emits: ['update:modelValue', 'change'],
|
||||
props: {
|
||||
modelValue: {
|
||||
type: Number,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
import DomHandler from '../utils/DomHandler';
|
||||
|
||||
export default {
|
||||
emits: ['update:modelValue', 'change', 'slideend'],
|
||||
props: {
|
||||
modelValue: [Number,Array],
|
||||
min: {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
emits: ['update:modelValue'],
|
||||
props: {
|
||||
modelValue: null,
|
||||
autoResize: Boolean
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
import Ripple from '../ripple/Ripple';
|
||||
|
||||
export default {
|
||||
emits: ['close'],
|
||||
props: {
|
||||
message: null
|
||||
},
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
import Ripple from '../ripple/Ripple';
|
||||
|
||||
export default {
|
||||
emits: ['update:modelValue', 'change'],
|
||||
props: {
|
||||
modelValue: Boolean,
|
||||
onIcon: String,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<script>
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
emits: ['click', 'update:modelValue', 'change'],
|
||||
props: {
|
||||
modelValue: null,
|
||||
class: null,
|
||||
|
|
Loading…
Reference in New Issue