mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-07-24 15:55:53 +00:00
feat: adapt Vue 3.x (#755)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Copyright 2017-2023 @polkadot/vue-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { version } from 'vue';
|
||||
|
||||
export function adaptVNodeAttrs (data: Record<string, any>) {
|
||||
if (version.startsWith('3.')) {
|
||||
return data;
|
||||
} else {
|
||||
return {
|
||||
attrs: data
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user