Skip to content

Commit 88417e2

Browse files
author
Kenneth Cheng
committed
Fixed panel filter bug
1 parent 3ba73c8 commit 88417e2

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue3-excel-editor",
33
"email": "[email protected]",
44
"description": "Vue3 plugin for displaying and editing the array-of-object in Excel style",
5-
"version": "1.0.20",
5+
"version": "1.0.21",
66
"main": "src/main.js",
77
"dependencies": {
88
"@vuepic/vue-datepicker": "^3.3.0",

src/PanelFilter.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ export default {
164164
doInputFilter () {
165165
if (window.delay) clearTimeout(window.delay)
166166
window.delay = setTimeout(() => {
167-
this.inputFilter = this.$refs.inputFilter.modelValue
167+
this.inputFilter = this.$refs.inputFilter.value
168168
}, 200)
169169
},
170170
doFilter () {
171-
const opt = this.inputFilterCondition + this.$refs.inputFilter.modelValue
171+
const opt = this.inputFilterCondition + this.$refs.inputFilter.value
172172
this.columnFilterRef.$el.textContent = opt
173173
this.columnFilterRef.$emit('update:modelValue', opt)
174174
this.hidePanel()
@@ -184,7 +184,7 @@ export default {
184184
this.inputFilter = ''
185185
this.inputFilterCondition = ''
186186
this.sortedUniqueValueList = []
187-
this.$refs.inputFilter.modelValue = ''
187+
this.$refs.inputFilter.value = ''
188188
if (this.columnFilterRef.$el.textContent != '') {
189189
this.columnFilterRef.$el.textContent = ''
190190
this.columnFilterRef.$emit('update:modelValue', '')
@@ -264,6 +264,7 @@ input:focus, button:focus {
264264
265265
div.panel-title span, button.panel-button span {
266266
margin-left: 6px;
267+
vertical-align: text-top;
267268
}
268269
269270
.panel-content {
@@ -382,7 +383,7 @@ div.panel-title span, button.panel-button span {
382383
flex-direction: column;
383384
}
384385
.panel-checkbox {
385-
vertical-align: 2px;
386+
vertical-align: bottom;
386387
}
387388
.panel-list span {
388389
margin-left: 10px;

src/VueExcelEditor.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
</div>
182182

183183
<!-- Vertical Scroll Bar -->
184-
<div v-if="vScroller.buttonHeight < vScroller.height"
184+
<div v-show="vScroller.buttonHeight < vScroller.height"
185185
ref="vScroll"
186186
class="v-scroll"
187187
:style="{top: `${vScroller.top}px`, height: `${vScroller.height}px`}"
@@ -2506,6 +2506,7 @@ export default defineComponent({
25062506
type: 'd',
25072507
rec: t
25082508
})))
2509+
this.refresh()
25092510
})
25102511
}, 100)
25112512
},
@@ -3087,6 +3088,7 @@ input:focus, input:active:focus, input.active:focus {
30873088
z-index: 5;
30883089
background-color: white;
30893090
border-left: 1px solid lightgray;
3091+
border-top: 1px lightgray solid;
30903092
user-select: none;
30913093
}
30923094
.v-scroll-button {

0 commit comments

Comments
 (0)