@fangzhongya/fang-ui 0.0.58 → 0.0.59

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 (92) hide show
  1. package/dist/components/array/src/data.cjs +3 -3
  2. package/dist/components/array/src/data.d.ts +0 -3
  3. package/dist/components/array/src/data.js +3 -3
  4. package/dist/components/array/src/index2.cjs +27 -11
  5. package/dist/components/array/src/index2.js +23 -7
  6. package/dist/components/common/use.cjs +1 -1
  7. package/dist/components/common/use.js +1 -1
  8. package/dist/components/dialogs/src/data.cjs +2 -4
  9. package/dist/components/dialogs/src/data.d.ts +0 -2
  10. package/dist/components/dialogs/src/data.js +2 -4
  11. package/dist/components/dialogs/src/index2.cjs +24 -12
  12. package/dist/components/dialogs/src/index2.js +17 -5
  13. package/dist/components/forms/index.css +3 -0
  14. package/dist/components/forms/index.scss +3 -0
  15. package/dist/components/forms/src/index2.cjs +16 -14
  16. package/dist/components/forms/src/index2.js +3 -1
  17. package/dist/components/forms/src/setup.cjs +11 -5
  18. package/dist/components/forms/src/setup.d.ts +1 -1
  19. package/dist/components/forms/src/setup.js +11 -5
  20. package/dist/components/forms/src/util.cjs +5 -4
  21. package/dist/components/forms/src/util.d.ts +1 -1
  22. package/dist/components/forms/src/util.js +5 -4
  23. package/dist/components/forms-drag/src/index2.cjs +96 -45
  24. package/dist/components/forms-drag/src/index2.js +91 -40
  25. package/dist/components/icon-picker/index.css +1 -0
  26. package/dist/components/icon-picker/index.scss +1 -0
  27. package/dist/components/iframe/index.css +4 -0
  28. package/dist/components/iframe/index.scss +4 -0
  29. package/dist/components/iframe/src/index2.cjs +19 -7
  30. package/dist/components/iframe/src/index2.js +20 -8
  31. package/dist/components/iframe/style/index2.scss +3 -0
  32. package/dist/components/index2.scss +1 -1
  33. package/dist/components/input-history/index.css +7 -17
  34. package/dist/components/input-history/index.scss +34 -42
  35. package/dist/components/input-history/src/index2.cjs +3 -12
  36. package/dist/components/input-history/src/index2.js +3 -12
  37. package/dist/components/inputs/src/index2.cjs +11 -9
  38. package/dist/components/inputs/src/index2.js +3 -1
  39. package/dist/components/keep-com/src/data.d.ts +3 -0
  40. package/dist/components/listsp/index.css +1 -0
  41. package/dist/components/listsp/src/index2.cjs +11 -9
  42. package/dist/components/listsp/src/index2.js +3 -1
  43. package/dist/components/page/index.css +4 -0
  44. package/dist/components/page/src/index2.cjs +41 -39
  45. package/dist/components/page/src/index2.js +15 -13
  46. package/dist/components/paging/index.css +1 -0
  47. package/dist/components/paging/index.scss +1 -0
  48. package/dist/components/paging/src/index2.cjs +18 -10
  49. package/dist/components/paging/src/index2.js +12 -4
  50. package/dist/components/selector/src/index2.cjs +17 -15
  51. package/dist/components/selector/src/index2.js +8 -6
  52. package/dist/components/tables/common/pagin.cjs +3 -3
  53. package/dist/components/tables/common/pagin.d.ts +1 -1
  54. package/dist/components/tables/common/pagin.js +3 -3
  55. package/dist/components/tablesp/index.css +1 -0
  56. package/dist/components/tablesp/src/index2.cjs +11 -9
  57. package/dist/components/tablesp/src/index2.js +3 -1
  58. package/dist/components/tabless/src/index2.cjs +11 -9
  59. package/dist/components/tabless/src/index2.js +3 -1
  60. package/dist/components/tablesvp/index.css +1 -0
  61. package/dist/components/tablesvp/src/index2.cjs +9 -7
  62. package/dist/components/tablesvp/src/index2.js +3 -1
  63. package/dist/css/forms.css +3 -0
  64. package/dist/css/icon-picker.css +1 -0
  65. package/dist/css/iframe.css +4 -0
  66. package/dist/css/index.css +16 -17
  67. package/dist/css/input-history.css +7 -17
  68. package/dist/css/listsp.css +1 -0
  69. package/dist/css/page.css +4 -0
  70. package/dist/css/paging.css +1 -0
  71. package/dist/css/tablesp.css +1 -0
  72. package/dist/css/tablesvp.css +1 -0
  73. package/dist/hooks/index.cjs +2 -0
  74. package/dist/hooks/index.js +3 -1
  75. package/dist/hooks/locale/index.cjs +51 -2
  76. package/dist/hooks/locale/index.d.ts +64 -3
  77. package/dist/hooks/locale/index.js +51 -2
  78. package/dist/icons/index.css +37 -37
  79. package/dist/icons/index.json +10 -10
  80. package/dist/index.css +16 -17
  81. package/dist/locale/en.cjs +27 -3
  82. package/dist/locale/en.d.ts +26 -2
  83. package/dist/locale/en.js +27 -3
  84. package/dist/locale/zh-cn.cjs +23 -1
  85. package/dist/locale/zh-cn.d.ts +22 -0
  86. package/dist/locale/zh-cn.js +23 -1
  87. package/dist/types/locale.d.ts +1 -1
  88. package/package.json +10 -10
  89. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  90. /package/dist/components/{option → keep-com}/index.css +0 -0
  91. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
  92. /package/dist/css/{option.css → keep-com.css} +0 -0
@@ -4,4 +4,8 @@ $iframe: 'iframe';
4
4
  @include b($iframe) {
5
5
  width: 100%;
6
6
  height: 100%;
7
+ > iframe {
8
+ width: 100%;
9
+ height: 100%;
10
+ }
7
11
  }
@@ -3,6 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const data = require("./data.cjs");
5
5
  require("../../../hooks/index.cjs");
6
+ const index$3 = require("element-plus/es/components/loading/index");
6
7
  const index = require("../../../hooks/locale/index.cjs");
7
8
  const index$1 = require("../../../hooks/cssname/index.cjs");
8
9
  const index$2 = require("../../../hooks/inherit/index.cjs");
@@ -14,27 +15,38 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
14
15
  setup(__props, { expose: __expose, emit: __emit }) {
15
16
  const { getLocale } = index.useLocale();
16
17
  const cs = index$1.useCssName("iframe");
17
- const attrs = index$2.useInherit();
18
+ const attrs = index$2.useInherit(vue.useAttrs());
18
19
  const props = __props;
19
20
  const emit = __emit;
21
+ const loading = vue.ref(false);
22
+ const src = vue.computed(() => {
23
+ const url = props.url;
24
+ if (url) {
25
+ loading.value = true;
26
+ }
27
+ return url;
28
+ });
20
29
  const onLoad = () => {
30
+ loading.value = false;
21
31
  emit("load");
22
32
  };
23
33
  __expose({
24
34
  ...data.dataExpose
25
35
  });
26
36
  return (_ctx, _cache) => {
27
- return vue.openBlock(), vue.createElementBlock("div", {
28
- class: vue.normalizeClass(vue.unref(cs).z())
29
- }, [
30
- vue.createElementVNode("iframe", vue.mergeProps(vue.unref(attrs), {
37
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
38
+ class: vue.unref(cs).z()
39
+ }, vue.unref(attrs).root), [
40
+ vue.createElementVNode("iframe", vue.mergeProps(vue.unref(attrs).assem, {
31
41
  width: props.width,
32
42
  height: props.height,
33
43
  frameborder: props.frameborder,
34
44
  onLoad,
35
- src: props.url
45
+ src: src.value
36
46
  }), null, 16, _hoisted_1)
37
- ], 2);
47
+ ], 16)), [
48
+ [vue.unref(index$3.vLoading), loading.value]
49
+ ]);
38
50
  };
39
51
  }
40
52
  });
@@ -1,6 +1,7 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, mergeProps } from "vue";
1
+ import { defineComponent, useAttrs, ref, computed, withDirectives, openBlock, createElementBlock, mergeProps, unref, createElementVNode } from "vue";
2
2
  import { dataExpose, dataEmits, dataProps } from "./data.js";
3
3
  import "../../../hooks/index.js";
4
+ import { vLoading } from "element-plus/es/components/loading/index";
4
5
  import { useLocale } from "../../../hooks/locale/index.js";
5
6
  import { useCssName } from "../../../hooks/cssname/index.js";
6
7
  import { useInherit } from "../../../hooks/inherit/index.js";
@@ -12,27 +13,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  setup(__props, { expose: __expose, emit: __emit }) {
13
14
  const { getLocale } = useLocale();
14
15
  const cs = useCssName("iframe");
15
- const attrs = useInherit();
16
+ const attrs = useInherit(useAttrs());
16
17
  const props = __props;
17
18
  const emit = __emit;
19
+ const loading = ref(false);
20
+ const src = computed(() => {
21
+ const url = props.url;
22
+ if (url) {
23
+ loading.value = true;
24
+ }
25
+ return url;
26
+ });
18
27
  const onLoad = () => {
28
+ loading.value = false;
19
29
  emit("load");
20
30
  };
21
31
  __expose({
22
32
  ...dataExpose
23
33
  });
24
34
  return (_ctx, _cache) => {
25
- return openBlock(), createElementBlock("div", {
26
- class: normalizeClass(unref(cs).z())
27
- }, [
28
- createElementVNode("iframe", mergeProps(unref(attrs), {
35
+ return withDirectives((openBlock(), createElementBlock("div", mergeProps({
36
+ class: unref(cs).z()
37
+ }, unref(attrs).root), [
38
+ createElementVNode("iframe", mergeProps(unref(attrs).assem, {
29
39
  width: props.width,
30
40
  height: props.height,
31
41
  frameborder: props.frameborder,
32
42
  onLoad,
33
- src: props.url
43
+ src: src.value
34
44
  }), null, 16, _hoisted_1)
35
- ], 2);
45
+ ], 16)), [
46
+ [unref(vLoading), loading.value]
47
+ ]);
36
48
  };
37
49
  }
38
50
  });
@@ -0,0 +1,3 @@
1
+ @use 'element-plus/theme-chalk/src/loading.scss' as *;
2
+
3
+ @use '../index.scss' as *;
@@ -60,7 +60,7 @@
60
60
  @use './global-config/style/index.scss' as *;
61
61
  @use './icon-picker/style/index.scss' as *;
62
62
  @use './icon/style/index2.scss' as *;
63
- @use './iframe/style/index.scss' as *;
63
+ @use './iframe/style/index2.scss' as *;
64
64
  @use './keep-com/style/index.scss' as *;
65
65
  @use './menus/style/index2.scss' as *;
66
66
  @use './page/style/index2.scss' as *;
@@ -29,7 +29,7 @@
29
29
  padding: 0;
30
30
  box-sizing: border-box;
31
31
  }
32
- .input-history-select-li {
32
+ .input-history-select-ul .input-history-select-li {
33
33
  padding: 0 32px 0 20px;
34
34
  position: relative;
35
35
  white-space: nowrap;
@@ -41,34 +41,24 @@
41
41
  box-sizing: border-box;
42
42
  cursor: pointer;
43
43
  }
44
- .input-history-select-li.hover, .input-history-select-li:hover {
44
+ .input-history-select-ul .input-history-select-li.hover, .input-history-select-ul .input-history-select-li:hover {
45
45
  background-color: #f5f7fa;
46
46
  }
47
- .input-history-select-li.hover .input-history-select-li-clean, .input-history-select-li:hover .input-history-select-li-clean {
47
+ .input-history-select-ul .input-history-select-li.hover .input-history-select-li-clean, .input-history-select-ul .input-history-select-li:hover .input-history-select-li-clean {
48
48
  display: inline-flex;
49
49
  }
50
- .input-history-select-li.selected {
50
+ .input-history-select-ul .input-history-select-li.selected {
51
51
  color: var(--bv-color-primary);
52
52
  font-weight: 700;
53
53
  }
54
- .input-history-select-li.is-disabled {
54
+ .input-history-select-ul .input-history-select-li.is-disabled {
55
55
  background-color: #ffffff;
56
56
  color: #a8abb2;
57
57
  cursor: not-allowed;
58
58
  }
59
- .input-history-select-li-clean {
60
- position: absolute;
59
+ .input-history-select-ul .input-history-select-li-clean {
61
60
  align-items: center;
62
61
  justify-content: center;
63
- right: 16px;
64
- height: 100%;
65
62
  display: none;
66
- }
67
- .input-history-select-clean {
68
- padding: 0 20px;
69
- }
70
- .input-history-select-clean-but {
71
- float: right;
72
- color: #ccc;
73
- cursor: pointer;
63
+ margin-left: 5px;
74
64
  }
@@ -7,6 +7,7 @@ $input-history: 'input-history';
7
7
  &-popper {
8
8
  padding: 6px 0 !important;
9
9
  }
10
+
10
11
  &-select {
11
12
  max-height: 274px;
12
13
  height: 100%;
@@ -16,49 +17,40 @@ $input-history: 'input-history';
16
17
  margin: 6px 0;
17
18
  padding: 0;
18
19
  box-sizing: border-box;
19
- }
20
- &-li {
21
- padding: 0 32px 0 20px;
22
- position: relative;
23
- white-space: nowrap;
24
- overflow: hidden;
25
- text-overflow: ellipsis;
26
- color: #606266;
27
- height: 34px;
28
- line-height: 34px;
29
- box-sizing: border-box;
30
- cursor: pointer;
31
- &.hover,
32
- &:hover {
33
- background-color: #f5f7fa;
34
- .#{z($input-history, 'select-li-clean')} {
35
- display: inline-flex;
36
- }
37
- }
38
- &.selected {
39
- color: var(--bv-color-primary);
40
- font-weight: 700;
41
- }
42
- &.is-disabled {
43
- background-color: #ffffff;
44
- color: #a8abb2;
45
- cursor: not-allowed;
46
- }
47
- &-clean {
48
- position: absolute;
49
- align-items: center;
50
- justify-content: center;
51
- right: 16px;
52
- height: 100%;
53
- display: none;
54
- }
55
- }
56
- &-clean {
57
- padding: 0 20px;
58
- &-but {
59
- float: right;
60
- color: #ccc;
20
+ .#{z($input-history, 'select-li')} {
21
+ padding: 0 32px 0 20px;
22
+ position: relative;
23
+ white-space: nowrap;
24
+ overflow: hidden;
25
+ text-overflow: ellipsis;
26
+ color: #606266;
27
+ height: 34px;
28
+ line-height: 34px;
29
+ box-sizing: border-box;
61
30
  cursor: pointer;
31
+ &.hover,
32
+ &:hover {
33
+ background-color: #f5f7fa;
34
+ .#{z($input-history, 'select-li-clean')} {
35
+ display: inline-flex;
36
+ }
37
+ }
38
+ &.selected {
39
+ color: var(--bv-color-primary);
40
+ font-weight: 700;
41
+ }
42
+ &.is-disabled {
43
+ background-color: #ffffff;
44
+ color: #a8abb2;
45
+ cursor: not-allowed;
46
+ }
47
+
48
+ &-clean {
49
+ align-items: center;
50
+ justify-content: center;
51
+ display: none;
52
+ margin-left: 5px;
53
+ }
62
54
  }
63
55
  }
64
56
  }
@@ -108,13 +108,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
108
108
  ref_key: "refInput",
109
109
  ref: refInput,
110
110
  modelValue: value.value,
111
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
111
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
112
112
  }, vue.unref(attrs).assem, {
113
113
  disabled: props.disabled,
114
114
  onInput,
115
115
  onFocus,
116
116
  onBlur,
117
- onKeyup: _cache[2] || (_cache[2] = vue.withKeys(
117
+ onKeyup: _cache[1] || (_cache[1] = vue.withKeys(
118
118
  () => {
119
119
  if (!props.buts) onChange();
120
120
  },
@@ -159,16 +159,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
159
159
  _: 1
160
160
  }, 8, ["class", "onClick"])) : vue.createCommentVNode("", true)
161
161
  ], 10, _hoisted_1);
162
- }), 256)),
163
- props.clean ? (vue.openBlock(), vue.createElementBlock("li", {
164
- key: 0,
165
- class: vue.normalizeClass([vue.unref(cs).z("select-clean")])
166
- }, [
167
- vue.createElementVNode("span", {
168
- class: vue.normalizeClass([vue.unref(cs).z("select-clean-but")]),
169
- onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => onClean(), ["stop"]))
170
- }, " 关闭 ", 2)
171
- ], 2)) : vue.createCommentVNode("", true)
162
+ }), 256))
172
163
  ], 2)
173
164
  ], 2)) : vue.createCommentVNode("", true)
174
165
  ]),
@@ -106,13 +106,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
106
  ref_key: "refInput",
107
107
  ref: refInput,
108
108
  modelValue: value.value,
109
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => value.value = $event)
109
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
110
110
  }, unref(attrs).assem, {
111
111
  disabled: props.disabled,
112
112
  onInput,
113
113
  onFocus,
114
114
  onBlur,
115
- onKeyup: _cache[2] || (_cache[2] = withKeys(
115
+ onKeyup: _cache[1] || (_cache[1] = withKeys(
116
116
  () => {
117
117
  if (!props.buts) onChange();
118
118
  },
@@ -157,16 +157,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
157
157
  _: 1
158
158
  }, 8, ["class", "onClick"])) : createCommentVNode("", true)
159
159
  ], 10, _hoisted_1);
160
- }), 256)),
161
- props.clean ? (openBlock(), createElementBlock("li", {
162
- key: 0,
163
- class: normalizeClass([unref(cs).z("select-clean")])
164
- }, [
165
- createElementVNode("span", {
166
- class: normalizeClass([unref(cs).z("select-clean-but")]),
167
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => onClean(), ["stop"]))
168
- }, " 关闭 ", 2)
169
- ], 2)) : createCommentVNode("", true)
160
+ }), 256))
170
161
  ], 2)
171
162
  ], 2)) : createCommentVNode("", true)
172
163
  ]),
@@ -1,19 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$3 = require("../../../directives/expose/index.cjs");
5
- const index$2 = require("element-plus/es/components/input/index");
4
+ const index$4 = require("../../../directives/expose/index.cjs");
5
+ const index$3 = require("element-plus/es/components/input/index");
6
6
  const data = require("./data.cjs");
7
- const index$1 = require("../../../hooks/cssname/index.cjs");
8
- const index = require("../../../hooks/inherit/index.cjs");
7
+ const index$2 = require("../../../hooks/cssname/index.cjs");
8
+ const index$1 = require("../../../hooks/inherit/index.cjs");
9
+ const index = require("../../../hooks/locale/index.cjs");
9
10
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
11
  ...{ inheritAttrs: false },
11
12
  __name: "index",
12
13
  props: data.dataProps,
13
14
  emits: data.dataEmits,
14
15
  setup(__props, { expose: __expose, emit: __emit }) {
15
- const attrs = index.useInherit(vue.useAttrs());
16
- const cs = index$1.useCssName("inputs");
16
+ const { getLocale } = index.useLocale();
17
+ const attrs = index$1.useInherit(vue.useAttrs());
18
+ const cs = index$2.useCssName("inputs");
17
19
  const props = __props;
18
20
  const slots = vue.useSlots();
19
21
  const emit = __emit;
@@ -21,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
23
  const once = setOnce();
22
24
  const placeholder = vue.computed(() => {
23
25
  if (typeof props.placeholder == "undefined") {
24
- return "请输入";
26
+ return getLocale("form.import");
25
27
  } else {
26
28
  if (props.oncePlaceholder) {
27
29
  return once(props.placeholder);
@@ -57,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
59
  ref: refEl,
58
60
  class: vue.unref(cs).z()
59
61
  }, vue.unref(attrs).root), [
60
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.ElInput), vue.mergeProps({
62
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$3.ElInput), vue.mergeProps({
61
63
  class: vue.unref(cs).z("input"),
62
64
  modelValue: value.value,
63
65
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
@@ -71,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
71
73
  };
72
74
  })
73
75
  ]), 1040, ["class", "modelValue", "placeholder"])), [
74
- [vue.unref(index$3.default), {}]
76
+ [vue.unref(index$4.default), {}]
75
77
  ])
76
78
  ], 16);
77
79
  };
@@ -4,12 +4,14 @@ import { ElInput } from "element-plus/es/components/input/index";
4
4
  import { dataEmits, dataProps } from "./data.js";
5
5
  import { useCssName } from "../../../hooks/cssname/index.js";
6
6
  import { useInherit } from "../../../hooks/inherit/index.js";
7
+ import { useLocale } from "../../../hooks/locale/index.js";
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  ...{ inheritAttrs: false },
9
10
  __name: "index",
10
11
  props: dataProps,
11
12
  emits: dataEmits,
12
13
  setup(__props, { expose: __expose, emit: __emit }) {
14
+ const { getLocale } = useLocale();
13
15
  const attrs = useInherit(useAttrs());
14
16
  const cs = useCssName("inputs");
15
17
  const props = __props;
@@ -19,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
21
  const once = setOnce();
20
22
  const placeholder = computed(() => {
21
23
  if (typeof props.placeholder == "undefined") {
22
- return "请输入";
24
+ return getLocale("form.import");
23
25
  } else {
24
26
  if (props.oncePlaceholder) {
25
27
  return once(props.placeholder);
@@ -1,4 +1,7 @@
1
1
  import { ExtractPublicPropTypes } from 'vue';
2
+ /***
3
+ * 没有用,依旧无法解决 iframe 加载 刷新问题
4
+ */
2
5
  export declare const dataProps: {
3
6
  /**
4
7
  * @props { String } is= ( )
@@ -67,6 +67,7 @@
67
67
  }
68
68
  .paging-slot > span {
69
69
  margin-right: 10px;
70
+ white-space: nowrap;
70
71
  }
71
72
  .paging .el-pagination__total {
72
73
  font-size: 14px;
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$1 = require("../../lists/index.cjs");
5
- const index$3 = require("../../paging/index.cjs");
6
- const index$2 = require("../../../directives/scroll/index.cjs");
4
+ const index$2 = require("../../lists/index.cjs");
5
+ const index$4 = require("../../paging/index.cjs");
6
+ const index$3 = require("../../../directives/scroll/index.cjs");
7
7
  const pagin = require("../../tables/common/pagin.cjs");
8
- const index = require("../../../hooks/cssname/index.cjs");
8
+ const index$1 = require("../../../hooks/cssname/index.cjs");
9
+ const index = require("../../../hooks/locale/index.cjs");
9
10
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
11
  __name: "index",
11
12
  props: pagin.dataProps,
12
13
  emits: pagin.dataEmit,
13
14
  setup(__props, { expose: __expose, emit: __emit }) {
14
- const cs = index.useCssName("listsp");
15
+ const { getLocale } = index.useLocale();
16
+ const cs = index$1.useCssName("listsp");
15
17
  const slots = vue.useSlots();
16
18
  const props = __props;
17
19
  const emit = __emit;
@@ -37,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
37
39
  onCurrentChange,
38
40
  paginat,
39
41
  data
40
- } = pagin.useInit(props, emit, refTable, true);
42
+ } = pagin.useInit(props, emit, refTable, getLocale, true);
41
43
  __expose({
42
44
  getSelection,
43
45
  initData,
@@ -51,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
51
53
  class: vue.normalizeClass(vue.unref(cs).z()),
52
54
  style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
53
55
  }, [
54
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$1.Lists), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
56
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.Lists), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
55
57
  height: vue.unref(height),
56
58
  ref_key: "refTable",
57
59
  ref: refTable,
@@ -82,9 +84,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
82
84
  };
83
85
  })
84
86
  ]), 1040, ["height", "class", "scroll-selector", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
85
- [vue.unref(index$2.default), vue.unref(scroll)]
87
+ [vue.unref(index$3.default), vue.unref(scroll)]
86
88
  ]),
87
- ((_b = vue.unref(paginat)) == null ? void 0 : _b.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
89
+ ((_b = vue.unref(paginat)) == null ? void 0 : _b.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
88
90
  class: vue.unref(cs).z("paginat"),
89
91
  paginat: vue.unref(paginat),
90
92
  total: vue.unref(data).total,
@@ -4,11 +4,13 @@ import { Paging } from "../../paging/index.js";
4
4
  import vScroll from "../../../directives/scroll/index.js";
5
5
  import { useInit, dataEmit, dataProps } from "../../tables/common/pagin.js";
6
6
  import { useCssName } from "../../../hooks/cssname/index.js";
7
+ import { useLocale } from "../../../hooks/locale/index.js";
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "index",
9
10
  props: dataProps,
10
11
  emits: dataEmit,
11
12
  setup(__props, { expose: __expose, emit: __emit }) {
13
+ const { getLocale } = useLocale();
12
14
  const cs = useCssName("listsp");
13
15
  const slots = useSlots();
14
16
  const props = __props;
@@ -35,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
37
  onCurrentChange,
36
38
  paginat,
37
39
  data
38
- } = useInit(props, emit, refTable, true);
40
+ } = useInit(props, emit, refTable, getLocale, true);
39
41
  __expose({
40
42
  getSelection,
41
43
  initData,
@@ -99,6 +99,9 @@
99
99
  .forms-elf.center .el-form-item__label {
100
100
  justify-content: center;
101
101
  }
102
+ .forms .forms-li.forms-buts {
103
+ margin-right: 0;
104
+ }
102
105
  .forms-buts-div .el-button {
103
106
  height: inherit;
104
107
  }
@@ -215,6 +218,7 @@
215
218
  }
216
219
  .paging-slot > span {
217
220
  margin-right: 10px;
221
+ white-space: nowrap;
218
222
  }
219
223
  .paging .el-pagination__total {
220
224
  font-size: 14px;