@fangzhongya/fang-ui 0.0.66 → 0.0.68

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 (76) hide show
  1. package/dist/components/array/src/index2.cjs +21 -2
  2. package/dist/components/array/src/index2.js +22 -3
  3. package/dist/components/cascaders/src/index2.cjs +3 -8
  4. package/dist/components/cascaders/src/index2.js +4 -9
  5. package/dist/components/dates-divide/src/data.cjs +1 -1
  6. package/dist/components/dates-divide/src/data.d.ts +1 -1
  7. package/dist/components/dates-divide/src/data.js +1 -1
  8. package/dist/components/forms/src/data.cjs +12 -12
  9. package/dist/components/forms/src/data.d.ts +1 -27
  10. package/dist/components/forms/src/data.js +12 -12
  11. package/dist/components/forms-div/src/data.cjs +5 -2
  12. package/dist/components/forms-div/src/data.d.ts +3 -2
  13. package/dist/components/forms-div/src/data.js +5 -2
  14. package/dist/components/forms-div/src/index2.cjs +2 -2
  15. package/dist/components/forms-div/src/index2.js +3 -3
  16. package/dist/components/forms-drag/src/index2.cjs +6 -10
  17. package/dist/components/forms-drag/src/index2.js +6 -10
  18. package/dist/components/forms-item/src/data.cjs +5 -2
  19. package/dist/components/forms-item/src/data.d.ts +3 -2
  20. package/dist/components/forms-item/src/data.js +5 -2
  21. package/dist/components/forms-item/src/indexts.d.ts +5 -2
  22. package/dist/components/global-config/src/data.cjs +1 -1
  23. package/dist/components/global-config/src/data.d.ts +1 -0
  24. package/dist/components/global-config/src/data.js +1 -1
  25. package/dist/components/global-config/src/index.cjs +7 -3
  26. package/dist/components/global-config/src/index.js +7 -3
  27. package/dist/components/icon/src/index2.cjs +2 -2
  28. package/dist/components/icon/src/index2.js +3 -3
  29. package/dist/components/input-history/src/data.cjs +2 -2
  30. package/dist/components/input-history/src/data.d.ts +0 -1
  31. package/dist/components/input-history/src/data.js +2 -2
  32. package/dist/components/input-num/index.css +1 -0
  33. package/dist/components/input-num/index.scss +1 -0
  34. package/dist/components/list/src/data.cjs +1 -1
  35. package/dist/components/list/src/data.d.ts +1 -1
  36. package/dist/components/list/src/data.js +1 -1
  37. package/dist/components/listsp/src/index2.cjs +3 -3
  38. package/dist/components/listsp/src/index2.js +3 -3
  39. package/dist/components/page/index.css +64 -1
  40. package/dist/components/page/index.scss +66 -1
  41. package/dist/components/page/src/data.cjs +13 -1
  42. package/dist/components/page/src/data.d.ts +26 -1
  43. package/dist/components/page/src/data.js +13 -1
  44. package/dist/components/page/src/index2.cjs +5 -4
  45. package/dist/components/page/src/index2.js +5 -4
  46. package/dist/components/page/src/set-column.cjs +1 -4
  47. package/dist/components/page/src/set-column.js +1 -4
  48. package/dist/components/page/src/set-column2.cjs +74 -34
  49. package/dist/components/page/src/set-column2.js +69 -29
  50. package/dist/components/paging/src/index2.cjs +2 -2
  51. package/dist/components/paging/src/index2.js +2 -2
  52. package/dist/components/selects/src/data.cjs +1 -1
  53. package/dist/components/selects/src/data.js +1 -1
  54. package/dist/components/stick-div/src/index2.cjs +8 -1
  55. package/dist/components/stick-div/src/index2.js +8 -1
  56. package/dist/components/tablesv/src/columns2.cjs +1 -1
  57. package/dist/components/tablesv/src/columns2.js +1 -1
  58. package/dist/css/index.css +65 -1
  59. package/dist/css/input-num.css +1 -0
  60. package/dist/css/page.css +64 -1
  61. package/dist/directives/adjust/index.cjs +0 -8
  62. package/dist/directives/adjust/index.js +0 -8
  63. package/dist/icons/index.css +38 -38
  64. package/dist/icons/index.json +12 -12
  65. package/dist/index.css +65 -1
  66. package/dist/locale/en.cjs +9 -0
  67. package/dist/locale/en.d.ts +9 -0
  68. package/dist/locale/en.js +9 -0
  69. package/dist/locale/zh-cn.cjs +9 -0
  70. package/dist/locale/zh-cn.d.ts +9 -0
  71. package/dist/locale/zh-cn.js +9 -0
  72. package/package.json +7 -7
  73. package/dist/components/page/set-column.css +0 -38
  74. package/dist/css/page/set-column.css +0 -38
  75. /package/dist/components/{keep-com → global-config}/index.css +0 -0
  76. /package/dist/css/{keep-com.css → global-config.css} +0 -0
@@ -2,15 +2,12 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
4
  const Draggable = require("vuedraggable");
5
- const index$2 = require("../../dialogs/index.cjs");
6
- const index$4 = require("../../no-data/index.cjs");
7
- const index = require("../../../hooks/cssname/index.cjs");
8
- const index$3 = require("element-plus/es/components/checkbox/index");
9
- const index$1 = require("element-plus/es/components/button/index");
10
- const _hoisted_1 = {
11
- key: 1,
12
- class: "no-data"
13
- };
5
+ const index$3 = require("../../dialogs/index.cjs");
6
+ const index$5 = require("../../no-data/index.cjs");
7
+ const index$4 = require("../../checkbox/index.cjs");
8
+ const index$2 = require("../../button/index.cjs");
9
+ const index$1 = require("../../../hooks/cssname/index.cjs");
10
+ const index = require("../../../hooks/locale/index.cjs");
14
11
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
12
  __name: "set-column",
16
13
  props: {
@@ -21,15 +18,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
18
  }
22
19
  },
23
20
  list: {
24
- type: Array
21
+ type: Array,
22
+ default() {
23
+ return [];
24
+ }
25
25
  }
26
26
  },
27
27
  emits: ["update:modelValue"],
28
28
  setup(__props, { emit: __emit }) {
29
+ const { getLocale } = index.useLocale();
29
30
  const props = __props;
30
31
  const emit = __emit;
31
- const cs = index.useCssName("set-column");
32
+ const cs = index$1.useCssName("set-column");
32
33
  const dialogVisible = vue.ref(false);
34
+ const isall = vue.ref(false);
33
35
  const value = vue.ref([...props.modelValue]);
34
36
  vue.watch(
35
37
  () => props.modelValue,
@@ -38,8 +40,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38
40
  }
39
41
  );
40
42
  const onOpen = () => {
43
+ var _a;
41
44
  value.value = [...props.modelValue];
42
45
  dialogVisible.value = true;
46
+ if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
47
+ isall.value = true;
48
+ }
43
49
  };
44
50
  const isChecked = (item) => {
45
51
  return value.value.map((o) => o.prop).includes(item.prop);
@@ -56,31 +62,45 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
56
62
  };
57
63
  const drag = vue.ref(false);
58
64
  const onChange = (item, is) => {
65
+ var _a;
59
66
  if (is) {
60
67
  value.value.push(item);
68
+ if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
69
+ isall.value = true;
70
+ }
61
71
  } else {
62
72
  const v = value.value.map((o) => o.prop);
63
73
  value.value.splice(v.indexOf(item.prop), 1);
74
+ isall.value = false;
64
75
  }
65
76
  };
66
77
  const onDelete = (item, index2) => {
67
78
  value.value.splice(index2, 1);
79
+ isall.value = false;
80
+ };
81
+ const onAllChange = (is) => {
82
+ if (is) {
83
+ value.value = [...props.list];
84
+ } else {
85
+ value.value = [];
86
+ }
68
87
  };
69
88
  return (_ctx, _cache) => {
70
89
  return vue.openBlock(), vue.createElementBlock("div", {
71
90
  class: vue.normalizeClass(vue.unref(cs).z())
72
91
  }, [
73
- vue.createVNode(vue.unref(index$1.ElButton), { onClick: onOpen }, {
74
- default: vue.withCtx(() => [..._cache[4] || (_cache[4] = [
75
- vue.createTextVNode("列设置", -1)
76
- ])]),
92
+ vue.createVNode(vue.unref(index$2.Button), { onClick: onOpen }, {
93
+ default: vue.withCtx(() => [
94
+ vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("setColumn.name")), 1)
95
+ ]),
77
96
  _: 1
78
97
  }),
79
- vue.createVNode(vue.unref(index$2.Dialogs), {
98
+ vue.createVNode(vue.unref(index$3.Dialogs), {
80
99
  class: vue.normalizeClass(vue.unref(cs).z("dialog")),
81
100
  modelValue: dialogVisible.value,
82
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
83
- title: "设置显示字段",
101
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dialogVisible.value = $event),
102
+ width: 900,
103
+ title: vue.unref(getLocale)("setColumn.title"),
84
104
  onConfirm: onSubmit
85
105
  }, {
86
106
  default: vue.withCtx(() => [
@@ -92,13 +112,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
92
112
  }, [
93
113
  vue.createElementVNode("div", {
94
114
  class: vue.normalizeClass(vue.unref(cs).z("title"))
95
- }, "可选字段", 2),
115
+ }, [
116
+ vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(getLocale)("setColumn.optional")), 1),
117
+ vue.createElementVNode("span", {
118
+ class: vue.normalizeClass(vue.unref(cs).z("title-all"))
119
+ }, [
120
+ vue.createVNode(vue.unref(index$4.Checkbox), {
121
+ modelValue: isall.value,
122
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isall.value = $event),
123
+ onChange: onAllChange
124
+ }, {
125
+ default: vue.withCtx(() => [
126
+ vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("setColumn.all")), 1)
127
+ ]),
128
+ _: 1
129
+ }, 8, ["modelValue"])
130
+ ], 2)
131
+ ], 2),
96
132
  (vue.openBlock(), vue.createElementBlock("div", {
97
133
  class: vue.normalizeClass(vue.unref(cs).z("check-list")),
98
134
  key: value.value.length
99
135
  }, [
100
- props.list && props.list.length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.list, (item, index2) => {
101
- return vue.openBlock(), vue.createBlock(vue.unref(index$3.ElCheckbox), {
136
+ props.list.length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.list, (item, index2) => {
137
+ return vue.openBlock(), vue.createBlock(vue.unref(index$4.Checkbox), {
102
138
  class: vue.normalizeClass(vue.unref(cs).z("check-list-li")),
103
139
  key: index2,
104
140
  label: item.label,
@@ -106,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
106
142
  checked: isChecked(item),
107
143
  onChange: (is) => onChange(item, Boolean(is))
108
144
  }, null, 8, ["class", "label", "value", "checked", "onChange"]);
109
- }), 128)) : (vue.openBlock(), vue.createBlock(vue.unref(index$4.NoData), { key: 1 }))
145
+ }), 128)) : (vue.openBlock(), vue.createBlock(vue.unref(index$5.NoData), { key: 1 }))
110
146
  ], 2))
111
147
  ], 2),
112
148
  vue.createElementVNode("div", {
@@ -114,46 +150,50 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
114
150
  }, [
115
151
  vue.createElementVNode("div", {
116
152
  class: vue.normalizeClass(vue.unref(cs).z("title"))
117
- }, "已选字段", 2),
153
+ }, vue.toDisplayString(vue.unref(getLocale)("setColumn.selected")), 3),
118
154
  vue.createElementVNode("div", {
119
155
  class: vue.normalizeClass(vue.unref(cs).z("already-list"))
120
156
  }, [
121
157
  value.value && value.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(Draggable), vue.mergeProps({ key: 0 }, dragOptions, {
122
- onStart: _cache[0] || (_cache[0] = ($event) => drag.value = true),
123
- onEnd: _cache[1] || (_cache[1] = ($event) => drag.value = false),
158
+ onStart: _cache[1] || (_cache[1] = ($event) => drag.value = true),
159
+ onEnd: _cache[2] || (_cache[2] = ($event) => drag.value = false),
124
160
  modelValue: value.value,
125
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
161
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => value.value = $event),
126
162
  "item-key": (value2) => value2,
127
163
  handle: ".handle"
128
164
  }), {
129
165
  item: vue.withCtx(({ element, index: index2 }) => [
130
166
  vue.createElementVNode("div", {
131
- class: vue.normalizeClass(vue.unref(cs).z("already-li"))
167
+ class: vue.normalizeClass(["handle", vue.unref(cs).z("already-li")])
132
168
  }, [
133
169
  vue.createElementVNode("div", {
134
- class: vue.normalizeClass(["handle", vue.unref(cs).z("already-li-v")])
170
+ class: vue.normalizeClass(vue.unref(cs).z("already-li-v"))
135
171
  }, [
136
172
  vue.createElementVNode("div", null, vue.toDisplayString(element.label), 1)
137
173
  ], 2),
138
- vue.createVNode(vue.unref(index$1.ElButton), {
174
+ vue.createVNode(vue.unref(index$2.Button), {
139
175
  text: "",
176
+ type: "danger",
140
177
  onClick: vue.withModifiers(($event) => onDelete(element, index2), ["stop"])
141
178
  }, {
142
- default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
143
- vue.createTextVNode(" 删除 ", -1)
144
- ])]),
179
+ default: vue.withCtx(() => [
180
+ vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("setColumn.delete")), 1)
181
+ ]),
145
182
  _: 1
146
183
  }, 8, ["onClick"])
147
184
  ], 2)
148
185
  ]),
149
186
  _: 1
150
- }, 16, ["modelValue", "item-key"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, "未选字段"))
187
+ }, 16, ["modelValue", "item-key"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$5.NoData), {
188
+ key: 1,
189
+ text: vue.unref(getLocale)("setColumn.nodata")
190
+ }, null, 8, ["text"]))
151
191
  ], 2)
152
192
  ], 2)
153
193
  ], 2)
154
194
  ]),
155
195
  _: 1
156
- }, 8, ["class", "modelValue"])
196
+ }, 8, ["class", "modelValue", "title"])
157
197
  ], 2);
158
198
  };
159
199
  }
@@ -1,14 +1,11 @@
1
- import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, createElementVNode, createBlock, Fragment, renderList, mergeProps, toDisplayString, withModifiers } from "vue";
1
+ import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, createBlock, Fragment, renderList, mergeProps, withModifiers } from "vue";
2
2
  import Draggable from "vuedraggable";
3
3
  import { Dialogs } from "../../dialogs/index.js";
4
4
  import { NoData } from "../../no-data/index.js";
5
+ import { Checkbox } from "../../checkbox/index.js";
6
+ import { Button } from "../../button/index.js";
5
7
  import { useCssName } from "../../../hooks/cssname/index.js";
6
- import { ElCheckbox } from "element-plus/es/components/checkbox/index";
7
- import { ElButton } from "element-plus/es/components/button/index";
8
- const _hoisted_1 = {
9
- key: 1,
10
- class: "no-data"
11
- };
8
+ import { useLocale } from "../../../hooks/locale/index.js";
12
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
10
  __name: "set-column",
14
11
  props: {
@@ -19,15 +16,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
16
  }
20
17
  },
21
18
  list: {
22
- type: Array
19
+ type: Array,
20
+ default() {
21
+ return [];
22
+ }
23
23
  }
24
24
  },
25
25
  emits: ["update:modelValue"],
26
26
  setup(__props, { emit: __emit }) {
27
+ const { getLocale } = useLocale();
27
28
  const props = __props;
28
29
  const emit = __emit;
29
30
  const cs = useCssName("set-column");
30
31
  const dialogVisible = ref(false);
32
+ const isall = ref(false);
31
33
  const value = ref([...props.modelValue]);
32
34
  watch(
33
35
  () => props.modelValue,
@@ -36,8 +38,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
38
  }
37
39
  );
38
40
  const onOpen = () => {
41
+ var _a;
39
42
  value.value = [...props.modelValue];
40
43
  dialogVisible.value = true;
44
+ if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
45
+ isall.value = true;
46
+ }
41
47
  };
42
48
  const isChecked = (item) => {
43
49
  return value.value.map((o) => o.prop).includes(item.prop);
@@ -54,31 +60,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
60
  };
55
61
  const drag = ref(false);
56
62
  const onChange = (item, is) => {
63
+ var _a;
57
64
  if (is) {
58
65
  value.value.push(item);
66
+ if (value.value.length == ((_a = props.list) == null ? void 0 : _a.length)) {
67
+ isall.value = true;
68
+ }
59
69
  } else {
60
70
  const v = value.value.map((o) => o.prop);
61
71
  value.value.splice(v.indexOf(item.prop), 1);
72
+ isall.value = false;
62
73
  }
63
74
  };
64
75
  const onDelete = (item, index) => {
65
76
  value.value.splice(index, 1);
77
+ isall.value = false;
78
+ };
79
+ const onAllChange = (is) => {
80
+ if (is) {
81
+ value.value = [...props.list];
82
+ } else {
83
+ value.value = [];
84
+ }
66
85
  };
67
86
  return (_ctx, _cache) => {
68
87
  return openBlock(), createElementBlock("div", {
69
88
  class: normalizeClass(unref(cs).z())
70
89
  }, [
71
- createVNode(unref(ElButton), { onClick: onOpen }, {
72
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
73
- createTextVNode("列设置", -1)
74
- ])]),
90
+ createVNode(unref(Button), { onClick: onOpen }, {
91
+ default: withCtx(() => [
92
+ createTextVNode(toDisplayString(unref(getLocale)("setColumn.name")), 1)
93
+ ]),
75
94
  _: 1
76
95
  }),
77
96
  createVNode(unref(Dialogs), {
78
97
  class: normalizeClass(unref(cs).z("dialog")),
79
98
  modelValue: dialogVisible.value,
80
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
81
- title: "设置显示字段",
99
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dialogVisible.value = $event),
100
+ width: 900,
101
+ title: unref(getLocale)("setColumn.title"),
82
102
  onConfirm: onSubmit
83
103
  }, {
84
104
  default: withCtx(() => [
@@ -90,13 +110,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
110
  }, [
91
111
  createElementVNode("div", {
92
112
  class: normalizeClass(unref(cs).z("title"))
93
- }, "可选字段", 2),
113
+ }, [
114
+ createElementVNode("span", null, toDisplayString(unref(getLocale)("setColumn.optional")), 1),
115
+ createElementVNode("span", {
116
+ class: normalizeClass(unref(cs).z("title-all"))
117
+ }, [
118
+ createVNode(unref(Checkbox), {
119
+ modelValue: isall.value,
120
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isall.value = $event),
121
+ onChange: onAllChange
122
+ }, {
123
+ default: withCtx(() => [
124
+ createTextVNode(toDisplayString(unref(getLocale)("setColumn.all")), 1)
125
+ ]),
126
+ _: 1
127
+ }, 8, ["modelValue"])
128
+ ], 2)
129
+ ], 2),
94
130
  (openBlock(), createElementBlock("div", {
95
131
  class: normalizeClass(unref(cs).z("check-list")),
96
132
  key: value.value.length
97
133
  }, [
98
- props.list && props.list.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.list, (item, index) => {
99
- return openBlock(), createBlock(unref(ElCheckbox), {
134
+ props.list.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.list, (item, index) => {
135
+ return openBlock(), createBlock(unref(Checkbox), {
100
136
  class: normalizeClass(unref(cs).z("check-list-li")),
101
137
  key: index,
102
138
  label: item.label,
@@ -112,46 +148,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
148
  }, [
113
149
  createElementVNode("div", {
114
150
  class: normalizeClass(unref(cs).z("title"))
115
- }, "已选字段", 2),
151
+ }, toDisplayString(unref(getLocale)("setColumn.selected")), 3),
116
152
  createElementVNode("div", {
117
153
  class: normalizeClass(unref(cs).z("already-list"))
118
154
  }, [
119
155
  value.value && value.value.length > 0 ? (openBlock(), createBlock(unref(Draggable), mergeProps({ key: 0 }, dragOptions, {
120
- onStart: _cache[0] || (_cache[0] = ($event) => drag.value = true),
121
- onEnd: _cache[1] || (_cache[1] = ($event) => drag.value = false),
156
+ onStart: _cache[1] || (_cache[1] = ($event) => drag.value = true),
157
+ onEnd: _cache[2] || (_cache[2] = ($event) => drag.value = false),
122
158
  modelValue: value.value,
123
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
159
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => value.value = $event),
124
160
  "item-key": (value2) => value2,
125
161
  handle: ".handle"
126
162
  }), {
127
163
  item: withCtx(({ element, index }) => [
128
164
  createElementVNode("div", {
129
- class: normalizeClass(unref(cs).z("already-li"))
165
+ class: normalizeClass(["handle", unref(cs).z("already-li")])
130
166
  }, [
131
167
  createElementVNode("div", {
132
- class: normalizeClass(["handle", unref(cs).z("already-li-v")])
168
+ class: normalizeClass(unref(cs).z("already-li-v"))
133
169
  }, [
134
170
  createElementVNode("div", null, toDisplayString(element.label), 1)
135
171
  ], 2),
136
- createVNode(unref(ElButton), {
172
+ createVNode(unref(Button), {
137
173
  text: "",
174
+ type: "danger",
138
175
  onClick: withModifiers(($event) => onDelete(element, index), ["stop"])
139
176
  }, {
140
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
141
- createTextVNode(" 删除 ", -1)
142
- ])]),
177
+ default: withCtx(() => [
178
+ createTextVNode(toDisplayString(unref(getLocale)("setColumn.delete")), 1)
179
+ ]),
143
180
  _: 1
144
181
  }, 8, ["onClick"])
145
182
  ], 2)
146
183
  ]),
147
184
  _: 1
148
- }, 16, ["modelValue", "item-key"])) : (openBlock(), createElementBlock("div", _hoisted_1, "未选字段"))
185
+ }, 16, ["modelValue", "item-key"])) : (openBlock(), createBlock(unref(NoData), {
186
+ key: 1,
187
+ text: unref(getLocale)("setColumn.nodata")
188
+ }, null, 8, ["text"]))
149
189
  ], 2)
150
190
  ], 2)
151
191
  ], 2)
152
192
  ]),
153
193
  _: 1
154
- }, 8, ["class", "modelValue"])
194
+ }, 8, ["class", "modelValue", "title"])
155
195
  ], 2);
156
196
  };
157
197
  }
@@ -16,8 +16,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
16
  type: Object,
17
17
  default() {
18
18
  return {};
19
- },
20
- required: true
19
+ }
20
+ // required: true,
21
21
  }
22
22
  },
23
23
  emits: ["size-change", "current-change"],
@@ -14,8 +14,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  type: Object,
15
15
  default() {
16
16
  return {};
17
- },
18
- required: true
17
+ }
18
+ // required: true,
19
19
  }
20
20
  },
21
21
  emits: ["size-change", "current-change"],
@@ -12,7 +12,7 @@ const dataProps = {
12
12
  }
13
13
  };
14
14
  const dataHandle = list.comHandle;
15
- const dataEmits = [...list.emits];
15
+ const dataEmits = [...list.emits, "click-multiple"];
16
16
  exports.dataEmits = dataEmits;
17
17
  exports.dataHandle = dataHandle;
18
18
  exports.dataProps = dataProps;
@@ -10,7 +10,7 @@ const dataProps = {
10
10
  }
11
11
  };
12
12
  const dataHandle = comHandle;
13
- const dataEmits = [...emits];
13
+ const dataEmits = [...emits, "click-multiple"];
14
14
  export {
15
15
  dataEmits,
16
16
  dataHandle,
@@ -56,7 +56,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
56
56
  rect = refDom.value.getBoundingClientRect();
57
57
  return true;
58
58
  };
59
- getShiftEvent.pressEvent(refStick.value, mousedown, handleMouseMove, handleMouseUp);
59
+ getShiftEvent.pressEvent(
60
+ refStick.value,
61
+ mousedown,
62
+ handleMouseMove,
63
+ handleMouseUp,
64
+ void 0,
65
+ "mouse"
66
+ );
60
67
  });
61
68
  __expose({
62
69
  ...data.dataExpose
@@ -54,7 +54,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  rect = refDom.value.getBoundingClientRect();
55
55
  return true;
56
56
  };
57
- pressEvent(refStick.value, mousedown, handleMouseMove, handleMouseUp);
57
+ pressEvent(
58
+ refStick.value,
59
+ mousedown,
60
+ handleMouseMove,
61
+ handleMouseUp,
62
+ void 0,
63
+ "mouse"
64
+ );
58
65
  });
59
66
  __expose({
60
67
  ...dataExpose
@@ -2,7 +2,7 @@
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 index = require("element-plus/components/tooltip/index");
5
+ const index = require("element-plus/es/components/tooltip/index");
6
6
  require("../../tables/common/table-but.cjs");
7
7
  require("../../tables/common/table-color.cjs");
8
8
  require("../../tables/common/table-list.cjs");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from "vue";
2
2
  import { render } from "./columns3.js";
3
- import { ElTooltip } from "element-plus/components/tooltip/index";
3
+ import { ElTooltip } from "element-plus/es/components/tooltip/index";
4
4
  import "../../tables/common/table-but.js";
5
5
  import "../../tables/common/table-color.js";
6
6
  import "../../tables/common/table-list.js";
@@ -668,17 +668,80 @@
668
668
  display: flex;
669
669
  margin-right: 20px;
670
670
  }
671
- .page-operations > .el-button {
671
+ .page-operations .el-button {
672
672
  margin-left: 2px;
673
673
  margin-right: 2px;
674
674
  padding-left: 5px;
675
675
  padding-right: 5px;
676
676
  }
677
+ .page-operations .el-button:first-child {
678
+ margin-left: 0;
679
+ }
680
+ .page-operations .el-button:last-child {
681
+ margin-right: 0;
682
+ }
677
683
  .page-footer {
678
684
  padding: 10px;
679
685
  text-align: right;
680
686
  background-color: #f5f5f5;
681
687
  }
688
+ .page .set-column {
689
+ margin-left: 10px;
690
+ }
691
+ .page .set-column .set-column-dialog-main {
692
+ font-size: 16px;
693
+ display: flex;
694
+ }
695
+ .page .set-column .set-column-dialog-main .set-column-title {
696
+ height: 40px;
697
+ width: 100%;
698
+ display: flex;
699
+ align-items: center;
700
+ justify-content: space-between;
701
+ }
702
+ .page .set-column .set-column-dialog-main .set-column-title .set-column-title-all {
703
+ margin-right: 20px;
704
+ }
705
+ .page .set-column .set-column-dialog-main .set-column-check {
706
+ flex: 1;
707
+ }
708
+ .page .set-column .set-column-dialog-main .set-column-check .set-column-check-list {
709
+ padding: 10px;
710
+ box-sizing: border-box;
711
+ display: flex;
712
+ flex-direction: row;
713
+ flex-wrap: wrap;
714
+ overflow-y: auto;
715
+ }
716
+ .page .set-column .set-column-dialog-main .set-column-check .set-column-check-list .set-column-check-list-li {
717
+ margin-right: 0;
718
+ width: 33%;
719
+ height: 40px;
720
+ }
721
+ .page .set-column .set-column-dialog-main .set-column-already {
722
+ border-left: 1px solid #999;
723
+ padding-left: 20px;
724
+ width: 240px;
725
+ }
726
+ .page .set-column .set-column-dialog-main .set-column-already .set-column-already-list {
727
+ padding: 10px 10px 10px 0;
728
+ }
729
+ .page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li {
730
+ height: 40px;
731
+ line-height: 40px;
732
+ display: flex;
733
+ align-items: center;
734
+ justify-content: space-between;
735
+ border-bottom: 1px solid #ccc;
736
+ }
737
+ .page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li:first-child {
738
+ border-top: 1px solid #ccc;
739
+ }
740
+ .page .set-column .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li .set-column-already-li-v {
741
+ display: flex;
742
+ flex: 1;
743
+ align-items: center;
744
+ }
682
745
 
683
746
  .retract {
684
747
  position: relative;
@@ -998,6 +1061,7 @@
998
1061
 
999
1062
  .input-num-input {
1000
1063
  height: 100%;
1064
+ width: 100%;
1001
1065
  }
1002
1066
 
1003
1067
  .input-select-select-icon {
@@ -14,4 +14,5 @@
14
14
 
15
15
  .input-num-input {
16
16
  height: 100%;
17
+ width: 100%;
17
18
  }