@fangzhongya/fang-ui 0.1.18 → 0.1.20

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 (105) hide show
  1. package/dist/components/forms/src/data.cjs +3 -3
  2. package/dist/components/forms/src/data.d.ts +1 -1
  3. package/dist/components/forms/src/data.js +3 -3
  4. package/dist/components/forms/src/index2.cjs +5 -3
  5. package/dist/components/forms/src/index2.js +5 -3
  6. package/dist/components/forms/src/setup.cjs +0 -7
  7. package/dist/components/forms/src/setup.js +0 -7
  8. package/dist/components/forms-div/src/data.cjs +7 -1
  9. package/dist/components/forms-div/src/data.d.ts +6 -0
  10. package/dist/components/forms-div/src/data.js +7 -1
  11. package/dist/components/forms-div/src/index2.cjs +35 -10
  12. package/dist/components/forms-div/src/index2.js +36 -11
  13. package/dist/components/forms-item/src/data.cjs +1 -1
  14. package/dist/components/forms-item/src/data.js +1 -1
  15. package/dist/components/forms-item/src/index2.cjs +4 -2
  16. package/dist/components/forms-item/src/index2.js +4 -2
  17. package/dist/components/forms-items/src/data.cjs +1 -1
  18. package/dist/components/forms-items/src/data.js +1 -1
  19. package/dist/components/forms-items/src/index2.cjs +4 -2
  20. package/dist/components/forms-items/src/index2.js +4 -2
  21. package/dist/components/global-config/src/data.cjs +12 -0
  22. package/dist/components/global-config/src/data.d.ts +12 -0
  23. package/dist/components/global-config/src/data.js +12 -0
  24. package/dist/components/index.cjs +8 -6
  25. package/dist/{index.css → components/index.css} +39 -0
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/index.js +2 -0
  28. package/dist/components/index.scss +1 -0
  29. package/dist/components/index2.scss +2 -2
  30. package/dist/components/list/index.css +12 -0
  31. package/dist/components/list/index.scss +15 -0
  32. package/dist/components/list/src/data.cjs +21 -2
  33. package/dist/components/list/src/data.d.ts +22 -1
  34. package/dist/components/list/src/data.js +21 -2
  35. package/dist/components/list/src/index2.cjs +61 -10
  36. package/dist/components/list/src/index2.js +61 -10
  37. package/dist/components/list/style/index2.scss +1 -0
  38. package/dist/components/page/index.css +11 -0
  39. package/dist/components/tables/common/pagin.cjs +60 -16
  40. package/dist/components/tables/common/pagin.d.ts +8 -0
  41. package/dist/components/tables/common/pagin.js +60 -16
  42. package/dist/components/tables/common/tooltip.cjs +101 -0
  43. package/dist/components/tables/common/tooltip.d.ts +6 -0
  44. package/dist/components/tables/common/tooltip.js +101 -0
  45. package/dist/components/tables/common/util.cjs +3 -3
  46. package/dist/components/tables/common/util.js +3 -3
  47. package/dist/components/tables/src/column.cjs +19 -15
  48. package/dist/components/tables/src/column.d.ts +3 -2
  49. package/dist/components/tables/src/column.js +17 -13
  50. package/dist/components/tables/src/columns3.cjs +16 -32
  51. package/dist/components/tables/src/columns3.js +15 -31
  52. package/dist/components/tables/src/data.cjs +3 -2
  53. package/dist/components/tables/src/data.d.ts +1 -0
  54. package/dist/components/tables/src/data.js +3 -2
  55. package/dist/components/tablespd/index.cjs +9 -0
  56. package/dist/components/tablespd/index.css +88 -0
  57. package/dist/components/tablespd/index.d.ts +4 -0
  58. package/dist/components/tablespd/index.js +9 -0
  59. package/dist/components/tablespd/index.scss +40 -0
  60. package/dist/components/tablespd/src/data.cjs +13 -0
  61. package/dist/components/tablespd/src/data.d.ts +18 -0
  62. package/dist/components/tablespd/src/data.js +13 -0
  63. package/dist/components/tablespd/src/index.cjs +4 -0
  64. package/dist/components/tablespd/src/index.js +4 -0
  65. package/dist/components/tablespd/src/index2.cjs +111 -0
  66. package/dist/components/tablespd/src/index2.js +111 -0
  67. package/dist/components/tablespd/style/index2.scss +4 -0
  68. package/dist/components/tablesv/src/column.cjs +4 -4
  69. package/dist/components/tablesv/src/column.js +3 -3
  70. package/dist/css/index.css +39 -0
  71. package/dist/css/list.css +12 -0
  72. package/dist/css/page.css +11 -0
  73. package/dist/css/tablespd.css +88 -0
  74. package/dist/directives/index.cjs +6 -4
  75. package/dist/directives/index.d.ts +1 -0
  76. package/dist/directives/index.js +4 -2
  77. package/dist/directives/sortable/index.cjs +45 -0
  78. package/dist/directives/sortable/index.d.ts +6 -0
  79. package/dist/directives/sortable/index.js +45 -0
  80. package/dist/expand/{chunk-XY53LCPN.js → chunk-2BLP2ANQ.js} +3 -0
  81. package/dist/expand/{chunk-IEODUGVJ.cjs → chunk-OT6GISSR.cjs} +3 -0
  82. package/dist/expand/components.cjs +5 -5
  83. package/dist/expand/components.js +1 -1
  84. package/dist/expand/config.cjs +2 -2
  85. package/dist/expand/config.js +1 -1
  86. package/dist/hooks/cssname/index.d.ts +2 -2
  87. package/dist/hooks/index.cjs +0 -1
  88. package/dist/hooks/index.js +1 -2
  89. package/dist/hooks/inherit/index.cjs +0 -8
  90. package/dist/hooks/inherit/index.d.ts +0 -1
  91. package/dist/hooks/inherit/index.js +0 -8
  92. package/dist/icons/index.json +1 -1
  93. package/dist/index.cjs +30 -26
  94. package/dist/index.js +6 -2
  95. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +2758 -0
  96. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.js +2758 -0
  97. package/dist/utils/vues/getAttrValue.cjs +11 -0
  98. package/dist/utils/vues/getAttrValue.d.ts +3 -0
  99. package/dist/utils/vues/getAttrValue.js +11 -0
  100. package/dist/utils/vues/index.cjs +2 -0
  101. package/dist/utils/vues/index.d.ts +1 -0
  102. package/dist/utils/vues/index.js +2 -0
  103. package/package.json +7 -5
  104. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  105. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
4
  const util = require("../common/util.cjs");
5
- const index$1 = require("../../table-column/index.cjs");
5
+ const index = require("../../table-column/index.cjs");
6
6
  const use = require("../../common/use.cjs");
7
- const index = require("../../../hooks/inherit/index.cjs");
7
+ const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
8
8
  const compons = require("../../common/compons.cjs");
9
9
  const config = require("../common/config.cjs");
10
10
  const noProps = ["children", "class", "minWidth", "label"];
@@ -12,9 +12,9 @@ function setProps(obj, props) {
12
12
  const table = props.table;
13
13
  const robj = {};
14
14
  const issort = table["sort"];
15
- robj["showOverflowTooltip"] = table["showOverflowTooltip"];
15
+ robj["showOverflowTooltip"] = Boolean(getAttrValue.getAttrValue(obj, "showOverflow")) || getAttrValue.getAttrValue(table, "showOverflowTooltip") || Boolean(getAttrValue.getAttrValue(table, "showOverflow"));
16
16
  robj["header-align"] = table["align"];
17
- robj["align"] = index.useAttrValue(obj, "headerAlign") || table["align"];
17
+ robj["align"] = getAttrValue.getAttrValue(obj, "headerAlign") || table["align"];
18
18
  Object.keys(obj).forEach((key) => {
19
19
  if (!noProps.includes(key)) {
20
20
  if (obj[key] !== "") {
@@ -99,28 +99,32 @@ function setHeader(obj, scope, slots, emit, props, index2) {
99
99
  index2
100
100
  );
101
101
  }
102
- function getDom(obj, emit, propss, slots, index2) {
103
- const props = setProps(obj, propss);
102
+ function getTableColumn(obj, emit, props, slots, index$1, def) {
103
+ if (obj.type == "selection") {
104
+ def = void 0;
105
+ }
104
106
  return vue.h(
105
- index$1.TableColumn,
107
+ index.TableColumn,
106
108
  {
107
- ...props,
109
+ ...setProps(obj, props),
108
110
  className: obj.class,
109
- minWidth: util.setMinWidth(obj, propss)
111
+ minWidth: util.setMinWidth(obj, props)
110
112
  },
111
113
  {
112
- default: (scope) => {
113
- return setSslot(obj, scope, emit, slots, propss, index2);
114
- },
114
+ default: def,
115
115
  header: (scope) => {
116
- return setHeader(obj, scope, slots, emit, propss, index2);
116
+ return setHeader(obj, scope, slots, emit, props, index$1);
117
117
  }
118
118
  }
119
119
  );
120
120
  }
121
+ function getDom(obj, emit, props, slots, index2) {
122
+ return getTableColumn(obj, emit, props, slots, index2, (scope) => {
123
+ return setSslot(obj, scope, emit, slots, props, index2);
124
+ });
125
+ }
121
126
  function columnRender(obj, emit, props, slots, index2) {
122
127
  return getDom(obj, emit, props, slots, index2);
123
128
  }
124
129
  exports.columnRender = columnRender;
125
- exports.setHeader = setHeader;
126
- exports.setProps = setProps;
130
+ exports.getTableColumn = getTableColumn;
@@ -1,6 +1,7 @@
1
1
  import { VNode, RendererNode, RendererElement } from 'vue';
2
- export declare function setProps(obj: ListObj, props: ObjAny): ObjAny;
3
- export declare function setHeader(obj: ListObj, scope: ObjAny, slots: ObjAny, emit: Function, props: ObjAny, index: number): any;
2
+ export declare function getTableColumn(obj: ListObj, emit: Function, props: ObjAny, slots: ObjAny, index: number, def?: Function): VNode<RendererNode, RendererElement, {
3
+ [key: string]: any;
4
+ }>;
4
5
  export declare function columnRender(obj: ListObj, emit: Function, props: ObjAny, slots: ObjAny, index: number): VNode<RendererNode, RendererElement, {
5
6
  [key: string]: any;
6
7
  }>;
@@ -2,7 +2,7 @@ import { h } from "vue";
2
2
  import { setMinWidth } from "../common/util.js";
3
3
  import { TableColumn } from "../../table-column/index.js";
4
4
  import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../common/use.js";
5
- import { useAttrValue } from "../../../hooks/inherit/index.js";
5
+ import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
6
6
  import { useGetCompons } from "../../common/compons.js";
7
7
  import { provides } from "../common/config.js";
8
8
  const noProps = ["children", "class", "minWidth", "label"];
@@ -10,9 +10,9 @@ function setProps(obj, props) {
10
10
  const table = props.table;
11
11
  const robj = {};
12
12
  const issort = table["sort"];
13
- robj["showOverflowTooltip"] = table["showOverflowTooltip"];
13
+ robj["showOverflowTooltip"] = Boolean(getAttrValue(obj, "showOverflow")) || getAttrValue(table, "showOverflowTooltip") || Boolean(getAttrValue(table, "showOverflow"));
14
14
  robj["header-align"] = table["align"];
15
- robj["align"] = useAttrValue(obj, "headerAlign") || table["align"];
15
+ robj["align"] = getAttrValue(obj, "headerAlign") || table["align"];
16
16
  Object.keys(obj).forEach((key) => {
17
17
  if (!noProps.includes(key)) {
18
18
  if (obj[key] !== "") {
@@ -97,30 +97,34 @@ function setHeader(obj, scope, slots, emit, props, index) {
97
97
  index
98
98
  );
99
99
  }
100
- function getDom(obj, emit, propss, slots, index) {
101
- const props = setProps(obj, propss);
100
+ function getTableColumn(obj, emit, props, slots, index, def) {
101
+ if (obj.type == "selection") {
102
+ def = void 0;
103
+ }
102
104
  return h(
103
105
  TableColumn,
104
106
  {
105
- ...props,
107
+ ...setProps(obj, props),
106
108
  className: obj.class,
107
- minWidth: setMinWidth(obj, propss)
109
+ minWidth: setMinWidth(obj, props)
108
110
  },
109
111
  {
110
- default: (scope) => {
111
- return setSslot(obj, scope, emit, slots, propss, index);
112
- },
112
+ default: def,
113
113
  header: (scope) => {
114
- return setHeader(obj, scope, slots, emit, propss, index);
114
+ return setHeader(obj, scope, slots, emit, props, index);
115
115
  }
116
116
  }
117
117
  );
118
118
  }
119
+ function getDom(obj, emit, props, slots, index) {
120
+ return getTableColumn(obj, emit, props, slots, index, (scope) => {
121
+ return setSslot(obj, scope, emit, slots, props, index);
122
+ });
123
+ }
119
124
  function columnRender(obj, emit, props, slots, index) {
120
125
  return getDom(obj, emit, props, slots, index);
121
126
  }
122
127
  export {
123
128
  columnRender,
124
- setHeader,
125
- setProps
129
+ getTableColumn
126
130
  };
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const vue = require("vue");
4
- const util = require("../common/util.cjs");
5
3
  const use = require("../../common/use.cjs");
6
- const index = require("../../table-column/index.cjs");
7
4
  const column = require("./column.cjs");
8
5
  function getLists(arrs, emit, props, slots, listobj) {
9
6
  let arr = [];
10
- arrs == null ? void 0 : arrs.forEach((obj, index$1) => {
7
+ arrs == null ? void 0 : arrs.forEach((obj, index) => {
11
8
  if (listobj) {
12
9
  obj.father = obj.father ?? listobj;
13
10
  }
@@ -25,39 +22,26 @@ function getLists(arrs, emit, props, slots, listobj) {
25
22
  );
26
23
  } else {
27
24
  arr.push(
28
- vue.h(
29
- index.TableColumn,
30
- {
31
- ...column.setProps(obj, props),
32
- className: obj.class,
33
- minWidth: util.setMinWidth(obj, props)
34
- },
35
- {
36
- default: (scope) => {
37
- return getLists(
38
- obj.children,
39
- emit,
40
- props,
41
- slots,
42
- obj
43
- );
44
- },
45
- header: (scope) => {
46
- return column.setHeader(
47
- obj,
48
- scope,
49
- slots,
50
- emit,
51
- props,
52
- index$1
53
- );
54
- }
25
+ column.getTableColumn(
26
+ obj,
27
+ emit,
28
+ props,
29
+ slots,
30
+ index,
31
+ (scope) => {
32
+ return getLists(
33
+ obj.children,
34
+ emit,
35
+ props,
36
+ slots,
37
+ obj
38
+ );
55
39
  }
56
40
  )
57
41
  );
58
42
  }
59
43
  } else {
60
- const dom = column.columnRender(obj, emit, props, slots, index$1);
44
+ const dom = column.columnRender(obj, emit, props, slots, index);
61
45
  if (dom) {
62
46
  arr.push(dom);
63
47
  }
@@ -1,8 +1,5 @@
1
- import { h } from "vue";
2
- import { setMinWidth } from "../common/util.js";
3
1
  import { useHide } from "../../common/use.js";
4
- import { TableColumn } from "../../table-column/index.js";
5
- import { setProps, setHeader, columnRender } from "./column.js";
2
+ import { getTableColumn, columnRender } from "./column.js";
6
3
  function getLists(arrs, emit, props, slots, listobj) {
7
4
  let arr = [];
8
5
  arrs == null ? void 0 : arrs.forEach((obj, index) => {
@@ -23,33 +20,20 @@ function getLists(arrs, emit, props, slots, listobj) {
23
20
  );
24
21
  } else {
25
22
  arr.push(
26
- h(
27
- TableColumn,
28
- {
29
- ...setProps(obj, props),
30
- className: obj.class,
31
- minWidth: setMinWidth(obj, props)
32
- },
33
- {
34
- default: (scope) => {
35
- return getLists(
36
- obj.children,
37
- emit,
38
- props,
39
- slots,
40
- obj
41
- );
42
- },
43
- header: (scope) => {
44
- return setHeader(
45
- obj,
46
- scope,
47
- slots,
48
- emit,
49
- props,
50
- index
51
- );
52
- }
23
+ getTableColumn(
24
+ obj,
25
+ emit,
26
+ props,
27
+ slots,
28
+ index,
29
+ (scope) => {
30
+ return getLists(
31
+ obj.children,
32
+ emit,
33
+ props,
34
+ slots,
35
+ obj
36
+ );
53
37
  }
54
38
  )
55
39
  );
@@ -103,14 +103,15 @@ const dataProps = {
103
103
  */
104
104
  interval: {
105
105
  type: String,
106
- default: "6px"
106
+ default: "8px"
107
107
  },
108
108
  /**
109
109
  * @props { String } intervalHorizon
110
110
  * 查询模式的左右间距
111
111
  */
112
112
  intervalHorizon: {
113
- type: String
113
+ type: String,
114
+ default: "12px"
114
115
  }
115
116
  };
116
117
  const dataEmits = [
@@ -142,6 +142,7 @@ export declare const dataProps: {
142
142
  */
143
143
  intervalHorizon: {
144
144
  type: StringConstructor;
145
+ default: string;
145
146
  };
146
147
  };
147
148
  export type DataProps = ExtractPropTypes<typeof dataProps>;
@@ -101,14 +101,15 @@ const dataProps = {
101
101
  */
102
102
  interval: {
103
103
  type: String,
104
- default: "6px"
104
+ default: "8px"
105
105
  },
106
106
  /**
107
107
  * @props { String } intervalHorizon
108
108
  * 查询模式的左右间距
109
109
  */
110
110
  intervalHorizon: {
111
- type: String
111
+ type: String,
112
+ default: "12px"
112
113
  }
113
114
  };
114
115
  const dataEmits = [
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ ;/* empty css */
4
+ require("./src/index.cjs");
5
+ const withInstall = require("../../utils/vues/withInstall.cjs");
6
+ const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
7
+ const Tablespd = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "Tablespd");
8
+ exports.Tablespd = Tablespd;
9
+ exports.default = Tablespd;
@@ -0,0 +1,88 @@
1
+ :root {
2
+ --on: rgb(91, 189, 246);
3
+ --color-primary: #409eff;
4
+ --bag-primary: #409eff;
5
+ --bag-primary-text: #fff;
6
+ --border: #eee;
7
+ --layout-panel-gap: 10px;
8
+ --layout-panel-padding: 20px;
9
+ --layout-form-item-padding-right: var(
10
+ --layout-panel-gap
11
+ );
12
+ --g-main-bg: var(--bg-color-page);
13
+ }
14
+
15
+ .tables {
16
+ width: 100%;
17
+ min-height: var(--tables-min-height, 70px);
18
+ position: relative;
19
+ flex: 1;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+ .tables-table.is-absolute {
24
+ position: absolute;
25
+ inset: 0;
26
+ }
27
+ .tables-table {
28
+ background-color: transparent;
29
+ --el-table-header-bg-color: rgb(248, 248, 249);
30
+ }
31
+ .tables-table.el-table--default .el-table__cell {
32
+ padding: var(--tables-interval) 0;
33
+ }
34
+ .tables-table.el-table--default .cell {
35
+ padding: 0 var(--tables-interval-horizon, var(--tables-interval));
36
+ }
37
+
38
+ .paging {
39
+ width: 100%;
40
+ padding: 10px;
41
+ }
42
+ .paging-pagination {
43
+ width: 100%;
44
+ }
45
+ .paging-slot {
46
+ padding-left: 10px;
47
+ font-size: 14px;
48
+ font-weight: 400;
49
+ color: #9b9b9b;
50
+ white-space: pre-wrap;
51
+ }
52
+ .paging-slot > span {
53
+ margin-right: 10px;
54
+ white-space: nowrap;
55
+ }
56
+ .paging .el-pagination__total {
57
+ font-size: 14px;
58
+ font-weight: 400;
59
+ color: #9b9b9b;
60
+ }
61
+
62
+ .tablespd {
63
+ width: 100%;
64
+ flex: 1;
65
+ display: flex;
66
+ flex-direction: column;
67
+ }
68
+ .tablespd-main {
69
+ display: flex;
70
+ flex-direction: column;
71
+ flex: 1;
72
+ width: 100%;
73
+ }
74
+ .tablespd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
75
+ display: none;
76
+ }
77
+ .tablespd-main.is-scroll .v-scroll-add {
78
+ text-align: center;
79
+ padding: 10px;
80
+ color: #999;
81
+ background-color: #eee;
82
+ }
83
+ .tablespd-paginat {
84
+ overflow: hidden;
85
+ }
86
+ .tablespd-paginat .el-pagination {
87
+ justify-content: flex-end;
88
+ }
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/vues';
2
+ import { DefineComponent } from 'vue';
3
+ declare const Tablespd: SFCWithInstall<DefineComponent<{}, {}, any>>;
4
+ export { Tablespd, Tablespd as default };
@@ -0,0 +1,9 @@
1
+ /* empty css */
2
+ import "./src/index.js";
3
+ import { withInstall } from "../../utils/vues/withInstall.js";
4
+ import _sfc_main from "./src/index2.js";
5
+ const Tablespd = withInstall(_sfc_main, "Tablespd");
6
+ export {
7
+ Tablespd,
8
+ Tablespd as default
9
+ };
@@ -0,0 +1,40 @@
1
+ @use '../scss/common.scss' as *;
2
+ @use '../tables/index.scss' as *;
3
+ @use '../paging/index.scss' as *;
4
+ $tablespd: 'tablespd';
5
+ @include b($tablespd) {
6
+ width: 100%;
7
+ flex: 1;
8
+ display: flex;
9
+ 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
+ &.#{is('scroll')} {
26
+ .v-scroll-add {
27
+ text-align: center;
28
+ padding: 10px;
29
+ color: #999;
30
+ background-color: #eee;
31
+ }
32
+ }
33
+ }
34
+ &-paginat {
35
+ overflow: hidden;
36
+ .#{e()}pagination {
37
+ justify-content: flex-end;
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const buildProps = require("../../../utils/vues/buildProps.cjs");
4
+ const name = "tablespd";
5
+ const dataProps = buildProps.buildProps({});
6
+ const dataEmits = [];
7
+ const dataSlot = {};
8
+ const dataExpose = {};
9
+ exports.dataEmits = dataEmits;
10
+ exports.dataExpose = dataExpose;
11
+ exports.dataProps = dataProps;
12
+ exports.dataSlot = dataSlot;
13
+ exports.name = name;
@@ -0,0 +1,18 @@
1
+ import { ExtractPublicPropTypes } from 'vue';
2
+ /**
3
+ * @title {h2} TablesPagin 输入框
4
+ * @text 目前完全继承 element-plus 中 el-tables-pagin
5
+ */
6
+ /**
7
+ * @title {h3} tablespd
8
+ */
9
+ export declare const name = "tablespd";
10
+ export declare const dataProps: {};
11
+ export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
12
+ export declare const dataEmits: never[];
13
+ export type DataEmits = typeof dataEmits;
14
+ export declare const dataSlot: {};
15
+ /**
16
+ * @expose refEl 获取当前组件在element-plus中暴露的方法
17
+ */
18
+ export declare const dataExpose: {};
@@ -0,0 +1,13 @@
1
+ import { buildProps } from "../../../utils/vues/buildProps.js";
2
+ const name = "tablespd";
3
+ const dataProps = buildProps({});
4
+ const dataEmits = [];
5
+ const dataSlot = {};
6
+ const dataExpose = {};
7
+ export {
8
+ dataEmits,
9
+ dataExpose,
10
+ dataProps,
11
+ dataSlot,
12
+ name
13
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index_vue_vue_type_script_setup_true_lang = require("./index2.cjs");
4
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./index2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const index$3 = require("../../tables/index.cjs");
5
+ const index$6 = require("../../paging/index.cjs");
6
+ const index$4 = require("../../../directives/scroll/index.cjs");
7
+ const index$5 = require("../../../directives/sortable/index.cjs");
8
+ const data = require("./data.cjs");
9
+ const pagin = require("../../tables/common/pagin.cjs");
10
+ const index$1 = require("../../../hooks/cssname/index.cjs");
11
+ const index$2 = require("../../../hooks/props-default/index.cjs");
12
+ const index = require("../../../hooks/locale/index.cjs");
13
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
14
+ __name: "index",
15
+ props: index$2.getProps(pagin.dataProps),
16
+ emits: pagin.dataEmit,
17
+ setup(__props, { expose: __expose, emit: __emit }) {
18
+ const { getLocale } = index.useLocale();
19
+ const cs = index$1.useCssName(data.name);
20
+ const slots = vue.useSlots();
21
+ const prs = __props;
22
+ const props = index$2.usePropsDefault(data.name, prs, pagin.dataProps);
23
+ index$2.viewProps(props, data.name);
24
+ const emit = __emit;
25
+ const refTable = vue.ref();
26
+ const {
27
+ height,
28
+ getSelection,
29
+ initData,
30
+ getData,
31
+ empty,
32
+ loading,
33
+ tableList,
34
+ tableConfig,
35
+ scroll,
36
+ sortable,
37
+ onSortChange,
38
+ onListEvents,
39
+ onSelect,
40
+ onRowClick,
41
+ onChange,
42
+ pagconfig,
43
+ formEvent,
44
+ onSizeChange,
45
+ onCurrentChange,
46
+ paginat,
47
+ data: data$1
48
+ } = pagin.useInit(props, emit, refTable, getLocale, true);
49
+ __expose({
50
+ getSelection,
51
+ initData,
52
+ getData,
53
+ getList: initData,
54
+ empty
55
+ });
56
+ return (_ctx, _cache) => {
57
+ var _a, _b, _c, _d;
58
+ return vue.openBlock(), vue.createElementBlock("div", {
59
+ class: vue.normalizeClass(vue.unref(cs).z()),
60
+ style: vue.normalizeStyle({
61
+ height: vue.unref(height) == "100%" ? vue.unref(height) : ""
62
+ })
63
+ }, [
64
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$3.Tables), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
65
+ height: vue.unref(height),
66
+ ref_key: "refTable",
67
+ ref: refTable,
68
+ class: [
69
+ vue.unref(cs).z("main"),
70
+ vue.unref(cs).is("radio", (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.isradio),
71
+ vue.unref(cs).is("scroll", vue.unref(paginat).is && vue.unref(paginat).scroll)
72
+ ],
73
+ "scroll-selector": "." + vue.unref(cs).ec("scrollbar") + " ." + vue.unref(cs).ec("scrollbar", "", "wrap"),
74
+ "sortable-selector": "." + vue.unref(cs).ec("table", "", "body-wrapper") + " tbody",
75
+ value: vue.unref(data$1).list,
76
+ list: vue.unref(tableList),
77
+ size: (_b = vue.unref(tableConfig).config) == null ? void 0 : _b.size,
78
+ paginat: vue.unref(paginat),
79
+ loading: ((_c = vue.unref(tableConfig).config) == null ? void 0 : _c.noloading) || vue.unref(paginat).scroll && vue.unref(paginat).current > 1 ? false : vue.unref(loading),
80
+ options: vue.unref(props).options,
81
+ compons: vue.unref(props).compons,
82
+ onSortChange: vue.unref(onSortChange),
83
+ onListEvents: vue.unref(onListEvents),
84
+ onSelect: vue.unref(onSelect),
85
+ onRowClick: vue.unref(onRowClick),
86
+ onSelectionChange: vue.unref(onChange)
87
+ }), vue.createSlots({ _: 2 }, [
88
+ vue.renderList(Object.keys(vue.unref(slots)), (k) => {
89
+ return {
90
+ name: k,
91
+ fn: vue.withCtx((scope) => [
92
+ vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
93
+ ])
94
+ };
95
+ })
96
+ ]), 1040, ["height", "class", "scroll-selector", "sortable-selector", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
97
+ [vue.unref(index$4.default), vue.unref(scroll)],
98
+ [vue.unref(index$5.default), vue.unref(sortable)]
99
+ ]),
100
+ ((_d = vue.unref(paginat)) == null ? void 0 : _d.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
101
+ class: vue.unref(cs).z("paginat"),
102
+ paginat: vue.unref(paginat),
103
+ total: vue.unref(data$1).total,
104
+ onSizeChange: vue.unref(onSizeChange),
105
+ onCurrentChange: vue.unref(onCurrentChange)
106
+ }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("", true)
107
+ ], 6);
108
+ };
109
+ }
110
+ });
111
+ exports.default = _sfc_main;