@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
@@ -67,7 +67,7 @@ export declare const dataProps: {
67
67
  };
68
68
  };
69
69
  export declare const dataEmit: string[];
70
- export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit: Function, refTable: Ref, isEl?: boolean) => {
70
+ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit: Function, refTable: Ref, getLocale: Function, isEl?: boolean) => {
71
71
  height: ComputedRef<any>;
72
72
  tableConfig: Ref<{
73
73
  [x: string]: any;
@@ -48,7 +48,7 @@ const dataProps = {
48
48
  }
49
49
  };
50
50
  const dataEmit = ["list-events", "selection"];
51
- const useInit = (props2, emit, refTable, isEl) => {
51
+ const useInit = (props2, emit, refTable, getLocale, isEl) => {
52
52
  var _a, _b;
53
53
  const loading = ref(false);
54
54
  const mpagconfig = {
@@ -139,14 +139,14 @@ const useInit = (props2, emit, refTable, isEl) => {
139
139
  list.splice(i + 1, 0, {
140
140
  type: "index",
141
141
  width: width.index,
142
- label: "序号",
142
+ label: getLocale("serial"),
143
143
  fixed: true
144
144
  });
145
145
  } else {
146
146
  list.unshift({
147
147
  type: "index",
148
148
  width: width.index,
149
- label: "序号",
149
+ label: getLocale("serial"),
150
150
  fixed: true
151
151
  });
152
152
  }
@@ -41,6 +41,7 @@
41
41
  }
42
42
  .paging-slot > span {
43
43
  margin-right: 10px;
44
+ white-space: nowrap;
44
45
  }
45
46
  .paging .el-pagination__total {
46
47
  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("../../tables/index.cjs");
5
- const index$3 = require("../../paging/index.cjs");
6
- const index$2 = require("../../../directives/scroll/index.cjs");
4
+ const index$2 = require("../../tables/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("tablesp");
15
+ const { getLocale } = index.useLocale();
16
+ const cs = index$1.useCssName("tablesp");
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.Tables), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
56
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.Tables), 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,
@@ -83,9 +85,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
83
85
  };
84
86
  })
85
87
  ]), 1040, ["height", "class", "scroll-selector", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
86
- [vue.unref(index$2.default), vue.unref(scroll)]
88
+ [vue.unref(index$3.default), vue.unref(scroll)]
87
89
  ]),
88
- ((_c = vue.unref(paginat)) == null ? void 0 : _c.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
90
+ ((_c = vue.unref(paginat)) == null ? void 0 : _c.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
89
91
  class: vue.unref(cs).z("paginat"),
90
92
  paginat: vue.unref(paginat),
91
93
  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("tablesp");
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,
@@ -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$2 = require("../../tables/index.cjs");
5
- const index$1 = require("../../tablesv/index.cjs");
6
- const index$3 = require("../../paging/index.cjs");
4
+ const index$3 = require("../../tables/index.cjs");
5
+ const index$2 = require("../../tablesv/index.cjs");
6
+ const index$4 = require("../../paging/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("tabless");
15
+ const { getLocale } = index.useLocale();
16
+ const cs = index$1.useCssName("tabless");
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);
42
+ } = pagin.useInit(props, emit, refTable, getLocale);
41
43
  __expose({
42
44
  getSelection,
43
45
  initData,
@@ -50,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
50
52
  class: vue.normalizeClass(vue.unref(cs).z()),
51
53
  style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
52
54
  }, [
53
- vue.unref(tableConfig).type == 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.Tablesv), vue.mergeProps({ key: 0 }, vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
55
+ vue.unref(tableConfig).type == 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Tablesv), vue.mergeProps({ key: 0 }, vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
54
56
  height: vue.unref(height),
55
57
  ref_key: "refTable",
56
58
  ref: refTable,
@@ -75,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
75
77
  ])
76
78
  };
77
79
  })
78
- ]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.Tables), vue.mergeProps({ key: 1 }, vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
80
+ ]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$3.Tables), vue.mergeProps({ key: 1 }, vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
79
81
  height: vue.unref(height),
80
82
  ref_key: "refTable",
81
83
  ref: refTable,
@@ -105,7 +107,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
105
107
  };
106
108
  })
107
109
  ]), 1040, ["height", "class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
108
- ((_d = vue.unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Paging), vue.mergeProps({ key: 2 }, vue.unref(pagconfig), {
110
+ ((_d = vue.unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Paging), vue.mergeProps({ key: 2 }, vue.unref(pagconfig), {
109
111
  class: vue.unref(cs).z("paginat"),
110
112
  paginat: vue.unref(paginat),
111
113
  total: vue.unref(data).total,
@@ -4,11 +4,13 @@ import { Tablesv } from "../../tablesv/index.js";
4
4
  import { Paging } from "../../paging/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("tabless");
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);
40
+ } = useInit(props, emit, refTable, getLocale);
39
41
  __expose({
40
42
  getSelection,
41
43
  initData,
@@ -107,6 +107,7 @@
107
107
  }
108
108
  .paging-slot > span {
109
109
  margin-right: 10px;
110
+ white-space: nowrap;
110
111
  }
111
112
  .paging .el-pagination__total {
112
113
  font-size: 14px;
@@ -1,16 +1,18 @@
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("../../tablesv/index.cjs");
5
- const index$2 = require("../../paging/index.cjs");
4
+ const index$2 = require("../../tablesv/index.cjs");
5
+ const index$3 = require("../../paging/index.cjs");
6
6
  const pagin = require("../../tables/common/pagin.cjs");
7
- const index = require("../../../hooks/cssname/index.cjs");
7
+ const index$1 = require("../../../hooks/cssname/index.cjs");
8
+ const index = require("../../../hooks/locale/index.cjs");
8
9
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
10
  __name: "index",
10
11
  props: pagin.dataProps,
11
12
  emits: pagin.dataEmit,
12
13
  setup(__props, { expose: __expose, emit: __emit }) {
13
- const cs = index.useCssName("tablesvp");
14
+ const { getLocale } = index.useLocale();
15
+ const cs = index$1.useCssName("tablesvp");
14
16
  const slots = vue.useSlots();
15
17
  const props = __props;
16
18
  const emit = __emit;
@@ -34,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
34
36
  onCurrentChange,
35
37
  paginat,
36
38
  data
37
- } = pagin.useInit(props, emit, refTable);
39
+ } = pagin.useInit(props, emit, refTable, getLocale);
38
40
  __expose({
39
41
  getSelection,
40
42
  initData,
@@ -47,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
47
49
  class: vue.normalizeClass(vue.unref(cs).z()),
48
50
  style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
49
51
  }, [
50
- vue.createVNode(vue.unref(index$1.Tablesv), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
52
+ vue.createVNode(vue.unref(index$2.Tablesv), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
51
53
  height: vue.unref(height) == "auto" ? "auto" : "100%",
52
54
  ref_key: "refTable",
53
55
  ref: refTable,
@@ -73,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
73
75
  };
74
76
  })
75
77
  ]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"]),
76
- ((_b = vue.unref(tableConfig).paginat) == null ? void 0 : _b.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
78
+ ((_b = vue.unref(tableConfig).paginat) == null ? void 0 : _b.is) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
77
79
  class: vue.unref(cs).z("paginat"),
78
80
  paginat: vue.unref(paginat),
79
81
  total: vue.unref(data).total,
@@ -3,11 +3,13 @@ import { Tablesv } from "../../tablesv/index.js";
3
3
  import { Paging } from "../../paging/index.js";
4
4
  import { useInit, dataEmit, dataProps } from "../../tables/common/pagin.js";
5
5
  import { useCssName } from "../../../hooks/cssname/index.js";
6
+ import { useLocale } from "../../../hooks/locale/index.js";
6
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
8
  __name: "index",
8
9
  props: dataProps,
9
10
  emits: dataEmit,
10
11
  setup(__props, { expose: __expose, emit: __emit }) {
12
+ const { getLocale } = useLocale();
11
13
  const cs = useCssName("tablesvp");
12
14
  const slots = useSlots();
13
15
  const props = __props;
@@ -32,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
34
  onCurrentChange,
33
35
  paginat,
34
36
  data
35
- } = useInit(props, emit, refTable);
37
+ } = useInit(props, emit, refTable, getLocale);
36
38
  __expose({
37
39
  getSelection,
38
40
  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
  }
@@ -60,6 +60,7 @@
60
60
  cursor: pointer;
61
61
  }
62
62
  .icon-picker .icon-picker-dialog-list-item:hover {
63
+ background-color: #e5e5e5;
63
64
  color: var(--on-icon-picker);
64
65
  }
65
66
  .icon-picker .icon-picker-dialog-list-icon {
@@ -15,4 +15,8 @@
15
15
  .iframe {
16
16
  width: 100%;
17
17
  height: 100%;
18
+ }
19
+ .iframe > iframe {
20
+ width: 100%;
21
+ height: 100%;
18
22
  }
@@ -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
  }
@@ -420,6 +423,7 @@
420
423
  cursor: pointer;
421
424
  }
422
425
  .icon-picker .icon-picker-dialog-list-item:hover {
426
+ background-color: #e5e5e5;
423
427
  color: var(--on-icon-picker);
424
428
  }
425
429
  .icon-picker .icon-picker-dialog-list-icon {
@@ -463,6 +467,10 @@
463
467
  width: 100%;
464
468
  height: 100%;
465
469
  }
470
+ .iframe > iframe {
471
+ width: 100%;
472
+ height: 100%;
473
+ }
466
474
 
467
475
  .menus .menu-li-item {
468
476
  display: flex;
@@ -584,6 +592,7 @@
584
592
  }
585
593
  .paging-slot > span {
586
594
  margin-right: 10px;
595
+ white-space: nowrap;
587
596
  }
588
597
  .paging .el-pagination__total {
589
598
  font-size: 14px;
@@ -940,7 +949,7 @@
940
949
  padding: 0;
941
950
  box-sizing: border-box;
942
951
  }
943
- .input-history-select-li {
952
+ .input-history-select-ul .input-history-select-li {
944
953
  padding: 0 32px 0 20px;
945
954
  position: relative;
946
955
  white-space: nowrap;
@@ -952,36 +961,26 @@
952
961
  box-sizing: border-box;
953
962
  cursor: pointer;
954
963
  }
955
- .input-history-select-li.hover, .input-history-select-li:hover {
964
+ .input-history-select-ul .input-history-select-li.hover, .input-history-select-ul .input-history-select-li:hover {
956
965
  background-color: #f5f7fa;
957
966
  }
958
- .input-history-select-li.hover .input-history-select-li-clean, .input-history-select-li:hover .input-history-select-li-clean {
967
+ .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 {
959
968
  display: inline-flex;
960
969
  }
961
- .input-history-select-li.selected {
970
+ .input-history-select-ul .input-history-select-li.selected {
962
971
  color: var(--bv-color-primary);
963
972
  font-weight: 700;
964
973
  }
965
- .input-history-select-li.is-disabled {
974
+ .input-history-select-ul .input-history-select-li.is-disabled {
966
975
  background-color: #ffffff;
967
976
  color: #a8abb2;
968
977
  cursor: not-allowed;
969
978
  }
970
- .input-history-select-li-clean {
971
- position: absolute;
979
+ .input-history-select-ul .input-history-select-li-clean {
972
980
  align-items: center;
973
981
  justify-content: center;
974
- right: 16px;
975
- height: 100%;
976
982
  display: none;
977
- }
978
- .input-history-select-clean {
979
- padding: 0 20px;
980
- }
981
- .input-history-select-clean-but {
982
- float: right;
983
- color: #ccc;
984
- cursor: pointer;
983
+ margin-left: 5px;
985
984
  }
986
985
 
987
986
  .input-num-input {
@@ -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
  }
@@ -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;
package/dist/css/page.css CHANGED
@@ -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;
@@ -24,6 +24,7 @@
24
24
  }
25
25
  .paging-slot > span {
26
26
  margin-right: 10px;
27
+ white-space: nowrap;
27
28
  }
28
29
  .paging .el-pagination__total {
29
30
  font-size: 14px;
@@ -41,6 +41,7 @@
41
41
  }
42
42
  .paging-slot > span {
43
43
  margin-right: 10px;
44
+ white-space: nowrap;
44
45
  }
45
46
  .paging .el-pagination__total {
46
47
  font-size: 14px;
@@ -107,6 +107,7 @@
107
107
  }
108
108
  .paging-slot > span {
109
109
  margin-right: 10px;
110
+ white-space: nowrap;
110
111
  }
111
112
  .paging .el-pagination__total {
112
113
  font-size: 14px;
@@ -11,7 +11,9 @@ exports.eventAliass = index$1.eventAliass;
11
11
  exports.provideGlobalConfig = index$2.provideGlobalConfig;
12
12
  exports.setGlobalConfig = index$2.setGlobalConfig;
13
13
  exports.useGlobalConfig = index$2.useGlobalConfig;
14
+ exports.buildLocaleAdd = index$3.buildLocaleAdd;
14
15
  exports.buildLocaleContext = index$3.buildLocaleContext;
16
+ exports.buildPropsDefault = index$3.buildPropsDefault;
15
17
  exports.buildTranslator = index$3.buildTranslator;
16
18
  exports.useLocale = index$3.useLocale;
17
19
  exports.useAttrValue = index$4.useAttrValue;
@@ -2,10 +2,12 @@ import { useCssName } from "./cssname/index.js";
2
2
  import "./default-config/index.js";
3
3
  import { eventAliass } from "./event-aliass/index.js";
4
4
  import { provideGlobalConfig, setGlobalConfig, useGlobalConfig } from "./global-config/index.js";
5
- import { buildLocaleContext, buildTranslator, useLocale } from "./locale/index.js";
5
+ import { buildLocaleAdd, buildLocaleContext, buildPropsDefault, buildTranslator, useLocale } from "./locale/index.js";
6
6
  import { useAttrValue, useInherit } from "./inherit/index.js";
7
7
  export {
8
+ buildLocaleAdd,
8
9
  buildLocaleContext,
10
+ buildPropsDefault,
9
11
  buildTranslator,
10
12
  eventAliass,
11
13
  provideGlobalConfig,
@@ -17,7 +17,52 @@ function getValue(key, locale) {
17
17
  return obj;
18
18
  }
19
19
  function buildTranslator(locale) {
20
- return (path) => getValue(path, vue.unref(locale).value);
20
+ return (path, ...values) => {
21
+ let v = getValue(path, vue.unref(locale).value);
22
+ if (values.length > 0) {
23
+ values.forEach((z, i) => {
24
+ v = v.replaceAll("$" + (i + 1), z);
25
+ });
26
+ }
27
+ return v;
28
+ };
29
+ }
30
+ function getPropsDefault(props, arr, getLocale) {
31
+ const keys = [];
32
+ const keyObj = {};
33
+ arr.forEach((v) => {
34
+ keys.push(v.name);
35
+ keyObj[v.name] = v;
36
+ });
37
+ return new Proxy(props, {
38
+ get(_target, k) {
39
+ if (typeof k === "string" && keys.includes(k)) {
40
+ const v = _target[k];
41
+ if (v === void 0) {
42
+ const o = keyObj[k];
43
+ const l = getLocale(o.locale);
44
+ if (o.filter) {
45
+ return o.filter(l);
46
+ }
47
+ return l;
48
+ }
49
+ return v;
50
+ }
51
+ return _target[k];
52
+ }
53
+ });
54
+ }
55
+ function buildPropsDefault(getLocale) {
56
+ return (props, arr) => getPropsDefault(props, arr, getLocale);
57
+ }
58
+ function buildLocaleAdd(locale, lang) {
59
+ return (...arr) => {
60
+ if (lang.value == "zh-cn") {
61
+ return arr.map((o) => getValue(o, vue.unref(locale).value)).join("");
62
+ } else {
63
+ return arr.map((o) => getValue(o, vue.unref(locale).value)).join(" ");
64
+ }
65
+ };
21
66
  }
22
67
  function buildLocaleContext(locale) {
23
68
  const lang = vue.computed(() => vue.unref(locale).name);
@@ -25,7 +70,9 @@ function buildLocaleContext(locale) {
25
70
  return {
26
71
  lang,
27
72
  locale: localeRef,
28
- getLocale: buildTranslator(locale)
73
+ getPropsDefault: buildPropsDefault(buildTranslator(locale)),
74
+ getLocale: buildTranslator(locale),
75
+ getLocaleAdd: buildLocaleAdd(locale, lang)
29
76
  };
30
77
  }
31
78
  function useLocale() {
@@ -43,6 +90,8 @@ function useLocale() {
43
90
  })
44
91
  );
45
92
  }
93
+ exports.buildLocaleAdd = buildLocaleAdd;
46
94
  exports.buildLocaleContext = buildLocaleContext;
95
+ exports.buildPropsDefault = buildPropsDefault;
47
96
  exports.buildTranslator = buildTranslator;
48
97
  exports.useLocale = useLocale;