@ebiz/designer-components 0.0.19-beta.4 → 0.0.19-beta.7
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/index.mjs +1413 -1405
- package/package.json +1 -1
- package/src/components/EbizTable.vue +5 -1
- package/src/components/TdesignForm.vue +6 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
<t-table :data="data" :columns="mergedColumns" :row-key="rowKey" :vertical-align="verticalAlign"
|
3
|
+
<t-table ref="tableRef" :data="data" :columns="mergedColumns" :row-key="rowKey" :vertical-align="verticalAlign"
|
4
4
|
:horizontal-align="horizontalAlign" :size="size" :bordered="bordered" :stripe="stripe" :hover="hover"
|
5
5
|
:height="height" :max-height="maxHeight" :loading="loading" :loading-props="loadingProps" :load-more="loadMore"
|
6
6
|
:empty="empty" :table-layout="tableLayout" :cell-empty-content="cellEmptyContent" :pagination="pagination"
|
@@ -459,6 +459,10 @@ const handleDragSort = (params) => {
|
|
459
459
|
const handleValidate = (context) => {
|
460
460
|
emit('validate', context);
|
461
461
|
};
|
462
|
+
const tableRef = ref();
|
463
|
+
defineExpose({
|
464
|
+
tableRef
|
465
|
+
})
|
462
466
|
</script>
|
463
467
|
|
464
468
|
<style lang="less" scoped>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<t-form
|
3
|
+
ref="formRef"
|
3
4
|
:class="customClass"
|
4
5
|
:data="data"
|
5
6
|
:colon="colon"
|
@@ -30,7 +31,7 @@ export default {
|
|
30
31
|
</script>
|
31
32
|
|
32
33
|
<script setup>
|
33
|
-
import { defineProps, defineEmits } from 'vue';
|
34
|
+
import { defineProps, defineEmits, ref, defineExpose } from 'vue';
|
34
35
|
import { Form as TForm } from 'tdesign-vue-next';
|
35
36
|
|
36
37
|
defineProps({
|
@@ -127,6 +128,10 @@ const handleSubmit = (e) => {
|
|
127
128
|
const handleValidate = (params) => {
|
128
129
|
emit('validate', params);
|
129
130
|
};
|
131
|
+
const formRef = ref();
|
132
|
+
defineExpose({
|
133
|
+
formRef
|
134
|
+
})
|
130
135
|
</script>
|
131
136
|
|
132
137
|
<style lang="less" scoped>
|