mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
chore: 更新依赖
This commit is contained in:
parent
aaba8bff03
commit
7cd1bc7aec
65
package.json
65
package.json
@ -43,48 +43,47 @@
|
|||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^18.2.0",
|
"@commitlint/cli": "^18.6.1",
|
||||||
"@commitlint/config-conventional": "^18.1.0",
|
"@commitlint/config-conventional": "^18.6.3",
|
||||||
"@rollup/plugin-alias": "^5.1.0",
|
"@rollup/plugin-alias": "^5.1.1",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "18.19.61",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||||
"@typescript-eslint/parser": "^5.57.1",
|
"@typescript-eslint/parser": "^5.62.0",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.4",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.1.4",
|
||||||
"c8": "^7.11.3",
|
"c8": "^7.14.0",
|
||||||
"commitizen": "^4.3.0",
|
"commitizen": "^4.3.1",
|
||||||
"conventional-changelog-cli": "^4.1.0",
|
"conventional-changelog-cli": "^4.1.0",
|
||||||
"cosmiconfig": "^8.3.6",
|
"cosmiconfig": "^8.3.6",
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
"element-plus": "^2.8.0",
|
"element-plus": "^2.8.6",
|
||||||
"enquirer": "^2.3.6",
|
"enquirer": "^2.4.1",
|
||||||
"eslint": "^8.38.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-tencent": "^1.0.4",
|
"eslint-config-tencent": "^1.1.1",
|
||||||
"eslint-plugin-import": "^2.27.5",
|
"eslint-plugin-import": "^2.31.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||||
"eslint-plugin-vue": "^9.10.0",
|
"eslint-plugin-vue": "^9.30.0",
|
||||||
"execa": "^4.0.2",
|
"execa": "^4.1.0",
|
||||||
"highlight.js": "^11.7.0",
|
"husky": "^7.0.4",
|
||||||
"husky": "^7.0.0",
|
|
||||||
"jsdom": "^19.0.0",
|
"jsdom": "^19.0.0",
|
||||||
"lint-staged": "^11.0.1",
|
"lint-staged": "^11.2.6",
|
||||||
"minimist": "^1.2.6",
|
"minimist": "^1.2.8",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.1.1",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^2.8.8",
|
||||||
"recast": "^0.20.4",
|
"recast": "^0.20.5",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "^4.17.2",
|
"rollup": "^4.24.3",
|
||||||
"rollup-plugin-dts": "^6.1.1",
|
"rollup-plugin-dts": "^6.1.1",
|
||||||
"semver": "^7.3.7",
|
"semver": "^7.6.3",
|
||||||
"serialize-javascript": "^6.0.0",
|
"serialize-javascript": "^6.0.2",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.6.3",
|
||||||
"vite": "^5.4.3",
|
"vite": "^5.4.10",
|
||||||
"vitepress": "^1.3.4",
|
"vitepress": "^1.4.2",
|
||||||
"vitest": "^2.0.5",
|
"vitest": "^2.1.4",
|
||||||
"vue": "^3.5.0",
|
"vue": "^3.5.12",
|
||||||
"vue-tsc": "^2.1.6"
|
"vue-tsc": "^2.1.10"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"commitizen": {
|
"commitizen": {
|
||||||
|
@ -21,21 +21,22 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/cli",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cac": "^6.7.14",
|
"cac": "^6.7.14",
|
||||||
"chokidar": "^3.6.0",
|
"chokidar": "^3.6.0",
|
||||||
"esbuild": "^0.21.1",
|
"esbuild": "^0.21.5",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.1.1",
|
||||||
"recast": "^0.23.6",
|
"recast": "^0.23.9",
|
||||||
"tslib": "^2.6.2"
|
"tslib": "^2.8.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/node": "^18.19.0"
|
"@types/node": "^18.19.61"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
|
@ -95,5 +95,5 @@ export const makeCamelCase = function (name: string): string {
|
|||||||
if (typeof name !== 'string') {
|
if (typeof name !== 'string') {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
return name.replace(/-(\w)/g, ($0, $1) => $1.toUpperCase());
|
return name.replace(/-(\w)/g, (_$0, $1) => $1.toUpperCase());
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||||
|
"moduleResolution": "Node",
|
||||||
"module": "CommonJS",
|
"module": "CommonJS",
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"outDir": "./lib",
|
"outDir": "./lib",
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/core",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -50,7 +51,7 @@
|
|||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
|
@ -102,7 +102,7 @@ export default class EventHelper extends EventEmitter {
|
|||||||
node.eventKeys.set(eventNameKey, eventName);
|
node.eventKeys.set(eventNameKey, eventName);
|
||||||
}
|
}
|
||||||
|
|
||||||
const eventHandler = (fromCpt: TMagicNode, ...args: any[]) => {
|
const eventHandler = (_fromCpt: TMagicNode, ...args: any[]) => {
|
||||||
this.eventHandler(index, node, args);
|
this.eventHandler(index, node, args);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/data-source",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -51,6 +52,6 @@
|
|||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"tsc-alias": "^1.8.5",
|
"tsc-alias": "^1.8.5",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,13 +26,14 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/dep",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/schema": "workspace:*",
|
"@tmagic/schema": "workspace:*",
|
||||||
|
@ -24,7 +24,7 @@ export const createCodeBlockTarget = (id: Id, codeBlock: CodeBlockContent, initi
|
|||||||
id,
|
id,
|
||||||
initialDeps,
|
initialDeps,
|
||||||
name: codeBlock.name,
|
name: codeBlock.name,
|
||||||
isTarget: (key: string | number, value: any) => {
|
isTarget: (_key: string | number, value: any) => {
|
||||||
if (id === value) {
|
if (id === value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ export const createDataSourceMethodTarget = (ds: Pick<DataSourceSchema, 'id' | '
|
|||||||
type: DepTargetType.DATA_SOURCE_METHOD,
|
type: DepTargetType.DATA_SOURCE_METHOD,
|
||||||
id: ds.id,
|
id: ds.id,
|
||||||
initialDeps,
|
initialDeps,
|
||||||
isTarget: (key: string | number, value: any) => {
|
isTarget: (_key: string | number, value: any) => {
|
||||||
// 使用data-source-method-select 可以配置出来
|
// 使用data-source-method-select 可以配置出来
|
||||||
if (!Array.isArray(value) || !ds) {
|
if (!Array.isArray(value) || !ds) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/design",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -41,18 +42,17 @@
|
|||||||
"typescript"
|
"typescript"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7"
|
"@popperjs/core": "^2.11.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"@vue/test-utils": "^2.4.6",
|
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.5.0",
|
"vue": ">=3.5.0",
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
@ -69,7 +69,7 @@ export const tMagicMessage = {
|
|||||||
info: (msg: string) => {
|
info: (msg: string) => {
|
||||||
console.info(msg);
|
console.info(msg);
|
||||||
},
|
},
|
||||||
closeAll: (msg: string) => {},
|
closeAll: (_msg: string) => {},
|
||||||
} as unknown as TMagicMessage;
|
} as unknown as TMagicMessage;
|
||||||
|
|
||||||
export const tMagicMessageBox = {
|
export const tMagicMessageBox = {
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/editor",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -72,19 +73,19 @@
|
|||||||
"@types/serialize-javascript": "^5.0.1",
|
"@types/serialize-javascript": "^5.0.1",
|
||||||
"@types/sortablejs": "^1.15.8",
|
"@types/sortablejs": "^1.15.8",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"@vue/test-utils": "^2.4.6",
|
"@vue/test-utils": "^2.4.6",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.78.0",
|
"sass": "^1.78.0",
|
||||||
"tsc-alias": "^1.8.5",
|
"tsc-alias": "^1.8.5",
|
||||||
"type-fest": "^4.10.3",
|
"type-fest": "^4.10.3",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/core": "workspace:*",
|
"@tmagic/core": "workspace:*",
|
||||||
"monaco-editor": "^0.48.0",
|
"monaco-editor": "^0.48.0",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": "^3.5.0"
|
"vue": ">=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
|
@ -839,7 +839,7 @@ class Editor extends BaseService {
|
|||||||
|
|
||||||
const layout = await this.getLayout(target);
|
const layout = await this.getLayout(target);
|
||||||
|
|
||||||
const newConfig = mergeWith(cloneDeep(node), config, (objValue, srcValue) => {
|
const newConfig = mergeWith(cloneDeep(node), config, (_objValue, srcValue) => {
|
||||||
if (Array.isArray(srcValue)) {
|
if (Array.isArray(srcValue)) {
|
||||||
return srcValue;
|
return srcValue;
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ const fillConfig = (config: FormConfig): FormConfig => [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '请求参数裁剪',
|
title: '请求参数裁剪',
|
||||||
display: (formState: FormState, { model }: any) => model.type === 'http',
|
display: (_formState: FormState, { model }: any) => model.type === 'http',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
name: 'beforeRequest',
|
name: 'beforeRequest',
|
||||||
@ -70,7 +70,7 @@ const fillConfig = (config: FormConfig): FormConfig => [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '响应数据裁剪',
|
title: '响应数据裁剪',
|
||||||
display: (formState: FormState, { model }: any) => model.type === 'http',
|
display: (_formState: FormState, { model }: any) => model.type === 'http',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
name: 'afterResponse',
|
name: 'afterResponse',
|
||||||
|
@ -81,7 +81,7 @@ export const styleTabConfig: TabPaneConfig = {
|
|||||||
fieldConfig: {
|
fieldConfig: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
},
|
},
|
||||||
disabled: (vm: FormState, { model }: any) =>
|
disabled: (_vm: FormState, { model }: any) =>
|
||||||
model.position === 'fixed' && model._magic_position === 'fixedBottom',
|
model.position === 'fixed' && model._magic_position === 'fixedBottom',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -103,7 +103,7 @@ export const styleTabConfig: TabPaneConfig = {
|
|||||||
fieldConfig: {
|
fieldConfig: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
},
|
},
|
||||||
disabled: (vm: FormState, { model }: any) =>
|
disabled: (_vm: FormState, { model }: any) =>
|
||||||
model.position === 'fixed' && model._magic_position === 'fixedTop',
|
model.position === 'fixed' && model._magic_position === 'fixedTop',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -356,7 +356,7 @@ export const advancedTabConfig: TabPaneConfig = {
|
|||||||
|
|
||||||
export const displayTabConfig: TabPaneConfig = {
|
export const displayTabConfig: TabPaneConfig = {
|
||||||
title: '显示条件',
|
title: '显示条件',
|
||||||
display: (vm: FormState, { model }: any) => model.type !== 'page',
|
display: (_vm: FormState, { model }: any) => model.type !== 'page',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'display-conds',
|
type: 'display-conds',
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/element-plus-adapter",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -39,7 +40,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/design": "workspace:*",
|
"@tmagic/design": "workspace:*",
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/form",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -50,16 +51,16 @@
|
|||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@types/sortablejs": "^1.15.8",
|
"@types/sortablejs": "^1.15.8",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"@vue/test-utils": "^2.4.6",
|
"@vue/test-utils": "^2.4.6",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.78.0",
|
"sass": "^1.78.0",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/design": "workspace:*",
|
"@tmagic/design": "workspace:*",
|
||||||
"@tmagic/utils": "workspace:*",
|
"@tmagic/utils": "workspace:*",
|
||||||
"vue": "^3.5.0",
|
"vue": ">=3.5.0",
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
@ -98,8 +98,8 @@ export interface FormInstallOptions {
|
|||||||
const defaultInstallOpt: FormInstallOptions = {};
|
const defaultInstallOpt: FormInstallOptions = {};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
install(app: App, opt?: FormInstallOptions) {
|
install(app: App, opt: FormInstallOptions = {}) {
|
||||||
const option = Object.assign(defaultInstallOpt, opt || {});
|
const option = Object.assign(defaultInstallOpt, opt);
|
||||||
|
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
app.config.globalProperties.$MAGIC_FORM = option;
|
app.config.globalProperties.$MAGIC_FORM = option;
|
||||||
|
@ -26,13 +26,14 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/schema",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/stage",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -44,7 +45,7 @@
|
|||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.78.0",
|
"sass": "^1.78.0",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/core": "workspace:*",
|
"@tmagic/core": "workspace:*",
|
||||||
|
@ -402,18 +402,4 @@ export default class DragResizeHelper {
|
|||||||
|
|
||||||
return ghostEl;
|
return ghostEl;
|
||||||
}
|
}
|
||||||
|
|
||||||
private setGhostElChildrenId(el: Element): void {
|
|
||||||
for (const child of Array.from(el.children)) {
|
|
||||||
const el = child as HTMLElement;
|
|
||||||
const id = getIdFromEl()(el);
|
|
||||||
if (id) {
|
|
||||||
setIdToEl()(el, `${GHOST_EL_ID_PREFIX}${id}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (child.children.length) {
|
|
||||||
this.setGhostElChildrenId(child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/table",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -44,16 +45,15 @@
|
|||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"@vue/test-utils": "^2.4.6",
|
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.78.0",
|
"sass": "^1.78.0",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/design": "workspace:*",
|
"@tmagic/design": "workspace:*",
|
||||||
"@tmagic/form": "workspace:*",
|
"@tmagic/form": "workspace:*",
|
||||||
"vue": "^3.5.0",
|
"vue": ">=3.5.0",
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- @ts-nocheck -->
|
||||||
<TMagicTableColumn type="expand" :width="config.width" :fixed="config.fixed">
|
<TMagicTableColumn type="expand" :width="config.width" :fixed="config.fixed">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<MTable
|
<MTable
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- @ts-nocheck -->
|
||||||
<TMagicTableColumn :label="config.label" :width="config.width" :fixed="config.fixed">
|
<TMagicTableColumn :label="config.label" :width="config.width" :fixed="config.fixed">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<TMagicPopover
|
<TMagicPopover
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/tdesign-vue-next-adapter",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -38,15 +39,15 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/design": "workspace:*",
|
"@tmagic/design": "workspace:*",
|
||||||
"tdesign-vue-next": "^1.9.8",
|
"tdesign-vue-next": "^1.9.8",
|
||||||
"vue": "^3.5.0",
|
"vue": ">=3.5.0",
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/ui-react",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -39,6 +40,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/ui",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -45,6 +46,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
"directory": "packages/utils",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
@ -35,7 +36,7 @@
|
|||||||
"@types/lodash-es": "^4.17.4",
|
"@types/lodash-es": "^4.17.4",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/schema": "workspace:*",
|
"@tmagic/schema": "workspace:*",
|
||||||
|
@ -47,7 +47,7 @@ export const sleep = (ms: number): Promise<void> =>
|
|||||||
// 驼峰转换横线
|
// 驼峰转换横线
|
||||||
export const toLine = (name = '') => name.replace(/\B([A-Z])/g, '-$1').toLowerCase();
|
export const toLine = (name = '') => name.replace(/\B([A-Z])/g, '-$1').toLowerCase();
|
||||||
|
|
||||||
export const toHump = (name = ''): string => name.replace(/-(\w)/g, (all, letter) => letter.toUpperCase());
|
export const toHump = (name = ''): string => name.replace(/-(\w)/g, (_all, letter) => letter.toUpperCase());
|
||||||
|
|
||||||
export const emptyFn = (): any => undefined;
|
export const emptyFn = (): any => undefined;
|
||||||
|
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
"@tmagic/editor": "1.5.0-beta.14",
|
"@tmagic/editor": "1.5.0-beta.14",
|
||||||
"@tmagic/element-plus-adapter": "1.5.0-beta.14",
|
"@tmagic/element-plus-adapter": "1.5.0-beta.14",
|
||||||
"@tmagic/tmagic-form-runtime": "1.1.3",
|
"@tmagic/tmagic-form-runtime": "1.1.3",
|
||||||
"element-plus": "^2.8.0",
|
"element-plus": "^2.8.6",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"monaco-editor": "^0.48.0",
|
"monaco-editor": "^0.48.0",
|
||||||
"serialize-javascript": "^6.0.0",
|
"serialize-javascript": "^6.0.0",
|
||||||
"vue": "^3.5.0",
|
"vue": "^3.5.12",
|
||||||
"vue-router": "^4.4.3"
|
"vue-router": "^4.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -31,12 +31,12 @@
|
|||||||
"@vitejs/plugin-legacy": "^5.4.2",
|
"@vitejs/plugin-legacy": "^5.4.2",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"sass": "^1.78.0",
|
"sass": "^1.78.0",
|
||||||
"terser": "^5.31.6",
|
"terser": "^5.31.6",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
"unplugin-auto-import": "^0.12.0",
|
"unplugin-auto-import": "^0.12.0",
|
||||||
"unplugin-vue-components": "^0.22.11",
|
"unplugin-vue-components": "^0.22.11",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3494
pnpm-lock.yaml
generated
3494
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -26,7 +26,7 @@ export default [
|
|||||||
dataSourceFieldType: ['array'],
|
dataSourceFieldType: ['array'],
|
||||||
checkStrictly: true,
|
checkStrictly: true,
|
||||||
type: 'data-source-field-select',
|
type: 'data-source-field-select',
|
||||||
onChange: (vm: any, v: string[] = [], { model }: any) => {
|
onChange: (_vm: any, v: string[] = [], { model }: any) => {
|
||||||
if (Array.isArray(v) && v.length > 1) {
|
if (Array.isArray(v) && v.length > 1) {
|
||||||
const [dsId, ...keys] = v;
|
const [dsId, ...keys] = v;
|
||||||
model.dsField = [dsId.replace(DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, ''), ...keys];
|
model.dsField = [dsId.replace(DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, ''), ...keys];
|
||||||
|
@ -65,7 +65,7 @@ const Overlay: React.FC<OverlayProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const editorSelectHandler = (
|
const editorSelectHandler = (
|
||||||
info: {
|
_info: {
|
||||||
node: MNode;
|
node: MNode;
|
||||||
page: MPage;
|
page: MPage;
|
||||||
parent: MContainer;
|
parent: MContainer;
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"@tmagic/core": "workspace:^",
|
"@tmagic/core": ">=1.5.0-beta.14",
|
||||||
"@tmagic/stage": "workspace:^",
|
"@tmagic/stage": ">=1.5.0-beta.14",
|
||||||
"react": ">=18.3.1",
|
"react": ">=18.3.1",
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
},
|
},
|
||||||
|
1
runtime/react-runtime-help/tsconfig.build.tsbuildinfo
Normal file
1
runtime/react-runtime-help/tsconfig.build.tsbuildinfo
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"root":["./src/AppContent.ts","./src/index.ts","./src/hooks/use-app.ts","./src/hooks/use-dsl.ts","./src/hooks/use-editor-dsl.ts"],"version":"5.6.3"}
|
@ -32,8 +32,8 @@
|
|||||||
"url": "https://github.com/Tencent/tmagic-editor.git"
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/core": "workspace:^",
|
"@tmagic/core": ">=1.5.0-beta.14",
|
||||||
"@tmagic/editor": "workspace:^",
|
"@tmagic/editor": ">=1.5.0-beta.14",
|
||||||
"element-plus": ">=2.8.0",
|
"element-plus": ">=2.8.0",
|
||||||
"vue": ">=3.5.0",
|
"vue": ">=3.5.0",
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
@ -49,9 +49,9 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"vite": "^5.4.3",
|
"vite": "^5.4.10",
|
||||||
"vue-tsc": "^2.1.6"
|
"vue-tsc": "^2.1.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,11 +32,11 @@
|
|||||||
"vue-demi": "^0.14.10"
|
"vue-demi": "^0.14.10"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/core": "workspace:^",
|
"@tmagic/core": ">=1.5.0-beta.14",
|
||||||
"@tmagic/stage": "workspace:^",
|
"@tmagic/stage": ">=1.5.0-beta.14",
|
||||||
"@vue/composition-api": ">=1.7.2",
|
"@vue/composition-api": ">=1.7.2",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": ">=2.0.0 || >=3.0.0"
|
"vue": ">=2.6.0 || >=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@vue/composition-api": {
|
"@vue/composition-api": {
|
||||||
|
1
runtime/vue-runtime-help/tsconfig.build.tsbuildinfo
Normal file
1
runtime/vue-runtime-help/tsconfig.build.tsbuildinfo
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"root":["./src/index.ts","./src/hooks/use-app.ts","./src/hooks/use-component.ts","./src/hooks/use-dsl.ts","./src/hooks/use-editor-dsl.ts"],"version":"5.6.3"}
|
@ -33,7 +33,7 @@
|
|||||||
"rollup": "^4.17.2",
|
"rollup": "^4.17.2",
|
||||||
"rollup-plugin-external-globals": "^0.10.0",
|
"rollup-plugin-external-globals": "^0.10.0",
|
||||||
"sass": "^1.78.0",
|
"sass": "^1.78.0",
|
||||||
"vite": "^5.4.3",
|
"vite": "^5.4.10",
|
||||||
"@vitejs/plugin-legacy": "^5.4.2",
|
"@vitejs/plugin-legacy": "^5.4.2",
|
||||||
"@vitejs/plugin-vue2": "^2.3.1",
|
"@vitejs/plugin-vue2": "^2.3.1",
|
||||||
"vue-template-compiler": "^2.7.4"
|
"vue-template-compiler": "^2.7.4"
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
"@tmagic/stage": "1.5.0-beta.14",
|
"@tmagic/stage": "1.5.0-beta.14",
|
||||||
"@tmagic/vue-runtime-help": "^0.1.4",
|
"@tmagic/vue-runtime-help": "^0.1.4",
|
||||||
"axios": "^0.25.0",
|
"axios": "^0.25.0",
|
||||||
"vue": "^3.5.0"
|
"vue": ">=3.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tmagic/cli": "1.5.0-beta.14",
|
"@tmagic/cli": "1.5.0-beta.14",
|
||||||
@ -31,13 +31,12 @@
|
|||||||
"@vitejs/plugin-legacy": "^5.4.2",
|
"@vitejs/plugin-legacy": "^5.4.2",
|
||||||
"@vitejs/plugin-vue": "^5.1.3",
|
"@vitejs/plugin-vue": "^5.1.3",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||||
"@vue/compiler-sfc": "^3.5.0",
|
"@vue/compiler-sfc": "^3.5.12",
|
||||||
"@vue/test-utils": "^2.4.6",
|
|
||||||
"rollup": "^4.17.2",
|
"rollup": "^4.17.2",
|
||||||
"rollup-plugin-external-globals": "^0.10.0",
|
"rollup-plugin-external-globals": "^0.10.0",
|
||||||
"sass": "^1.78.0",
|
"sass": "^1.78.0",
|
||||||
"terser": "^5.31.6",
|
"terser": "^5.31.6",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
"vite": "^5.4.3"
|
"vite": "^5.4.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "bundler",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
@ -19,13 +19,13 @@
|
|||||||
"lib": ["ESNext", "DOM"],
|
"lib": ["ESNext", "DOM"],
|
||||||
"paths": {
|
"paths": {
|
||||||
// 内部模块都指向 src/index.ts, 会有更好的代码跳转体验.
|
// 内部模块都指向 src/index.ts, 会有更好的代码跳转体验.
|
||||||
"@tmagic/*": ["packages/*/src"],
|
"@tmagic/*": ["./packages/*/src"],
|
||||||
"@tmagic/tmagic-form-runtime": ["runtime/tmagic-form/src"],
|
"@tmagic/tmagic-form-runtime": ["./runtime/tmagic-form/src"],
|
||||||
"@tmagic/vue-runtime-help": ["runtime/vue-runtime-help/src"],
|
"@tmagic/vue-runtime-help": ["./runtime/vue-runtime-help/src"],
|
||||||
"@tmagic/react-runtime-help": ["runtime/react-runtime-help/src"],
|
"@tmagic/react-runtime-help": ["./runtime/react-runtime-help/src"],
|
||||||
"@editor/*": ["packages/editor/src/*"],
|
"@editor/*": ["./packages/editor/src/*"],
|
||||||
"@form/*": ["packages/form/src/*"],
|
"@form/*": ["./packages/form/src/*"],
|
||||||
"@data-source/*": ["packages/data-source/src/*"],
|
"@data-source/*": ["./packages/data-source/src/*"],
|
||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
"node",
|
"node",
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"@tmagic/vue-runtime-help": "workspace:^",
|
"@tmagic/vue-runtime-help": "workspace:^",
|
||||||
"@vue/composition-api": ">=1.7.2",
|
"@vue/composition-api": ">=1.7.2",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": ">=2.0.0 || >=3.0.0"
|
"vue": ">=2.6.0 || >=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@vue/composition-api": {
|
"@vue/composition-api": {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"@tmagic/vue-runtime-help": "workspace:^",
|
"@tmagic/vue-runtime-help": "workspace:^",
|
||||||
"@vue/composition-api": ">=1.7.2",
|
"@vue/composition-api": ">=1.7.2",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": ">=2.0.0 || >=3.0.0"
|
"vue": ">=2.6.0 || >=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"@tmagic/vue-runtime-help": "workspace:^",
|
"@tmagic/vue-runtime-help": "workspace:^",
|
||||||
"@vue/composition-api": ">=1.7.2",
|
"@vue/composition-api": ">=1.7.2",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": ">=2.0.0 || >=3.0.0"
|
"vue": ">=2.6.0 || >=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@vue/composition-api": {
|
"@vue/composition-api": {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"@tmagic/vue-runtime-help": "workspace:^",
|
"@tmagic/vue-runtime-help": "workspace:^",
|
||||||
"@vue/composition-api": ">=1.7.2",
|
"@vue/composition-api": ">=1.7.2",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": ">=2.0.0 || >=3.0.0"
|
"vue": ">=2.6.0 || >=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@vue/composition-api": {
|
"@vue/composition-api": {
|
||||||
|
@ -25,7 +25,7 @@ export default [
|
|||||||
dataSourceFieldType: ['array'],
|
dataSourceFieldType: ['array'],
|
||||||
checkStrictly: true,
|
checkStrictly: true,
|
||||||
type: 'data-source-field-select',
|
type: 'data-source-field-select',
|
||||||
onChange: (vm: any, v: string[] = [], { model }: any) => {
|
onChange: (_vm: any, v: string[] = [], { model }: any) => {
|
||||||
if (Array.isArray(v) && v.length > 1) {
|
if (Array.isArray(v) && v.length > 1) {
|
||||||
const [dsId, ...keys] = v;
|
const [dsId, ...keys] = v;
|
||||||
model.dsField = [dsId.replace(DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, ''), ...keys];
|
model.dsField = [dsId.replace(DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX, ''), ...keys];
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"@tmagic/vue-runtime-help": "workspace:^",
|
"@tmagic/vue-runtime-help": "workspace:^",
|
||||||
"@vue/composition-api": ">=1.7.2",
|
"@vue/composition-api": ">=1.7.2",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": ">=2.0.0 || >=3.0.0"
|
"vue": ">=2.6.0 || >=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"@tmagic/vue-runtime-help": "workspace:^",
|
"@tmagic/vue-runtime-help": "workspace:^",
|
||||||
"@vue/composition-api": ">=1.7.2",
|
"@vue/composition-api": ">=1.7.2",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vue": ">=2.0.0 || >=3.0.0"
|
"vue": ">=2.6.0 || >=3.5.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user