mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
refactor(usecssr): mount id generating logic
This commit is contained in:
parent
cc7da0be5f
commit
43ba07e46d
@ -25,6 +25,9 @@ function createMutableStyleId (
|
||||
dependencyKey,
|
||||
dependencyValue
|
||||
) {
|
||||
if (dependencyKey === 'syntheticTheme') {
|
||||
return componentName + '-' + renderedTheme
|
||||
}
|
||||
return (
|
||||
componentName + '-' +
|
||||
renderedTheme + '-' +
|
||||
@ -91,7 +94,7 @@ function setupImmutableStyle (
|
||||
CNode
|
||||
) {
|
||||
const mountId = createImmutableStyleId(
|
||||
instance.$options.name + '-immutable'
|
||||
instance.$options.name
|
||||
)
|
||||
if (isStyleMounted(mountId)) return
|
||||
CNode.mount({
|
||||
|
Loading…
Reference in New Issue
Block a user