lw-cdp-ui 1.1.39 → 1.1.40
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/components/lwTable/index.vue +9 -0
- package/dist/lw-cdp-ui.esm.js +1222 -1212
- package/dist/lw-cdp-ui.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -234,6 +234,15 @@
|
|
|
234
234
|
color="var(--el-color-primary)" />
|
|
235
235
|
</span>
|
|
236
236
|
|
|
237
|
+
<!-- 自定义插槽 -->
|
|
238
|
+
<template v-else-if="t.slot">
|
|
239
|
+
<slot :name="t.component"
|
|
240
|
+
:row="scope.row">
|
|
241
|
+
<el-tag type="danger">[{{t.component}}]
|
|
242
|
+
没有这个默认组件也未自定义插槽内容</el-tag>
|
|
243
|
+
</slot>
|
|
244
|
+
</template>
|
|
245
|
+
|
|
237
246
|
<!-- 常规渲染 -->
|
|
238
247
|
<template v-else>
|
|
239
248
|
{{ scope.row[t.dataIndex] ? scope.row[t.dataIndex] :scope.row[t.dataIndex] === 0?'0':'' }}
|