@tmagic/table 1.7.0-beta.1 → 1.7.0-beta.3
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-table.js +1 -2
- package/dist/tmagic-table.umd.cjs +1 -2
- package/package.json +3 -3
- package/src/TextColumn.vue +3 -3
package/dist/tmagic-table.js
CHANGED
|
@@ -358,7 +358,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
358
358
|
setup(__props) {
|
|
359
359
|
return (_ctx, _cache) => {
|
|
360
360
|
const _component_m_form_container = resolveComponent("m-form-container");
|
|
361
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
362
361
|
return __props.config.type === "index" ? (openBlock(), createElementBlock(
|
|
363
362
|
"div",
|
|
364
363
|
_hoisted_1,
|
|
@@ -408,7 +407,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
408
407
|
target: "_blank",
|
|
409
408
|
href: __props.row[__props.config.prop],
|
|
410
409
|
class: "keep-all"
|
|
411
|
-
}, toDisplayString(__props.row[__props.config.prop]), 9, _hoisted_5)) : __props.config.action === "tip" ? (openBlock(), createBlock(
|
|
410
|
+
}, toDisplayString(__props.row[__props.config.prop]), 9, _hoisted_5)) : __props.config.action === "tip" ? (openBlock(), createBlock(unref(TMagicTooltip), {
|
|
412
411
|
key: 5,
|
|
413
412
|
placement: "left"
|
|
414
413
|
}, {
|
|
@@ -2383,7 +2383,6 @@
|
|
|
2383
2383
|
setup(__props) {
|
|
2384
2384
|
return (_ctx, _cache) => {
|
|
2385
2385
|
const _component_m_form_container = vue.resolveComponent("m-form-container");
|
|
2386
|
-
const _component_el_tooltip = vue.resolveComponent("el-tooltip");
|
|
2387
2386
|
return __props.config.type === "index" ? (vue.openBlock(), vue.createElementBlock(
|
|
2388
2387
|
"div",
|
|
2389
2388
|
_hoisted_1,
|
|
@@ -2433,7 +2432,7 @@
|
|
|
2433
2432
|
target: "_blank",
|
|
2434
2433
|
href: __props.row[__props.config.prop],
|
|
2435
2434
|
class: "keep-all"
|
|
2436
|
-
}, vue.toDisplayString(__props.row[__props.config.prop]), 9, _hoisted_5)) : __props.config.action === "tip" ? (vue.openBlock(), vue.createBlock(
|
|
2435
|
+
}, vue.toDisplayString(__props.row[__props.config.prop]), 9, _hoisted_5)) : __props.config.action === "tip" ? (vue.openBlock(), vue.createBlock(vue.unref(design.TMagicTooltip), {
|
|
2437
2436
|
key: 5,
|
|
2438
2437
|
placement: "left"
|
|
2439
2438
|
}, {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.7.0-beta.
|
|
2
|
+
"version": "1.7.0-beta.3",
|
|
3
3
|
"name": "@tmagic/table",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vue": "^3.5.22",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
|
-
"@tmagic/design": "1.7.0-beta.
|
|
48
|
-
"@tmagic/form": "1.7.0-beta.
|
|
47
|
+
"@tmagic/design": "1.7.0-beta.3",
|
|
48
|
+
"@tmagic/form": "1.7.0-beta.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"typescript": {
|
package/src/TextColumn.vue
CHANGED
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
row[config.prop]
|
|
30
30
|
}}</a>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<TMagicTooltip v-else-if="config.action === 'tip'" placement="left">
|
|
33
33
|
<template #content>
|
|
34
34
|
<div>{{ formatter(config, row, { index: index }) }}</div>
|
|
35
35
|
</template>
|
|
36
36
|
<TMagicButton link type="primary">{{ config.buttonText || '扩展配置' }}</TMagicButton>
|
|
37
|
-
</
|
|
37
|
+
</TMagicTooltip>
|
|
38
38
|
|
|
39
39
|
<TMagicTag
|
|
40
40
|
v-else-if="config.action === 'tag' && config.prop"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script lang="ts" setup>
|
|
49
|
-
import { TMagicButton, TMagicForm, TMagicTag } from '@tmagic/design';
|
|
49
|
+
import { TMagicButton, TMagicForm, TMagicTag, TMagicTooltip } from '@tmagic/design';
|
|
50
50
|
|
|
51
51
|
import { ColumnConfig } from './schema';
|
|
52
52
|
import { formatter } from './utils';
|