@fangzhongya/fang-ui 0.1.20 → 0.1.22

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 (81) hide show
  1. package/dist/components/array/src/data.cjs +4 -0
  2. package/dist/components/array/src/data.d.ts +4 -0
  3. package/dist/components/array/src/data.js +4 -0
  4. package/dist/components/array/src/index2.cjs +22 -21
  5. package/dist/components/array/src/index2.js +12 -11
  6. package/dist/components/common/compons.cjs +4 -2
  7. package/dist/components/common/compons.d.ts +1 -1
  8. package/dist/components/common/compons.js +4 -2
  9. package/dist/components/forms/src/data.cjs +2 -2
  10. package/dist/components/forms/src/data.js +2 -2
  11. package/dist/components/forms-div/src/index2.cjs +4 -3
  12. package/dist/components/forms-div/src/index2.js +3 -2
  13. package/dist/components/forms-item/src/label.cjs +3 -2
  14. package/dist/components/forms-item/src/label.js +3 -2
  15. package/dist/components/index.cjs +16 -14
  16. package/dist/components/index.d.ts +1 -0
  17. package/dist/components/index.js +2 -0
  18. package/dist/components/index.scss +1 -0
  19. package/dist/components/index2.scss +3 -1
  20. package/dist/components/list/src/index2.cjs +16 -15
  21. package/dist/components/list/src/index2.js +17 -16
  22. package/dist/components/lists/index.css +2 -2
  23. package/dist/components/lists/index.scss +7 -2
  24. package/dist/components/lists/src/data.cjs +12 -1
  25. package/dist/components/lists/src/data.d.ts +10 -0
  26. package/dist/components/lists/src/data.js +12 -1
  27. package/dist/components/lists/src/index2.cjs +7 -5
  28. package/dist/components/lists/src/index2.js +7 -5
  29. package/dist/components/listsp/index.css +2 -2
  30. package/dist/components/listsp/src/data.d.ts +1 -5
  31. package/dist/components/listspd/index.cjs +9 -0
  32. package/dist/components/listspd/index.css +99 -0
  33. package/dist/components/listspd/index.d.ts +4 -0
  34. package/dist/components/listspd/index.js +9 -0
  35. package/dist/components/listspd/index.scss +30 -0
  36. package/dist/components/listspd/src/data.cjs +13 -0
  37. package/dist/components/listspd/src/data.d.ts +14 -0
  38. package/dist/components/listspd/src/data.js +13 -0
  39. package/dist/components/listspd/src/index.cjs +4 -0
  40. package/dist/components/listspd/src/index.js +4 -0
  41. package/dist/components/listspd/src/index2.cjs +111 -0
  42. package/dist/components/listspd/src/index2.js +111 -0
  43. package/dist/components/listspd/style/index2.scss +4 -0
  44. package/dist/components/tables/common/config.cjs +1 -1
  45. package/dist/components/tables/common/config.js +1 -1
  46. package/dist/css/index.css +26 -2
  47. package/dist/css/lists.css +2 -2
  48. package/dist/css/listsp.css +2 -2
  49. package/dist/css/listspd.css +99 -0
  50. package/dist/directives/adjust/index.cjs +10 -6
  51. package/dist/directives/adjust/index.js +10 -6
  52. package/dist/directives/sortable/index.cjs +2 -2
  53. package/dist/directives/sortable/index.js +1 -1
  54. package/dist/expand/{chunk-OT6GISSR.cjs → chunk-2L4PC7LZ.cjs} +2 -0
  55. package/dist/expand/{chunk-2BLP2ANQ.js → chunk-RBGCE6BS.js} +2 -0
  56. package/dist/expand/components.cjs +5 -5
  57. package/dist/expand/components.js +1 -1
  58. package/dist/expand/config.cjs +2 -2
  59. package/dist/expand/config.js +1 -1
  60. package/dist/hooks/global-config/index.cjs +2 -6
  61. package/dist/hooks/global-config/index.js +2 -6
  62. package/dist/icons/index.json +1 -1
  63. package/dist/index.cjs +38 -36
  64. package/dist/{components/index.css → index.css} +26 -2
  65. package/dist/index.js +2 -0
  66. package/package.json +5 -5
  67. package/dist/directives/adjust/index copy 2.d.ts +0 -6
  68. package/dist/directives/adjust/index copy 3.d.ts +0 -6
  69. package/dist/directives/adjust/index copy 4.d.ts +0 -6
  70. package/dist/directives/adjust/index copy 5.d.ts +0 -6
  71. package/dist/directives/adjust/index copy 6.d.ts +0 -6
  72. package/dist/directives/adjust/index copy 7.d.ts +0 -6
  73. package/dist/directives/adjust/index copy 8.d.ts +0 -6
  74. package/dist/directives/adjust/index copy 9.d.ts +0 -6
  75. package/dist/directives/adjust/index copy.d.ts +0 -6
  76. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +0 -2758
  77. package/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.js +0 -2758
  78. /package/dist/components/{forms-items → forms-item}/index.css +0 -0
  79. /package/dist/components/{global-config → popover}/index.css +0 -0
  80. /package/dist/css/{forms-items.css → forms-item.css} +0 -0
  81. /package/dist/css/{global-config.css → popover.css} +0 -0
@@ -107,18 +107,29 @@ const dataProps = {
107
107
  type: Number,
108
108
  default: 1
109
109
  },
110
+ rowKey: {
111
+ type: String
112
+ },
110
113
  /**
111
114
  * @props { String } interval='6px'
112
115
  * 查询模式的上下间距
113
116
  */
114
117
  interval: {
115
118
  type: String,
116
- default: "6px"
119
+ default: "8px"
120
+ },
121
+ /**
122
+ * @props { String } intervalHorizon
123
+ * 查询模式的左右间距
124
+ */
125
+ intervalHorizon: {
126
+ type: String
117
127
  }
118
128
  };
119
129
  const dataEmits = [
120
130
  "sort-change",
121
131
  "scroll-bottom",
132
+ "selection-change",
122
133
  "scope-click",
123
134
  "selection-list",
124
135
  "list-events",
@@ -152,7 +152,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
152
152
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
153
153
  class: vue.unref(cs).z(),
154
154
  style: vue.unref(cs).vdo({
155
- interval: vue.unref(props).interval
155
+ interval: vue.unref(props).interval,
156
+ intervalHorizon: vue.unref(props).intervalHorizon
156
157
  })
157
158
  }, vue.unref(attrs).root), [
158
159
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
@@ -172,6 +173,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
172
173
  vue.unref(cs).is("active", rows.value === item),
173
174
  vue.unref(cs).is("selected", selections.value.includes(item))
174
175
  ]),
176
+ key: vue.unref(props).rowKey ? item[vue.unref(props).rowKey] : index2,
175
177
  style: vue.normalizeStyle(setStyles(item)),
176
178
  onClick: ($event) => onClick(item, index2)
177
179
  }, [
@@ -199,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
199
201
  return {
200
202
  name: k,
201
203
  fn: vue.withCtx((scope) => [
202
- vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
204
+ vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope || {}))
203
205
  ])
204
206
  };
205
207
  })
@@ -222,7 +224,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
222
224
  return {
223
225
  name: k,
224
226
  fn: vue.withCtx((scope) => [
225
- vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
227
+ vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope || {}))
226
228
  ])
227
229
  };
228
230
  })
@@ -245,7 +247,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
245
247
  return {
246
248
  name: k,
247
249
  fn: vue.withCtx((scope) => [
248
- vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope))
250
+ vue.renderSlot(_ctx.$slots, k, vue.mergeProps({ ref_for: true }, scope || {}))
249
251
  ])
250
252
  };
251
253
  })
@@ -256,7 +258,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
256
258
  ]), 1024)
257
259
  ])
258
260
  ], 14, _hoisted_1);
259
- }), 256)) : vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).noData, { key: 1 }, () => [
261
+ }), 128)) : vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).noData, { key: 1 }, () => [
260
262
  vue.createVNode(vue.unref(index$6.NoData))
261
263
  ])
262
264
  ], 6)), [
@@ -150,7 +150,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
150
150
  return openBlock(), createElementBlock("div", mergeProps({
151
151
  class: unref(cs).z(),
152
152
  style: unref(cs).vdo({
153
- interval: unref(props).interval
153
+ interval: unref(props).interval,
154
+ intervalHorizon: unref(props).intervalHorizon
154
155
  })
155
156
  }, unref(attrs).root), [
156
157
  withDirectives((openBlock(), createElementBlock("div", {
@@ -170,6 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
170
171
  unref(cs).is("active", rows.value === item),
171
172
  unref(cs).is("selected", selections.value.includes(item))
172
173
  ]),
174
+ key: unref(props).rowKey ? item[unref(props).rowKey] : index,
173
175
  style: normalizeStyle(setStyles(item)),
174
176
  onClick: ($event) => onClick(item, index)
175
177
  }, [
@@ -197,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
197
199
  return {
198
200
  name: k,
199
201
  fn: withCtx((scope) => [
200
- renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope))
202
+ renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope || {}))
201
203
  ])
202
204
  };
203
205
  })
@@ -220,7 +222,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
220
222
  return {
221
223
  name: k,
222
224
  fn: withCtx((scope) => [
223
- renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope))
225
+ renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope || {}))
224
226
  ])
225
227
  };
226
228
  })
@@ -243,7 +245,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
243
245
  return {
244
246
  name: k,
245
247
  fn: withCtx((scope) => [
246
- renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope))
248
+ renderSlot(_ctx.$slots, k, mergeProps({ ref_for: true }, scope || {}))
247
249
  ])
248
250
  };
249
251
  })
@@ -254,7 +256,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
254
256
  ]), 1024)
255
257
  ])
256
258
  ], 14, _hoisted_1);
257
- }), 256)) : renderSlot(_ctx.$slots, unref(dataSlot).noData, { key: 1 }, () => [
259
+ }), 128)) : renderSlot(_ctx.$slots, unref(dataSlot).noData, { key: 1 }, () => [
258
260
  createVNode(unref(NoData))
259
261
  ])
260
262
  ], 6)), [
@@ -22,7 +22,7 @@
22
22
  background-color: #eee;
23
23
  }
24
24
  .lists-list {
25
- padding: 0 var(--lists-interval);
25
+ padding: 0 var(--lists-interval-horizon, var(--lists-interval));
26
26
  }
27
27
  .lists-list.is-absolute {
28
28
  position: absolute;
@@ -37,7 +37,7 @@
37
37
  }
38
38
  .lists-list-item {
39
39
  background-color: #fff;
40
- margin: 0 var(--lists-interval);
40
+ margin: 0 var(--lists-interval-horizon, var(--lists-interval));
41
41
  margin-bottom: calc(var(--lists-interval) * 2);
42
42
  }
43
43
  .lists-list-item.is-active {
@@ -1,10 +1,6 @@
1
1
  import { ExtractPublicPropTypes } from 'vue';
2
2
  /**
3
- * @title {h2} TablesPagin 输入框
4
- * @text 目前完全继承 element-plus 中 el-tables-pagin
5
- */
6
- /**
7
- * @title {h3}
3
+ * @title {h3} listsp
8
4
  */
9
5
  export declare const name = "listsp";
10
6
  export declare const dataProps: {};
@@ -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 Listspd = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "Listspd");
8
+ exports.Listspd = Listspd;
9
+ exports.default = Listspd;
@@ -0,0 +1,99 @@
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
+ .lists {
16
+ width: 100%;
17
+ min-height: 100px;
18
+ position: relative;
19
+ flex: 1;
20
+ display: flex;
21
+ flex-direction: column;
22
+ background-color: #eee;
23
+ }
24
+ .lists-list {
25
+ padding: 0 var(--lists-interval-horizon, var(--lists-interval));
26
+ }
27
+ .lists-list.is-absolute {
28
+ position: absolute;
29
+ inset: 0;
30
+ overflow-y: auto;
31
+ }
32
+ .lists-list--column .lists-list-item {
33
+ display: inline-block;
34
+ }
35
+ .lists-list-item:first-child {
36
+ margin-top: calc(var(--lists-interval) * 2);
37
+ }
38
+ .lists-list-item {
39
+ background-color: #fff;
40
+ margin: 0 var(--lists-interval-horizon, var(--lists-interval));
41
+ margin-bottom: calc(var(--lists-interval) * 2);
42
+ }
43
+ .lists-list-item.is-active {
44
+ background-color: rgb(250, 235, 215);
45
+ }
46
+ .lists-list-item.is-selected {
47
+ background-color: rgb(215, 250, 224);
48
+ }
49
+ .lists-list-item .el-card {
50
+ background-color: transparent;
51
+ }
52
+
53
+ .paging {
54
+ width: 100%;
55
+ padding: 10px;
56
+ }
57
+ .paging-pagination {
58
+ width: 100%;
59
+ }
60
+ .paging-slot {
61
+ padding-left: 10px;
62
+ font-size: 14px;
63
+ font-weight: 400;
64
+ color: #9b9b9b;
65
+ white-space: pre-wrap;
66
+ }
67
+ .paging-slot > span {
68
+ margin-right: 10px;
69
+ white-space: nowrap;
70
+ }
71
+ .paging .el-pagination__total {
72
+ font-size: 14px;
73
+ font-weight: 400;
74
+ color: #9b9b9b;
75
+ }
76
+
77
+ .listspd {
78
+ width: 100%;
79
+ flex: 1;
80
+ display: flex;
81
+ flex-direction: column;
82
+ }
83
+ .listspd-main {
84
+ display: flex;
85
+ flex-direction: column;
86
+ flex: 1;
87
+ width: 100%;
88
+ }
89
+ .listspd-main.is-scroll .v-scroll-add {
90
+ text-align: center;
91
+ padding: 10px;
92
+ color: #999;
93
+ }
94
+ .listspd-paginat {
95
+ overflow: hidden;
96
+ }
97
+ .listspd-paginat .el-pagination {
98
+ justify-content: flex-end;
99
+ }
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/vues';
2
+ import { DefineComponent } from 'vue';
3
+ declare const Listspd: SFCWithInstall<DefineComponent<{}, {}, any>>;
4
+ export { Listspd, Listspd 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 Listspd = withInstall(_sfc_main, "Listspd");
6
+ export {
7
+ Listspd,
8
+ Listspd as default
9
+ };
@@ -0,0 +1,30 @@
1
+ @use '../scss/common.scss' as *;
2
+ @use '../lists/index.scss' as *;
3
+ @use '../paging/index.scss' as *;
4
+ $listspd: 'listspd';
5
+ @include b($listspd) {
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('scroll')} {
17
+ .v-scroll-add {
18
+ text-align: center;
19
+ padding: 10px;
20
+ color: #999;
21
+ }
22
+ }
23
+ }
24
+ &-paginat {
25
+ overflow: hidden;
26
+ .#{e()}pagination {
27
+ justify-content: flex-end;
28
+ }
29
+ }
30
+ }
@@ -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 = "listspd";
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,14 @@
1
+ import { ExtractPublicPropTypes } from 'vue';
2
+ /**
3
+ * @title {h3} listspd
4
+ */
5
+ export declare const name = "listspd";
6
+ export declare const dataProps: {};
7
+ export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
8
+ export declare const dataEmits: never[];
9
+ export type DataEmits = typeof dataEmits;
10
+ export declare const dataSlot: {};
11
+ /**
12
+ * @expose refEl 获取当前组件在element-plus中暴露的方法
13
+ */
14
+ export declare const dataExpose: {};
@@ -0,0 +1,13 @@
1
+ import { buildProps } from "../../../utils/vues/buildProps.js";
2
+ const name = "listspd";
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("../../lists/index.cjs");
5
+ const data$1 = require("../../lists/src/data.cjs");
6
+ const index$6 = require("../../paging/index.cjs");
7
+ const index$4 = require("../../../directives/scroll/index.cjs");
8
+ const index$5 = require("../../../directives/sortable/index.cjs");
9
+ const data = require("./data.cjs");
10
+ const pagin = require("../../tables/common/pagin.cjs");
11
+ const index$1 = require("../../../hooks/cssname/index.cjs");
12
+ const index = require("../../../hooks/locale/index.cjs");
13
+ const index$2 = require("../../../hooks/props-default/index.cjs");
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ __name: "index",
16
+ props: index$2.getProps(pagin.dataProps),
17
+ emits: pagin.dataEmit,
18
+ setup(__props, { expose: __expose, emit: __emit }) {
19
+ const { getLocale } = index.useLocale();
20
+ const cs = index$1.useCssName(data.name);
21
+ const slots = vue.useSlots();
22
+ const prs = __props;
23
+ const props = index$2.usePropsDefault(data.name, prs, pagin.dataProps);
24
+ index$2.viewProps(props, data.name);
25
+ const emit = __emit;
26
+ const refTable = vue.ref();
27
+ const {
28
+ height,
29
+ getSelection,
30
+ initData,
31
+ getData,
32
+ empty,
33
+ loading,
34
+ tableList,
35
+ tableConfig,
36
+ scroll,
37
+ sortable,
38
+ onSortChange,
39
+ onListEvents,
40
+ onSelect,
41
+ onRowClick,
42
+ onChange,
43
+ pagconfig,
44
+ formEvent,
45
+ onSizeChange,
46
+ onCurrentChange,
47
+ paginat,
48
+ data: data$2
49
+ } = pagin.useInit(props, emit, refTable, getLocale, true);
50
+ __expose({
51
+ getSelection,
52
+ initData,
53
+ getData,
54
+ getList: initData,
55
+ empty
56
+ });
57
+ return (_ctx, _cache) => {
58
+ var _a, _b, _c;
59
+ return vue.openBlock(), vue.createElementBlock("div", {
60
+ class: vue.normalizeClass(vue.unref(cs).z()),
61
+ style: vue.normalizeStyle({
62
+ height: vue.unref(height) == "100%" ? vue.unref(height) : ""
63
+ })
64
+ }, [
65
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$3.Lists), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
66
+ height: vue.unref(height),
67
+ ref_key: "refTable",
68
+ ref: refTable,
69
+ class: [
70
+ vue.unref(cs).z("main"),
71
+ vue.unref(cs).is("scroll", vue.unref(paginat).is && vue.unref(paginat).scroll)
72
+ ],
73
+ "scroll-selector": "." + vue.unref(cs).c(vue.unref(data$1.name), "list"),
74
+ "sortable-selector": "." + vue.unref(cs).c(vue.unref(data$1.name), "list"),
75
+ size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
76
+ paginat: vue.unref(paginat),
77
+ value: vue.unref(data$2).list,
78
+ list: vue.unref(tableList),
79
+ loading: ((_b = vue.unref(tableConfig).config) == null ? void 0 : _b.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", "size", "paginat", "value", "list", "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
+ ((_c = vue.unref(paginat)) == null ? void 0 : _c.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$2).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;
@@ -0,0 +1,111 @@
1
+ import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeStyle, unref, normalizeClass, withDirectives, createBlock, createCommentVNode, mergeProps, toHandlers, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
+ import { Lists } from "../../lists/index.js";
3
+ import { name as name$1 } from "../../lists/src/data.js";
4
+ import { Paging } from "../../paging/index.js";
5
+ import vScroll from "../../../directives/scroll/index.js";
6
+ import vSortable from "../../../directives/sortable/index.js";
7
+ import { name } from "./data.js";
8
+ import { dataProps, useInit, dataEmit } from "../../tables/common/pagin.js";
9
+ import { useCssName } from "../../../hooks/cssname/index.js";
10
+ import { useLocale } from "../../../hooks/locale/index.js";
11
+ import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ __name: "index",
14
+ props: getProps(dataProps),
15
+ emits: dataEmit,
16
+ setup(__props, { expose: __expose, emit: __emit }) {
17
+ const { getLocale } = useLocale();
18
+ const cs = useCssName(name);
19
+ const slots = useSlots();
20
+ const prs = __props;
21
+ const props = usePropsDefault(name, prs, dataProps);
22
+ viewProps(props, name);
23
+ const emit = __emit;
24
+ const refTable = ref();
25
+ const {
26
+ height,
27
+ getSelection,
28
+ initData,
29
+ getData,
30
+ empty,
31
+ loading,
32
+ tableList,
33
+ tableConfig,
34
+ scroll,
35
+ sortable,
36
+ onSortChange,
37
+ onListEvents,
38
+ onSelect,
39
+ onRowClick,
40
+ onChange,
41
+ pagconfig,
42
+ formEvent,
43
+ onSizeChange,
44
+ onCurrentChange,
45
+ paginat,
46
+ data
47
+ } = useInit(props, emit, refTable, getLocale, true);
48
+ __expose({
49
+ getSelection,
50
+ initData,
51
+ getData,
52
+ getList: initData,
53
+ empty
54
+ });
55
+ return (_ctx, _cache) => {
56
+ var _a, _b, _c;
57
+ return openBlock(), createElementBlock("div", {
58
+ class: normalizeClass(unref(cs).z()),
59
+ style: normalizeStyle({
60
+ height: unref(height) == "100%" ? unref(height) : ""
61
+ })
62
+ }, [
63
+ withDirectives((openBlock(), createBlock(unref(Lists), mergeProps(unref(tableConfig).config, toHandlers(unref(formEvent)), {
64
+ height: unref(height),
65
+ ref_key: "refTable",
66
+ ref: refTable,
67
+ class: [
68
+ unref(cs).z("main"),
69
+ unref(cs).is("scroll", unref(paginat).is && unref(paginat).scroll)
70
+ ],
71
+ "scroll-selector": "." + unref(cs).c(unref(name$1), "list"),
72
+ "sortable-selector": "." + unref(cs).c(unref(name$1), "list"),
73
+ size: (_a = unref(tableConfig).config) == null ? void 0 : _a.size,
74
+ paginat: unref(paginat),
75
+ value: unref(data).list,
76
+ list: unref(tableList),
77
+ loading: ((_b = unref(tableConfig).config) == null ? void 0 : _b.noloading) || unref(paginat).scroll && unref(paginat).current > 1 ? false : unref(loading),
78
+ options: unref(props).options,
79
+ compons: unref(props).compons,
80
+ onSortChange: unref(onSortChange),
81
+ onListEvents: unref(onListEvents),
82
+ onSelect: unref(onSelect),
83
+ onRowClick: unref(onRowClick),
84
+ onSelectionChange: unref(onChange)
85
+ }), createSlots({ _: 2 }, [
86
+ renderList(Object.keys(unref(slots)), (k) => {
87
+ return {
88
+ name: k,
89
+ fn: withCtx((scope) => [
90
+ renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
91
+ ])
92
+ };
93
+ })
94
+ ]), 1040, ["height", "class", "scroll-selector", "sortable-selector", "size", "paginat", "value", "list", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
95
+ [unref(vScroll), unref(scroll)],
96
+ [unref(vSortable), unref(sortable)]
97
+ ]),
98
+ ((_c = unref(paginat)) == null ? void 0 : _c.is) && !unref(paginat).scroll ? (openBlock(), createBlock(unref(Paging), mergeProps({ key: 0 }, unref(pagconfig), {
99
+ class: unref(cs).z("paginat"),
100
+ paginat: unref(paginat),
101
+ total: unref(data).total,
102
+ onSizeChange: unref(onSizeChange),
103
+ onCurrentChange: unref(onCurrentChange)
104
+ }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : createCommentVNode("", true)
105
+ ], 6);
106
+ };
107
+ }
108
+ });
109
+ export {
110
+ _sfc_main as default
111
+ };
@@ -0,0 +1,4 @@
1
+ @use '../../lists/style/index2.scss' as *;
2
+ @use '../../paging/style/index2.scss' as *;
3
+
4
+ @use '../index.scss' as *;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const provides = {
4
- compons: "tables-compons"
4
+ compons: "table-compons"
5
5
  };
6
6
  exports.provides = provides;
@@ -1,5 +1,5 @@
1
1
  const provides = {
2
- compons: "tables-compons"
2
+ compons: "table-compons"
3
3
  };
4
4
  export {
5
5
  provides
@@ -1628,7 +1628,7 @@
1628
1628
  background-color: #eee;
1629
1629
  }
1630
1630
  .lists-list {
1631
- padding: 0 var(--lists-interval);
1631
+ padding: 0 var(--lists-interval-horizon, var(--lists-interval));
1632
1632
  }
1633
1633
  .lists-list.is-absolute {
1634
1634
  position: absolute;
@@ -1643,7 +1643,7 @@
1643
1643
  }
1644
1644
  .lists-list-item {
1645
1645
  background-color: #fff;
1646
- margin: 0 var(--lists-interval);
1646
+ margin: 0 var(--lists-interval-horizon, var(--lists-interval));
1647
1647
  margin-bottom: calc(var(--lists-interval) * 2);
1648
1648
  }
1649
1649
  .lists-list-item.is-active {
@@ -1680,6 +1680,30 @@
1680
1680
  justify-content: flex-end;
1681
1681
  }
1682
1682
 
1683
+ .listspd {
1684
+ width: 100%;
1685
+ flex: 1;
1686
+ display: flex;
1687
+ flex-direction: column;
1688
+ }
1689
+ .listspd-main {
1690
+ display: flex;
1691
+ flex-direction: column;
1692
+ flex: 1;
1693
+ width: 100%;
1694
+ }
1695
+ .listspd-main.is-scroll .v-scroll-add {
1696
+ text-align: center;
1697
+ padding: 10px;
1698
+ color: #999;
1699
+ }
1700
+ .listspd-paginat {
1701
+ overflow: hidden;
1702
+ }
1703
+ .listspd-paginat .el-pagination {
1704
+ justify-content: flex-end;
1705
+ }
1706
+
1683
1707
  .tablespd {
1684
1708
  width: 100%;
1685
1709
  flex: 1;