{}
+ },
+ beforeLeave: {
+ type: Function,
+ default: () => { return true }
+ },
+ // tabClick: {
+ // type: Function,
+ // default: () => {}
+ // },
+ tabRemove: {
+ type: Function,
+ default: () => {}
}
+ // tabAdd: {
+ // type: Function,
+ // default: () => {}
+ // },
+ // edit: {
+ // type: Function,
+ // default: () => {}
+ // }
},
data () {
return {
labels: [],
+ names: [],
active: null, // number
offset: null,
prefix: 'n-tab--label'
}
},
computed: {
+ tabCls () {
+ let type = ['normal', 'card', 'board']
+ let cls = 'n-tab '
+ return type.indexOf(this.type) > -1 ? cls + 'n-tab_' + this.type + '' : ''
+ }
+ },
+ watch: {
+ name (n, o) {
+ let i = this.names.indexOf(n)
+ if (i === -1) {
+ return
+ }
+ this.specPanel(i)
+ }
},
created () {
this.updateOrder()
@@ -89,20 +129,23 @@ export default {
getClass (i) {
let panel = this.getTabPanel(i) || {}
let cName = this.prefix + '-item '
+ let type = ['normal', 'card', 'board']
cName += (panel.disabled ? this.prefix + '-item_disabled ' : '')
cName += (this.active === i ? this.prefix + '-item_active ' : '')
- cName += this.type === 'card' ? this.prefix + '-item_card ' : ''
- cName += this.type === 'card' && (this.closable || panel.closable) ? this.prefix + '-item_close ' : ''
- // cName += this.addable ? this.prefix + '-item_addable ' : ''
+ cName += type.indexOf(this.type) > -1 ? this.prefix + '-item_' + this.type + '' : ''
+ cName += type.indexOf(this.type) && (this.closable || panel.closable) ? this.prefix + '-item_close ' : ''
return cName
},
updateLabels () {
let labels = []
let j = 0
+ this.names = []
this.$children.forEach((i) => {
if (i.$options.name === 'NTabPanel') {
- labels.push(i.label || '')
+ let l = i.label === undefined ? '' : i.label
+ labels.push(l)
+ this.names.push(i.name)
i._NaiveTabOrder = j++
}
})
@@ -111,13 +154,30 @@ export default {
initActive () {
this.active = this.labels.length - 1
},
+ clickChange (e, i) {
+ let oldName = this.names[this.active]
+ let newName = this.names[i]
+ let eName = e.target.className
+ let eParentName = e.target.parentElement.className
+ let isLabel = eName.indexOf('n-tab--label-item') > -1 || eParentName.indexOf('n-tab--label-item') > -1
+ if (isLabel) {
+ Promise.resolve(this.beforeLeave(newName, oldName)).then(res => {
+ if (res) {
+ this.updateActive(e, i)
+ }
+ })
+ } else {
+ this.updateActive(e, i)
+ }
+ },
updateActive (e, i) {
let eName = e.target.className
let eParentName = e.target.parentElement.className
let isLabel = eName.indexOf('n-tab--label-item') > -1 || eParentName.indexOf('n-tab--label-item') > -1
- if (eName === 'n-tab--label-delete') {
+ if (eName.indexOf('n-tab--label-delete') > -1) {
// steps while deleting, need to set display none to label and the tab panel and then init the display
this.labels.splice(i, 1)
+ this.names.splice(i, 1)
this.broadcast('NTabPanel', 'display-none', i)
this.updateOrder(false)
if (this.active === i) {
@@ -127,15 +187,17 @@ export default {
this.active = i > this.active ? this.active : this.active - 1
}
this.offset = '-' + this.active * 100 + '%'
+ this.tabRemove(this.getTabPanel(i))
} else if (isLabel && i !== this.active) {
- this.getTabPanel(this.active).updateIsShow(false)
- this.active = i
- let temp = this.getTabPanel(i)
- console.log(temp, this.$children, i)
- temp.updateIsShow(true)
- this.offset = '-' + this.active * 100 + '%'
+ this.specPanel(i)
}
},
+ specPanel (i) {
+ this.getTabPanel(this.active).updateIsShow(false)
+ this.active = i
+ this.getTabPanel(i).updateIsShow(true)
+ this.offset = '-' + this.active * 100 + '%'
+ },
updateOrder (init = true) {
// method duplicate with updateLabels
let j = 0
@@ -161,7 +223,6 @@ export default {
})
this.active = order > -1 ? order : 0
this.offset = '-' + this.active * 100 + '%'
- console.log('active', this.active)
},
getTabPanel (i) {
if (i === undefined) return
diff --git a/packages/utils/index.js b/packages/utils/index.js
index edd65e806..0045e47a7 100644
--- a/packages/utils/index.js
+++ b/packages/utils/index.js
@@ -27,8 +27,22 @@ const getObjValue = (obj, keys) => {
return keys.reduce((res, n) => (res !== undefined && res[n] !== undefined ? res[n] : null), obj)
}
+/**
+ * transfer function into promise
+ */
+const funcToPromise = (fn, receiver) => {
+ return (...args) => {
+ return new Promise((resolve, reject) => {
+ fn.apply(receiver, [...args, (err, res) => {
+ return err ? reject(err) : resolve(res)
+ }])
+ })
+ }
+}
+
export {
getScrollParent,
deepClone,
- getObjValue
+ getObjValue,
+ funcToPromise
}
diff --git a/styles/Tab.scss b/styles/Tab.scss
index 2d1ec8a93..66c230da0 100644
--- a/styles/Tab.scss
+++ b/styles/Tab.scss
@@ -1,98 +1,158 @@
@import './mixins/mixins.scss';
@import './theme/default.scss';
+// @include b(tab) {
+// width: 100%;
+// height: 100%;
+// padding: 0 10px;
+// background-color: #171D33;
+// .n-tab--label {
+// display: flex;
+// align-items: center;
+// justify-content: space-between;
+// font-weight: bold;
+// font-size: 15px;
+// color: #ffffff;
+// .n-tab--label-item {
+// &:not(:last-child) {
+// margin-right: 25px;
+// }
+// padding-bottom: 8px;
+// .n-tab--label-delete {
+// display: none;
+// margin-left: 9px;
+// }
+// &:hover {
+// color: #55E8C7;
+// }
+
+// }
+// .n-tab--label-item_active {
+// color: #63E2B7;
+// border-bottom: 2px solid rgba(99, 226, 183, 1);
+// }
+// .n-tab--label-item_delete {
+// .n-tab--label-delete {
+// display: inline-block;
+// }
+// }
+// .n-tab--label-item_disabled {
+// color: #FFFFFF;
+// opacity: 0.3;
+// pointer-events: none;
+// }
+// .n-tab--label-item_card {
+// margin-left: 0;
+// margin-right: 6px;
+// padding: 8px 16px;
+// border-radius: 6px 6px 0 0;
+// background-color: rgba(255, 255, 255, 0.3);
+// .n-tab--label-content {
+// display: flex;
+// align-items: center;
+// border: none;
+// color: #50E3C2
+// }
+// &.n-tab--label-item_active {
+// border: none;
+// }
+// &:hover {
+// color: #55E8C7;
+// border: none;
+// }
+// &.n-tab--label-item_close {
+// .n-tab--label-delete {
+// display: inline-block;
+// margin-left: 9px;
+// }
+// }
+// }
+// .n-tab--label-add {
+// display: none;
+// font-size: 24px;
+// }
+// &.n-tab--label_addable {
+// .n-tab--label-add {
+// display: inline-block;
+// }
+// }
+// }
+// .n-tab--slot {
+// display: flex;
+// width: 100%;
+// height: 100%;
+// overflow: hidden;
+// }
+// }
+
@include b(tab) {
width: 100%;
height: 100%;
- background-color: #171D33;
+ // border-radius: 9px;
.n-tab--label {
display: flex;
align-items: center;
- justify-items: flex-start;
+ justify-content: space-between;
font-weight: bold;
font-size: 15px;
- margin-top: 8px;
- margin-bottom: 8px;
- color: #ffffff;
- // .n-tab--label-item:not(:last-child) {
- // margin-right: 25px;
- // }
- .n-tab--label-item {
- margin-left: 25px;
- padding-bottom: 8px;
- // .n-tab--label-content {
- // padding-bottom: 8px;
- // border-bottom: 0px solid rgba(99, 226, 183, 1);
- // }
- .n-tab--label-delete {
- display: none;
- margin-left: 9px;
- }
- &:hover {
- color: #55E8C7;
- // border-bottom: 2px;
- // border-bottom: 2px solid rgba(99, 226, 183, 1);
- }
-
- }
- .n-tab--label-item_active {
- color: #63E2B7;
- // border-bottom: 2px;
- border-bottom: 2px solid rgba(99, 226, 183, 1);
- }
- .n-tab--label-item_delete {
- .n-tab--label-delete {
- display: inline-block;
- }
- }
- .n-tab--label-item_disabled {
- color: #FFFFFF;
- opacity: 0.3;
- pointer-events: none;
- }
- .n-tab--label-item_card {
- margin-left: 0;
- margin-right: 6px;
- padding: 8px 16px;
- border-radius: 6px 6px 0 0;
- background-color: rgba(255, 255, 255, 0.3);
- .n-tab--label-content {
- border: none;
- color: #50E3C2
- }
- &.n-tab--label-item_active {
- border: none;
- }
- &:hover {
- color: #55E8C7;
- border: none;
- }
- &.n-tab--label-item_close {
- .n-tab--label-delete {
- display: inline-block;
- margin-left: 9px;
- }
- }
- }
- // .n-tab--label-item_active {
- // color: #63E2B7;
- // // border-bottom: 2px;
- // border-bottom: 2px solid rgba(99, 226, 183, 1);
- // }
- .n-tab--label-add {
- display: none;
- }
- &.n-tab--label_addable {
- .n-tab--label-add {
- display: inline-block;
- }
+ .n-tab--label-delete {
+ display: inline-block;
+ margin-left: 9px;
}
}
- .n-tab--slot {
- display: flex;
- width: 100%;
- height: 100%;
- overflow: hidden;
+ &.n-tab_card {
+ // background-color: rgb(75, 81, 106);
+ padding-top: 6px;
+ padding-bottom: 16px;
+ .n-tab--label {
+ padding: 0 8px;
+ // margin-bottom: 12px;
+ .n-tab--label-item:not(:last-child) {
+ margin-right: 6px;
+ }
+ .n-tab--label-content {
+ display: flex;
+ align-items: center;
+ padding: 8px 16px;
+ border: none;
+ color: #ffffff;
+ background-color: rgba(255, 255, 255, .1);
+ border-radius: 6px 6px 0 0;
+ .n-tab--label-delete {
+ color: #F2F2F4;
+ opacity: 0.5;
+ }
+ }
+ .n-tab--label-item_active {
+ .n-tab--label-content {
+ color: #50E3C2;
+ background-color: rgba(71, 228, 194, 0.1);
+ }
+ }
+ .n-tab--label-item_disabled {
+ pointer-events: none;
+ .n-tab--label-content {
+ opacity: 0.25;
+ background-color: rgba(255, 255, 255, .1);
+ }
+ .n-tab--label-delete {
+ opacity: 0.2;
+ }
+ }
+ .n-tab--label-text:hover {
+ color: #50E3C2;
+ }
+ .n-tab--label-delete:hover {
+ color: #63E2B7;
+ }
+ }
+ .n-tab--slot {
+ // margin: 12px 24px 16px;
+ display: flex;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ }
}
}
From 8955d36127db45a8f5e959eaf05c15ca99ce6419 Mon Sep 17 00:00:00 2001
From: JiwenBai
Date: Mon, 5 Aug 2019 19:22:27 +0800
Subject: [PATCH 7/9] feat(advance table): can update a row data by then
filters will be responsive
---
demo/components/advanceTableDemo.vue | 4 ++++
package.json | 2 +-
packages/common/AdvanceTable/row/index.js | 7 ++-----
packages/common/AdvanceTable/src/main.vue | 23 ++++++++++++++++++-----
4 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/demo/components/advanceTableDemo.vue b/demo/components/advanceTableDemo.vue
index 5f91fc3ae..b6095b15d 100644
--- a/demo/components/advanceTableDemo.vue
+++ b/demo/components/advanceTableDemo.vue
@@ -980,6 +980,10 @@ export default {
methods: {
handleClick (params) {
alert('delete' + JSON.stringify(params))
+ this.$set(this.data, params._index, {
+ ...params.row,
+ age: 100
+ })
},
onChange1 ({ filter, sorter, pagination, search }) {
console.log('执行', { filter, sorter, pagination, search })
diff --git a/package.json b/package.json
index e24f43d4a..cdefc89c7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "naive-ui",
- "version": "0.2.72",
+ "version": "0.2.73",
"description": "",
"main": "index.js",
"scripts": {
diff --git a/packages/common/AdvanceTable/row/index.js b/packages/common/AdvanceTable/row/index.js
index fe8b8f8c3..5de7c083f 100644
--- a/packages/common/AdvanceTable/row/index.js
+++ b/packages/common/AdvanceTable/row/index.js
@@ -8,14 +8,11 @@ export default {
keyName: String
},
render: (h, ctx) => {
- const params = {
- row: ctx.props.row,
- index: ctx.props.index
- }
+ const params = ctx.props.row
const { keyName, render, row } = ctx.props
if (render) {
return h('div', [render(h, params)])
- } else return h('div', [row[keyName]])
+ } else return h('div', [params.row[keyName]])
}
}
diff --git a/packages/common/AdvanceTable/src/main.vue b/packages/common/AdvanceTable/src/main.vue
index 7215d4e33..0a7e2e4db 100644
--- a/packages/common/AdvanceTable/src/main.vue
+++ b/packages/common/AdvanceTable/src/main.vue
@@ -106,7 +106,7 @@
v-for="column in columns"
:key="column.key"
:style="computeAlign(column)"
- :class="computeTdClass(column,{row:rowData,index:i,key:column.key})"
+ :class="computeTdClass(column,rowData)"
>
{
+ return {
+ row,
+ _index: idx
+ }
+ })
return {
- copyData: this.data.slice(0),
+ copyData,
sortIndexs,
wrapperWidth: 'unset',
tbodyWidth: 'auto;',
@@ -342,7 +348,12 @@ export default {
this.$emit('on-page-change', this.paginationer)
},
data () {
- this.copyData = this.data.slice(0)
+ this.copyData = this.data.slice(0).map((row, idx) => {
+ return {
+ row,
+ _index: idx
+ }
+ })
this.searchData = this.computeShowingData()
this.searchDataNoSort = null
},
@@ -487,7 +498,7 @@ export default {
const { value, filterFn } = this.currentFilterColumn[key]
if (value && filterFn !== 'custom') {
data = data.filter(item => {
- return filterFn(value, item)
+ return filterFn(value, item.row)
})
}
})
@@ -496,7 +507,7 @@ export default {
if (this.currentSearchColumn && this.search.onSearch !== 'custom') {
const { key, word } = this.currentSearchColumn
data = data.filter(item => {
- return this.search.onSearch(key, word, item)
+ return this.search.onSearch(key, word, item.row)
})
}
@@ -524,6 +535,8 @@ export default {
}
} else {
data = data.sort((a, b) => {
+ a = a.row
+ b = b.row
if (type > 0) {
if (column.sorter) {
return column.sorter(a, b)
From d2bb3901af49e7925c03ed7a969267a2d46003ac Mon Sep 17 00:00:00 2001
From: mangogan <1261639871@qq.com>
Date: Mon, 5 Aug 2019 20:06:51 +0800
Subject: [PATCH 8/9] not-finished: vertical mode and custom label need to add
---
demo/components/tabDemo.vue | 18 ++-
packages/common/Tab/src/main.vue | 19 +--
styles/Tab.scss | 215 +++++++++++++++++++------------
3 files changed, 154 insertions(+), 98 deletions(-)
diff --git a/demo/components/tabDemo.vue b/demo/components/tabDemo.vue
index 24266ca3c..a619f4690 100644
--- a/demo/components/tabDemo.vue
+++ b/demo/components/tabDemo.vue
@@ -11,11 +11,12 @@
diff --git a/packages/common/Tab/src/main.vue b/packages/common/Tab/src/main.vue
index ea12f751b..de4e5558c 100644
--- a/packages/common/Tab/src/main.vue
+++ b/packages/common/Tab/src/main.vue
@@ -5,7 +5,7 @@
@@ -102,7 +103,7 @@ export default {
tabCls () {
let type = ['normal', 'card', 'board']
let cls = 'n-tab '
- return type.indexOf(this.type) > -1 ? cls + 'n-tab_' + this.type + '' : ''
+ return type.indexOf(this.type) > -1 ? cls + 'n-tab_' + this.type + '' : cls + 'n-tab_normal '
}
},
watch: {
@@ -159,7 +160,8 @@ export default {
let newName = this.names[i]
let eName = e.target.className
let eParentName = e.target.parentElement.className
- let isLabel = eName.indexOf('n-tab--label-item') > -1 || eParentName.indexOf('n-tab--label-item') > -1
+ let ePPName = ((e.target.parentElement || {}).parentElement || {}).className
+ let isLabel = eName.indexOf('n-tab--label-item') > -1 || eParentName.indexOf('n-tab--label-item') > -1 || ePPName.indexOf('n-tab--label-item') > -1
if (isLabel) {
Promise.resolve(this.beforeLeave(newName, oldName)).then(res => {
if (res) {
@@ -173,7 +175,8 @@ export default {
updateActive (e, i) {
let eName = e.target.className
let eParentName = e.target.parentElement.className
- let isLabel = eName.indexOf('n-tab--label-item') > -1 || eParentName.indexOf('n-tab--label-item') > -1
+ let ePPName = ((e.target.parentElement || {}).parentElement || {}).className
+ let isLabel = eName.indexOf('n-tab--label-item') > -1 || eParentName.indexOf('n-tab--label-item') > -1 || ePPName.indexOf('n-tab--label-item') > -1
if (eName.indexOf('n-tab--label-delete') > -1) {
// steps while deleting, need to set display none to label and the tab panel and then init the display
this.labels.splice(i, 1)
diff --git a/styles/Tab.scss b/styles/Tab.scss
index 66c230da0..22e3c9312 100644
--- a/styles/Tab.scss
+++ b/styles/Tab.scss
@@ -1,94 +1,21 @@
@import './mixins/mixins.scss';
@import './theme/default.scss';
-// @include b(tab) {
-// width: 100%;
-// height: 100%;
-// padding: 0 10px;
-// background-color: #171D33;
-// .n-tab--label {
-// display: flex;
-// align-items: center;
-// justify-content: space-between;
-// font-weight: bold;
-// font-size: 15px;
-// color: #ffffff;
-// .n-tab--label-item {
-// &:not(:last-child) {
-// margin-right: 25px;
-// }
-// padding-bottom: 8px;
-// .n-tab--label-delete {
-// display: none;
-// margin-left: 9px;
-// }
-// &:hover {
-// color: #55E8C7;
-// }
-
-// }
-// .n-tab--label-item_active {
-// color: #63E2B7;
-// border-bottom: 2px solid rgba(99, 226, 183, 1);
-// }
-// .n-tab--label-item_delete {
-// .n-tab--label-delete {
-// display: inline-block;
-// }
-// }
-// .n-tab--label-item_disabled {
-// color: #FFFFFF;
-// opacity: 0.3;
-// pointer-events: none;
-// }
-// .n-tab--label-item_card {
-// margin-left: 0;
-// margin-right: 6px;
-// padding: 8px 16px;
-// border-radius: 6px 6px 0 0;
-// background-color: rgba(255, 255, 255, 0.3);
-// .n-tab--label-content {
-// display: flex;
-// align-items: center;
-// border: none;
-// color: #50E3C2
-// }
-// &.n-tab--label-item_active {
-// border: none;
-// }
-// &:hover {
-// color: #55E8C7;
-// border: none;
-// }
-// &.n-tab--label-item_close {
-// .n-tab--label-delete {
-// display: inline-block;
-// margin-left: 9px;
-// }
-// }
-// }
-// .n-tab--label-add {
-// display: none;
-// font-size: 24px;
-// }
-// &.n-tab--label_addable {
-// .n-tab--label-add {
-// display: inline-block;
-// }
-// }
-// }
-// .n-tab--slot {
-// display: flex;
-// width: 100%;
-// height: 100%;
-// overflow: hidden;
-// }
-// }
-
@include b(tab) {
width: 100%;
height: 100%;
- // border-radius: 9px;
+ border-radius: 9px;
+ background-color: rgb(23, 29, 51);
+ .n-tab--label-add {
+ display: none;
+ font-size: 24px;
+ margin-right: 8px;
+ }
+ .n-tab--label_addable {
+ .n-tab--label-add {
+ display: inline-block;
+ }
+ }
.n-tab--label {
display: flex;
align-items: center;
@@ -97,6 +24,7 @@
font-size: 15px;
.n-tab--label-delete {
display: inline-block;
+ font-size: 20px;
margin-left: 9px;
}
}
@@ -146,6 +74,123 @@
color: #63E2B7;
}
}
+ .n-tab--slot-panel {
+ padding: 12px 24px 16px;
+ }
+ .n-tab--slot {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ }
+ }
+ &.n-tab_board {
+ background-color: rgb(23, 29, 51);
+ .n-tab--label {
+ border-bottom: 1px solid rgba(255, 255, 255, .3);
+ .n-tab--label-item:not(:last-child) {
+ margin-right: 3px;
+ }
+ .n-tab--label-content {
+ display: flex;
+ align-items: center;
+ border: none;
+ padding: 8px 16px;
+ border-radius: 6px 6px 0 0;
+ border: 1px solid rgba(255, 255, 255, .5);
+ background-color: rgba(255, 255, 255, .1);
+ color: #ffffff;
+ .n-tab--label-delete {
+ color: #F2F2F4;
+ opacity: 0.5;
+ }
+ }
+ .n-tab--label-item_active {
+ .n-tab--label-content {
+ color: #63E2B7;
+ border-color: #63E2B7;
+ border-bottom: none;
+ background: rgb(23, 29, 51);
+ }
+ &:after {
+ display: block;
+ content: '';
+ width: 100%;
+ height: 1px;
+ background-color: #171D33;
+ }
+ }
+ .n-tab--label-item_disabled {
+ pointer-events: none;
+ .n-tab--label-content {
+ opacity: 0.3;
+ }
+ .n-tab--label-delete {
+ opacity: 0.2;
+ }
+ }
+ .n-tab--label-text:hover {
+ color: #50E3C2;
+ }
+ .n-tab--label-delete:hover {
+ color: #63E2B7;
+ }
+ }
+ .n-tab--slot-panel {
+ padding: 13px 4px 16px 16px;
+ border-radius: 0px 0px 9px 9px;
+ }
+ .n-tab--slot {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ }
+ }
+ &.n-tab_normal {
+ padding: 14px 23px 20px;
+ background-color: rgb(31, 38, 62);
+ .n-tab--label-add {
+ margin-right: -15px;
+ }
+ .n-tab--label {
+ padding-bottom: 8px;
+ .n-tab--label-item:not(:last-child) {
+ margin-right: 35px;
+ }
+ .n-tab--label-content {
+ display: flex;
+ align-items: center;
+ border: none;
+ padding-bottom: 8px;
+ color: #ffffff;
+ .n-tab--label-delete {
+ color: #F2F2F4;
+ opacity: 0.5;
+ }
+ }
+ .n-tab--label-item_active {
+ .n-tab--label-content {
+ color: #63E2B7;
+ border-bottom: 2px solid #63E2B7;
+ }
+ }
+ .n-tab--label-item_disabled {
+ pointer-events: none;
+ .n-tab--label-content {
+ opacity: 0.3;
+ }
+ .n-tab--label-delete {
+ opacity: 0.2;
+ }
+ }
+ .n-tab--label-text:hover {
+ color: #50E3C2;
+ }
+ .n-tab--label-delete:hover {
+ color: #63E2B7;
+ }
+ }
.n-tab--slot {
// margin: 12px 24px 16px;
display: flex;
From 7306683ba9acda3c84ed4a14171abb6e7cb81869 Mon Sep 17 00:00:00 2001
From: JiwenBai
Date: Tue, 6 Aug 2019 10:40:52 +0800
Subject: [PATCH 9/9] fixed(input-number): button in from ,the type will submit
when type not set
---
packages/common/InputNumber/src/main.vue | 2 ++
1 file changed, 2 insertions(+)
diff --git a/packages/common/InputNumber/src/main.vue b/packages/common/InputNumber/src/main.vue
index c2f800dc8..00e8fefff 100644
--- a/packages/common/InputNumber/src/main.vue
+++ b/packages/common/InputNumber/src/main.vue
@@ -7,6 +7,7 @@
}"
>