@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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.9",
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.9",
46
- "@tmagic/dep": "1.3.9",
47
- "@tmagic/design": "1.3.9",
48
- "@tmagic/form": "1.3.9",
49
- "@tmagic/schema": "1.3.9",
50
- "@tmagic/stage": "1.3.9",
51
- "@tmagic/table": "1.3.9",
52
- "@tmagic/utils": "1.3.9",
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.9",
67
- "@tmagic/form": "1.3.9",
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
  },
@@ -18,7 +18,7 @@
18
18
  @closed="closedHandler"
19
19
  >
20
20
  <template #left>
21
- <TMagicButton type="primary" text @click="difVisible = true">查看修改</TMagicButton>
21
+ <TMagicButton type="primary" link @click="difVisible = true">查看修改</TMagicButton>
22
22
  </template>
23
23
  </component>
24
24
 
@@ -6,7 +6,7 @@
6
6
  <span>{{ title }}</span>
7
7
  </slot>
8
8
  <div>
9
- <TMagicButton text size="small" :icon="Close" @click="closeHandler"></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" text :disabled="disabled"
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" text :disabled="disabled" :title="data.text"
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>
@@ -36,7 +36,7 @@
36
36
  ></m-form-container>
37
37
  <TMagicButton
38
38
  style="color: #f56c6c"
39
- text
39
+ link
40
40
  :icon="Delete"
41
41
  :disabled="disabled"
42
42
  :size="size"
@@ -51,7 +51,7 @@
51
51
  v-if="config.advanced"
52
52
  size="default"
53
53
  :disabled="disabled"
54
- text
54
+ link
55
55
  :icon="CodeIcon"
56
56
  @click="showCode = !showCode"
57
57
  ></TMagicButton>
@@ -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" text style="padding: 0"
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
- text
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
- text
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 text style="padding: 0; margin: 0" :disabled="disabled" :size="size" @click="startSelect"
36
+ <TMagicButton link style="padding: 0; margin: 0" :disabled="disabled" :size="size" @click="startSelect"
37
37
  >点击此处选择</TMagicButton
38
38
  >
39
39
  </TMagicTooltip>
@@ -4,7 +4,7 @@
4
4
  class="m-editor-page-bar-switch-type-button"
5
5
  size="small"
6
6
  :key="item.type"
7
- text
7
+ link
8
8
  :class="{ active: modelValue === item.type }"
9
9
  :type="modelValue === item.type ? 'primary' : ''"
10
10
  @click="clickHandler(item.type)"
@@ -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 text :disabled="item.id === node?.id" @click="select(item)">{{ item.name }}</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>