@fangzhongya/fang-ui 0.0.15 → 0.0.16

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 (66) hide show
  1. package/dist/components/array/index.scss +5 -9
  2. package/dist/components/choice-select/src/data.cjs +1 -1
  3. package/dist/components/choice-select/src/data.js +1 -1
  4. package/dist/components/company-select/src/data.cjs +1 -1
  5. package/dist/components/company-select/src/data.js +1 -1
  6. package/dist/components/cs-config/src/data.cjs +1 -1
  7. package/dist/components/cs-config/src/data.js +1 -1
  8. package/dist/components/department-select/src/data.cjs +1 -1
  9. package/dist/components/department-select/src/data.js +1 -1
  10. package/dist/components/dialog/index.scss +4 -4
  11. package/dist/components/drawer/index.scss +1 -1
  12. package/dist/components/el-tables/index.scss +1 -1
  13. package/dist/components/forms/index.scss +7 -7
  14. package/dist/components/forms-item/index.scss +2 -2
  15. package/dist/components/icon/src/data.cjs +1 -1
  16. package/dist/components/icon/src/data.js +1 -1
  17. package/dist/components/icon-picker/src/data.cjs +1 -1
  18. package/dist/components/icon-picker/src/data.js +1 -1
  19. package/dist/components/iframe/src/data.cjs +1 -1
  20. package/dist/components/iframe/src/data.js +1 -1
  21. package/dist/components/index.scss +2 -1
  22. package/dist/components/pagin/index.scss +1 -1
  23. package/dist/components/retract/src/data.cjs +1 -1
  24. package/dist/components/retract/src/data.js +1 -1
  25. package/dist/components/right-key/src/data.cjs +1 -1
  26. package/dist/components/right-key/src/data.js +1 -1
  27. package/dist/components/role-select/src/data.cjs +1 -1
  28. package/dist/components/role-select/src/data.js +1 -1
  29. package/dist/components/select-dialog/src/data.cjs +1 -1
  30. package/dist/components/select-dialog/src/data.js +1 -1
  31. package/dist/components/select-popover/src/data.cjs +1 -1
  32. package/dist/components/select-popover/src/data.js +1 -1
  33. package/dist/components/table-list/src/data.cjs +1 -1
  34. package/dist/components/table-list/src/data.js +1 -1
  35. package/dist/components/tables/index.cjs +3 -2
  36. package/dist/components/tables/index.css +24 -5
  37. package/dist/components/tables/index.js +3 -2
  38. package/dist/components/tables/index.scss +32 -0
  39. package/dist/components/tables/index.ts +1 -0
  40. package/dist/components/tables/src/index.cjs +113 -5
  41. package/dist/components/tables/src/index.js +113 -5
  42. package/dist/components/tables/src/index.vue +1 -34
  43. package/dist/components/tables/src/index2.cjs +2 -113
  44. package/dist/components/tables/src/index2.js +1 -112
  45. package/dist/components/tables-pagin/index.scss +4 -4
  46. package/dist/components/tree-select-box/src/data.cjs +1 -1
  47. package/dist/components/tree-select-box/src/data.js +1 -1
  48. package/dist/components/user-select/src/data.cjs +1 -1
  49. package/dist/components/user-select/src/data.js +1 -1
  50. package/dist/components/vxe-tables/index.scss +6 -6
  51. package/dist/directives/index.cjs +8 -8
  52. package/dist/directives/index.d.ts +3 -3
  53. package/dist/directives/index.js +8 -8
  54. package/dist/directives/index.ts +3 -3
  55. package/dist/icons/vue/index.cjs +4 -4
  56. package/dist/icons/vue/index.d.ts +2 -2
  57. package/dist/icons/vue/index.js +8 -8
  58. package/dist/icons/vue/index.ts +3 -3
  59. package/dist/index.cjs +8 -8
  60. package/dist/index.css +23 -0
  61. package/dist/index.js +8 -8
  62. package/dist/utils/index.d.ts +1 -1
  63. package/dist/utils/index.ts +1 -1
  64. package/dist/utils/vues/index.d.ts +1 -1
  65. package/dist/utils/vues/index.ts +1 -1
  66. package/package.json +5 -5
@@ -0,0 +1,32 @@
1
+ @use '../css/common.scss' as *;
2
+
3
+ $tables-pag: 'tables-pag';
4
+ @include b($tables-pag) {
5
+ width: 100%;
6
+ height: 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
+ }
26
+ &-paginat {
27
+ overflow: hidden;
28
+ .#{e()}pagination {
29
+ justify-content: flex-end;
30
+ }
31
+ }
32
+ }
@@ -1,3 +1,4 @@
1
+ import './index.scss';
1
2
  import { withInstall } from '../../utils/vues/withInstall'
2
3
  import SrcVue from './src/index.vue'
3
4
  const Tables = withInstall(SrcVue, 'Tables');
@@ -1,7 +1,115 @@
1
1
  "use strict";
2
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
- ;/* empty css */
5
- const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.cjs");
6
- const SrcVue = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-c77f76db"]]);
7
- exports.default = SrcVue;
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");
8
+ const index = require("../../../hooks/cssname/index.cjs");
9
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
+ __name: "index",
11
+ props: pagin.dataProps,
12
+ emits: pagin.dataEmit,
13
+ setup(__props, { expose: __expose, emit: __emit }) {
14
+ const cs = index.useCssName("tables-pag");
15
+ const slots = vue.useSlots();
16
+ const props = __props;
17
+ 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);
40
+ __expose({
41
+ getSelection,
42
+ initData,
43
+ getList: getData,
44
+ empty
45
+ });
46
+ return (_ctx, _cache) => {
47
+ var _a, _b, _c, _d;
48
+ return vue.openBlock(), vue.createElementBlock("div", {
49
+ class: vue.normalizeClass(vue.unref(cs).z())
50
+ }, [
51
+ 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)), {
52
+ ref_key: "refTable",
53
+ ref: refTable,
54
+ class: [vue.unref(cs).z("main")],
55
+ size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
56
+ value: vue.unref(data).list,
57
+ list: vue.unref(tableList),
58
+ paginat: vue.unref(paginat),
59
+ loading: vue.unref(loading),
60
+ options: props.options,
61
+ compons: props.compons,
62
+ onSortChange: vue.unref(onSortChange),
63
+ onRadioChange: vue.unref(onRadioChange),
64
+ onSelectionChange: vue.unref(onChange),
65
+ onListEvents: vue.unref(onListEvents)
66
+ }), vue.createSlots({ _: 2 }, [
67
+ vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
68
+ return {
69
+ name: k,
70
+ fn: vue.withCtx((scope) => [
71
+ vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
72
+ ])
73
+ };
74
+ })
75
+ ]), 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)), {
76
+ ref_key: "refTable",
77
+ ref: refTable,
78
+ class: [
79
+ vue.unref(cs).z("main"),
80
+ vue.unref(cs).is("radio", (_b = vue.unref(tableConfig).config) == null ? void 0 : _b.isradio)
81
+ ],
82
+ value: vue.unref(data).list,
83
+ list: vue.unref(tableList),
84
+ size: (_c = vue.unref(tableConfig).config) == null ? void 0 : _c.size,
85
+ paginat: vue.unref(paginat),
86
+ loading: vue.unref(loading),
87
+ options: props.options,
88
+ compons: props.compons,
89
+ onSortChange: vue.unref(onSortChange),
90
+ onListEvents: vue.unref(onListEvents),
91
+ onSelect: vue.unref(onSelect),
92
+ onRowClick: vue.unref(onRowClick),
93
+ onSelectionChange: vue.unref(onChange)
94
+ }), vue.createSlots({ _: 2 }, [
95
+ vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
96
+ return {
97
+ name: k,
98
+ fn: vue.withCtx((scope) => [
99
+ vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
100
+ ])
101
+ };
102
+ })
103
+ ]), 1040, ["class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
104
+ ((_d = vue.unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Pagin), vue.mergeProps({ key: 2 }, vue.unref(pagconfig), {
105
+ class: vue.unref(cs).z("paginat"),
106
+ paginat: vue.unref(paginat),
107
+ total: vue.unref(data).total,
108
+ onSizeChange: vue.unref(onSizeChange),
109
+ onCurrentChange: vue.unref(onCurrentChange)
110
+ }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("", true)
111
+ ], 2);
112
+ };
113
+ }
114
+ });
115
+ exports.default = _sfc_main;
@@ -1,7 +1,115 @@
1
- import _sfc_main from "./index2.js";
2
- /* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SrcVue = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c77f76db"]]);
1
+ import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, mergeProps, toHandlers, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
+ import { ElTables } from "../../el-tables/index.js";
3
+ import { VxeTables } from "../../vxe-tables/index.js";
4
+ import { Pagin } from "../../pagin/index.js";
5
+ import { dataEmit, dataProps, useInit } from "../common/pagin.js";
6
+ import { useCssName } from "../../../hooks/cssname/index.js";
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "index",
9
+ props: dataProps,
10
+ emits: dataEmit,
11
+ setup(__props, { expose: __expose, emit: __emit }) {
12
+ const cs = useCssName("tables-pag");
13
+ const slots = useSlots();
14
+ const props = __props;
15
+ const emit = __emit;
16
+ const refTable = ref();
17
+ const {
18
+ getSelection,
19
+ initData,
20
+ getData,
21
+ empty,
22
+ loading,
23
+ tableList,
24
+ tableConfig,
25
+ onRadioChange,
26
+ onSortChange,
27
+ onListEvents,
28
+ onSelect,
29
+ onRowClick,
30
+ onChange,
31
+ pagconfig,
32
+ formEvent,
33
+ onSizeChange,
34
+ onCurrentChange,
35
+ paginat,
36
+ data
37
+ } = useInit(props, emit, refTable);
38
+ __expose({
39
+ getSelection,
40
+ initData,
41
+ getList: getData,
42
+ empty
43
+ });
44
+ return (_ctx, _cache) => {
45
+ var _a, _b, _c, _d;
46
+ return openBlock(), createElementBlock("div", {
47
+ class: normalizeClass(unref(cs).z())
48
+ }, [
49
+ unref(tableConfig).type == 1 ? (openBlock(), createBlock(unref(VxeTables), mergeProps({ key: 0 }, unref(tableConfig).config, toHandlers(unref(formEvent)), {
50
+ ref_key: "refTable",
51
+ ref: refTable,
52
+ class: [unref(cs).z("main")],
53
+ size: (_a = unref(tableConfig).config) == null ? void 0 : _a.size,
54
+ value: unref(data).list,
55
+ list: unref(tableList),
56
+ paginat: unref(paginat),
57
+ loading: unref(loading),
58
+ options: props.options,
59
+ compons: props.compons,
60
+ onSortChange: unref(onSortChange),
61
+ onRadioChange: unref(onRadioChange),
62
+ onSelectionChange: unref(onChange),
63
+ onListEvents: unref(onListEvents)
64
+ }), createSlots({ _: 2 }, [
65
+ renderList(Object.keys(unref(slots)), (k, i) => {
66
+ return {
67
+ name: k,
68
+ fn: withCtx((scope) => [
69
+ renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
70
+ ])
71
+ };
72
+ })
73
+ ]), 1040, ["class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"])) : (openBlock(), createBlock(unref(ElTables), mergeProps({ key: 1 }, unref(tableConfig).config, toHandlers(unref(formEvent)), {
74
+ ref_key: "refTable",
75
+ ref: refTable,
76
+ class: [
77
+ unref(cs).z("main"),
78
+ unref(cs).is("radio", (_b = unref(tableConfig).config) == null ? void 0 : _b.isradio)
79
+ ],
80
+ value: unref(data).list,
81
+ list: unref(tableList),
82
+ size: (_c = unref(tableConfig).config) == null ? void 0 : _c.size,
83
+ paginat: unref(paginat),
84
+ loading: unref(loading),
85
+ options: props.options,
86
+ compons: props.compons,
87
+ onSortChange: unref(onSortChange),
88
+ onListEvents: unref(onListEvents),
89
+ onSelect: unref(onSelect),
90
+ onRowClick: unref(onRowClick),
91
+ onSelectionChange: unref(onChange)
92
+ }), createSlots({ _: 2 }, [
93
+ renderList(Object.keys(unref(slots)), (k, i) => {
94
+ return {
95
+ name: k,
96
+ fn: withCtx((scope) => [
97
+ renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
98
+ ])
99
+ };
100
+ })
101
+ ]), 1040, ["class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
102
+ ((_d = unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (openBlock(), createBlock(unref(Pagin), mergeProps({ key: 2 }, unref(pagconfig), {
103
+ class: unref(cs).z("paginat"),
104
+ paginat: unref(paginat),
105
+ total: unref(data).total,
106
+ onSizeChange: unref(onSizeChange),
107
+ onCurrentChange: unref(onCurrentChange)
108
+ }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : createCommentVNode("", true)
109
+ ], 2);
110
+ };
111
+ }
112
+ });
5
113
  export {
6
- SrcVue as default
114
+ _sfc_main as default
7
115
  };
@@ -80,7 +80,7 @@
80
80
  import { dataProps, dataEmit, useInit } from '../common/pagin';
81
81
  import { useCssName } from '../../../hooks/cssname';
82
82
  import type { Slots } from 'vue';
83
- const cs = useCssName('table-pag');
83
+ const cs = useCssName('tables-pag');
84
84
  const slots: Slots = useSlots();
85
85
  const props = defineProps(dataProps);
86
86
 
@@ -117,36 +117,3 @@
117
117
  empty,
118
118
  });
119
119
  </script>
120
- <style lang="scss" scoped>
121
- $namespace: 'el';
122
- $table-pag: 'table-pag';
123
- .#{$table-pag} {
124
- width: 100%;
125
- height: 100%;
126
- flex: 1;
127
- display: flex;
128
- flex-direction: column;
129
-
130
- .#{$table-pag}-main {
131
- display: flex;
132
- flex-direction: column;
133
- flex: 1;
134
- width: 100%;
135
- &.is-radio {
136
- :deep(.#{$namespace}-table__header) {
137
- .#{$namespace}-table-column--selection {
138
- .#{$namespace}-checkbox {
139
- display: none;
140
- }
141
- }
142
- }
143
- }
144
- }
145
- .#{$table-pag}-paginat {
146
- overflow: hidden;
147
- .#{$namespace}-pagination {
148
- justify-content: flex-end;
149
- }
150
- }
151
- }
152
- </style>
@@ -1,115 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
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");
8
- const index = require("../../../hooks/cssname/index.cjs");
9
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
- __name: "index",
11
- props: pagin.dataProps,
12
- emits: pagin.dataEmit,
13
- setup(__props, { expose: __expose, emit: __emit }) {
14
- const cs = index.useCssName("table-pag");
15
- const slots = vue.useSlots();
16
- const props = __props;
17
- 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);
40
- __expose({
41
- getSelection,
42
- initData,
43
- getList: getData,
44
- empty
45
- });
46
- return (_ctx, _cache) => {
47
- var _a, _b, _c, _d;
48
- return vue.openBlock(), vue.createElementBlock("div", {
49
- class: vue.normalizeClass(vue.unref(cs).z())
50
- }, [
51
- 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)), {
52
- ref_key: "refTable",
53
- ref: refTable,
54
- class: [vue.unref(cs).z("main")],
55
- size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
56
- value: vue.unref(data).list,
57
- list: vue.unref(tableList),
58
- paginat: vue.unref(paginat),
59
- loading: vue.unref(loading),
60
- options: props.options,
61
- compons: props.compons,
62
- onSortChange: vue.unref(onSortChange),
63
- onRadioChange: vue.unref(onRadioChange),
64
- onSelectionChange: vue.unref(onChange),
65
- onListEvents: vue.unref(onListEvents)
66
- }), vue.createSlots({ _: 2 }, [
67
- vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
68
- return {
69
- name: k,
70
- fn: vue.withCtx((scope) => [
71
- vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)), void 0, true)
72
- ])
73
- };
74
- })
75
- ]), 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)), {
76
- ref_key: "refTable",
77
- ref: refTable,
78
- class: [
79
- vue.unref(cs).z("main"),
80
- vue.unref(cs).is("radio", (_b = vue.unref(tableConfig).config) == null ? void 0 : _b.isradio)
81
- ],
82
- value: vue.unref(data).list,
83
- list: vue.unref(tableList),
84
- size: (_c = vue.unref(tableConfig).config) == null ? void 0 : _c.size,
85
- paginat: vue.unref(paginat),
86
- loading: vue.unref(loading),
87
- options: props.options,
88
- compons: props.compons,
89
- onSortChange: vue.unref(onSortChange),
90
- onListEvents: vue.unref(onListEvents),
91
- onSelect: vue.unref(onSelect),
92
- onRowClick: vue.unref(onRowClick),
93
- onSelectionChange: vue.unref(onChange)
94
- }), vue.createSlots({ _: 2 }, [
95
- vue.renderList(Object.keys(vue.unref(slots)), (k, i) => {
96
- return {
97
- name: k,
98
- fn: vue.withCtx((scope) => [
99
- vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)), void 0, true)
100
- ])
101
- };
102
- })
103
- ]), 1040, ["class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
104
- ((_d = vue.unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Pagin), vue.mergeProps({ key: 2 }, vue.unref(pagconfig), {
105
- class: vue.unref(cs).z("paginat"),
106
- paginat: vue.unref(paginat),
107
- total: vue.unref(data).total,
108
- onSizeChange: vue.unref(onSizeChange),
109
- onCurrentChange: vue.unref(onCurrentChange)
110
- }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vue.createCommentVNode("", true)
111
- ], 2);
112
- };
113
- }
114
- });
115
- exports.default = _sfc_main;
3
+ const index_vue_vue_type_script_setup_true_lang = require("./index.cjs");
4
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
@@ -1,115 +1,4 @@
1
- import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeClass, unref, createBlock, createCommentVNode, mergeProps, toHandlers, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
- import { ElTables } from "../../el-tables/index.js";
3
- import { VxeTables } from "../../vxe-tables/index.js";
4
- import { Pagin } from "../../pagin/index.js";
5
- import { dataEmit, dataProps, useInit } from "../common/pagin.js";
6
- import { useCssName } from "../../../hooks/cssname/index.js";
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "index",
9
- props: dataProps,
10
- emits: dataEmit,
11
- setup(__props, { expose: __expose, emit: __emit }) {
12
- const cs = useCssName("table-pag");
13
- const slots = useSlots();
14
- const props = __props;
15
- const emit = __emit;
16
- const refTable = ref();
17
- const {
18
- getSelection,
19
- initData,
20
- getData,
21
- empty,
22
- loading,
23
- tableList,
24
- tableConfig,
25
- onRadioChange,
26
- onSortChange,
27
- onListEvents,
28
- onSelect,
29
- onRowClick,
30
- onChange,
31
- pagconfig,
32
- formEvent,
33
- onSizeChange,
34
- onCurrentChange,
35
- paginat,
36
- data
37
- } = useInit(props, emit, refTable);
38
- __expose({
39
- getSelection,
40
- initData,
41
- getList: getData,
42
- empty
43
- });
44
- return (_ctx, _cache) => {
45
- var _a, _b, _c, _d;
46
- return openBlock(), createElementBlock("div", {
47
- class: normalizeClass(unref(cs).z())
48
- }, [
49
- unref(tableConfig).type == 1 ? (openBlock(), createBlock(unref(VxeTables), mergeProps({ key: 0 }, unref(tableConfig).config, toHandlers(unref(formEvent)), {
50
- ref_key: "refTable",
51
- ref: refTable,
52
- class: [unref(cs).z("main")],
53
- size: (_a = unref(tableConfig).config) == null ? void 0 : _a.size,
54
- value: unref(data).list,
55
- list: unref(tableList),
56
- paginat: unref(paginat),
57
- loading: unref(loading),
58
- options: props.options,
59
- compons: props.compons,
60
- onSortChange: unref(onSortChange),
61
- onRadioChange: unref(onRadioChange),
62
- onSelectionChange: unref(onChange),
63
- onListEvents: unref(onListEvents)
64
- }), createSlots({ _: 2 }, [
65
- renderList(Object.keys(unref(slots)), (k, i) => {
66
- return {
67
- name: k,
68
- fn: withCtx((scope) => [
69
- renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)), void 0, true)
70
- ])
71
- };
72
- })
73
- ]), 1040, ["class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"])) : (openBlock(), createBlock(unref(ElTables), mergeProps({ key: 1 }, unref(tableConfig).config, toHandlers(unref(formEvent)), {
74
- ref_key: "refTable",
75
- ref: refTable,
76
- class: [
77
- unref(cs).z("main"),
78
- unref(cs).is("radio", (_b = unref(tableConfig).config) == null ? void 0 : _b.isradio)
79
- ],
80
- value: unref(data).list,
81
- list: unref(tableList),
82
- size: (_c = unref(tableConfig).config) == null ? void 0 : _c.size,
83
- paginat: unref(paginat),
84
- loading: unref(loading),
85
- options: props.options,
86
- compons: props.compons,
87
- onSortChange: unref(onSortChange),
88
- onListEvents: unref(onListEvents),
89
- onSelect: unref(onSelect),
90
- onRowClick: unref(onRowClick),
91
- onSelectionChange: unref(onChange)
92
- }), createSlots({ _: 2 }, [
93
- renderList(Object.keys(unref(slots)), (k, i) => {
94
- return {
95
- name: k,
96
- fn: withCtx((scope) => [
97
- renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)), void 0, true)
98
- ])
99
- };
100
- })
101
- ]), 1040, ["class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
102
- ((_d = unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (openBlock(), createBlock(unref(Pagin), mergeProps({ key: 2 }, unref(pagconfig), {
103
- class: unref(cs).z("paginat"),
104
- paginat: unref(paginat),
105
- total: unref(data).total,
106
- onSizeChange: unref(onSizeChange),
107
- onCurrentChange: unref(onCurrentChange)
108
- }), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : createCommentVNode("", true)
109
- ], 2);
110
- };
111
- }
112
- });
1
+ import _sfc_main from "./index.js";
113
2
  export {
114
3
  _sfc_main as default
115
4
  };
@@ -13,9 +13,9 @@ $tables-pagin: 'tables-pagin';
13
13
  flex: 1;
14
14
  width: 100%;
15
15
  &.#{is('radio')} {
16
- .#{$namespace}-table__header {
17
- .#{$namespace}-table-column--selection {
18
- .#{$namespace}-checkbox {
16
+ .#{e()}table__header {
17
+ .#{e()}table-column--selection {
18
+ .#{e()}checkbox {
19
19
  display: none;
20
20
  }
21
21
  }
@@ -24,7 +24,7 @@ $tables-pagin: 'tables-pagin';
24
24
  }
25
25
  &-paginat {
26
26
  overflow: hidden;
27
- .#{$namespace}-pagination {
27
+ .#{e()}pagination {
28
28
  justify-content: flex-end;
29
29
  }
30
30
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const buildProps = require("../../../utils/vues/buildProps.cjs");
3
4
  require("vue");
4
5
  require("@fangzhongya/utils/basic/string/splitUpper");
5
6
  require("@fangzhongya/utils/basic/array/isArray");
@@ -13,7 +14,6 @@ require("@fangzhongya/utils/name/humpToLine");
13
14
  require("@fangzhongya/utils/basic/object/deepCopy");
14
15
  require("@fangzhongya/utils/basic/Array/toggleArray");
15
16
  require("@fangzhongya/utils/basic/object/objValue");
16
- const buildProps = require("../../../utils/vues/buildProps.cjs");
17
17
  const definePropType = require("../../../utils/vues/definePropType.cjs");
18
18
  require("../../../utils/vues/getBuildProps.cjs");
19
19
  require("../../../utils/vues/withInstall.cjs");
@@ -1,3 +1,4 @@
1
+ import { buildProps } from "../../../utils/vues/buildProps.js";
1
2
  import "vue";
2
3
  import "@fangzhongya/utils/basic/string/splitUpper";
3
4
  import "@fangzhongya/utils/basic/array/isArray";
@@ -11,7 +12,6 @@ import "@fangzhongya/utils/name/humpToLine";
11
12
  import "@fangzhongya/utils/basic/object/deepCopy";
12
13
  import "@fangzhongya/utils/basic/Array/toggleArray";
13
14
  import "@fangzhongya/utils/basic/object/objValue";
14
- import { buildProps } from "../../../utils/vues/buildProps.js";
15
15
  import { definePropType } from "../../../utils/vues/definePropType.js";
16
16
  import "../../../utils/vues/getBuildProps.js";
17
17
  import "../../../utils/vues/withInstall.js";
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const buildProps = require("../../../utils/vues/buildProps.cjs");
3
4
  require("vue");
4
5
  require("@fangzhongya/utils/basic/string/splitUpper");
5
6
  require("@fangzhongya/utils/basic/array/isArray");
@@ -13,7 +14,6 @@ require("@fangzhongya/utils/name/humpToLine");
13
14
  require("@fangzhongya/utils/basic/object/deepCopy");
14
15
  require("@fangzhongya/utils/basic/Array/toggleArray");
15
16
  require("@fangzhongya/utils/basic/object/objValue");
16
- const buildProps = require("../../../utils/vues/buildProps.cjs");
17
17
  const definePropType = require("../../../utils/vues/definePropType.cjs");
18
18
  require("../../../utils/vues/getBuildProps.cjs");
19
19
  require("../../../utils/vues/withInstall.cjs");
@@ -1,3 +1,4 @@
1
+ import { buildProps } from "../../../utils/vues/buildProps.js";
1
2
  import "vue";
2
3
  import "@fangzhongya/utils/basic/string/splitUpper";
3
4
  import "@fangzhongya/utils/basic/array/isArray";
@@ -11,7 +12,6 @@ import "@fangzhongya/utils/name/humpToLine";
11
12
  import "@fangzhongya/utils/basic/object/deepCopy";
12
13
  import "@fangzhongya/utils/basic/Array/toggleArray";
13
14
  import "@fangzhongya/utils/basic/object/objValue";
14
- import { buildProps } from "../../../utils/vues/buildProps.js";
15
15
  import { definePropType } from "../../../utils/vues/definePropType.js";
16
16
  import "../../../utils/vues/getBuildProps.js";
17
17
  import "../../../utils/vues/withInstall.js";