@fangzhongya/fang-ui 0.0.29 → 0.0.30

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.
Files changed (147) hide show
  1. package/dist/components/box/index.css +12 -12
  2. package/dist/components/box/index.scss +1 -6
  3. package/dist/components/box-local/index.css +12 -12
  4. package/dist/components/dialog/src/index.cjs +5 -5
  5. package/dist/components/dialog/src/index.js +2 -2
  6. package/dist/components/dialog/style/index2.scss +1 -1
  7. package/dist/components/forms/index.d.ts +52 -149
  8. package/dist/components/forms/src/index.cjs +9 -8
  9. package/dist/components/forms/src/index.d.ts +102 -297
  10. package/dist/components/forms/src/index.js +2 -1
  11. package/dist/components/forms/style/index2.scss +6 -0
  12. package/dist/components/forms-div/style/index2.scss +1 -0
  13. package/dist/components/forms-item/src/index.cjs +6 -6
  14. package/dist/components/forms-item/src/index.js +1 -1
  15. package/dist/components/forms-item/style/index2.scss +4 -0
  16. package/dist/components/forms-items/style/index2.scss +2 -0
  17. package/dist/components/index.cjs +16 -14
  18. package/dist/components/index.d.ts +5 -4
  19. package/dist/components/index.js +10 -8
  20. package/dist/components/index.scss +6 -4
  21. package/dist/components/lists/common/img.cjs +1 -1
  22. package/dist/components/lists/common/img.d.ts +2 -0
  23. package/dist/components/lists/common/img.js +1 -1
  24. package/dist/components/lists/common/img2.cjs +5 -8
  25. package/dist/components/lists/common/img2.js +6 -9
  26. package/dist/components/menus/src/index.cjs +2 -2
  27. package/dist/components/menus/src/index.js +1 -1
  28. package/dist/components/menus/src/menu-ll.cjs +6 -6
  29. package/dist/components/menus/src/menu-ll.js +1 -1
  30. package/dist/components/menus/style/index2.scss +5 -0
  31. package/dist/components/page/index.css +245 -0
  32. package/dist/components/page/index.d.ts +3073 -0
  33. package/dist/components/page/index.scss +4 -0
  34. package/dist/components/page/src/index.cjs +16 -14
  35. package/dist/components/page/src/index.d.ts +5111 -0
  36. package/dist/components/page/src/index.js +5 -3
  37. package/dist/components/page/style/index2.scss +9 -0
  38. package/dist/components/{pagin → paging}/index.cjs +3 -3
  39. package/dist/components/{pagin → paging}/index.css +4 -3
  40. package/dist/components/{pagin → paging}/index.d.ts +2 -2
  41. package/dist/components/{pagin → paging}/index.js +3 -3
  42. package/dist/components/{pagin → paging}/index.scss +3 -2
  43. package/dist/components/{pagin → paging}/src/index.cjs +3 -3
  44. package/dist/components/{pagin → paging}/src/index.js +2 -2
  45. package/dist/components/paging/style/index2.scss +3 -0
  46. package/dist/components/tables/index.css +12 -15
  47. package/dist/components/tables/index.d.ts +1730 -0
  48. package/dist/components/tables/index.scss +17 -23
  49. package/dist/components/{el-tables → tables}/src/column.cjs +3 -3
  50. package/dist/components/{el-tables → tables}/src/column.js +2 -2
  51. package/dist/components/{el-tables → tables}/src/columns.cjs +3 -3
  52. package/dist/components/{el-tables → tables}/src/columns.js +3 -3
  53. package/dist/components/{el-tables → tables}/src/columns3.cjs +6 -6
  54. package/dist/components/{el-tables → tables}/src/columns3.js +2 -2
  55. package/dist/components/tables/src/index.cjs +158 -97
  56. package/dist/components/tables/src/index.d.ts +3103 -0
  57. package/dist/components/tables/src/index.js +158 -97
  58. package/dist/components/tables/style/index2.scss +5 -0
  59. package/dist/components/tables-form/index.cjs +1 -0
  60. package/dist/components/tables-form/index.js +1 -0
  61. package/dist/components/tables-form/index.scss +0 -0
  62. package/dist/components/tables-form/style/index.scss.cjs +1 -0
  63. package/dist/components/tables-form/style/index.scss.js +1 -0
  64. package/dist/components/tables-form/style/index2.scss +0 -0
  65. package/dist/components/{el-tables → tablesp}/index.cjs +3 -3
  66. package/dist/components/{tables-pagin → tablesp}/index.css +10 -9
  67. package/dist/components/tablesp/index.d.ts +1939 -0
  68. package/dist/components/{el-tables → tablesp}/index.js +3 -3
  69. package/dist/components/{tables-pagin → tablesp}/index.scss +5 -5
  70. package/dist/components/{tables-pagin → tablesp}/src/index.cjs +5 -5
  71. package/dist/components/tablesp/src/index.d.ts +3540 -0
  72. package/dist/components/{tables-pagin → tablesp}/src/index.js +5 -5
  73. package/dist/components/tablesp/style/index2.scss +4 -0
  74. package/dist/components/{vxe-tables → tabless}/index.cjs +3 -3
  75. package/dist/components/{el-tables → tabless}/index.css +15 -12
  76. package/dist/components/tabless/index.d.ts +1939 -0
  77. package/dist/components/{vxe-tables → tabless}/index.js +3 -3
  78. package/dist/components/tabless/index.scss +32 -0
  79. package/dist/components/tabless/src/index.cjs +118 -0
  80. package/dist/components/tabless/src/index.d.ts +3540 -0
  81. package/dist/components/tabless/src/index.js +118 -0
  82. package/dist/components/tabless/style/index2.scss +5 -0
  83. package/dist/components/{tables-pagin → tablesv}/index.cjs +3 -3
  84. package/dist/components/{vxe-tables → tablesv}/index.css +17 -17
  85. package/dist/components/{vxe-tables → tablesv}/index.d.ts +2 -2
  86. package/dist/components/{tables-pagin → tablesv}/index.js +3 -3
  87. package/dist/components/{vxe-tables → tablesv}/index.scss +2 -2
  88. package/dist/components/{vxe-tables → tablesv}/src/index.cjs +1 -1
  89. package/dist/components/{vxe-tables → tablesv}/src/index.js +1 -1
  90. package/dist/components/tablesv/style/index2.scss +1 -0
  91. package/dist/components/tablesvp/index.cjs +8 -0
  92. package/dist/components/tablesvp/index.css +130 -0
  93. package/dist/components/tablesvp/index.d.ts +480 -0
  94. package/dist/components/tablesvp/index.js +8 -0
  95. package/dist/components/tablesvp/index.scss +33 -0
  96. package/dist/components/tablesvp/src/data.d.ts +14 -0
  97. package/dist/components/tablesvp/src/index.cjs +86 -0
  98. package/dist/components/tablesvp/src/index.d.ts +630 -0
  99. package/dist/components/tablesvp/src/index.js +86 -0
  100. package/dist/components/tablesvp/src/index2.cjs +4 -0
  101. package/dist/components/tablesvp/src/index2.js +4 -0
  102. package/dist/components/tablesvp/style/index2.scss +4 -0
  103. package/dist/expand/{chunk-B6EXENNS.cjs → chunk-P5447R3I.cjs} +5 -4
  104. package/dist/expand/{chunk-Y7QESZWG.js → chunk-VZAQ2FM7.js} +5 -4
  105. package/dist/expand/components.cjs +5 -5
  106. package/dist/expand/components.js +1 -1
  107. package/dist/expand/config.cjs +2 -2
  108. package/dist/expand/config.js +1 -1
  109. package/dist/index.cjs +34 -32
  110. package/dist/index.css +130 -50
  111. package/dist/index.js +10 -8
  112. package/dist/index2.css +1 -1
  113. package/package.json +6 -6
  114. package/dist/components/el-tables/index.scss +0 -26
  115. package/dist/components/el-tables/src/index.cjs +0 -174
  116. package/dist/components/el-tables/src/index.js +0 -174
  117. /package/dist/components/{pagin → paging}/src/index.d.ts +0 -0
  118. /package/dist/components/{el-tables → paging}/src/index2.cjs +0 -0
  119. /package/dist/components/{el-tables → paging}/src/index2.js +0 -0
  120. /package/dist/components/{el-tables → tables}/src/column.d.ts +0 -0
  121. /package/dist/components/{el-tables → tables}/src/columns.d.ts +0 -0
  122. /package/dist/components/{el-tables → tables}/src/columns2.cjs +0 -0
  123. /package/dist/components/{el-tables → tables}/src/columns2.js +0 -0
  124. /package/dist/components/{el-tables → tables}/src/data.cjs +0 -0
  125. /package/dist/components/{el-tables → tables}/src/data.d.ts +0 -0
  126. /package/dist/components/{el-tables → tables}/src/data.js +0 -0
  127. /package/dist/components/{tables-pagin → tablesp}/src/data.d.ts +0 -0
  128. /package/dist/components/{pagin → tablesp}/src/index2.cjs +0 -0
  129. /package/dist/components/{pagin → tablesp}/src/index2.js +0 -0
  130. /package/dist/components/{tables-pagin → tabless}/src/index2.cjs +0 -0
  131. /package/dist/components/{tables-pagin → tabless}/src/index2.js +0 -0
  132. /package/dist/components/{vxe-tables → tablesv}/src/column.cjs +0 -0
  133. /package/dist/components/{vxe-tables → tablesv}/src/column.d.ts +0 -0
  134. /package/dist/components/{vxe-tables → tablesv}/src/column.js +0 -0
  135. /package/dist/components/{vxe-tables → tablesv}/src/columns.cjs +0 -0
  136. /package/dist/components/{vxe-tables → tablesv}/src/columns.d.ts +0 -0
  137. /package/dist/components/{vxe-tables → tablesv}/src/columns.js +0 -0
  138. /package/dist/components/{vxe-tables → tablesv}/src/columns2.cjs +0 -0
  139. /package/dist/components/{vxe-tables → tablesv}/src/columns2.js +0 -0
  140. /package/dist/components/{vxe-tables → tablesv}/src/columns3.cjs +0 -0
  141. /package/dist/components/{vxe-tables → tablesv}/src/columns3.js +0 -0
  142. /package/dist/components/{vxe-tables → tablesv}/src/data.cjs +0 -0
  143. /package/dist/components/{vxe-tables → tablesv}/src/data.d.ts +0 -0
  144. /package/dist/components/{vxe-tables → tablesv}/src/data.js +0 -0
  145. /package/dist/components/{vxe-tables → tablesv}/src/index.d.ts +0 -0
  146. /package/dist/components/{vxe-tables → tablesv}/src/index2.cjs +0 -0
  147. /package/dist/components/{vxe-tables → tablesv}/src/index2.js +0 -0
@@ -1,32 +1,26 @@
1
1
  @use '../css/common.scss' as *;
2
2
 
3
- $tables-pag: 'tables-pag';
4
- @include b($tables-pag) {
3
+ $tables: 'tables';
4
+ @include b($tables) {
5
+ // height: 100%;
5
6
  width: 100%;
6
- height: 100%;
7
+ min-height: 100px;
8
+ position: relative;
7
9
  flex: 1;
8
10
  display: flex;
9
11
  flex-direction: column;
10
-
11
- &-main {
12
- display: flex;
13
- flex-direction: column;
14
- flex: 1;
15
- width: 100%;
16
- &.#{is('radio')} {
17
- .#{e()}table__header {
18
- .#{e()}table-column--selection {
19
- .#{e()}checkbox {
20
- display: none;
21
- }
22
- }
23
- }
24
- }
25
- }
26
- &-paginat {
27
- overflow: hidden;
28
- .#{e()}pagination {
29
- justify-content: flex-end;
12
+ &-table {
13
+ &.#{is('absolute')} {
14
+ position: absolute;
15
+ top: 0;
16
+ right: 0;
17
+ bottom: 0;
18
+ left: 0;
30
19
  }
20
+ // flex: 1;
21
+ // width: 100%;
22
+ // 去掉背景色
23
+ background-color: transparent;
24
+ --#{e()}table-header-bg-color: rgb(248, 248, 249);
31
25
  }
32
26
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
- const util = require("../../tables/common/util.cjs");
5
- const elementPlus = require("element-plus");
4
+ const util = require("../common/util.cjs");
5
+ const index$1 = require("element-plus/es/components/table/index");
6
6
  const use = require("../../common/use.cjs");
7
7
  const index = require("../../../hooks/inherit/index.cjs");
8
8
  const compons = require("../../common/compons.cjs");
@@ -100,7 +100,7 @@ function setHeader(obj, scope, slots, emit, props, index2) {
100
100
  function getDom(obj, emit, propss, slots, index2) {
101
101
  const props = setProps(obj, propss);
102
102
  return vue.h(
103
- elementPlus.ElTableColumn,
103
+ index$1.ElTableColumn,
104
104
  {
105
105
  ...props,
106
106
  className: obj.class,
@@ -1,6 +1,6 @@
1
1
  import { inject, h } from "vue";
2
- import { setMinWidth } from "../../tables/common/util.js";
3
- import { ElTableColumn } from "element-plus";
2
+ import { setMinWidth } from "../common/util.js";
3
+ import { ElTableColumn } from "element-plus/es/components/table/index";
4
4
  import { useGetDomLabel, useSetSlot, useSetCompon, useGetDomValue } from "../../common/use.js";
5
5
  import { useAttrValue } from "../../../hooks/inherit/index.js";
6
6
  import { getCompons } from "../../common/compons.js";
@@ -2,9 +2,9 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const columns = require("./columns3.cjs");
5
- const tableBut_vue_vue_type_script_setup_true_lang = require("../../tables/common/table-but.cjs");
6
- const tableColor_vue_vue_type_script_setup_true_lang = require("../../tables/common/table-color.cjs");
7
- const tableList_vue_vue_type_script_setup_true_lang = require("../../tables/common/table-list.cjs");
5
+ const tableBut_vue_vue_type_script_setup_true_lang = require("../common/table-but.cjs");
6
+ const tableColor_vue_vue_type_script_setup_true_lang = require("../common/table-color.cjs");
7
+ const tableList_vue_vue_type_script_setup_true_lang = require("../common/table-list.cjs");
8
8
  const _sfc_main = vue.defineComponent({
9
9
  emits: ["list-events"],
10
10
  components: { But: tableBut_vue_vue_type_script_setup_true_lang.default, Color: tableColor_vue_vue_type_script_setup_true_lang.default, List: tableList_vue_vue_type_script_setup_true_lang.default },
@@ -1,8 +1,8 @@
1
1
  import { defineComponent } from "vue";
2
2
  import { render } from "./columns3.js";
3
- import _sfc_main$3 from "../../tables/common/table-but.js";
4
- import _sfc_main$2 from "../../tables/common/table-color.js";
5
- import _sfc_main$1 from "../../tables/common/table-list.js";
3
+ import _sfc_main$3 from "../common/table-but.js";
4
+ import _sfc_main$2 from "../common/table-color.js";
5
+ import _sfc_main$1 from "../common/table-list.js";
6
6
  const _sfc_main = defineComponent({
7
7
  emits: ["list-events"],
8
8
  components: { But: _sfc_main$3, Color: _sfc_main$2, List: _sfc_main$1 },
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
- const util = require("../../tables/common/util.cjs");
4
+ const util = require("../common/util.cjs");
5
5
  const use = require("../../common/use.cjs");
6
- const elementPlus = require("element-plus");
6
+ const index = require("element-plus/es/components/table/index");
7
7
  const column = require("./column.cjs");
8
8
  function getLists(arrs, emit, props, slots, listobj) {
9
9
  let arr = [];
10
- arrs?.forEach((obj, index) => {
10
+ arrs?.forEach((obj, index$1) => {
11
11
  if (listobj) {
12
12
  obj.father = obj.father ?? listobj;
13
13
  }
@@ -26,7 +26,7 @@ function getLists(arrs, emit, props, slots, listobj) {
26
26
  } else {
27
27
  arr.push(
28
28
  vue.h(
29
- elementPlus.ElTableColumn,
29
+ index.ElTableColumn,
30
30
  {
31
31
  ...column.setProps(obj, props),
32
32
  className: obj.class,
@@ -49,7 +49,7 @@ function getLists(arrs, emit, props, slots, listobj) {
49
49
  slots,
50
50
  emit,
51
51
  props,
52
- index
52
+ index$1
53
53
  );
54
54
  }
55
55
  }
@@ -57,7 +57,7 @@ function getLists(arrs, emit, props, slots, listobj) {
57
57
  );
58
58
  }
59
59
  } else {
60
- const dom = column.columnRender(obj, emit, props, slots, index);
60
+ const dom = column.columnRender(obj, emit, props, slots, index$1);
61
61
  if (dom) {
62
62
  arr.push(dom);
63
63
  }
@@ -1,7 +1,7 @@
1
1
  import { h } from "vue";
2
- import { setMinWidth } from "../../tables/common/util.js";
2
+ import { setMinWidth } from "../common/util.js";
3
3
  import { useHide } from "../../common/use.js";
4
- import { ElTableColumn } from "element-plus";
4
+ import { ElTableColumn } from "element-plus/es/components/table/index";
5
5
  import { setProps, setHeader, columnRender } from "./column.js";
6
6
  function getLists(arrs, emit, props, slots, listobj) {
7
7
  let arr = [];
@@ -1,113 +1,174 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$2 = require("../../el-tables/index.cjs");
5
- const index$1 = require("../../vxe-tables/index.cjs");
6
- const index$3 = require("../../pagin/index.cjs");
7
- const pagin = require("../common/pagin.cjs");
4
+ const data = require("./data.cjs");
5
+ const index$2 = require("element-plus/es/components/table/index");
6
+ const index$3 = require("element-plus/es/components/loading/index");
7
+ const columns_vue_vue_type_script_lang = require("./columns.cjs");
8
8
  const index = require("../../../hooks/cssname/index.cjs");
9
+ const index$1 = require("../../../hooks/inherit/index.cjs");
10
+ const use = require("../../common/use.cjs");
11
+ const compons = require("../../common/compons.cjs");
9
12
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
13
  __name: "index",
11
- props: pagin.dataProps,
12
- emits: pagin.dataEmit,
14
+ props: data.dataProps,
15
+ emits: data.dataEmits,
13
16
  setup(__props, { expose: __expose, emit: __emit }) {
14
- const cs = index.useCssName("tables-pag");
17
+ const cs = index.useCssName("tables");
15
18
  const slots = vue.useSlots();
19
+ const attrs = index$1.useInherit(vue.useAttrs());
16
20
  const props = __props;
21
+ vue.provide("tables-compons", compons.getCompons(props.compons));
22
+ const tableRef = vue.ref();
17
23
  const emit = __emit;
18
- const refTable = vue.ref();
19
- const {
20
- getSelection,
21
- initData,
22
- getData,
23
- empty,
24
- loading,
25
- tableList,
26
- tableConfig,
27
- onRadioChange,
28
- onSortChange,
29
- onListEvents,
30
- onSelect,
31
- onRowClick,
32
- onChange,
33
- pagconfig,
34
- formEvent,
35
- onSizeChange,
36
- onCurrentChange,
37
- paginat,
38
- data
39
- } = pagin.useInit(props, emit, refTable);
24
+ const rowObj = vue.ref();
25
+ const isfocus = vue.ref(false);
26
+ function onClick() {
27
+ isfocus.value = true;
28
+ }
29
+ function isComponSelected(obj, scope) {
30
+ if (use.uesObjComponSelected(obj, props)) {
31
+ if (rowObj.value === scope.row) {
32
+ if (isfocus.value) {
33
+ return true;
34
+ } else {
35
+ return false;
36
+ }
37
+ } else {
38
+ return false;
39
+ }
40
+ } else {
41
+ return true;
42
+ }
43
+ }
44
+ let isSort = false;
45
+ const tableDefaultSort = vue.computed(() => {
46
+ return {
47
+ prop: props.defaultSort?.prop,
48
+ order: props.defaultSort?.order
49
+ };
50
+ });
51
+ const rowStyle = vue.computed(() => {
52
+ const height = props.lineHeight;
53
+ const rowStyle2 = attrs.assem.rowStyle;
54
+ if (height) {
55
+ if (rowStyle2) {
56
+ if (typeof rowStyle2 == "object") {
57
+ rowStyle2["height"] = height + "px";
58
+ return rowStyle2;
59
+ } else {
60
+ return rowStyle2;
61
+ }
62
+ } else {
63
+ return {
64
+ height: height + "px"
65
+ };
66
+ }
67
+ } else {
68
+ return {
69
+ height: "",
70
+ ...rowStyle2
71
+ };
72
+ }
73
+ });
74
+ vue.watch(tableDefaultSort, (newValue, oldValue) => {
75
+ let prop = tableDefaultSort.value.prop;
76
+ let order = tableDefaultSort.value.order;
77
+ if (tableRef.value) {
78
+ if (prop) {
79
+ isSort = true;
80
+ tableRef.value.sort(prop, order);
81
+ } else {
82
+ tableRef.value.clearSort();
83
+ }
84
+ }
85
+ });
86
+ function sortChange(obj) {
87
+ if (isSort) {
88
+ isSort = false;
89
+ return false;
90
+ }
91
+ emit("sort-change", obj);
92
+ }
93
+ function onListEvents(...arr) {
94
+ emit("list-events", ...arr);
95
+ }
96
+ function onRowClick(row, column, ...arr) {
97
+ isfocus.value = true;
98
+ rowObj.value = row;
99
+ emit("row-click", row, column, ...arr);
100
+ }
101
+ function toggleRowSelection(...arr) {
102
+ tableRef.value.toggleRowSelection(...arr);
103
+ }
104
+ function clearSelection() {
105
+ tableRef.value.clearSelection();
106
+ }
107
+ vue.onMounted(() => {
108
+ if (window) {
109
+ window.addEventListener("click", () => {
110
+ isfocus.value = false;
111
+ });
112
+ }
113
+ });
40
114
  __expose({
41
- getSelection,
42
- initData,
43
- getList: getData,
44
- empty
115
+ ...data.dataExpose,
116
+ clearSelection,
117
+ toggleRowSelection
45
118
  });
46
119
  return (_ctx, _cache) => {
47
- return vue.openBlock(), vue.createElementBlock("div", {
48
- class: vue.normalizeClass(vue.unref(cs).z())
49
- }, [
50
- vue.unref(tableConfig).type == 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.VxeTables), vue.mergeProps({ key: 0 }, vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
51
- ref_key: "refTable",
52
- ref: refTable,
53
- class: [vue.unref(cs).z("main")],
54
- size: vue.unref(tableConfig).config?.size,
55
- value: vue.unref(data).list,
56
- list: vue.unref(tableList),
57
- paginat: vue.unref(paginat),
58
- loading: vue.unref(loading),
59
- options: props.options,
60
- compons: props.compons,
61
- onSortChange: vue.unref(onSortChange),
62
- onRadioChange: vue.unref(onRadioChange),
63
- onSelectionChange: vue.unref(onChange),
64
- onListEvents: vue.unref(onListEvents)
65
- }), vue.createSlots({ _: 2 }, [
66
- vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
67
- return {
68
- name: k,
69
- fn: vue.withCtx((scope) => [
70
- vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
71
- ])
72
- };
73
- })
74
- ]), 1040, ["class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElTables), vue.mergeProps({ key: 1 }, vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
75
- ref_key: "refTable",
76
- ref: refTable,
77
- class: [
78
- vue.unref(cs).z("main"),
79
- vue.unref(cs).is("radio", vue.unref(tableConfig).config?.isradio)
80
- ],
81
- value: vue.unref(data).list,
82
- list: vue.unref(tableList),
83
- size: vue.unref(tableConfig).config?.size,
84
- paginat: vue.unref(paginat),
85
- loading: vue.unref(loading),
86
- options: props.options,
87
- compons: props.compons,
88
- onSortChange: vue.unref(onSortChange),
89
- onListEvents: vue.unref(onListEvents),
90
- onSelect: vue.unref(onSelect),
91
- onRowClick: vue.unref(onRowClick),
92
- onSelectionChange: vue.unref(onChange)
93
- }), vue.createSlots({ _: 2 }, [
94
- vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
95
- return {
96
- name: k,
97
- fn: vue.withCtx((scope) => [
98
- vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
99
- ])
100
- };
101
- })
102
- ]), 1040, ["class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
103
- vue.unref(tableConfig).paginat?.is ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Pagin), vue.mergeProps({ key: 2 }, vue.unref(pagconfig), {
104
- class: vue.unref(cs).z("paginat"),
105
- paginat: vue.unref(paginat),
106
- total: vue.unref(data).total,
107
- onSizeChange: vue.unref(onSizeChange),
108
- onCurrentChange: vue.unref(onCurrentChange)
109
- }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("", true)
110
- ], 2);
120
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
121
+ class: vue.unref(cs).z()
122
+ }, vue.unref(attrs).root), [
123
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.ElTable), vue.mergeProps(vue.unref(attrs).assem, {
124
+ align: "left",
125
+ ref_key: "tableRef",
126
+ ref: tableRef,
127
+ class: [vue.unref(cs).z("table"), vue.unref(cs).is("absolute", props.adaptive)],
128
+ height: props.height,
129
+ "scroll-selector": ".el-scrollbar .el-scrollbar__wrap",
130
+ "row-style": rowStyle.value,
131
+ data: props.value,
132
+ "default-sort": tableDefaultSort.value,
133
+ onRowClick,
134
+ onSortChange: sortChange,
135
+ onClick: vue.withModifiers(onClick, ["stop"])
136
+ }), {
137
+ empty: vue.withCtx(() => [
138
+ vue.renderSlot(_ctx.$slots, "no-data", {}, () => [
139
+ vue.createElementVNode("div", {
140
+ class: vue.normalizeClass(vue.unref(cs).z("no-data"))
141
+ }, _cache[0] || (_cache[0] = [
142
+ vue.createElementVNode("span", null, "暂无数据", -1)
143
+ ]), 2)
144
+ ])
145
+ ]),
146
+ default: vue.withCtx(() => [
147
+ vue.createVNode(columns_vue_vue_type_script_lang.default, {
148
+ table: vue.unref(attrs).assem,
149
+ value: props.value,
150
+ list: props.list,
151
+ options: props.options,
152
+ isComponSelected,
153
+ onListEvents
154
+ }, vue.createSlots({ _: 2 }, [
155
+ vue.renderList(Object.keys(vue.unref(slots)).filter(
156
+ (v) => !["empty", "no-data"].includes(v)
157
+ ), (k, i) => {
158
+ return {
159
+ name: k,
160
+ fn: vue.withCtx((scope) => [
161
+ vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
162
+ ])
163
+ };
164
+ })
165
+ ]), 1032, ["table", "value", "list", "options"])
166
+ ]),
167
+ _: 3
168
+ }, 16, ["class", "height", "row-style", "data", "default-sort"])), [
169
+ [vue.unref(index$3.vLoading), props.loading]
170
+ ])
171
+ ], 16);
111
172
  };
112
173
  }
113
174
  });