mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-10-20 18:56:22 +00:00
Bump deps & adjust CHANGELOG (#756)
This commit is contained in:
12 files changed
+213
-217
No files matched your search
@@ -22,8 +22,8 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/ui-shared": "3.2.3-0-x",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"jdenticon": "3.2.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
|
||||
@@ -109,7 +109,9 @@ export const Identicon = defineComponent({
|
||||
const cmp = type.charAt(0).toUpperCase() + type.slice(1);
|
||||
|
||||
if (['Beachball', 'Polkadot'].includes(cmp)) {
|
||||
const component = cmp === 'Beachball' ? Beachball : Polkadot;
|
||||
const component = cmp === 'Beachball'
|
||||
? Beachball
|
||||
: Polkadot;
|
||||
|
||||
return h(component, {
|
||||
...adaptVNodeAttrs({
|
||||
|
||||
@@ -3,12 +3,15 @@
|
||||
|
||||
import { version } from 'vue';
|
||||
|
||||
export function adaptVNodeAttrs (data: Record<string, any>) {
|
||||
if (version.startsWith('3.')) {
|
||||
return data;
|
||||
} else {
|
||||
return {
|
||||
attrs: data
|
||||
};
|
||||
}
|
||||
const isV3 = version.startsWith('3.');
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Adjust attributes to be usable in both Vue 2 and Vue 3 components.
|
||||
*/
|
||||
export function adaptVNodeAttrs (data: Record<string, unknown>): Record<string, unknown> {
|
||||
return isV3
|
||||
? data
|
||||
: { attrs: data };
|
||||
}
|
||||
Reference in new issue
Block a user