@fangzhongya/fang-ui 0.1.37 → 0.1.39

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 (116) hide show
  1. package/dist/components/box-adjust/src/data.cjs +2 -2
  2. package/dist/components/box-adjust/src/data.d.ts +2 -2
  3. package/dist/components/box-adjust/src/data.js +2 -2
  4. package/dist/components/common/css.d.ts +7 -0
  5. package/dist/components/common/list.d.ts +7 -0
  6. package/dist/components/common/urls.d.ts +6 -0
  7. package/dist/components/common/use.cjs +18 -35
  8. package/dist/components/common/use.d.ts +91 -5
  9. package/dist/components/common/use.js +18 -35
  10. package/dist/components/dates2/src/data.cjs +1 -1
  11. package/dist/components/dates2/src/data.d.ts +1 -1
  12. package/dist/components/dates2/src/data.js +1 -1
  13. package/dist/components/forms/src/setup.cjs +8 -23
  14. package/dist/components/forms/src/setup.d.ts +11 -1
  15. package/dist/components/forms/src/setup.js +11 -26
  16. package/dist/components/forms/src/util.cjs +85 -17
  17. package/dist/components/forms/src/util.d.ts +13 -7
  18. package/dist/components/forms/src/util.js +87 -19
  19. package/dist/components/forms-item/src/label.cjs +0 -1
  20. package/dist/components/forms-item/src/label.js +0 -1
  21. package/dist/components/list/index.css +1 -1
  22. package/dist/components/list/index.scss +1 -1
  23. package/dist/components/list/src/data.cjs +3 -0
  24. package/dist/components/list/src/data.d.ts +3 -0
  25. package/dist/components/list/src/data.js +3 -0
  26. package/dist/components/list/src/index2.cjs +19 -24
  27. package/dist/components/list/src/index2.js +17 -22
  28. package/dist/components/list/src/util.cjs +14 -6
  29. package/dist/components/list/src/util.d.ts +2 -1
  30. package/dist/components/list/src/util.js +14 -6
  31. package/dist/components/list/style/index2.scss +1 -0
  32. package/dist/components/lists/index.css +1 -1
  33. package/dist/components/lists/src/data.d.ts +3 -3
  34. package/dist/components/lists/src/index2.cjs +9 -9
  35. package/dist/components/lists/src/index2.js +9 -9
  36. package/dist/components/listsp/index.css +1 -1
  37. package/dist/components/listspd/index.css +1 -1
  38. package/dist/components/no-data/src/data.cjs +2 -2
  39. package/dist/components/no-data/src/data.d.ts +2 -2
  40. package/dist/components/no-data/src/data.js +2 -2
  41. package/dist/components/no-data/src/index2.cjs +2 -2
  42. package/dist/components/no-data/src/index2.js +2 -2
  43. package/dist/components/page/index.css +1 -1
  44. package/dist/components/tables/common/com-but.cjs +4 -0
  45. package/dist/components/tables/common/com-but.js +4 -0
  46. package/dist/components/tables/common/{table-but2.cjs → com-but2.cjs} +17 -13
  47. package/dist/components/tables/common/{table-but2.js → com-but2.js} +14 -10
  48. package/dist/components/tables/common/com-color.cjs +4 -0
  49. package/dist/components/tables/common/com-color.js +4 -0
  50. package/dist/components/tables/common/{table-color2.cjs → com-color2.cjs} +21 -8
  51. package/dist/components/tables/common/{table-color2.js → com-color2.js} +23 -10
  52. package/dist/components/tables/common/com-fig.cjs +4 -0
  53. package/dist/components/tables/common/com-fig.js +4 -0
  54. package/dist/components/tables/common/com-fig2.cjs +92 -0
  55. package/dist/components/tables/common/com-fig2.js +92 -0
  56. package/dist/components/tables/common/com-lis.cjs +4 -0
  57. package/dist/components/tables/common/com-lis.js +4 -0
  58. package/dist/components/tables/common/com-lis2.cjs +151 -0
  59. package/dist/components/tables/common/com-lis2.js +151 -0
  60. package/dist/components/tables/common/pagin.d.ts +24 -6
  61. package/dist/components/tables/common/util.cjs +56 -4
  62. package/dist/components/tables/common/util.d.ts +14 -0
  63. package/dist/components/tables/common/util.js +57 -5
  64. package/dist/components/tables/src/column.cjs +5 -3
  65. package/dist/components/tables/src/column.js +6 -4
  66. package/dist/components/tables/src/columns2.cjs +9 -7
  67. package/dist/components/tables/src/columns2.js +9 -7
  68. package/dist/components/tables/src/data.d.ts +3 -3
  69. package/dist/components/tables/src/index2.cjs +1 -1
  70. package/dist/components/tables/src/index2.js +1 -1
  71. package/dist/components/tables/style/index2.scss +1 -0
  72. package/dist/components/tablesv/src/column.cjs +5 -3
  73. package/dist/components/tablesv/src/column.js +6 -4
  74. package/dist/components/tablesv/src/columns2.cjs +9 -7
  75. package/dist/components/tablesv/src/columns2.js +9 -7
  76. package/dist/components/tablesv/src/data.d.ts +3 -3
  77. package/dist/components/tablesv/src/index2.cjs +1 -1
  78. package/dist/components/tablesv/src/index2.js +1 -1
  79. package/dist/components/window/src/data.cjs +1 -1
  80. package/dist/components/window/src/data.d.ts +1 -1
  81. package/dist/components/window/src/data.js +1 -1
  82. package/dist/css/index.css +1 -1
  83. package/dist/css/list.css +1 -1
  84. package/dist/css/lists.css +1 -1
  85. package/dist/css/listsp.css +1 -1
  86. package/dist/css/listspd.css +1 -1
  87. package/dist/css/page.css +1 -1
  88. package/dist/icons/index.json +1 -1
  89. package/dist/index.css +1 -1
  90. package/dist/locale/en.cjs +2 -1
  91. package/dist/locale/en.d.ts +1 -0
  92. package/dist/locale/en.js +2 -1
  93. package/dist/locale/zh-cn.cjs +2 -1
  94. package/dist/locale/zh-cn.d.ts +1 -0
  95. package/dist/locale/zh-cn.js +2 -1
  96. package/dist/type.d.ts +12 -3
  97. package/dist/utils/css.cjs +4 -0
  98. package/dist/utils/css.d.ts +1 -0
  99. package/dist/utils/css.js +4 -0
  100. package/package.json +2 -2
  101. package/dist/components/tables/common/img.cjs +0 -4
  102. package/dist/components/tables/common/img.js +0 -4
  103. package/dist/components/tables/common/img2.cjs +0 -37
  104. package/dist/components/tables/common/img2.js +0 -37
  105. package/dist/components/tables/common/table-but.cjs +0 -4
  106. package/dist/components/tables/common/table-but.js +0 -4
  107. package/dist/components/tables/common/table-color.cjs +0 -4
  108. package/dist/components/tables/common/table-color.js +0 -4
  109. package/dist/components/tables/common/table-list.cjs +0 -4
  110. package/dist/components/tables/common/table-list.js +0 -4
  111. package/dist/components/tables/common/table-list2.cjs +0 -125
  112. package/dist/components/tables/common/table-list2.js +0 -125
  113. /package/dist/components/{global-config → draggable}/index.css +0 -0
  114. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  115. /package/dist/css/{global-config.css → draggable.css} +0 -0
  116. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
@@ -1,7 +1,45 @@
1
- import { withModifiers } from "vue";
1
+ import { render, isVNode, h, withModifiers } from "vue";
2
+ import { useGetDomLabel } from "../../common/use.js";
2
3
  import { firstUpper } from "@fangzhongya/utils/basic/string/firstUpper";
3
4
  import { splitUpper } from "@fangzhongya/utils/basic/string/splitUpper";
4
5
  import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
6
+ import { getCssNumber } from "../../../utils/css.js";
7
+ function getVNodeWidth(vnode) {
8
+ const container = document.createElement("div");
9
+ Object.assign(container.style, {
10
+ position: "absolute",
11
+ left: "-9999px",
12
+ top: "-9999px",
13
+ whiteSpace: "pre-wrap",
14
+ display: "inline-block",
15
+ visibility: "hidden"
16
+ });
17
+ document.body.appendChild(container);
18
+ render(vnode, container);
19
+ const width = container.offsetWidth;
20
+ container.remove();
21
+ render(null, container);
22
+ return width;
23
+ }
24
+ function setLabelWidth(obj, config) {
25
+ let label = useGetDomLabel(obj, {}, {}, {}, {}, () => {
26
+ }, 0);
27
+ if (!isVNode(label)) {
28
+ label = h(
29
+ "div",
30
+ {
31
+ style: {
32
+ whiteSpace: "pre-wrap",
33
+ display: "inline-block"
34
+ }
35
+ },
36
+ label
37
+ );
38
+ }
39
+ const width = getVNodeWidth(label);
40
+ const interval = config.intervalHorizon ?? config.interval;
41
+ return width + getCssNumber(interval) * 2;
42
+ }
5
43
  function setMinWidth(obj, props) {
6
44
  const config = (props == null ? void 0 : props.table) ?? {};
7
45
  if (obj.width) {
@@ -12,16 +50,18 @@ function setMinWidth(obj, props) {
12
50
  if (typeof minWidth == "function") {
13
51
  return minWidth(obj, config);
14
52
  } else if (typeof minWidth == "boolean") {
15
- return (obj.label || "").length * 16 + 24;
53
+ return setLabelWidth(obj, config);
16
54
  } else {
17
55
  return minWidth;
18
56
  }
19
57
  } else {
20
58
  const minWidth2 = getAttrValue(config, "minWidth");
21
- if (minWidth2) {
22
- return minWidth2;
59
+ if (typeof minWidth2 == "function") {
60
+ return minWidth2(obj, config);
61
+ } else if (typeof minWidth2 == "boolean") {
62
+ return setLabelWidth(obj, config);
23
63
  } else {
24
- return;
64
+ return minWidth2;
25
65
  }
26
66
  }
27
67
  }
@@ -110,7 +150,19 @@ function eventAliass(callback, arr, obj, $event) {
110
150
  }
111
151
  return is;
112
152
  }
153
+ function setEmptyDisplay(value, emptyDisplay, isStr) {
154
+ if (isStr) {
155
+ if (value === "" || value === void 0 || value === null) {
156
+ return emptyDisplay;
157
+ }
158
+ } else {
159
+ if (value === void 0 || value === null) {
160
+ return emptyDisplay;
161
+ }
162
+ }
163
+ }
113
164
  export {
114
165
  eventAliass,
166
+ setEmptyDisplay,
115
167
  setMinWidth
116
168
  };
@@ -55,7 +55,7 @@ function setSslot(obj, scope, emit, slots, props, index$12) {
55
55
  index.useComponsGet(config.provides.compons),
56
56
  emit,
57
57
  index$12,
58
- scope
58
+ { ...scope, options: props.options, config: props.table }
59
59
  );
60
60
  if (column) {
61
61
  return column;
@@ -91,13 +91,15 @@ function defaultDom(obj, scope, props, index2) {
91
91
  }
92
92
  }
93
93
  },
94
- domValue ?? table.emptyDisplay ?? ""
94
+ setDomValue(domValue, table)
95
95
  );
96
96
  }
97
+ function setDomValue(domValue, table) {
98
+ return (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
99
+ }
97
100
  function setHeader(obj, scope, slots, emit, props, index$12) {
98
101
  const optionss = props.options || {};
99
102
  return use.useGetDomLabel(
100
- obj.label,
101
103
  obj,
102
104
  scope.row,
103
105
  slots,
@@ -3,7 +3,7 @@ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../
3
3
  import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
4
4
  import { useComponsGet } from "../../../hooks/compons/index.js";
5
5
  import { provides } from "../common/config.js";
6
- import { setMinWidth } from "../common/util.js";
6
+ import { setEmptyDisplay, setMinWidth } from "../common/util.js";
7
7
  import { lineToSmallHump } from "@fangzhongya/utils/name/lineToSmallHump";
8
8
  import { TableColumn } from "../../table-column/index.js";
9
9
  const noProps = /* @__PURE__ */ new Set(["children", "class", "minWidth", "label"]);
@@ -53,7 +53,7 @@ function setSslot(obj, scope, emit, slots, props, index) {
53
53
  useComponsGet(provides.compons),
54
54
  emit,
55
55
  index,
56
- scope
56
+ { ...scope, options: props.options, config: props.table }
57
57
  );
58
58
  if (column) {
59
59
  return column;
@@ -89,13 +89,15 @@ function defaultDom(obj, scope, props, index) {
89
89
  }
90
90
  }
91
91
  },
92
- domValue ?? table.emptyDisplay ?? ""
92
+ setDomValue(domValue, table)
93
93
  );
94
94
  }
95
+ function setDomValue(domValue, table) {
96
+ return (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
97
+ }
95
98
  function setHeader(obj, scope, slots, emit, props, index) {
96
99
  const optionss = props.options || {};
97
100
  return useGetDomLabel(
98
- obj.label,
99
101
  obj,
100
102
  scope.row,
101
103
  slots,
@@ -2,15 +2,17 @@
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
- require("../common/table-but.cjs");
6
- require("../common/table-color.cjs");
7
- require("../common/table-list.cjs");
8
- const tableList_vue_vue_type_script_setup_true_lang = require("../common/table-list2.cjs");
9
- const tableColor_vue_vue_type_script_setup_true_lang = require("../common/table-color2.cjs");
10
- const tableBut_vue_vue_type_script_setup_true_lang = require("../common/table-but2.cjs");
5
+ require("../common/com-but.cjs");
6
+ require("../common/com-color.cjs");
7
+ require("../common/com-lis.cjs");
8
+ require("../common/com-fig.cjs");
9
+ const comFig_vue_vue_type_script_setup_true_lang = require("../common/com-fig2.cjs");
10
+ const comLis_vue_vue_type_script_setup_true_lang = require("../common/com-lis2.cjs");
11
+ const comColor_vue_vue_type_script_setup_true_lang = require("../common/com-color2.cjs");
12
+ const comBut_vue_vue_type_script_setup_true_lang = require("../common/com-but2.cjs");
11
13
  const _sfc_main = vue.defineComponent({
12
14
  emits: ["list-events"],
13
- components: { But: tableBut_vue_vue_type_script_setup_true_lang.default, Color: tableColor_vue_vue_type_script_setup_true_lang.default, List: tableList_vue_vue_type_script_setup_true_lang.default },
15
+ components: { But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default },
14
16
  expose: [],
15
17
  props: {
16
18
  list: Array,
@@ -1,14 +1,16 @@
1
1
  import { defineComponent } from "vue";
2
2
  import { render } from "./columns3.js";
3
- import "../common/table-but.js";
4
- import "../common/table-color.js";
5
- import "../common/table-list.js";
6
- import _sfc_main$1 from "../common/table-list2.js";
7
- import _sfc_main$2 from "../common/table-color2.js";
8
- import _sfc_main$3 from "../common/table-but2.js";
3
+ import "../common/com-but.js";
4
+ import "../common/com-color.js";
5
+ import "../common/com-lis.js";
6
+ import "../common/com-fig.js";
7
+ import _sfc_main$1 from "../common/com-fig2.js";
8
+ import _sfc_main$2 from "../common/com-lis2.js";
9
+ import _sfc_main$3 from "../common/com-color2.js";
10
+ import _sfc_main$4 from "../common/com-but2.js";
9
11
  const _sfc_main = defineComponent({
10
12
  emits: ["list-events"],
11
- components: { But: _sfc_main$3, Color: _sfc_main$2, List: _sfc_main$1 },
13
+ components: { But: _sfc_main$4, Color: _sfc_main$3, Lis: _sfc_main$2, Fig: _sfc_main$1 },
12
14
  expose: [],
13
15
  props: {
14
16
  list: Array,
@@ -166,10 +166,10 @@ export declare const dataEmits: string[];
166
166
  export type DataEmits = typeof dataEmits;
167
167
  /**
168
168
  * @expose clearSelection ( ) 清除多选
169
- * @expose toggleRowSelectionList (row, selected, key ) 切换选择
170
- * @expose clearSelectionList ( ) 清空选中
169
+ * @expose toggleRowSelection (row, selected, key ) 切换选择
170
+ * @expose clearCurrentRow ( ) 清空选中
171
171
  * @expose { Object: { value: 值,
172
172
  list: 当前列,
173
- key: key的名称,} } getRowSelectionsCheckList (row, key ) 获取选中的值
173
+ key: key的名称,} } getSelections (row, key ) 获取选中的值
174
174
  */
175
175
  export declare const dataExpose: {};
@@ -183,7 +183,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
183
183
  ]),
184
184
  default: vue.withCtx(() => [
185
185
  vue.createVNode(columns_vue_vue_type_script_lang.default, {
186
- table: vue.unref(attrs).assem,
186
+ table: { ...vue.unref(props), ...vue.unref(attrs).assem },
187
187
  value: vue.unref(props).value,
188
188
  list: vue.unref(props).list,
189
189
  options: vue.unref(props).options,
@@ -181,7 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
181
  ]),
182
182
  default: withCtx(() => [
183
183
  createVNode(_sfc_main$1, {
184
- table: unref(attrs).assem,
184
+ table: { ...unref(props), ...unref(attrs).assem },
185
185
  value: unref(props).value,
186
186
  list: unref(props).list,
187
187
  options: unref(props).options,
@@ -2,4 +2,5 @@
2
2
  @use '../../table-column/style/index2.scss' as *;
3
3
  @use '../../table/style/index2.scss' as *;
4
4
  @use '../../button/style/index2.scss' as *;
5
+ @use '../../image/style/index2.scss' as *;
5
6
  @use '../index.scss' as *;
@@ -86,7 +86,7 @@ function setSslot(obj, scope, emit, slots, props, index$12) {
86
86
  index.useComponsGet(config.provides.compons),
87
87
  emit,
88
88
  index$12,
89
- scope
89
+ { ...scope, options: props.options, config: props.table }
90
90
  );
91
91
  if (column2) {
92
92
  return column2;
@@ -122,13 +122,15 @@ function defaultDom(obj, scope, props, index2) {
122
122
  }
123
123
  }
124
124
  },
125
- domValue ?? table.emptyDisplay ?? ""
125
+ setDomValue(domValue, table)
126
126
  );
127
127
  }
128
+ function setDomValue(domValue, table) {
129
+ return (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
130
+ }
128
131
  function setHeader(obj, scope, slots, emit, props, index$12) {
129
132
  const optionss = props.options || {};
130
133
  return use.useGetDomLabel(
131
- obj.label,
132
134
  obj,
133
135
  scope.row,
134
136
  slots,
@@ -3,7 +3,7 @@ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../
3
3
  import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
4
4
  import { useComponsGet } from "../../../hooks/compons/index.js";
5
5
  import { provides } from "../../tables/common/config.js";
6
- import { setMinWidth } from "../../tables/common/util.js";
6
+ import { setEmptyDisplay, setMinWidth } from "../../tables/common/util.js";
7
7
  import { lineToSmallHump } from "@fangzhongya/utils/name/lineToSmallHump";
8
8
  import { VxeColumn } from "vxe-table/es/column";
9
9
  import { Radio } from "../../radio/index.js";
@@ -84,7 +84,7 @@ function setSslot(obj, scope, emit, slots, props, index) {
84
84
  useComponsGet(provides.compons),
85
85
  emit,
86
86
  index,
87
- scope
87
+ { ...scope, options: props.options, config: props.table }
88
88
  );
89
89
  if (column) {
90
90
  return column;
@@ -120,13 +120,15 @@ function defaultDom(obj, scope, props, index) {
120
120
  }
121
121
  }
122
122
  },
123
- domValue ?? table.emptyDisplay ?? ""
123
+ setDomValue(domValue, table)
124
124
  );
125
125
  }
126
+ function setDomValue(domValue, table) {
127
+ return (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
128
+ }
126
129
  function setHeader(obj, scope, slots, emit, props, index) {
127
130
  const optionss = props.options || {};
128
131
  return useGetDomLabel(
129
- obj.label,
130
132
  obj,
131
133
  scope.row,
132
134
  slots,
@@ -3,15 +3,17 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const columns = require("./columns3.cjs");
5
5
  const index = require("../../tooltip/index.cjs");
6
- require("../../tables/common/table-but.cjs");
7
- require("../../tables/common/table-color.cjs");
8
- require("../../tables/common/table-list.cjs");
9
- const tableList_vue_vue_type_script_setup_true_lang = require("../../tables/common/table-list2.cjs");
10
- const tableColor_vue_vue_type_script_setup_true_lang = require("../../tables/common/table-color2.cjs");
11
- const tableBut_vue_vue_type_script_setup_true_lang = require("../../tables/common/table-but2.cjs");
6
+ require("../../tables/common/com-but.cjs");
7
+ require("../../tables/common/com-color.cjs");
8
+ require("../../tables/common/com-lis.cjs");
9
+ require("../../tables/common/com-fig.cjs");
10
+ const comFig_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-fig2.cjs");
11
+ const comLis_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-lis2.cjs");
12
+ const comColor_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-color2.cjs");
13
+ const comBut_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-but2.cjs");
12
14
  const _sfc_main = vue.defineComponent({
13
15
  emits: ["list-events"],
14
- components: { VxeTooltip: index.Tooltip, But: tableBut_vue_vue_type_script_setup_true_lang.default, Color: tableColor_vue_vue_type_script_setup_true_lang.default, List: tableList_vue_vue_type_script_setup_true_lang.default },
16
+ components: { VxeTooltip: index.Tooltip, But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default },
15
17
  expose: [],
16
18
  props: {
17
19
  list: Array,
@@ -1,15 +1,17 @@
1
1
  import { defineComponent } from "vue";
2
2
  import { render } from "./columns3.js";
3
3
  import { Tooltip } from "../../tooltip/index.js";
4
- import "../../tables/common/table-but.js";
5
- import "../../tables/common/table-color.js";
6
- import "../../tables/common/table-list.js";
7
- import _sfc_main$1 from "../../tables/common/table-list2.js";
8
- import _sfc_main$2 from "../../tables/common/table-color2.js";
9
- import _sfc_main$3 from "../../tables/common/table-but2.js";
4
+ import "../../tables/common/com-but.js";
5
+ import "../../tables/common/com-color.js";
6
+ import "../../tables/common/com-lis.js";
7
+ import "../../tables/common/com-fig.js";
8
+ import _sfc_main$1 from "../../tables/common/com-fig2.js";
9
+ import _sfc_main$2 from "../../tables/common/com-lis2.js";
10
+ import _sfc_main$3 from "../../tables/common/com-color2.js";
11
+ import _sfc_main$4 from "../../tables/common/com-but2.js";
10
12
  const _sfc_main = defineComponent({
11
13
  emits: ["list-events"],
12
- components: { VxeTooltip: Tooltip, But: _sfc_main$3, Color: _sfc_main$2, List: _sfc_main$1 },
14
+ components: { VxeTooltip: Tooltip, But: _sfc_main$4, Color: _sfc_main$3, Lis: _sfc_main$2, Fig: _sfc_main$1 },
13
15
  expose: [],
14
16
  props: {
15
17
  list: Array,
@@ -166,10 +166,10 @@ export declare const dataEmits: string[];
166
166
  export type DataEmits = typeof dataEmits;
167
167
  /**
168
168
  * @expose clearSelection ( ) 清除多选
169
- * @expose toggleRowSelectionList (row, selected, key ) 切换选择
170
- * @expose clearSelectionList ( ) 清空选中
169
+ * @expose toggleRowSelection (row, selected, key ) 切换选择
170
+ * @expose clearCurrentRow ( ) 清空选中
171
171
  * @expose { Object: { value: 值,
172
172
  list: 当前列,
173
- key: key的名称,} } getRowSelectionsCheckList (row, key ) 获取选中的值
173
+ key: key的名称,} } getSelections (row, key ) 获取选中的值
174
174
  */
175
175
  export declare const dataExpose: {};
@@ -256,7 +256,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
256
256
  ]),
257
257
  default: vue.withCtx(() => [
258
258
  vue.createVNode(columns_vue_vue_type_script_lang.default, {
259
- table: vue.unref(attrs).assem,
259
+ table: { ...vue.unref(props), ...vue.unref(attrs).assem },
260
260
  vxeconfig: config$1.value,
261
261
  value: vue.unref(props).value,
262
262
  list: vue.unref(props).list,
@@ -254,7 +254,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
254
254
  ]),
255
255
  default: withCtx(() => [
256
256
  createVNode(_sfc_main$1, {
257
- table: unref(attrs).assem,
257
+ table: { ...unref(props), ...unref(attrs).assem },
258
258
  vxeconfig: config.value,
259
259
  value: unref(props).value,
260
260
  list: unref(props).list,
@@ -77,7 +77,7 @@ const dataProps = buildProps.buildProps({
77
77
  },
78
78
  /**
79
79
  * @props { Boolean } max= ( )
80
- * 是否要最大化
80
+ * 是否最大化
81
81
  */
82
82
  max: {
83
83
  type: Boolean
@@ -81,7 +81,7 @@ export declare const dataProps: {
81
81
  };
82
82
  /**
83
83
  * @props { Boolean } max= ( )
84
- * 是否要最大化
84
+ * 是否最大化
85
85
  */
86
86
  max: {
87
87
  type: BooleanConstructor;
@@ -75,7 +75,7 @@ const dataProps = buildProps({
75
75
  },
76
76
  /**
77
77
  * @props { Boolean } max= ( )
78
- * 是否要最大化
78
+ * 是否最大化
79
79
  */
80
80
  max: {
81
81
  type: Boolean
@@ -1131,7 +1131,7 @@
1131
1131
  }
1132
1132
  .list-div .list-table .list-table-value {
1133
1133
  word-break: break-all;
1134
- white-space: normal;
1134
+ white-space: pre-wrap;
1135
1135
  max-height: var(--list-row-max-height);
1136
1136
  display: -webkit-box;
1137
1137
  -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
package/dist/css/list.css CHANGED
@@ -101,7 +101,7 @@
101
101
  }
102
102
  .list-div .list-table .list-table-value {
103
103
  word-break: break-all;
104
- white-space: normal;
104
+ white-space: pre-wrap;
105
105
  max-height: var(--list-row-max-height);
106
106
  display: -webkit-box;
107
107
  -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
@@ -101,7 +101,7 @@
101
101
  }
102
102
  .list-div .list-table .list-table-value {
103
103
  word-break: break-all;
104
- white-space: normal;
104
+ white-space: pre-wrap;
105
105
  max-height: var(--list-row-max-height);
106
106
  display: -webkit-box;
107
107
  -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
@@ -101,7 +101,7 @@
101
101
  }
102
102
  .list-div .list-table .list-table-value {
103
103
  word-break: break-all;
104
- white-space: normal;
104
+ white-space: pre-wrap;
105
105
  max-height: var(--list-row-max-height);
106
106
  display: -webkit-box;
107
107
  -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
@@ -101,7 +101,7 @@
101
101
  }
102
102
  .list-div .list-table .list-table-value {
103
103
  word-break: break-all;
104
- white-space: normal;
104
+ white-space: pre-wrap;
105
105
  max-height: var(--list-row-max-height);
106
106
  display: -webkit-box;
107
107
  -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
package/dist/css/page.css CHANGED
@@ -719,7 +719,7 @@
719
719
  }
720
720
  .list-div .list-table .list-table-value {
721
721
  word-break: break-all;
722
- white-space: normal;
722
+ white-space: pre-wrap;
723
723
  max-height: var(--list-row-max-height);
724
724
  display: -webkit-box;
725
725
  -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1764079293714,
4
+ "lastModified": 1764224448135,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
package/dist/index.css CHANGED
@@ -1131,7 +1131,7 @@
1131
1131
  }
1132
1132
  .list-div .list-table .list-table-value {
1133
1133
  word-break: break-all;
1134
- white-space: normal;
1134
+ white-space: pre-wrap;
1135
1135
  max-height: var(--list-row-max-height);
1136
1136
  display: -webkit-box;
1137
1137
  -webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
@@ -9,7 +9,8 @@ const En = {
9
9
  delete: "Delete",
10
10
  import: "Please enter",
11
11
  select: "Please select",
12
- verif: "Verification failed"
12
+ verif: "Verification failed",
13
+ all: "All"
13
14
  },
14
15
  modify: "Modify",
15
16
  close: "Close",
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  import: string;
9
9
  select: string;
10
10
  verif: string;
11
+ all: string;
11
12
  };
12
13
  modify: string;
13
14
  close: string;
package/dist/locale/en.js CHANGED
@@ -7,7 +7,8 @@ const En = {
7
7
  delete: "Delete",
8
8
  import: "Please enter",
9
9
  select: "Please select",
10
- verif: "Verification failed"
10
+ verif: "Verification failed",
11
+ all: "All"
11
12
  },
12
13
  modify: "Modify",
13
14
  close: "Close",
@@ -9,7 +9,8 @@ const ZhCn = {
9
9
  delete: "删除",
10
10
  import: "请输入",
11
11
  select: "请选择",
12
- verif: "校验失败"
12
+ verif: "校验失败",
13
+ all: "全部"
13
14
  },
14
15
  modify: "修改",
15
16
  close: "关闭",
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  import: string;
9
9
  select: string;
10
10
  verif: string;
11
+ all: string;
11
12
  };
12
13
  modify: string;
13
14
  close: string;
@@ -7,7 +7,8 @@ const ZhCn = {
7
7
  delete: "删除",
8
8
  import: "请输入",
9
9
  select: "请选择",
10
- verif: "校验失败"
10
+ verif: "校验失败",
11
+ all: "全部"
11
12
  },
12
13
  modify: "修改",
13
14
  close: "关闭",
package/dist/type.d.ts CHANGED
@@ -29,19 +29,28 @@ type Rule = {
29
29
  /**
30
30
  * 类型
31
31
  */
32
- type: 1 | 2;
32
+ trigger?: string | string[] | number;
33
33
  /**
34
34
  * 是否必传
35
35
  */
36
- must: boolean;
36
+ required?: boolean;
37
37
  /**
38
38
  * 校验方法
39
39
  */
40
- judge: string;
40
+ judge?: string | Function;
41
41
  /**
42
42
  * 校验失败提示
43
43
  */
44
44
  error?: string;
45
+ /**
46
+ * 校验联动配置
47
+ */
48
+ linkage?:
49
+ | string
50
+ | {
51
+ prop?: string;
52
+ judge?: Function;
53
+ };
45
54
  };
46
55
 
47
56
  type ListObj = {
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
4
4
  const getCss = require("@fangzhongya/utils/css/getCss");
5
+ function getCssNumber(str = "") {
6
+ return Number(String(str).replaceAll(/[^0-9.-]/g, ""));
7
+ }
5
8
  Object.defineProperty(exports, "setObjStyle", {
6
9
  enumerable: true,
7
10
  get: () => setObjStyle.setObjStyle
@@ -10,3 +13,4 @@ Object.defineProperty(exports, "getCss", {
10
13
  enumerable: true,
11
14
  get: () => getCss.getCss
12
15
  });
16
+ exports.getCssNumber = getCssNumber;
@@ -1,2 +1,3 @@
1
1
  export { setObjStyle } from '@fangzhongya/utils/css/setObjStyle';
2
2
  export { getCss } from '@fangzhongya/utils/css/getCss';
3
+ export declare function getCssNumber(str?: string): number;
package/dist/utils/css.js CHANGED
@@ -1,6 +1,10 @@
1
1
  import { setObjStyle } from "@fangzhongya/utils/css/setObjStyle";
2
2
  import { getCss } from "@fangzhongya/utils/css/getCss";
3
+ function getCssNumber(str = "") {
4
+ return Number(String(str).replaceAll(/[^0-9.-]/g, ""));
5
+ }
3
6
  export {
4
7
  getCss,
8
+ getCssNumber,
5
9
  setObjStyle
6
10
  };