|
16 | 16 | <a href="https://github.com/cloydlau/json-editor-vue/actions/workflows/ci.yml"><img alt="build status" src="https://github.com/cloydlau/json-editor-vue/actions/workflows/ci.yml/badge.svg?branch=main"></a>
|
17 | 17 | <a href="https://bundlephobia.com/package/json-editor-vue"><img alt="minzipped size" src="https://img.shields.io/bundlephobia/minzip/json-editor-vue"></a>
|
18 | 18 | <br>
|
19 |
| - <a href="https://www.jsdelivr.com/package/npm/json-editor-vue"><img alt="jsdelivr downloads" src="https://data.jsdelivr.com/v1/package/npm/json-editor-vue/badge?style=rounded"></a> |
| 19 | + <a href="https://cdn.jsdelivr.net/npm/json-editor-vue"><img alt="jsdelivr downloads" src="https://data.jsdelivr.com/v1/package/npm/json-editor-vue/badge?style=rounded"></a> |
20 | 20 | <a href="https://npmcharts.com/compare/json-editor-vue"><img alt="npm downloads" src="https://img.shields.io/npm/dm/json-editor-vue?logo=npm&color=rgba(203,0,0,0.9)"></a>
|
21 | 21 | <br>
|
22 |
| - <a href="https://rome.tools"><img alt="code style" src="https://img.shields.io/badge/code_style-Rome-FFC905.svg?logo=rome"></a> |
| 22 | + <a href="https://standardjs.com"><img alt="code style" src="https://img.shields.io/badge/code_style-Standard-F3DF49.svg"></a> |
23 | 23 | <a href="https://conventionalcommits.org"><img alt="conventional commits" src="https://img.shields.io/badge/commits-Conventional-FE5196.svg?logo=conventionalcommits&logoColor=white"></a>
|
24 | 24 | <a href="https://github.com/cloydlau/json-editor-vue#develop"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"></a>
|
25 | 25 | </p>
|
@@ -544,9 +544,11 @@ export default {
|
544 | 544 | <script setup>
|
545 | 545 | import { ref } from 'vue'
|
546 | 546 |
|
547 |
| -const JsonEditorVue = () => process.client |
548 |
| - ? import('json-editor-vue') |
549 |
| - : Promise.resolve({ render: (h) => h('div') }) |
| 547 | +function JsonEditorVue() { |
| 548 | + return process.client |
| 549 | + ? import('json-editor-vue') |
| 550 | + : Promise.resolve({ render: h => h('div') }) |
| 551 | +} |
550 | 552 |
|
551 | 553 | const value = ref()
|
552 | 554 | </script>
|
@@ -643,13 +645,14 @@ export default {
|
643 | 645 | <script>
|
644 | 646 | import Vue from 'vue'
|
645 | 647 | import VCA from '@vue/composition-api'
|
| 648 | +
|
646 | 649 | Vue.use(VCA)
|
647 | 650 |
|
648 | 651 | export default {
|
649 | 652 | components: {
|
650 | 653 | JsonEditorVue: () => process.client
|
651 | 654 | ? import('json-editor-vue')
|
652 |
| - : Promise.resolve({ render: (h) => h('div') }), |
| 655 | + : Promise.resolve({ render: h => h('div') }), |
653 | 656 | },
|
654 | 657 | data() {
|
655 | 658 | return {
|
|
0 commit comments