@fangzhongya/fang-ui 0.1.36 → 0.1.38

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 (111) 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/buttons/src/data.cjs +8 -4
  5. package/dist/components/buttons/src/data.d.ts +33 -4
  6. package/dist/components/buttons/src/data.js +8 -4
  7. package/dist/components/buttons/src/index2.cjs +12 -2
  8. package/dist/components/buttons/src/index2.js +14 -4
  9. package/dist/components/common/use.cjs +5 -3
  10. package/dist/components/common/use.js +5 -3
  11. package/dist/components/dates2/src/data.cjs +1 -1
  12. package/dist/components/dates2/src/data.d.ts +1 -1
  13. package/dist/components/dates2/src/data.js +1 -1
  14. package/dist/components/double/index.css +2 -1
  15. package/dist/components/double/index.scss +2 -1
  16. package/dist/components/forms/index.css +2 -1
  17. package/dist/components/forms/src/setup.cjs +8 -23
  18. package/dist/components/forms/src/setup.d.ts +1 -1
  19. package/dist/components/forms/src/setup.js +11 -26
  20. package/dist/components/forms/src/util.cjs +85 -17
  21. package/dist/components/forms/src/util.d.ts +2 -1
  22. package/dist/components/forms/src/util.js +87 -19
  23. package/dist/components/list/index.css +1 -1
  24. package/dist/components/list/index.scss +1 -1
  25. package/dist/components/list/src/data.cjs +3 -0
  26. package/dist/components/list/src/data.d.ts +3 -0
  27. package/dist/components/list/src/data.js +3 -0
  28. package/dist/components/list/src/index2.cjs +18 -13
  29. package/dist/components/list/src/index2.js +16 -11
  30. package/dist/components/list/src/util.cjs +12 -2
  31. package/dist/components/list/src/util.d.ts +1 -0
  32. package/dist/components/list/src/util.js +12 -2
  33. package/dist/components/list/style/index2.scss +1 -0
  34. package/dist/components/lists/index.css +1 -1
  35. package/dist/components/lists/src/data.d.ts +3 -3
  36. package/dist/components/lists/src/index2.cjs +9 -9
  37. package/dist/components/lists/src/index2.js +9 -9
  38. package/dist/components/listsp/index.css +1 -1
  39. package/dist/components/listspd/index.css +1 -1
  40. package/dist/components/no-data/src/data.cjs +2 -2
  41. package/dist/components/no-data/src/data.d.ts +2 -2
  42. package/dist/components/no-data/src/data.js +2 -2
  43. package/dist/components/no-data/src/index2.cjs +2 -2
  44. package/dist/components/no-data/src/index2.js +2 -2
  45. package/dist/components/page/index.css +3 -2
  46. package/dist/components/selector/index.css +2 -1
  47. package/dist/components/tables/common/com-but.cjs +4 -0
  48. package/dist/components/tables/common/com-but.js +4 -0
  49. package/dist/components/tables/common/{table-but2.cjs → com-but2.cjs} +17 -13
  50. package/dist/components/tables/common/{table-but2.js → com-but2.js} +14 -10
  51. package/dist/components/tables/common/com-color.cjs +4 -0
  52. package/dist/components/tables/common/com-color.js +4 -0
  53. package/dist/components/tables/common/{table-color2.cjs → com-color2.cjs} +21 -8
  54. package/dist/components/tables/common/{table-color2.js → com-color2.js} +23 -10
  55. package/dist/components/tables/common/com-fig.cjs +4 -0
  56. package/dist/components/tables/common/com-fig.js +4 -0
  57. package/dist/components/tables/common/com-fig2.cjs +92 -0
  58. package/dist/components/tables/common/com-fig2.js +92 -0
  59. package/dist/components/tables/common/com-lis.cjs +4 -0
  60. package/dist/components/tables/common/com-lis.js +4 -0
  61. package/dist/components/tables/common/com-lis2.cjs +151 -0
  62. package/dist/components/tables/common/com-lis2.js +151 -0
  63. package/dist/components/tables/common/pagin.d.ts +14 -6
  64. package/dist/components/tables/common/util.cjs +12 -0
  65. package/dist/components/tables/common/util.d.ts +1 -0
  66. package/dist/components/tables/common/util.js +12 -0
  67. package/dist/components/tables/src/column.cjs +5 -2
  68. package/dist/components/tables/src/column.js +6 -3
  69. package/dist/components/tables/src/columns2.cjs +9 -7
  70. package/dist/components/tables/src/columns2.js +9 -7
  71. package/dist/components/tables/src/data.d.ts +3 -3
  72. package/dist/components/tables/style/index2.scss +1 -0
  73. package/dist/components/tablesv/src/column.cjs +7 -4
  74. package/dist/components/tablesv/src/column.js +8 -5
  75. package/dist/components/tablesv/src/columns2.cjs +9 -7
  76. package/dist/components/tablesv/src/columns2.js +9 -7
  77. package/dist/components/tablesv/src/data.d.ts +3 -3
  78. package/dist/components/tablesv/src/index2.cjs +10 -1
  79. package/dist/components/tablesv/src/index2.js +10 -1
  80. package/dist/components/window/src/data.cjs +1 -1
  81. package/dist/components/window/src/data.d.ts +1 -1
  82. package/dist/components/window/src/data.js +1 -1
  83. package/dist/css/double.css +2 -1
  84. package/dist/css/forms.css +2 -1
  85. package/dist/css/index.css +3 -2
  86. package/dist/css/list.css +1 -1
  87. package/dist/css/lists.css +1 -1
  88. package/dist/css/listsp.css +1 -1
  89. package/dist/css/listspd.css +1 -1
  90. package/dist/css/page.css +3 -2
  91. package/dist/css/selector.css +2 -1
  92. package/dist/icons/index.json +1 -1
  93. package/dist/index.css +3 -2
  94. package/dist/type.d.ts +12 -3
  95. package/package.json +2 -2
  96. package/dist/components/tables/common/img.cjs +0 -4
  97. package/dist/components/tables/common/img.js +0 -4
  98. package/dist/components/tables/common/img2.cjs +0 -37
  99. package/dist/components/tables/common/img2.js +0 -37
  100. package/dist/components/tables/common/table-but.cjs +0 -4
  101. package/dist/components/tables/common/table-but.js +0 -4
  102. package/dist/components/tables/common/table-color.cjs +0 -4
  103. package/dist/components/tables/common/table-color.js +0 -4
  104. package/dist/components/tables/common/table-list.cjs +0 -4
  105. package/dist/components/tables/common/table-list.js +0 -4
  106. package/dist/components/tables/common/table-list2.cjs +0 -125
  107. package/dist/components/tables/common/table-list2.js +0 -125
  108. /package/dist/components/{forms-items → forms-item}/index.css +0 -0
  109. /package/dist/components/{draggable → keep-com}/index.css +0 -0
  110. /package/dist/css/{forms-items.css → forms-item.css} +0 -0
  111. /package/dist/css/{draggable.css → keep-com.css} +0 -0
@@ -0,0 +1,92 @@
1
+ import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
2
+ import { Image } from "../../image/index.js";
3
+ import { useCssName } from "../../../hooks/cssname/index.js";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "com-fig",
6
+ props: {
7
+ prefix: String,
8
+ maxHeight: {
9
+ type: String,
10
+ default: "100px"
11
+ },
12
+ class: {
13
+ type: String
14
+ },
15
+ style: {
16
+ type: Object
17
+ },
18
+ modelValue: {
19
+ type: [String, Array]
20
+ },
21
+ listobj: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ /**
28
+ * table数据
29
+ * row, column, $index
30
+ *
31
+ */
32
+ valueobj: {
33
+ type: Object,
34
+ default() {
35
+ return {};
36
+ }
37
+ },
38
+ comscope: {
39
+ type: Object,
40
+ default() {
41
+ return {};
42
+ }
43
+ }
44
+ },
45
+ setup(__props, { expose: __expose }) {
46
+ const cs = useCssName("com-fig");
47
+ const props = __props;
48
+ const value = computed(() => {
49
+ const v = props.modelValue || void 0;
50
+ let arr;
51
+ if (typeof v === "string") {
52
+ arr = v.split(",");
53
+ } else {
54
+ arr = v;
55
+ }
56
+ if (props.prefix) {
57
+ return arr == null ? void 0 : arr.map((r) => {
58
+ return props.prefix + r;
59
+ });
60
+ } else {
61
+ return arr;
62
+ }
63
+ });
64
+ __expose({});
65
+ return (_ctx, _cache) => {
66
+ var _a, _b;
67
+ return value.value && value.value.length > 0 ? (openBlock(), createElementBlock("div", {
68
+ key: 0,
69
+ class: normalizeClass([unref(cs).z(), props.class]),
70
+ style: normalizeStyle({
71
+ maxHeight: props.maxHeight,
72
+ ...props.style
73
+ })
74
+ }, [
75
+ (openBlock(true), createElementBlock(Fragment, null, renderList(value.value, (item, index) => {
76
+ return openBlock(), createBlock(unref(Image), {
77
+ key: index,
78
+ fit: "contain",
79
+ src: item,
80
+ "preview-teleported": "",
81
+ "preview-src-list": value.value
82
+ }, null, 8, ["src", "preview-src-list"]);
83
+ }), 128))
84
+ ], 6)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
85
+ createTextVNode(toDisplayString((_b = (_a = props.comscope) == null ? void 0 : _a.config) == null ? void 0 : _b.emptyDisplay), 1)
86
+ ], 64));
87
+ };
88
+ }
89
+ });
90
+ export {
91
+ _sfc_main as default
92
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const comLis_vue_vue_type_script_setup_true_lang = require("./com-lis2.cjs");
4
+ exports.default = comLis_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./com-lis2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const util = require("./util.cjs");
5
+ const use = require("../../common/use.cjs");
6
+ const index = require("../../../hooks/cssname/index.cjs");
7
+ const _hoisted_1 = ["onClick"];
8
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
+ __name: "com-lis",
10
+ props: {
11
+ class: {
12
+ type: [String, Function]
13
+ },
14
+ formatter: Function,
15
+ modelValue: {
16
+ type: String
17
+ },
18
+ list: {
19
+ type: Array,
20
+ default() {
21
+ return [];
22
+ }
23
+ },
24
+ listobj: {
25
+ type: Object,
26
+ default() {
27
+ return {};
28
+ }
29
+ },
30
+ /**
31
+ * table数据
32
+ * row, column, $index
33
+ *
34
+ */
35
+ valueobj: {
36
+ type: Object,
37
+ default() {
38
+ return {};
39
+ }
40
+ },
41
+ comscope: {
42
+ type: Object,
43
+ default() {
44
+ return {};
45
+ }
46
+ }
47
+ },
48
+ emits: ["lis"],
49
+ setup(__props, { emit: __emit }) {
50
+ const cs = index.useCssName("com-lis");
51
+ const props = __props;
52
+ const emit = __emit;
53
+ const className = vue.computed(() => {
54
+ if (props.class) {
55
+ if (typeof props.class == "function") {
56
+ return props.class(
57
+ props.valueobj,
58
+ props.listobj,
59
+ props.modelValue,
60
+ 0,
61
+ props.comscope
62
+ );
63
+ } else {
64
+ return props.class;
65
+ }
66
+ }
67
+ return;
68
+ });
69
+ function setValue(item, index2) {
70
+ const value = use.useGetDomValue(
71
+ item,
72
+ props.valueobj,
73
+ props.comscope.options,
74
+ index2
75
+ );
76
+ return { ...item, value };
77
+ }
78
+ function getValue() {
79
+ if (props.formatter) {
80
+ return props.formatter(
81
+ props.valueobj,
82
+ props.listobj,
83
+ props.modelValue,
84
+ 0,
85
+ props.comscope
86
+ );
87
+ } else {
88
+ const v = props.list || [{ value: props.modelValue }];
89
+ return v.map((o, i) => {
90
+ return setValue(o, i);
91
+ });
92
+ }
93
+ }
94
+ const valueArr = vue.computed(() => {
95
+ return getValue();
96
+ });
97
+ const emptyDisplay = vue.computed(() => {
98
+ var _a, _b, _c;
99
+ let is = true;
100
+ for (const obj of valueArr.value) {
101
+ const v = util.setEmptyDisplay(
102
+ obj.value,
103
+ (_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
104
+ (_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
105
+ );
106
+ if (!v) {
107
+ is = false;
108
+ }
109
+ }
110
+ if (is) {
111
+ return (_c = props.comscope.config) == null ? void 0 : _c.emptyDisplay;
112
+ }
113
+ });
114
+ function onClickList(obj, index2, $event) {
115
+ var _a;
116
+ util.eventAliass(
117
+ (callback) => {
118
+ callback(
119
+ "lis",
120
+ obj,
121
+ props.valueobj,
122
+ props.listobj,
123
+ props.comscope
124
+ );
125
+ },
126
+ "click",
127
+ ((_a = props.listobj) == null ? void 0 : _a.events) || {},
128
+ $event
129
+ );
130
+ emit("lis", obj, index2);
131
+ }
132
+ return (_ctx, _cache) => {
133
+ return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
134
+ vue.createTextVNode(vue.toDisplayString(emptyDisplay.value), 1)
135
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("span", {
136
+ key: 1,
137
+ class: vue.normalizeClass([vue.unref(cs).z(), className.value])
138
+ }, [
139
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(valueArr.value, (item, index2) => {
140
+ return vue.openBlock(), vue.createElementBlock("span", {
141
+ key: index2,
142
+ class: vue.normalizeClass([vue.unref(cs).z("li"), item.class]),
143
+ style: vue.normalizeStyle(item.style),
144
+ onClick: ($event) => onClickList(item, index2, $event)
145
+ }, vue.toDisplayString(item.value), 15, _hoisted_1);
146
+ }), 128))
147
+ ], 2));
148
+ };
149
+ }
150
+ });
151
+ exports.default = _sfc_main;
@@ -0,0 +1,151 @@
1
+ import { defineComponent, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeClass, unref, renderList, normalizeStyle } from "vue";
2
+ import { setEmptyDisplay, eventAliass } from "./util.js";
3
+ import { useGetDomValue } from "../../common/use.js";
4
+ import { useCssName } from "../../../hooks/cssname/index.js";
5
+ const _hoisted_1 = ["onClick"];
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "com-lis",
8
+ props: {
9
+ class: {
10
+ type: [String, Function]
11
+ },
12
+ formatter: Function,
13
+ modelValue: {
14
+ type: String
15
+ },
16
+ list: {
17
+ type: Array,
18
+ default() {
19
+ return [];
20
+ }
21
+ },
22
+ listobj: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ /**
29
+ * table数据
30
+ * row, column, $index
31
+ *
32
+ */
33
+ valueobj: {
34
+ type: Object,
35
+ default() {
36
+ return {};
37
+ }
38
+ },
39
+ comscope: {
40
+ type: Object,
41
+ default() {
42
+ return {};
43
+ }
44
+ }
45
+ },
46
+ emits: ["lis"],
47
+ setup(__props, { emit: __emit }) {
48
+ const cs = useCssName("com-lis");
49
+ const props = __props;
50
+ const emit = __emit;
51
+ const className = computed(() => {
52
+ if (props.class) {
53
+ if (typeof props.class == "function") {
54
+ return props.class(
55
+ props.valueobj,
56
+ props.listobj,
57
+ props.modelValue,
58
+ 0,
59
+ props.comscope
60
+ );
61
+ } else {
62
+ return props.class;
63
+ }
64
+ }
65
+ return;
66
+ });
67
+ function setValue(item, index) {
68
+ const value = useGetDomValue(
69
+ item,
70
+ props.valueobj,
71
+ props.comscope.options,
72
+ index
73
+ );
74
+ return { ...item, value };
75
+ }
76
+ function getValue() {
77
+ if (props.formatter) {
78
+ return props.formatter(
79
+ props.valueobj,
80
+ props.listobj,
81
+ props.modelValue,
82
+ 0,
83
+ props.comscope
84
+ );
85
+ } else {
86
+ const v = props.list || [{ value: props.modelValue }];
87
+ return v.map((o, i) => {
88
+ return setValue(o, i);
89
+ });
90
+ }
91
+ }
92
+ const valueArr = computed(() => {
93
+ return getValue();
94
+ });
95
+ const emptyDisplay = computed(() => {
96
+ var _a, _b, _c;
97
+ let is = true;
98
+ for (const obj of valueArr.value) {
99
+ const v = setEmptyDisplay(
100
+ obj.value,
101
+ (_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
102
+ (_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
103
+ );
104
+ if (!v) {
105
+ is = false;
106
+ }
107
+ }
108
+ if (is) {
109
+ return (_c = props.comscope.config) == null ? void 0 : _c.emptyDisplay;
110
+ }
111
+ });
112
+ function onClickList(obj, index, $event) {
113
+ var _a;
114
+ eventAliass(
115
+ (callback) => {
116
+ callback(
117
+ "lis",
118
+ obj,
119
+ props.valueobj,
120
+ props.listobj,
121
+ props.comscope
122
+ );
123
+ },
124
+ "click",
125
+ ((_a = props.listobj) == null ? void 0 : _a.events) || {},
126
+ $event
127
+ );
128
+ emit("lis", obj, index);
129
+ }
130
+ return (_ctx, _cache) => {
131
+ return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
132
+ createTextVNode(toDisplayString(emptyDisplay.value), 1)
133
+ ], 64)) : (openBlock(), createElementBlock("span", {
134
+ key: 1,
135
+ class: normalizeClass([unref(cs).z(), className.value])
136
+ }, [
137
+ (openBlock(true), createElementBlock(Fragment, null, renderList(valueArr.value, (item, index) => {
138
+ return openBlock(), createElementBlock("span", {
139
+ key: index,
140
+ class: normalizeClass([unref(cs).z("li"), item.class]),
141
+ style: normalizeStyle(item.style),
142
+ onClick: ($event) => onClickList(item, index, $event)
143
+ }, toDisplayString(item.value), 15, _hoisted_1);
144
+ }), 128))
145
+ ], 2));
146
+ };
147
+ }
148
+ });
149
+ export {
150
+ _sfc_main as default
151
+ };
@@ -232,10 +232,14 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
232
232
  hide?: (boolean | HideFun) | undefined;
233
233
  rules?: any[] | undefined;
234
234
  rule?: string | boolean | 0 | 1 | {
235
- type: 1 | 2;
236
- must: boolean;
237
- judge: string;
235
+ trigger?: string | string[] | number | undefined;
236
+ required?: boolean | undefined;
237
+ judge?: (string | Function) | undefined;
238
238
  error?: string | undefined;
239
+ linkage?: string | {
240
+ prop?: string | undefined;
241
+ judge?: Function | undefined;
242
+ } | undefined;
239
243
  } | undefined;
240
244
  class?: string | undefined;
241
245
  style?: (ObjAny | SetFun) | undefined;
@@ -266,10 +270,14 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
266
270
  hide?: (boolean | HideFun) | undefined;
267
271
  rules?: any[] | undefined;
268
272
  rule?: string | boolean | 0 | 1 | {
269
- type: 1 | 2;
270
- must: boolean;
271
- judge: string;
273
+ trigger?: string | string[] | number | undefined;
274
+ required?: boolean | undefined;
275
+ judge?: (string | Function) | undefined;
272
276
  error?: string | undefined;
277
+ linkage?: string | {
278
+ prop?: string | undefined;
279
+ judge?: Function | undefined;
280
+ } | undefined;
273
281
  } | undefined;
274
282
  class?: string | undefined;
275
283
  style?: (ObjAny | SetFun) | undefined;
@@ -112,5 +112,17 @@ function eventAliass(callback, arr, obj, $event) {
112
112
  }
113
113
  return is;
114
114
  }
115
+ function setEmptyDisplay(value, emptyDisplay, isStr) {
116
+ if (isStr) {
117
+ if (value === "" || value === void 0 || value === null) {
118
+ return emptyDisplay;
119
+ }
120
+ } else {
121
+ if (value === void 0 || value === null) {
122
+ return emptyDisplay;
123
+ }
124
+ }
125
+ }
115
126
  exports.eventAliass = eventAliass;
127
+ exports.setEmptyDisplay = setEmptyDisplay;
116
128
  exports.setMinWidth = setMinWidth;
@@ -7,3 +7,4 @@ export declare function setMinWidth(obj: ObjAny, props?: ObjAny): any;
7
7
  * @param {*} $event
8
8
  */
9
9
  export declare function eventAliass(callback: Function, arr: string | string[], obj: ObjAny, $event: Event): boolean;
10
+ export declare function setEmptyDisplay(value: any, emptyDisplay?: string, isStr?: boolean): string | undefined;
@@ -110,7 +110,19 @@ function eventAliass(callback, arr, obj, $event) {
110
110
  }
111
111
  return is;
112
112
  }
113
+ function setEmptyDisplay(value, emptyDisplay, isStr) {
114
+ if (isStr) {
115
+ if (value === "" || value === void 0 || value === null) {
116
+ return emptyDisplay;
117
+ }
118
+ } else {
119
+ if (value === void 0 || value === null) {
120
+ return emptyDisplay;
121
+ }
122
+ }
123
+ }
113
124
  export {
114
125
  eventAliass,
126
+ setEmptyDisplay,
115
127
  setMinWidth
116
128
  };
@@ -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,9 +91,12 @@ 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(
@@ -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,9 +89,12 @@ 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(
@@ -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: {};
@@ -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 *;
@@ -40,7 +40,7 @@ function handlePropertyMapping(value, ckey, obj, robj, vxeconfig, table) {
40
40
  const propertyHandlers = {
41
41
  showOverflow: () => robj["show-overflow"] = value ? "tooltip" : void 0,
42
42
  showOverflowTooltip: () => robj["show-overflow"] = value ? "tooltip" : void 0,
43
- label: () => robj["title"] = value,
43
+ // label: () => (robj['title'] = value),
44
44
  sortable: () => robj[ckey] = value ? true : void 0,
45
45
  prop: () => robj["field"] = value,
46
46
  fixed: () => robj["fixed"] = value === true ? "left" : value,
@@ -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;
@@ -111,7 +111,7 @@ function defaultDom(obj, scope, props, index2) {
111
111
  } else if (obj.type == "selection") {
112
112
  return;
113
113
  }
114
- domValue = use.useGetDomValue(obj, scope.row, props.options, scope.$index);
114
+ domValue = use.useGetDomValue(obj, scope.row, props.options, scope.$rowIndex);
115
115
  return vue.h(
116
116
  "span",
117
117
  {
@@ -122,9 +122,12 @@ 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(