mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
chore: 更新依赖
This commit is contained in:
parent
7ce60b223e
commit
ca2c6af060
@ -56,7 +56,7 @@
|
|||||||
"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.4.3",
|
"element-plus": "^2.6.1",
|
||||||
"enquirer": "^2.3.6",
|
"enquirer": "^2.3.6",
|
||||||
"eslint": "^8.38.0",
|
"eslint": "^8.38.0",
|
||||||
"eslint-config-tencent": "^1.0.4",
|
"eslint-config-tencent": "^1.0.4",
|
||||||
@ -76,11 +76,11 @@
|
|||||||
"semver": "^7.3.7",
|
"semver": "^7.3.7",
|
||||||
"serialize-javascript": "^6.0.0",
|
"serialize-javascript": "^6.0.0",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6",
|
||||||
"vitepress": "1.0.0-rc.31",
|
"vitepress": "1.0.0-rc.31",
|
||||||
"vitest": "^1.0.4",
|
"vitest": "^1.0.4",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"commitizen": {
|
"commitizen": {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -b tsconfig.build.json",
|
"build": "pnpm clean && tsc -b tsconfig.build.json",
|
||||||
"clean": "rimraf lib *.tsbuildinfo"
|
"clean": "rimraf lib *.tsbuildinfo"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -32,6 +32,7 @@
|
|||||||
"tslib": "^2.4.0"
|
"tslib": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/fs-extra": "^9.0.13"
|
"@types/fs-extra": "^9.0.13",
|
||||||
|
"@types/node": "^18.19.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,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",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -290,8 +290,9 @@ class App extends EventEmitter implements AppCore {
|
|||||||
public async codeActionHandler(eventConfig: CodeItemConfig, args: any[]) {
|
public async codeActionHandler(eventConfig: CodeItemConfig, args: any[]) {
|
||||||
const { codeId = '', params = {} } = eventConfig;
|
const { codeId = '', params = {} } = eventConfig;
|
||||||
if (!codeId || isEmpty(this.codeDsl)) return;
|
if (!codeId || isEmpty(this.codeDsl)) return;
|
||||||
if (this.codeDsl![codeId] && typeof this.codeDsl![codeId]?.content === 'function') {
|
const content = this.codeDsl?.[codeId]?.content;
|
||||||
await this.codeDsl![codeId].content({ app: this, params, eventParams: args });
|
if (typeof content === 'function') {
|
||||||
|
await content({ app: this, params, eventParams: args });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"@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",
|
||||||
"typescript": "^4.7.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,9 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:type && vite build",
|
"build": "npm run build:type && vite build",
|
||||||
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
"build:type": " vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
||||||
"clear:type": "rimraf ./types"
|
"clear:type": "rimraf ./types",
|
||||||
|
"type:check": "vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@ -37,19 +38,19 @@
|
|||||||
"typescript"
|
"typescript"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@vitejs/plugin-vue": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"@vue/test-utils": "^2.3.2",
|
"@vue/test-utils": "^2.4.4",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6",
|
||||||
"vue-tsc": "^1.8.25"
|
"vue-tsc": "^2.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,8 @@ defineOptions({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const props = withDefaults(defineProps<CheckboxProps>(), {
|
const props = withDefaults(defineProps<CheckboxProps>(), {
|
||||||
trueLabel: undefined,
|
trueValue: undefined,
|
||||||
falseLabel: undefined,
|
falseValue: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
const ui = getConfig('components')?.checkbox;
|
const ui = getConfig('components')?.checkbox;
|
||||||
|
@ -61,8 +61,8 @@ export interface CheckboxProps {
|
|||||||
modelValue?: string | number | boolean;
|
modelValue?: string | number | boolean;
|
||||||
value?: string | number | boolean;
|
value?: string | number | boolean;
|
||||||
label?: any;
|
label?: any;
|
||||||
trueLabel?: string | number | boolean;
|
trueValue?: string | number;
|
||||||
falseLabel?: string | number | boolean;
|
falseValue?: string | number;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
size?: FieldSize;
|
size?: FieldSize;
|
||||||
}
|
}
|
||||||
@ -234,10 +234,13 @@ export interface PopoverProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface RadioProps {
|
export interface RadioProps {
|
||||||
|
modelValue?: string | number | boolean;
|
||||||
|
value?: string | number | boolean;
|
||||||
label?: string | number | boolean;
|
label?: string | number | boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RadioButtonProps {
|
export interface RadioButtonProps {
|
||||||
|
value?: string | number | boolean;
|
||||||
label?: string | number | boolean;
|
label?: string | number | boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
@ -26,7 +26,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:type && vite build",
|
"build": "npm run build:type && vite build",
|
||||||
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
||||||
"clear:type": "rimraf ./types"
|
"clear:type": "rimraf ./types",
|
||||||
|
"type:check": "vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@ -62,16 +63,16 @@
|
|||||||
"gesto": "^1.19.1",
|
"gesto": "^1.19.1",
|
||||||
"keycon": "^1.4.0",
|
"keycon": "^1.4.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"monaco-editor": "^0.41.0",
|
"monaco-editor": "^0.47.0",
|
||||||
"moveable": "^0.51.1",
|
"moveable": "^0.51.1",
|
||||||
"serialize-javascript": "^6.0.0",
|
"serialize-javascript": "^6.0.0",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/design": "1.3.16",
|
"@tmagic/design": "1.3.16",
|
||||||
"@tmagic/form": "1.3.16",
|
"@tmagic/form": "1.3.16",
|
||||||
"monaco-editor": "^0.41.0",
|
"monaco-editor": "^0.47.0",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/events": "^3.0.0",
|
"@types/events": "^3.0.0",
|
||||||
@ -79,14 +80,14 @@
|
|||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@types/serialize-javascript": "^5.0.1",
|
"@types/serialize-javascript": "^5.0.1",
|
||||||
"@vitejs/plugin-vue": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"@vue/test-utils": "^2.3.2",
|
"@vue/test-utils": "^2.4.4",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"tsc-alias": "^1.8.5",
|
"tsc-alias": "^1.8.5",
|
||||||
"type-fest": "^4.10.3",
|
"type-fest": "^4.10.3",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6",
|
||||||
"vue-tsc": "^1.8.25"
|
"vue-tsc": "^2.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ import type { FieldProps, FormItem } from '@tmagic/form';
|
|||||||
import MagicCodeEditor from '@editor/layouts/CodeEditor.vue';
|
import MagicCodeEditor from '@editor/layouts/CodeEditor.vue';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorCode',
|
name: 'MFieldsVsCode',
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
@ -11,7 +11,7 @@ import type { FieldProps, FormItem } from '@tmagic/form';
|
|||||||
import { getConfig } from '@editor/utils/config';
|
import { getConfig } from '@editor/utils/config';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorCodeLink',
|
name: 'MFieldsCodeLink',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = defineProps<
|
const props = defineProps<
|
||||||
|
@ -18,7 +18,7 @@ import { HookCodeType, HookType } from '@tmagic/schema';
|
|||||||
import type { Services } from '@editor/type';
|
import type { Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorCodeSelect',
|
name: 'MFieldsCodeSelect',
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits(['change']);
|
const emit = defineEmits(['change']);
|
||||||
|
@ -49,7 +49,7 @@ import { useCodeBlockEdit } from '@editor/hooks/use-code-block-edit';
|
|||||||
import type { CodeParamStatement, CodeSelectColConfig, Services } from '@editor/type';
|
import type { CodeParamStatement, CodeSelectColConfig, Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorCodeSelectCol',
|
name: 'MFieldsCodeSelectCol',
|
||||||
});
|
});
|
||||||
|
|
||||||
const mForm = inject<FormState | undefined>('mForm');
|
const mForm = inject<FormState | undefined>('mForm');
|
||||||
|
@ -39,7 +39,7 @@ import { DATA_SOURCE_FIELDS_SELECT_VALUE_PREFIX } from '@tmagic/utils';
|
|||||||
import type { DataSourceFieldSelectConfig, Services } from '@editor/type';
|
import type { DataSourceFieldSelectConfig, Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorDataSourceFieldSelect',
|
name: 'MFieldsDataSourceFieldSelect',
|
||||||
});
|
});
|
||||||
|
|
||||||
const services = inject<Services>('services');
|
const services = inject<Services>('services');
|
||||||
|
@ -43,7 +43,7 @@ import { getDefaultValueFromFields } from '@tmagic/utils';
|
|||||||
import type { Services } from '@editor/type';
|
import type { Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorDataSourceFields',
|
name: 'MFieldsDataSourceFields',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
|
@ -56,7 +56,7 @@ import type { Services } from '@editor/type';
|
|||||||
import { getDisplayField } from '@editor/utils/data-source';
|
import { getDisplayField } from '@editor/utils/data-source';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorDataSourceInput',
|
name: 'MFieldsDataSourceInput',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
|
@ -49,7 +49,7 @@ import { useDataSourceMethod } from '@editor/hooks/use-data-source-method';
|
|||||||
import type { CodeParamStatement, DataSourceMethodSelectConfig, Services } from '@editor/type';
|
import type { CodeParamStatement, DataSourceMethodSelectConfig, Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorDataSourceMethodSelect',
|
name: 'MFieldsDataSourceMethodSelect',
|
||||||
});
|
});
|
||||||
|
|
||||||
const mForm = inject<FormState | undefined>('mForm');
|
const mForm = inject<FormState | undefined>('mForm');
|
||||||
|
@ -31,7 +31,7 @@ import { useDataSourceMethod } from '@editor/hooks/use-data-source-method';
|
|||||||
import type { CodeParamStatement } from '@editor/type';
|
import type { CodeParamStatement } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorDataSourceMethods',
|
name: 'MFieldsDataSourceMethods',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
|
@ -33,7 +33,7 @@ import CodeEditor from '@editor/layouts/CodeEditor.vue';
|
|||||||
import { Services } from '@editor/type';
|
import { Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorDataSourceMocks',
|
name: 'MFieldsDataSourceMocks',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
|
@ -19,7 +19,7 @@ import { type FieldProps, MSelect, type SelectConfig } from '@tmagic/form';
|
|||||||
import type { DataSourceSelect, Services } from '../type';
|
import type { DataSourceSelect, Services } from '../type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorDataSourceSelect',
|
name: 'MFieldsDataSourceSelect',
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits(['change']);
|
const emit = defineEmits(['change']);
|
||||||
|
@ -61,7 +61,7 @@ import { ActionType } from '@tmagic/schema';
|
|||||||
import type { CodeSelectColConfig, DataSourceMethodSelectConfig, EventSelectConfig, Services } from '@editor/type';
|
import type { CodeSelectColConfig, DataSourceMethodSelectConfig, EventSelectConfig, Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorEventSelect',
|
name: 'MFieldsEventSelect',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = defineProps<FieldProps<EventSelectConfig>>();
|
const props = defineProps<FieldProps<EventSelectConfig>>();
|
||||||
|
@ -69,7 +69,7 @@ import CodeIcon from '@editor/icons/CodeIcon.vue';
|
|||||||
import MagicCodeEditor from '@editor/layouts/CodeEditor.vue';
|
import MagicCodeEditor from '@editor/layouts/CodeEditor.vue';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorKeyValue',
|
name: 'MFieldsKeyValue',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
|
@ -26,7 +26,7 @@ import Icon from '@editor/components/Icon.vue';
|
|||||||
import type { PageFragmentSelectConfig, Services } from '@editor/type';
|
import type { PageFragmentSelectConfig, Services } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorPageFragmentSelect',
|
name: 'MFieldsPageFragmentSelect',
|
||||||
});
|
});
|
||||||
|
|
||||||
const services = inject<Services>('services');
|
const services = inject<Services>('services');
|
||||||
|
@ -52,7 +52,7 @@ import type { Id } from '@tmagic/schema';
|
|||||||
import { Services, UI_SELECT_MODE_EVENT_NAME } from '@editor/type';
|
import { Services, UI_SELECT_MODE_EVENT_NAME } from '@editor/type';
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'MEditorUISelect',
|
name: 'MFieldsUISelect',
|
||||||
});
|
});
|
||||||
|
|
||||||
const props = defineProps<FieldProps<{ type: 'ui-select' } & FormItem>>();
|
const props = defineProps<FieldProps<{ type: 'ui-select' } & FormItem>>();
|
||||||
|
@ -96,11 +96,11 @@ export default {
|
|||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
app.config.globalProperties.$TMAGIC_EDITOR = option;
|
app.config.globalProperties.$TMAGIC_EDITOR = option;
|
||||||
setConfig(option);
|
setConfig(option);
|
||||||
app.component(Editor.name, Editor);
|
app.component(`${Editor.name || 'MEditor'}`, Editor);
|
||||||
|
app.component('magic-code-editor', CodeEditor);
|
||||||
app.component('m-fields-ui-select', uiSelect);
|
app.component('m-fields-ui-select', uiSelect);
|
||||||
app.component('m-fields-code-link', CodeLink);
|
app.component('m-fields-code-link', CodeLink);
|
||||||
app.component('m-fields-vs-code', Code);
|
app.component('m-fields-vs-code', Code);
|
||||||
app.component('magic-code-editor', CodeEditor);
|
|
||||||
app.component('m-fields-code-select', CodeSelect);
|
app.component('m-fields-code-select', CodeSelect);
|
||||||
app.component('m-fields-code-select-col', CodeSelectCol);
|
app.component('m-fields-code-select-col', CodeSelectCol);
|
||||||
app.component('m-fields-event-select', EventSelect);
|
app.component('m-fields-event-select', EventSelect);
|
||||||
|
@ -38,18 +38,18 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tmagic/design": "1.3.16",
|
"@tmagic/design": "1.3.16",
|
||||||
"element-plus": "^2.4.3",
|
"element-plus": "^2.6.1",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/design": "1.3.16",
|
"@tmagic/design": "1.3.16",
|
||||||
"element-plus": "^2.4.3",
|
"element-plus": "^2.6.1",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:type && vite build",
|
"build": "npm run build:type && vite build",
|
||||||
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
||||||
"clear:type": "rimraf ./types"
|
"clear:type": "rimraf ./types",
|
||||||
|
"type:check": "vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@ -41,10 +42,10 @@
|
|||||||
"@tmagic/utils": "1.3.16",
|
"@tmagic/utils": "1.3.16",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"sortablejs": "^1.14.0",
|
"sortablejs": "^1.14.0",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.18.0",
|
"@babel/core": "^7.18.0",
|
||||||
@ -52,12 +53,12 @@
|
|||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@types/sortablejs": "^1.10.7",
|
"@types/sortablejs": "^1.10.7",
|
||||||
"@vitejs/plugin-vue": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"@vue/test-utils": "^2.3.2",
|
"@vue/test-utils": "^2.4.4",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6",
|
||||||
"vue-tsc": "^1.8.25"
|
"vue-tsc": "^2.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<TMagicCheckbox
|
<TMagicCheckbox
|
||||||
v-model="model[name]"
|
v-model="model[name]"
|
||||||
:size="size"
|
:size="size"
|
||||||
:trueLabel="activeValue"
|
:trueValue="activeValue"
|
||||||
:falseLabel="inactiveValue"
|
:falseValue="inactiveValue"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@change="changeHandler"
|
@change="changeHandler"
|
||||||
>{{ config.text }}</TMagicCheckbox
|
>{{ config.text }}</TMagicCheckbox
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<TMagicCheckboxGroup v-model="model[name]" :size="size" :disabled="disabled" @change="changeHandler">
|
<TMagicCheckboxGroup v-model="model[name]" :size="size" :disabled="disabled" @change="changeHandler">
|
||||||
<TMagicCheckbox
|
<TMagicCheckbox v-for="option in options" :value="option.value" :key="option.value" :disabled="option.disabled"
|
||||||
v-for="option in options"
|
|
||||||
:label="option.value"
|
|
||||||
:value="option.value"
|
|
||||||
:key="option.value"
|
|
||||||
:disabled="option.disabled"
|
|
||||||
>{{ option.text }}
|
>{{ option.text }}
|
||||||
</TMagicCheckbox>
|
</TMagicCheckbox>
|
||||||
</TMagicCheckboxGroup>
|
</TMagicCheckboxGroup>
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<TMagicRadioGroup v-if="model" v-model="model[name]" :size="size" :disabled="disabled" @change="changeHandler">
|
<TMagicRadioGroup v-if="model" v-model="model[name]" :size="size" :disabled="disabled" @change="changeHandler">
|
||||||
<TMagicRadio
|
<TMagicRadio v-for="option in config.options" :value="option.value" :key="`${option.value}`">{{
|
||||||
v-for="option in config.options"
|
option.text
|
||||||
:label="option.value"
|
}}</TMagicRadio>
|
||||||
:value="option.value"
|
|
||||||
:key="`${option.value}`"
|
|
||||||
>{{ option.text }}</TMagicRadio
|
|
||||||
>
|
|
||||||
</TMagicRadioGroup>
|
</TMagicRadioGroup>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -401,8 +401,8 @@ export interface TimeConfig extends FormItem, Input {
|
|||||||
*/
|
*/
|
||||||
export interface CheckboxConfig extends FormItem {
|
export interface CheckboxConfig extends FormItem {
|
||||||
type: 'checkbox';
|
type: 'checkbox';
|
||||||
activeValue?: boolean | number | string;
|
activeValue?: number | string;
|
||||||
inactiveValue?: boolean | number | string;
|
inactiveValue?: number | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:type && vite build",
|
"build": "npm run build:type && vite build",
|
||||||
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
||||||
"clear:type": "rimraf ./types"
|
"clear:type": "rimraf ./types",
|
||||||
|
"type:check": "vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@ -38,23 +39,23 @@
|
|||||||
"@tmagic/form": "1.3.16",
|
"@tmagic/form": "1.3.16",
|
||||||
"@tmagic/utils": "1.3.16",
|
"@tmagic/utils": "1.3.16",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/form": "1.3.16",
|
"@tmagic/form": "1.3.16",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/color": "^3.0.1",
|
"@types/color": "^3.0.1",
|
||||||
"@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": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"@vue/test-utils": "^2.3.2",
|
"@vue/test-utils": "^2.4.4",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6",
|
||||||
"vue-tsc": "^1.8.25"
|
"vue-tsc": "^2.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:type && vite build",
|
"build": "npm run build:type && vite build",
|
||||||
"build:type": "npm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
"build:type": "npm run clear:type && tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
||||||
"clear:type": "rimraf ./types"
|
"clear:type": "rimraf ./types",
|
||||||
|
"type:check": "vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@ -39,19 +40,20 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tmagic/design": "1.3.16",
|
"@tmagic/design": "1.3.16",
|
||||||
"tdesign-vue-next": "^1.8.1",
|
"tdesign-vue-next": "^1.8.1",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/design": "1.3.16",
|
"@tmagic/design": "1.3.16",
|
||||||
"tdesign-vue-next": "^1.8.1",
|
"tdesign-vue-next": "^1.8.1",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6",
|
||||||
|
"vue-tsc": "^2.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -358,6 +358,7 @@ const adapter: any = {
|
|||||||
component: TRadio,
|
component: TRadio,
|
||||||
props: (props: RadioProps) => ({
|
props: (props: RadioProps) => ({
|
||||||
label: props.label,
|
label: props.label,
|
||||||
|
value: props.value,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -29,6 +29,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^17.0.37",
|
"@types/react": "^17.0.37",
|
||||||
"@types/react-dom": "^17.0.11",
|
"@types/react-dom": "^17.0.11",
|
||||||
"typescript": "^5.0.4"
|
"typescript": "^5.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,16 +18,16 @@
|
|||||||
"delegate": "^3.2.0",
|
"delegate": "^3.2.0",
|
||||||
"qrcode": "^1.5.0",
|
"qrcode": "^1.5.0",
|
||||||
"tiny-emitter": "^2.1.0",
|
"tiny-emitter": "^2.1.0",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"qrcode": "^1.5.0",
|
"qrcode": "^1.5.0",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/vue": "^6.4.2",
|
"@testing-library/vue": "^6.4.2",
|
||||||
"@types/qrcode": "^1.4.2",
|
"@types/qrcode": "^1.4.2",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"@vue/test-utils": "^2.3.2"
|
"@vue/test-utils": "^2.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,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",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,10 +22,10 @@
|
|||||||
"@tmagic/schema": "1.3.16",
|
"@tmagic/schema": "1.3.16",
|
||||||
"@tmagic/stage": "1.3.16",
|
"@tmagic/stage": "1.3.16",
|
||||||
"@tmagic/utils": "1.3.16",
|
"@tmagic/utils": "1.3.16",
|
||||||
"element-plus": "^2.4.3",
|
"element-plus": "^2.6.1",
|
||||||
"monaco-editor": "^0.41.0",
|
"monaco-editor": "^0.47.0",
|
||||||
"serialize-javascript": "^6.0.0",
|
"serialize-javascript": "^6.0.0",
|
||||||
"vue": "^3.3.8",
|
"vue": "^3.4.21",
|
||||||
"vue-router": "^4.0.10"
|
"vue-router": "^4.0.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -35,13 +35,12 @@
|
|||||||
"@vitejs/plugin-legacy": "^5.2.0",
|
"@vitejs/plugin-legacy": "^5.2.0",
|
||||||
"@vitejs/plugin-vue": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"terser": "^5.14.2",
|
"terser": "^5.14.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"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.0.7",
|
"vite": "^5.1.6"
|
||||||
"vue-tsc": "^1.8.25"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1055
pnpm-lock.yaml
generated
1055
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,7 @@
|
|||||||
"@vitejs/plugin-legacy": "^5.2.0",
|
"@vitejs/plugin-legacy": "^5.2.0",
|
||||||
"@vitejs/plugin-react-refresh": "^1.3.1",
|
"@vitejs/plugin-react-refresh": "^1.3.1",
|
||||||
"recast": "^0.20.4",
|
"recast": "^0.20.4",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7"
|
"vite": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:type && vite build",
|
"build": "npm run build:type && vite build",
|
||||||
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
"build:type": "npm run clear:type && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.build.json",
|
||||||
"clear:type": "rimraf ./types"
|
"clear:type": "rimraf ./types",
|
||||||
|
"type:check": "vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@ -36,24 +37,24 @@
|
|||||||
"@tmagic/form": "1.3.16",
|
"@tmagic/form": "1.3.16",
|
||||||
"@tmagic/utils": "1.3.16",
|
"@tmagic/utils": "1.3.16",
|
||||||
"@tmagic/schema": "1.3.16",
|
"@tmagic/schema": "1.3.16",
|
||||||
"element-plus": "^2.4.3",
|
"element-plus": "^2.6.1",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@tmagic/editor": "1.3.16",
|
"@tmagic/editor": "1.3.16",
|
||||||
"@tmagic/form": "1.3.16",
|
"@tmagic/form": "1.3.16",
|
||||||
"@tmagic/schema": "1.3.16",
|
"@tmagic/schema": "1.3.16",
|
||||||
"element-plus": "^2.4.3",
|
"element-plus": "^2.6.1",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tmagic/stage": "^1.3.9",
|
"@tmagic/stage": "^1.3.9",
|
||||||
"@types/node": "^18.19.0",
|
"@types/node": "^18.19.0",
|
||||||
"@vitejs/plugin-vue": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6",
|
||||||
"vue-tsc": "^1.8.25"
|
"vue-tsc": "^2.0.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
"rollup": "^2.25.0",
|
"rollup": "^2.25.0",
|
||||||
"rollup-plugin-external-globals": "^0.6.1",
|
"rollup-plugin-external-globals": "^0.6.1",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6",
|
||||||
"@vitejs/plugin-legacy": "^5.2.0",
|
"@vitejs/plugin-legacy": "^5.2.0",
|
||||||
"@vitejs/plugin-vue2": "^2.3.1",
|
"@vitejs/plugin-vue2": "^2.3.1",
|
||||||
"vue-template-compiler": "^2.7.4"
|
"vue-template-compiler": "^2.7.4"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
"@tmagic/stage": "1.3.16",
|
"@tmagic/stage": "1.3.16",
|
||||||
"@tmagic/utils": "1.3.16",
|
"@tmagic/utils": "1.3.16",
|
||||||
"axios": "^0.25.0",
|
"axios": "^0.25.0",
|
||||||
"vue": "^3.3.8"
|
"vue": "^3.4.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "^7.21.4",
|
"@babel/preset-env": "^7.21.4",
|
||||||
@ -34,15 +34,14 @@
|
|||||||
"@vitejs/plugin-legacy": "^5.2.0",
|
"@vitejs/plugin-legacy": "^5.2.0",
|
||||||
"@vitejs/plugin-vue": "^4.5.2",
|
"@vitejs/plugin-vue": "^4.5.2",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||||
"@vue/compiler-sfc": "^3.3.8",
|
"@vue/compiler-sfc": "^3.4.21",
|
||||||
"@vue/test-utils": "^2.3.2",
|
"@vue/test-utils": "^2.4.4",
|
||||||
"recast": "^0.20.4",
|
"recast": "^0.20.4",
|
||||||
"rollup": "^2.25.0",
|
"rollup": "^2.25.0",
|
||||||
"rollup-plugin-external-globals": "^0.6.1",
|
"rollup-plugin-external-globals": "^0.6.1",
|
||||||
"sass": "^1.35.1",
|
"sass": "^1.35.1",
|
||||||
"terser": "^5.14.2",
|
"terser": "^5.14.2",
|
||||||
"typescript": "^4.3.4",
|
"typescript": "^5.4.2",
|
||||||
"vite": "^5.0.7",
|
"vite": "^5.1.6"
|
||||||
"vue-tsc": "^1.8.25"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user