mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
chore: remove some console.log
This commit is contained in:
parent
39906da6c3
commit
1ac2925118
@ -22,7 +22,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import docCodeEditorMixin from '../docCodeEditorMixin'
|
||||
import basicUsage from './basigUsage.demo.vue'
|
||||
import multipleSelect from './multipleSelect.demo.vue'
|
||||
import verboseTransition from './verboseTransition.demo.vue'
|
||||
@ -39,7 +38,6 @@ export default {
|
||||
changeEventEmitItem,
|
||||
search
|
||||
},
|
||||
mixins: [docCodeEditorMixin],
|
||||
data () {
|
||||
return {
|
||||
selectedValue: null,
|
||||
|
@ -92,7 +92,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import docCodeEditorMixin from './docCodeEditorMixin'
|
||||
import docCodeEditorMixin from '../docCodeEditorMixin'
|
||||
export default {
|
||||
mixins: [docCodeEditorMixin],
|
||||
data () {
|
@ -1,5 +1,5 @@
|
||||
const { getOptions } = require('loader-utils')
|
||||
const validateOptions = require('schema-utils')
|
||||
// const { getOptions } = require('loader-utils')
|
||||
// const validateOptions = require('schema-utils')
|
||||
const prettier = require('prettier')
|
||||
|
||||
module.exports = function (content) {
|
||||
|
@ -2,13 +2,13 @@
|
||||
<div
|
||||
ref="self"
|
||||
class="n-popover"
|
||||
@mouseenter="handleMouseEnter"
|
||||
@mouseleave="handleMouseLeave"
|
||||
>
|
||||
<div
|
||||
ref="activator"
|
||||
class="n-popover__activator"
|
||||
@click="handleActivatorClick"
|
||||
@mouseenter="handleMouseEnter"
|
||||
@mouseleave="handleMouseLeave"
|
||||
>
|
||||
<slot name="activator" />
|
||||
</div>
|
||||
@ -19,7 +19,7 @@
|
||||
<!--
|
||||
ref="content" should exist since if not, I can't detach the element
|
||||
because it doesn't exist. Maybe there are some other solutions, such
|
||||
as detach when active. However it also have some good points such as
|
||||
as detach when active. However it also has some good points such as
|
||||
make it easy to positioning. So I just leave it for later solving.
|
||||
-->
|
||||
<div
|
||||
@ -97,13 +97,17 @@ export default {
|
||||
},
|
||||
handleMouseLeave () {
|
||||
if (this.trigger === 'hover') {
|
||||
if (this.vanishTimerId) {
|
||||
window.clearTimeout(this.vanishTimerId)
|
||||
this.vanishTimerId = null
|
||||
}
|
||||
this.vanishTimerId = window.setTimeout(() => {
|
||||
this.deactivate()
|
||||
}, this.duration)
|
||||
}
|
||||
},
|
||||
handleClickOutsidePopover (e) {
|
||||
console.log('click outside')
|
||||
// console.log('click outside')
|
||||
this.deactivate()
|
||||
},
|
||||
handleActivatorClick () {
|
||||
|
@ -70,11 +70,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleInput (value) {
|
||||
console.log('input')
|
||||
// console.log('input')
|
||||
}
|
||||
},
|
||||
render (h) {
|
||||
console.log('render radio')
|
||||
// console.log('render radio')
|
||||
return h('div', {
|
||||
staticClass: 'n-radio-group'
|
||||
}, mapSlot(h, this.$slots.default, this))
|
||||
|
8
think.md
8
think.md
@ -7,4 +7,10 @@ a >>> b 被编译成了 a > > > b
|
||||
# input 的 change 不随外界 props value 的改变改变
|
||||
其他的我还没想好
|
||||
# 2019.7.17 There may be a bug of chrome
|
||||
在一个 single filterable select 中,会出现一个 bug...,这个 bug 会让溢出屏幕的 item 不再显示。感觉可能是 Chrome 为了性能优化没有渲染一些在屏幕外面的东西,暂时通过 translateZ(0) 解决了。
|
||||
在一个 single filterable select 中,会出现一个 bug...,这个 bug 会让溢出屏幕的 item 不再显示。感觉可能是 Chrome 为了性能优化没有渲染一些在屏幕外面的东西,暂时通过 translateZ(0) 解决了。
|
||||
# 2019.7.17 Popover
|
||||
popover 的 hover 有问题,哎...一大堆东西闪来闪去就可能 mouseleave 没触发就一直留在那了
|
||||
## TODO
|
||||
issue fix, add delay prop
|
||||
add trigger to tooltip
|
||||
outside click delegate select
|
Loading…
Reference in New Issue
Block a user