@airpower/web 0.0.30 → 0.0.31
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/airpower.web.js +19 -12
- package/dist/components/index.d.ts +1 -1
- package/dist/decorator/{Table.d.ts → @table/Table.d.ts} +1 -1
- package/dist/decorator/{config/table → @table}/index.d.ts +1 -0
- package/dist/decorator/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/decorator/config/index.d.ts +0 -1
- /package/dist/components/{Table.vue.d.ts → WebTable.vue.d.ts} +0 -0
- /package/dist/decorator/{config/table → @table}/IElementTableColumn.d.ts +0 -0
- /package/dist/decorator/{config/table → @table}/ITableFieldConfig.d.ts +0 -0
- /package/dist/decorator/{config/table → @table}/TableType.d.ts +0 -0
package/dist/airpower.web.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, toHandlers, withCtx, createElementBlock, Fragment, renderList,
|
|
1
|
+
import { defineComponent, computed, watch, createBlock, openBlock, unref, mergeProps, toHandlers, withCtx, createElementBlock, Fragment, renderList, ref } from "vue";
|
|
2
2
|
import { AirDecorator, getFieldConfig, AirClassTransformer, CoreConfig, AirI18n, QueryPageRequest, QueryPageResponse, Page, AbstractHttp, HttpResponse, AbstractEntityService } from "@airpower/core";
|
|
3
3
|
export * from "@airpower/core";
|
|
4
4
|
import { ElTable, ElTableColumn, ElMessageBox, ElMessage } from "element-plus";
|
|
@@ -34,15 +34,24 @@ function getTableConfigList(target, keyList) {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
|
-
__name: "
|
|
37
|
+
__name: "WebTable",
|
|
38
38
|
props: {
|
|
39
|
+
/**
|
|
40
|
+
* ### 表格列配置
|
|
41
|
+
*/
|
|
39
42
|
columns: {
|
|
40
43
|
type: Array
|
|
41
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* ### 表格数据
|
|
47
|
+
*/
|
|
42
48
|
data: {
|
|
43
49
|
type: Array,
|
|
44
50
|
required: true
|
|
45
51
|
},
|
|
52
|
+
/**
|
|
53
|
+
* ### 表格实体类
|
|
54
|
+
*/
|
|
46
55
|
clazz: {
|
|
47
56
|
type: Function,
|
|
48
57
|
required: true
|
|
@@ -60,6 +69,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
69
|
console.warn("[table]: list:", list);
|
|
61
70
|
return list;
|
|
62
71
|
});
|
|
72
|
+
watch(props.data, () => {
|
|
73
|
+
console.warn("[table]: data:", props.data);
|
|
74
|
+
});
|
|
63
75
|
return (_ctx, _cache) => {
|
|
64
76
|
return openBlock(), createBlock(unref(ElTable), mergeProps({
|
|
65
77
|
data: __props.data,
|
|
@@ -67,16 +79,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
79
|
}, _ctx.$attrs, toHandlers(_ctx.$attrs)), {
|
|
68
80
|
default: withCtx(() => [
|
|
69
81
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tableColumns.value, (item) => {
|
|
70
|
-
return openBlock(),
|
|
71
|
-
key: item.key
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
], 64)) : (openBlock(), createBlock(unref(ElTableColumn), mergeProps({
|
|
76
|
-
key: 1,
|
|
77
|
-
ref_for: true
|
|
78
|
-
}, item), null, 16))
|
|
79
|
-
], 64);
|
|
82
|
+
return openBlock(), createBlock(unref(ElTableColumn), mergeProps({
|
|
83
|
+
key: item.key,
|
|
84
|
+
prop: item.key,
|
|
85
|
+
ref_for: true
|
|
86
|
+
}, item), null, 16, ["prop"]);
|
|
80
87
|
}), 128))
|
|
81
88
|
]),
|
|
82
89
|
_: 1
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { default as WebTable } from './
|
|
1
|
+
import { default as WebTable } from './WebTable.vue';
|
|
2
2
|
export { WebTable, };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from './Table';
|
|
1
|
+
export * from './@table';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './table';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|