@tmagic/editor 1.3.9 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tmagic-editor.js +12 -12
- package/dist/tmagic-editor.js.map +1 -1
- package/dist/tmagic-editor.umd.cjs +12 -12
- package/dist/tmagic-editor.umd.cjs.map +1 -1
- package/package.json +11 -11
- package/src/components/CodeBlockEditor.vue +1 -1
- package/src/components/FloatingBox.vue +1 -1
- package/src/components/ToolButton.vue +2 -2
- package/src/fields/EventSelect.vue +1 -1
- package/src/fields/KeyValue.vue +1 -1
- package/src/fields/UISelect.vue +4 -4
- package/src/layouts/page-bar/SwitchTypeButton.vue +1 -1
- package/src/layouts/workspace/Breadcrumb.vue +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.3.
|
|
2
|
+
"version": "1.3.10",
|
|
3
3
|
"name": "@tmagic/editor",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/core": "^7.18.0",
|
|
44
44
|
"@element-plus/icons-vue": "^2.3.1",
|
|
45
|
-
"@tmagic/core": "1.3.
|
|
46
|
-
"@tmagic/dep": "1.3.
|
|
47
|
-
"@tmagic/design": "1.3.
|
|
48
|
-
"@tmagic/form": "1.3.
|
|
49
|
-
"@tmagic/schema": "1.3.
|
|
50
|
-
"@tmagic/stage": "1.3.
|
|
51
|
-
"@tmagic/table": "1.3.
|
|
52
|
-
"@tmagic/utils": "1.3.
|
|
45
|
+
"@tmagic/core": "1.3.10",
|
|
46
|
+
"@tmagic/dep": "1.3.10",
|
|
47
|
+
"@tmagic/design": "1.3.10",
|
|
48
|
+
"@tmagic/form": "1.3.10",
|
|
49
|
+
"@tmagic/schema": "1.3.10",
|
|
50
|
+
"@tmagic/stage": "1.3.10",
|
|
51
|
+
"@tmagic/table": "1.3.10",
|
|
52
|
+
"@tmagic/utils": "1.3.10",
|
|
53
53
|
"buffer": "^6.0.3",
|
|
54
54
|
"color": "^3.1.3",
|
|
55
55
|
"emmet-monaco-es": "^5.3.0",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"vue": "^3.3.8"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@tmagic/design": "1.3.
|
|
67
|
-
"@tmagic/form": "1.3.
|
|
66
|
+
"@tmagic/design": "1.3.10",
|
|
67
|
+
"@tmagic/form": "1.3.10",
|
|
68
68
|
"monaco-editor": "^0.41.0",
|
|
69
69
|
"vue": "^3.3.8"
|
|
70
70
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<span>{{ title }}</span>
|
|
7
7
|
</slot>
|
|
8
8
|
<div>
|
|
9
|
-
<TMagicButton
|
|
9
|
+
<TMagicButton link size="small" :icon="Close" @click="closeHandler"></TMagicButton>
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="m-editor-float-box-body">
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
<template v-else-if="data.type === 'button'">
|
|
14
14
|
<TMagicTooltip v-if="data.tooltip" effect="dark" placement="bottom-start" :content="data.tooltip">
|
|
15
|
-
<TMagicButton size="small"
|
|
15
|
+
<TMagicButton size="small" link :disabled="disabled"
|
|
16
16
|
><MIcon v-if="data.icon" :icon="data.icon"></MIcon><span>{{ data.text }}</span></TMagicButton
|
|
17
17
|
>
|
|
18
18
|
</TMagicTooltip>
|
|
19
|
-
<TMagicButton v-else size="small"
|
|
19
|
+
<TMagicButton v-else size="small" link :disabled="disabled" :title="data.text"
|
|
20
20
|
><MIcon v-if="data.icon" :icon="data.icon"></MIcon><span>{{ data.text }}</span></TMagicButton
|
|
21
21
|
>
|
|
22
22
|
</template>
|
package/src/fields/KeyValue.vue
CHANGED
package/src/fields/UISelect.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="m-fields-ui-select" v-if="uiSelectMode" @click="cancelHandler">
|
|
3
|
-
<TMagicButton type="danger" :icon="Delete" :disabled="disabled" :size="size"
|
|
3
|
+
<TMagicButton type="danger" :icon="Delete" :disabled="disabled" :size="size" link style="padding: 0"
|
|
4
4
|
>取消</TMagicButton
|
|
5
5
|
>
|
|
6
6
|
</div>
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
:icon="Close"
|
|
14
14
|
:disabled="disabled"
|
|
15
15
|
:size="size"
|
|
16
|
-
|
|
16
|
+
link
|
|
17
17
|
@click.stop="deleteHandler"
|
|
18
18
|
></TMagicButton>
|
|
19
19
|
</TMagicTooltip>
|
|
20
20
|
|
|
21
21
|
<TMagicTooltip content="点击选中组件" placement="top">
|
|
22
22
|
<TMagicButton
|
|
23
|
-
|
|
23
|
+
link
|
|
24
24
|
style="padding: 0; margin: 0"
|
|
25
25
|
:disabled="disabled"
|
|
26
26
|
:size="size"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
35
|
<TMagicTooltip v-else content="点击此处选择" placement="top">
|
|
36
|
-
<TMagicButton
|
|
36
|
+
<TMagicButton link style="padding: 0; margin: 0" :disabled="disabled" :size="size" @click="startSelect"
|
|
37
37
|
>点击此处选择</TMagicButton
|
|
38
38
|
>
|
|
39
39
|
</TMagicTooltip>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="nodes.length === 1" class="m-editor-breadcrumb">
|
|
3
3
|
<template v-for="(item, index) in path" :key="item.id">
|
|
4
|
-
<TMagicButton
|
|
4
|
+
<TMagicButton link :disabled="item.id === node?.id" @click="select(item)">{{ item.name }}</TMagicButton
|
|
5
5
|
><span v-if="index < path.length - 1">/</span>
|
|
6
6
|
</template>
|
|
7
7
|
</div>
|