fix(project): fix/upgrade-to-vue-3-1-1-and-with-bug-fix (#2220)

- Upgrade Vue to 3.1.1 and fix the bug alone with the upgrade
This commit is contained in:
jeremywu 2021-06-11 18:20:49 +08:00 committed by GitHub
parent d3c1e8eac7
commit 8206e34a66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
113 changed files with 195 additions and 204 deletions

View File

@ -30,7 +30,7 @@
"fast-build": "sh ./scripts/build.sh"
},
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
@ -49,7 +49,7 @@
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"@vue/babel-plugin-jsx": "^1.0.0",
"@vue/compiler-sfc": "^3.0.9",
"@vue/compiler-sfc": "^3.1.1",
"@vue/component-compiler-utils": "^3.2.0",
"algoliasearch": "^4.4.0",
"babel-jest": "^26.3.0",
@ -99,7 +99,7 @@
"ts-loader": "^8.0.3",
"typescript": "^4.0.2",
"url-loader": "^4.1.0",
"vue": "^3.0.9",
"vue": "3.1.1",
"vue-jest": "5.0.0-alpha.5",
"vue-loader": "^16.1.2",
"vue-router": "^4.0.2",

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@element-plus/button": "^0.0.0",

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -8,7 +8,7 @@
"@element-plus/utils": "^0.0.0"
},
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -1,17 +1,17 @@
<script lang="ts">
import { defineComponent, Fragment, createTextVNode, renderSlot, toDisplayString, createCommentVNode, withDirectives, Teleport, createVNode } from 'vue'
import { defineComponent, Fragment, createTextVNode, renderSlot, toDisplayString, createCommentVNode, withDirectives, Teleport, h } from 'vue'
import ElPopper from '@element-plus/popper'
import { defaultProps, Effect } from '@element-plus/popper'
import { renderPopper, renderTrigger, renderArrow } from '@element-plus/popper'
import { ClickOutside } from '@element-plus/directives'
import { warn } from '@element-plus/utils/error'
import { renderBlock, renderIf, PatchFlags } from '@element-plus/utils/vnode'
import { renderIf, PatchFlags } from '@element-plus/utils/vnode'
import usePopover, { SHOW_EVENT, HIDE_EVENT } from './usePopover'
import type { PropType } from 'vue'
import type { TriggerType } from '@element-plus/popper'
const emits = ['update:visible', 'after-enter', 'after-leave', SHOW_EVENT, HIDE_EVENT ]
const emits = ['update:visible', 'after-enter', 'after-leave', SHOW_EVENT, HIDE_EVENT]
const NAME = 'ElPopover'
const _hoist = { key: 0, class: 'el-popover__title', role: 'title' }
@ -116,14 +116,14 @@ export default defineComponent({
...events,
}) : createCommentVNode('v-if', true)
return renderBlock(Fragment, null, [
return h(Fragment, null, [
this.trigger === 'click'
? withDirectives(_trigger, [[ClickOutside, this.hide]])
: _trigger,
createVNode(Teleport as any, {
h(Teleport as any, {
disabled: !this.appendToBody,
to: 'body',
}, [popover], PatchFlags.PROPS, ['disabled']),
}, [popover]),
])
},
})

View File

@ -5,7 +5,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -1,6 +1,5 @@
<script lang="ts">
import {
createVNode,
defineComponent,
Fragment,
Teleport,
@ -11,10 +10,10 @@ import {
renderSlot,
toDisplayString,
withDirectives,
h,
} from 'vue'
import throwError from '@element-plus/utils/error'
import { PatchFlags, renderBlock } from '@element-plus/utils/vnode'
import usePopper from './use-popper/index'
import defaultProps from './use-popper/defaults'
@ -113,17 +112,15 @@ export default defineComponent({
? renderTrigger(_t, triggerProps)
: withDirectives(renderTrigger(_t, triggerProps), [[ClickOutside, hide]])
return renderBlock(Fragment, null, [
return h(Fragment, null, [
trigger,
createVNode(
h(
Teleport as any, // Vue did not support createVNode for Teleport
{
to: 'body',
disabled: !appendToBody,
},
[popper],
PatchFlags.PROPS,
['disabled'],
),
])
},

View File

@ -1,10 +1,8 @@
import { openBlock, createBlock, Comment } from 'vue'
import { PatchFlags } from '@element-plus/utils/vnode'
import { Comment, h } from 'vue'
export default function renderArrow(showArrow: boolean) {
return showArrow
? (openBlock(),
createBlock(
? h(
'div',
{
ref: 'arrowRef',
@ -12,7 +10,6 @@ export default function renderArrow(showArrow: boolean) {
'data-popper-arrow': '',
},
null,
PatchFlags.NEED_PATCH,
))
: (openBlock(), createBlock(Comment, null, ''))
)
: h(Comment, null, '')
}

View File

@ -1,6 +1,5 @@
import { withDirectives, Transition, vShow, withCtx, createVNode } from 'vue'
import { withDirectives, Transition, vShow, withCtx, h } from 'vue'
import { NOOP } from '@vue/shared'
import { PatchFlags } from '@element-plus/utils/vnode'
import { stop } from '@element-plus/utils/dom'
import type { VNode, Ref } from 'vue'
@ -62,7 +61,7 @@ export default function renderPopper(
*/
const mouseUpAndDown = stopPopperMouseEvent ? stop : NOOP
return createVNode(
return h(
Transition,
{
name,
@ -73,7 +72,7 @@ export default function renderPopper(
},
{
default: withCtx(() => [withDirectives(
createVNode(
h(
'div',
{
'aria-hidden': String(!visibility),
@ -89,20 +88,9 @@ export default function renderPopper(
onMouseup: mouseUpAndDown,
},
children,
PatchFlags.CLASS | PatchFlags.STYLE | PatchFlags.PROPS | PatchFlags.HYDRATE_EVENTS,
[
'aria-hidden',
'onMouseenter',
'onMouseleave',
'onMousedown',
'onMouseup',
'onClick',
'id',
],
),
[[vShow, visibility]],
)]),
},
PatchFlags.PROPS, ['name', 'onAfterEnter', 'onAfterLeave', 'onBeforeEnter', 'onBeforeLeave'],
)
}

View File

@ -39,7 +39,7 @@ export type IPopperOptions = {
}
export const DEFAULT_TRIGGER = 'hover'
const DEFAULT_FALLBACK_PLACEMENTS = ['auto']
const DEFAULT_FALLBACK_PLACEMENTS = []
export default {
// the arrow size is an equailateral triangle with 10px side length, the 3rd side length ~ 14.1px

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -12,6 +12,7 @@
placement="bottom-start"
:append-to-body="popperAppendToBody"
:popper-class="`el-select__popper ${popperClass}`"
:fallback-placements="['auto']"
manual-mode
effect="light"
pure

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.3"

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"dependencies": {
"vue": "^3.0.9",
"vue": "3.1.1",
"@vue/test-utils": "^2.0.0-beta.3"
}
}

View File

@ -4,7 +4,7 @@
"main": "dist/index.js",
"license": "MIT",
"peerDependencies": {
"vue": "^3.0.9"
"vue": "3.1.1"
},
"devDependencies": {
"@vue/test-utils": "^2.0.0-beta.0"

View File

@ -276,6 +276,7 @@ export default defineComponent({
}
const formatToString = value => {
console.log(value, props.format)
if (!value) return null
if (Array.isArray(value)) {
return value.map(_=> _.format(props.format))

Some files were not shown because too many files have changed in this diff Show More