mirror of https://github.com/halo-dev/halo
refactor: disable auto dispose feature of dropdown component (#4518)
#### What type of PR is this? /area console /kind improvement /milestone 2.9.x #### What this PR does / why we need it: 禁用 Dropdown 组件的自动销毁 dom 节点功能,以适配 https://github.com/halo-dev/halo/pull/4452 中拓展操作选项的场景。 #### Does this PR introduce a user-facing change? ```release-note None ```pull/4515/head^2
parent
aa95bbbf4e
commit
9c875e1731
|
@ -78,7 +78,7 @@
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"emoji-mart": "^5.3.3",
|
"emoji-mart": "^5.3.3",
|
||||||
"fastq": "^1.15.0",
|
"fastq": "^1.15.0",
|
||||||
"floating-vue": "2.0.0-beta.20",
|
"floating-vue": "2.0.0-beta.24",
|
||||||
"fuse.js": "^6.6.2",
|
"fuse.js": "^6.6.2",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"lodash.clonedeep": "^4.5.0",
|
"lodash.clonedeep": "^4.5.0",
|
||||||
|
|
|
@ -62,6 +62,6 @@
|
||||||
"./dist/style.css": "./dist/style.css"
|
"./dist/style.css": "./dist/style.css"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"floating-vue": "2.0.0-beta.20"
|
"floating-vue": "2.0.0-beta.24"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ defineExpose({
|
||||||
ref="dropdownRef"
|
ref="dropdownRef"
|
||||||
:placement="placement"
|
:placement="placement"
|
||||||
:triggers="triggers"
|
:triggers="triggers"
|
||||||
|
:dispose-timeout="null"
|
||||||
@show="emit('show')"
|
@show="emit('show')"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
|
|
|
@ -141,8 +141,8 @@ importers:
|
||||||
specifier: ^1.15.0
|
specifier: ^1.15.0
|
||||||
version: 1.15.0
|
version: 1.15.0
|
||||||
floating-vue:
|
floating-vue:
|
||||||
specifier: 2.0.0-beta.20
|
specifier: 2.0.0-beta.24
|
||||||
version: 2.0.0-beta.20(vue@3.3.4)
|
version: 2.0.0-beta.24(vue@3.3.4)
|
||||||
fuse.js:
|
fuse.js:
|
||||||
specifier: ^6.6.2
|
specifier: ^6.6.2
|
||||||
version: 6.6.2
|
version: 6.6.2
|
||||||
|
@ -391,8 +391,8 @@ importers:
|
||||||
packages/components:
|
packages/components:
|
||||||
dependencies:
|
dependencies:
|
||||||
floating-vue:
|
floating-vue:
|
||||||
specifier: 2.0.0-beta.20
|
specifier: 2.0.0-beta.24
|
||||||
version: 2.0.0-beta.20(vue@3.3.4)
|
version: 2.0.0-beta.24(vue@3.3.4)
|
||||||
vue:
|
vue:
|
||||||
specifier: ^3.3.4
|
specifier: ^3.3.4
|
||||||
version: 3.3.4
|
version: 3.3.4
|
||||||
|
@ -2273,12 +2273,28 @@ packages:
|
||||||
resolution: {integrity: sha512-ensKY7Ub59u16qsVIFEo2hwTCqZ/r9oZZFh51ivcLGHfUwTn8l1Xzng8RJUe91H/UP8PeqeBronAGx0qmzwk2g==}
|
resolution: {integrity: sha512-ensKY7Ub59u16qsVIFEo2hwTCqZ/r9oZZFh51ivcLGHfUwTn8l1Xzng8RJUe91H/UP8PeqeBronAGx0qmzwk2g==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/@floating-ui/core@1.4.1:
|
||||||
|
resolution: {integrity: sha512-jk3WqquEJRlcyu7997NtR5PibI+y5bi+LS3hPmguVClypenMsCY3CBa3LAQnozRCtCrYWSEtAdiskpamuJRFOQ==}
|
||||||
|
dependencies:
|
||||||
|
'@floating-ui/utils': 0.1.1
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@floating-ui/dom@0.1.10:
|
/@floating-ui/dom@0.1.10:
|
||||||
resolution: {integrity: sha512-4kAVoogvQm2N0XE0G6APQJuCNuErjOfPW8Ux7DFxh8+AfugWflwVJ5LDlHOwrwut7z/30NUvdtHzQ3zSip4EzQ==}
|
resolution: {integrity: sha512-4kAVoogvQm2N0XE0G6APQJuCNuErjOfPW8Ux7DFxh8+AfugWflwVJ5LDlHOwrwut7z/30NUvdtHzQ3zSip4EzQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@floating-ui/core': 0.3.1
|
'@floating-ui/core': 0.3.1
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/@floating-ui/dom@1.1.1:
|
||||||
|
resolution: {integrity: sha512-TpIO93+DIujg3g7SykEAGZMDtbJRrmnYRCNYSjJlvIbGhBjRSNTLVbNeDQBrzy9qDgUbiWdc7KA0uZHZ2tJmiw==}
|
||||||
|
dependencies:
|
||||||
|
'@floating-ui/core': 1.4.1
|
||||||
|
dev: false
|
||||||
|
|
||||||
|
/@floating-ui/utils@0.1.1:
|
||||||
|
resolution: {integrity: sha512-m0G6wlnhm/AX0H12IOWtK8gASEMffnX08RtKkCgTdHb9JpHKGloI7icFfLg9ZmQeavcvR0PKmzxClyuFPSjKWw==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@formkit/core@0.18.1:
|
/@formkit/core@0.18.1:
|
||||||
resolution: {integrity: sha512-qoVpV5gF7k7WtVdJB85pT59AxzEVDefGna6q1zfODhoJ+VtrjhGnFtHUENRahLTB1fz5iknFDG8fCN/uG5wBMw==}
|
resolution: {integrity: sha512-qoVpV5gF7k7WtVdJB85pT59AxzEVDefGna6q1zfODhoJ+VtrjhGnFtHUENRahLTB1fz5iknFDG8fCN/uG5wBMw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -7070,6 +7086,20 @@ packages:
|
||||||
vue-resize: 2.0.0-alpha.1(vue@3.3.4)
|
vue-resize: 2.0.0-alpha.1(vue@3.3.4)
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/floating-vue@2.0.0-beta.24(vue@3.3.4):
|
||||||
|
resolution: {integrity: sha512-URSzP6YXaF4u1oZ9XGL8Sn8puuM7ivp5jkOUrpy5Q1mfo9BfGppJOn+ierTmsSUfJEeHBae8KT7r5DeI3vQIEw==}
|
||||||
|
peerDependencies:
|
||||||
|
'@nuxt/kit': ^3.2.0
|
||||||
|
vue: ^3.2.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@nuxt/kit':
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
'@floating-ui/dom': 1.1.1
|
||||||
|
vue: 3.3.4
|
||||||
|
vue-resize: 2.0.0-alpha.1(vue@3.3.4)
|
||||||
|
dev: false
|
||||||
|
|
||||||
/follow-redirects@1.15.2(debug@4.3.2):
|
/follow-redirects@1.15.2(debug@4.3.2):
|
||||||
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
||||||
engines: {node: '>=4.0'}
|
engines: {node: '>=4.0'}
|
||||||
|
|
Loading…
Reference in New Issue