From 1bf75d3611ac5efb17ca5e8b0d1962469c4848c0 Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Mon, 23 Sep 2024 23:17:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8D=A1=E7=89=87scheme=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=8E=E4=BE=9D=E8=B5=96=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 8 -------- package-lock.json | 19 +++++++++++++++++++ package.json | 1 + src/schemes/components/Card.json | 27 ++++++++++++++++++++++----- src/schemes/scheme.json | 19 ++++++++++++++++++- src/schemes/scheme.ts | 19 ++++++++++++++++++- 6 files changed, 78 insertions(+), 15 deletions(-) diff --git a/components.d.ts b/components.d.ts index c3669b8..05ce15a 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,19 +7,11 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { - AButton: typeof import('@arco-design/web-vue')['Button'] - AInput: typeof import('@arco-design/web-vue')['Input'] - ARate: typeof import('@arco-design/web-vue')['Rate'] - AScrollbar: typeof import('@arco-design/web-vue')['Scrollbar'] - ASwitch: typeof import('@arco-design/web-vue')['Switch'] - ATable: typeof import('@arco-design/web-vue')['Table'] DynamicComponent: typeof import('./src/components/DynamicComponent.vue')['default'] ElTable: typeof import('./src/components/ElTable.vue')['default'] - FunctionalIcons: typeof import('./src/components/FunctionalIcons.vue')['default'] NestedDirective: typeof import('./src/components/NestedDirective.vue')['default'] NestedFunction: typeof import('./src/components/NestedFunction.vue')['default'] TestComponent: typeof import('./src/components/TestComponent.vue')['default'] - TestParentComponent: typeof import('./src/components/TestParentComponent.vue')['default'] VueDemo: typeof import('./src/components/VueDemo.vue')['default'] } } diff --git a/package-lock.json b/package-lock.json index b086d32..53b6a3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@arco-plugins/vite-vue": "^1.4.5", "@vueuse/core": "^10.11.0", + "js-yaml": "^4.1.0", "lodash": "^4.17.21", "lsp-uuid": "^3.2.0", "ts-node": "^10.9.2", @@ -1600,6 +1601,12 @@ "resolved": "https://registry.npmmirror.com/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://repo.bingosoft.net/repository/npm/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, "node_modules/b-tween": { "version": "0.3.3", "resolved": "https://registry.npmmirror.com/b-tween/-/b-tween-0.3.3.tgz", @@ -2296,6 +2303,18 @@ "integrity": "sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==", "dev": true }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://repo.bingosoft.net/repository/npm/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz", diff --git a/package.json b/package.json index 7c847cb..2370d0a 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@arco-plugins/vite-vue": "^1.4.5", "@vueuse/core": "^10.11.0", + "js-yaml": "^4.1.0", "lodash": "^4.17.21", "lsp-uuid": "^3.2.0", "ts-node": "^10.9.2", diff --git a/src/schemes/components/Card.json b/src/schemes/components/Card.json index 91394c0..84ec7d6 100644 --- a/src/schemes/components/Card.json +++ b/src/schemes/components/Card.json @@ -4,15 +4,32 @@ "id": "card", "designer": {}, "text": "ByteDance's core product, Toutiao (\"Headlines\"), is a content platform in China and around the world. Toutiao started out as a news recommendation engine and gradually evolved into a platform delivering content in various formats.", - "props": {"title":"Card"}, + "props": { + "title": "Card" + }, "style": "width:360px", "class": "arco-card arco-card-size-medium arco-card-bordered", "visible": "", - "slots": {}, + "slots": { + "extra":{ + "id": "avatar-9f8289a12910000", + "name": "avatar", + "type": "Avatar", + "props": {}, + "class": "", + "designer": "", + "text": "", + "children": [], + "style": "", + "visible": "", + "slots": {}, + "disable": "", + "events": {}, + "loop": {} + } + }, "disable": "", "events": {}, "loop": {}, "children": [] -} - - +} \ No newline at end of file diff --git a/src/schemes/scheme.json b/src/schemes/scheme.json index c134d09..d5eadf1 100644 --- a/src/schemes/scheme.json +++ b/src/schemes/scheme.json @@ -238,7 +238,24 @@ "style": "width:360px", "class": "arco-card arco-card-size-medium arco-card-bordered", "visible": "", - "slots": {}, + "slots": { + "extra": { + "id": "avatar-9f8289a12910000", + "name": "avatar", + "type": "Avatar", + "props": {}, + "class": "", + "designer": "", + "text": "", + "children": [], + "style": "", + "visible": "", + "slots": {}, + "disable": "", + "events": {}, + "loop": {} + } + }, "disable": "", "events": {}, "loop": {}, diff --git a/src/schemes/scheme.ts b/src/schemes/scheme.ts index b538947..2e81de5 100644 --- a/src/schemes/scheme.ts +++ b/src/schemes/scheme.ts @@ -238,7 +238,24 @@ export const componentScheme = { "style": "width:360px", "class": "arco-card arco-card-size-medium arco-card-bordered", "visible": "", - "slots": {}, + "slots": { + "extra": { + "id": "avatar-9f8289a12910000", + "name": "avatar", + "type": "Avatar", + "props": {}, + "class": "", + "designer": "", + "text": "", + "children": [], + "style": "", + "visible": "", + "slots": {}, + "disable": "", + "events": {}, + "loop": {} + } + }, "disable": "", "events": {}, "loop": {},