@fangzhongya/fang-ui 0.1.19 → 0.1.21
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.
- package/dist/components/array/src/data.cjs +4 -0
- package/dist/components/array/src/data.d.ts +4 -0
- package/dist/components/array/src/data.js +4 -0
- package/dist/components/array/src/index2.cjs +22 -21
- package/dist/components/array/src/index2.js +12 -11
- package/dist/components/common/compons.cjs +4 -2
- package/dist/components/common/compons.d.ts +1 -1
- package/dist/components/common/compons.js +4 -2
- package/dist/components/forms/src/data.cjs +5 -5
- package/dist/components/forms/src/data.d.ts +1 -1
- package/dist/components/forms/src/data.js +5 -5
- package/dist/components/forms/src/index2.cjs +5 -3
- package/dist/components/forms/src/index2.js +5 -3
- package/dist/components/forms/src/setup.cjs +0 -7
- package/dist/components/forms/src/setup.js +0 -7
- package/dist/components/forms-div/src/data.cjs +1 -1
- package/dist/components/forms-div/src/data.js +1 -1
- package/dist/components/forms-div/src/index2.cjs +11 -4
- package/dist/components/forms-div/src/index2.js +10 -3
- package/dist/components/forms-item/src/data.cjs +1 -1
- package/dist/components/forms-item/src/data.js +1 -1
- package/dist/components/forms-item/src/index2.cjs +4 -2
- package/dist/components/forms-item/src/index2.js +4 -2
- package/dist/components/forms-item/src/label.cjs +3 -2
- package/dist/components/forms-item/src/label.js +3 -2
- package/dist/components/forms-items/src/data.cjs +1 -1
- package/dist/components/forms-items/src/data.js +1 -1
- package/dist/components/forms-items/src/index2.cjs +4 -2
- package/dist/components/forms-items/src/index2.js +4 -2
- package/dist/components/global-config/src/data.cjs +12 -0
- package/dist/components/global-config/src/data.d.ts +12 -0
- package/dist/components/global-config/src/data.js +12 -0
- package/dist/components/index.cjs +16 -12
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.scss +2 -0
- package/dist/components/index2.scss +2 -0
- package/dist/components/list/index.css +12 -0
- package/dist/components/list/index.scss +15 -0
- package/dist/components/list/src/data.cjs +21 -2
- package/dist/components/list/src/data.d.ts +22 -1
- package/dist/components/list/src/data.js +21 -2
- package/dist/components/list/src/index2.cjs +75 -23
- package/dist/components/list/src/index2.js +76 -24
- package/dist/components/list/style/index2.scss +1 -0
- package/dist/components/lists/index.css +2 -2
- package/dist/components/lists/index.scss +7 -2
- package/dist/components/lists/src/data.cjs +12 -1
- package/dist/components/lists/src/data.d.ts +10 -0
- package/dist/components/lists/src/data.js +12 -1
- package/dist/components/lists/src/index2.cjs +7 -5
- package/dist/components/lists/src/index2.js +7 -5
- package/dist/components/listsp/index.css +2 -2
- package/dist/components/listsp/src/data.d.ts +1 -5
- package/dist/components/listspd/index.cjs +9 -0
- package/dist/components/listspd/index.css +99 -0
- package/dist/components/listspd/index.d.ts +4 -0
- package/dist/components/listspd/index.js +9 -0
- package/dist/components/listspd/index.scss +30 -0
- package/dist/components/listspd/src/data.cjs +13 -0
- package/dist/components/listspd/src/data.d.ts +14 -0
- package/dist/components/listspd/src/data.js +13 -0
- package/dist/components/listspd/src/index.cjs +4 -0
- package/dist/components/listspd/src/index.js +4 -0
- package/dist/components/listspd/src/index2.cjs +111 -0
- package/dist/components/listspd/src/index2.js +111 -0
- package/dist/components/listspd/style/index2.scss +4 -0
- package/dist/components/page/index.css +11 -0
- package/dist/components/tables/common/config.cjs +1 -1
- package/dist/components/tables/common/config.js +1 -1
- package/dist/components/tables/common/pagin.cjs +60 -16
- package/dist/components/tables/common/pagin.d.ts +8 -0
- package/dist/components/tables/common/pagin.js +60 -16
- package/dist/components/tables/common/tooltip.cjs +101 -0
- package/dist/components/tables/common/tooltip.d.ts +6 -0
- package/dist/components/tables/common/tooltip.js +101 -0
- package/dist/components/tables/common/util.cjs +3 -3
- package/dist/components/tables/common/util.js +3 -3
- package/dist/components/tables/src/column.cjs +19 -15
- package/dist/components/tables/src/column.d.ts +3 -2
- package/dist/components/tables/src/column.js +17 -13
- package/dist/components/tables/src/columns3.cjs +16 -32
- package/dist/components/tables/src/columns3.js +15 -31
- package/dist/components/tables/src/data.cjs +3 -2
- package/dist/components/tables/src/data.d.ts +1 -0
- package/dist/components/tables/src/data.js +3 -2
- package/dist/components/tablespd/index.cjs +9 -0
- package/dist/components/tablespd/index.css +88 -0
- package/dist/components/tablespd/index.d.ts +4 -0
- package/dist/components/tablespd/index.js +9 -0
- package/dist/components/tablespd/index.scss +40 -0
- package/dist/components/tablespd/src/data.cjs +13 -0
- package/dist/components/tablespd/src/data.d.ts +18 -0
- package/dist/components/tablespd/src/data.js +13 -0
- package/dist/components/tablespd/src/index.cjs +4 -0
- package/dist/components/tablespd/src/index.js +4 -0
- package/dist/components/tablespd/src/index2.cjs +111 -0
- package/dist/components/tablespd/src/index2.js +111 -0
- package/dist/components/tablespd/style/index2.scss +4 -0
- package/dist/components/tablesv/src/column.cjs +4 -4
- package/dist/components/tablesv/src/column.js +3 -3
- package/dist/css/index.css +65 -2
- package/dist/css/list.css +12 -0
- package/dist/css/lists.css +2 -2
- package/dist/css/listsp.css +2 -2
- package/dist/css/listspd.css +99 -0
- package/dist/css/page.css +11 -0
- package/dist/css/tablespd.css +88 -0
- package/dist/directives/adjust/index.cjs +10 -6
- package/dist/directives/adjust/index.js +10 -6
- package/dist/directives/index.cjs +6 -4
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.js +4 -2
- package/dist/directives/sortable/index.cjs +45 -0
- package/dist/directives/{adjust/index copy 2.d.ts → sortable/index.d.ts} +1 -1
- package/dist/directives/sortable/index.js +45 -0
- package/dist/expand/{chunk-IEODUGVJ.cjs → chunk-2L4PC7LZ.cjs} +5 -0
- package/dist/expand/{chunk-XY53LCPN.js → chunk-RBGCE6BS.js} +5 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/cssname/index.d.ts +2 -2
- package/dist/hooks/index.cjs +0 -1
- package/dist/hooks/index.js +1 -2
- package/dist/hooks/inherit/index.cjs +0 -8
- package/dist/hooks/inherit/index.d.ts +0 -1
- package/dist/hooks/inherit/index.js +0 -8
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +38 -32
- package/dist/index.css +65 -2
- package/dist/index.js +8 -2
- package/dist/utils/vues/getAttrValue.cjs +11 -0
- package/dist/utils/vues/getAttrValue.d.ts +3 -0
- package/dist/utils/vues/getAttrValue.js +11 -0
- package/dist/utils/vues/index.cjs +2 -0
- package/dist/utils/vues/index.d.ts +1 -0
- package/dist/utils/vues/index.js +2 -0
- package/package.json +4 -2
- package/dist/directives/adjust/index copy 3.d.ts +0 -6
- package/dist/directives/adjust/index copy 4.d.ts +0 -6
- package/dist/directives/adjust/index copy 5.d.ts +0 -6
- package/dist/directives/adjust/index copy 6.d.ts +0 -6
- package/dist/directives/adjust/index copy 7.d.ts +0 -6
- package/dist/directives/adjust/index copy 8.d.ts +0 -6
- package/dist/directives/adjust/index copy 9.d.ts +0 -6
- package/dist/directives/adjust/index copy.d.ts +0 -6
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/components/{date-picker → keep-com}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
- /package/dist/css/{date-picker.css → keep-com.css} +0 -0
|
@@ -85,7 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
optionss: unref(prs).optionss,
|
|
86
86
|
valueobj: unref(prs).valueobj,
|
|
87
87
|
modelValue: value.value,
|
|
88
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
88
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
89
|
+
onUpform: _cache[1] || (_cache[1] = (...arr) => emit("upform", ...arr))
|
|
89
90
|
}), createSlots({ _: 2 }, [
|
|
90
91
|
renderList(Object.keys(unref(slots)), (k, i) => {
|
|
91
92
|
return {
|
|
@@ -103,7 +104,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
104
|
optionss: unref(prs).optionss,
|
|
104
105
|
valueobj: unref(prs).valueobj,
|
|
105
106
|
modelValue: value.value,
|
|
106
|
-
"onUpdate:modelValue": _cache[
|
|
107
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => value.value = $event),
|
|
108
|
+
onUpform: _cache[3] || (_cache[3] = (...arr) => emit("upform", ...arr))
|
|
107
109
|
}), createSlots({ _: 2 }, [
|
|
108
110
|
renderList(Object.keys(unref(slots)), (k, i) => {
|
|
109
111
|
return {
|
|
@@ -59,12 +59,24 @@ const dataProps = buildProps.buildProps({
|
|
|
59
59
|
type: String,
|
|
60
60
|
default: enums.DefaultConfig.alias
|
|
61
61
|
},
|
|
62
|
+
/**
|
|
63
|
+
* @props { Boolean } isPropsConfig
|
|
64
|
+
* @description 是否支持props配置
|
|
65
|
+
*/
|
|
62
66
|
isPropsConfig: {
|
|
63
67
|
type: Boolean
|
|
64
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* @props { Boolean } isAttrsConfig
|
|
71
|
+
* @description 是否支持attr的配置
|
|
72
|
+
*/
|
|
65
73
|
isAttrsConfig: {
|
|
66
74
|
type: Boolean
|
|
67
75
|
},
|
|
76
|
+
/**
|
|
77
|
+
* @props { Object } defaultConfig
|
|
78
|
+
* @description 配置的数据
|
|
79
|
+
*/
|
|
68
80
|
defaultConfig: {
|
|
69
81
|
type: Object,
|
|
70
82
|
default() {
|
|
@@ -57,12 +57,24 @@ export declare const dataProps: {
|
|
|
57
57
|
type: StringConstructor;
|
|
58
58
|
default: DefaultConfig;
|
|
59
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* @props { Boolean } isPropsConfig
|
|
62
|
+
* @description 是否支持props配置
|
|
63
|
+
*/
|
|
60
64
|
isPropsConfig: {
|
|
61
65
|
type: BooleanConstructor;
|
|
62
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* @props { Boolean } isAttrsConfig
|
|
69
|
+
* @description 是否支持attr的配置
|
|
70
|
+
*/
|
|
63
71
|
isAttrsConfig: {
|
|
64
72
|
type: BooleanConstructor;
|
|
65
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* @props { Object } defaultConfig
|
|
76
|
+
* @description 配置的数据
|
|
77
|
+
*/
|
|
66
78
|
defaultConfig: {
|
|
67
79
|
type: () => {
|
|
68
80
|
[key: string]: ObjAny;
|
|
@@ -57,12 +57,24 @@ const dataProps = buildProps({
|
|
|
57
57
|
type: String,
|
|
58
58
|
default: DefaultConfig.alias
|
|
59
59
|
},
|
|
60
|
+
/**
|
|
61
|
+
* @props { Boolean } isPropsConfig
|
|
62
|
+
* @description 是否支持props配置
|
|
63
|
+
*/
|
|
60
64
|
isPropsConfig: {
|
|
61
65
|
type: Boolean
|
|
62
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* @props { Boolean } isAttrsConfig
|
|
69
|
+
* @description 是否支持attr的配置
|
|
70
|
+
*/
|
|
63
71
|
isAttrsConfig: {
|
|
64
72
|
type: Boolean
|
|
65
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* @props { Object } defaultConfig
|
|
76
|
+
* @description 配置的数据
|
|
77
|
+
*/
|
|
66
78
|
defaultConfig: {
|
|
67
79
|
type: Object,
|
|
68
80
|
default() {
|
|
@@ -129,12 +129,14 @@ const index$2F = require("./uploads/index.cjs");
|
|
|
129
129
|
const index$2G = require("./list/index.cjs");
|
|
130
130
|
const index$2H = require("./lists/index.cjs");
|
|
131
131
|
const index$2I = require("./listsp/index.cjs");
|
|
132
|
-
const index$2J = require("./
|
|
133
|
-
const index$2K = require("./
|
|
134
|
-
const index$2L = require("./
|
|
135
|
-
const index$2M = require("./
|
|
136
|
-
const index$2N = require("./
|
|
137
|
-
const index$2O = require("./
|
|
132
|
+
const index$2J = require("./listspd/index.cjs");
|
|
133
|
+
const index$2K = require("./paging/index.cjs");
|
|
134
|
+
const index$2L = require("./tables/index.cjs");
|
|
135
|
+
const index$2M = require("./tablesp/index.cjs");
|
|
136
|
+
const index$2N = require("./tablespd/index.cjs");
|
|
137
|
+
const index$2O = require("./tabless/index.cjs");
|
|
138
|
+
const index$2P = require("./tablesv/index.cjs");
|
|
139
|
+
const index$2Q = require("./tablesvp/index.cjs");
|
|
138
140
|
const index$1 = require("element-plus/es/components/button/index");
|
|
139
141
|
const index$3 = require("element-plus/es/components/card/index");
|
|
140
142
|
const index$5 = require("element-plus/es/components/color-picker/index");
|
|
@@ -308,12 +310,14 @@ exports.Uploads = index$2F.Uploads;
|
|
|
308
310
|
exports.List = index$2G.List;
|
|
309
311
|
exports.Lists = index$2H.Lists;
|
|
310
312
|
exports.Listsp = index$2I.Listsp;
|
|
311
|
-
exports.
|
|
312
|
-
exports.
|
|
313
|
-
exports.
|
|
314
|
-
exports.
|
|
315
|
-
exports.
|
|
316
|
-
exports.
|
|
313
|
+
exports.Listspd = index$2J.Listspd;
|
|
314
|
+
exports.Paging = index$2K.Paging;
|
|
315
|
+
exports.Tables = index$2L.Tables;
|
|
316
|
+
exports.Tablesp = index$2M.Tablesp;
|
|
317
|
+
exports.Tablespd = index$2N.Tablespd;
|
|
318
|
+
exports.Tabless = index$2O.Tabless;
|
|
319
|
+
exports.Tablesv = index$2P.Tablesv;
|
|
320
|
+
exports.Tablesvp = index$2Q.Tablesvp;
|
|
317
321
|
Object.keys(index$1).forEach((k) => {
|
|
318
322
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
319
323
|
enumerable: true,
|
|
@@ -126,9 +126,11 @@ export * from './uploads/index';
|
|
|
126
126
|
export * from './list/index';
|
|
127
127
|
export * from './lists/index';
|
|
128
128
|
export * from './listsp/index';
|
|
129
|
+
export * from './listspd/index';
|
|
129
130
|
export * from './paging/index';
|
|
130
131
|
export * from './tables/index';
|
|
131
132
|
export * from './tablesp/index';
|
|
133
|
+
export * from './tablespd/index';
|
|
132
134
|
export * from './tabless/index';
|
|
133
135
|
export * from './tablesv/index';
|
|
134
136
|
export * from './tablesvp/index';
|
package/dist/components/index.js
CHANGED
|
@@ -127,9 +127,11 @@ import { Uploads } from "./uploads/index.js";
|
|
|
127
127
|
import { List } from "./list/index.js";
|
|
128
128
|
import { Lists } from "./lists/index.js";
|
|
129
129
|
import { Listsp } from "./listsp/index.js";
|
|
130
|
+
import { Listspd } from "./listspd/index.js";
|
|
130
131
|
import { Paging } from "./paging/index.js";
|
|
131
132
|
import { Tables } from "./tables/index.js";
|
|
132
133
|
import { Tablesp } from "./tablesp/index.js";
|
|
134
|
+
import { Tablespd } from "./tablespd/index.js";
|
|
133
135
|
import { Tabless } from "./tabless/index.js";
|
|
134
136
|
import { Tablesv } from "./tablesv/index.js";
|
|
135
137
|
import { Tablesvp } from "./tablesvp/index.js";
|
|
@@ -250,6 +252,7 @@ export {
|
|
|
250
252
|
List,
|
|
251
253
|
Lists,
|
|
252
254
|
Listsp,
|
|
255
|
+
Listspd,
|
|
253
256
|
Loading,
|
|
254
257
|
Mention,
|
|
255
258
|
Menu,
|
|
@@ -294,6 +297,7 @@ export {
|
|
|
294
297
|
TableColumn,
|
|
295
298
|
Tables,
|
|
296
299
|
Tablesp,
|
|
300
|
+
Tablespd,
|
|
297
301
|
Tabless,
|
|
298
302
|
Tablesv,
|
|
299
303
|
Tablesvp,
|
|
@@ -113,9 +113,11 @@
|
|
|
113
113
|
@use './list/index.scss' as *;
|
|
114
114
|
@use './lists/index.scss' as *;
|
|
115
115
|
@use './listsp/index.scss' as *;
|
|
116
|
+
@use './listspd/index.scss' as *;
|
|
116
117
|
@use './paging/index.scss' as *;
|
|
117
118
|
@use './tables/index.scss' as *;
|
|
118
119
|
@use './tablesp/index.scss' as *;
|
|
120
|
+
@use './tablespd/index.scss' as *;
|
|
119
121
|
@use './tabless/index.scss' as *;
|
|
120
122
|
@use './tablesv/index.scss' as *;
|
|
121
123
|
@use './tablesvp/index.scss' as *;
|
|
@@ -113,9 +113,11 @@
|
|
|
113
113
|
@use './list/style/index2.scss' as *;
|
|
114
114
|
@use './lists/style/index2.scss' as *;
|
|
115
115
|
@use './listsp/style/index2.scss' as *;
|
|
116
|
+
@use './listspd/style/index2.scss' as *;
|
|
116
117
|
@use './paging/style/index2.scss' as *;
|
|
117
118
|
@use './tables/style/index2.scss' as *;
|
|
118
119
|
@use './tablesp/style/index2.scss' as *;
|
|
120
|
+
@use './tablespd/style/index2.scss' as *;
|
|
119
121
|
@use './tabless/style/index2.scss' as *;
|
|
120
122
|
@use './tablesv/style/index2.scss' as *;
|
|
121
123
|
@use './tablesvp/style/index2.scss' as *;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
:root {
|
|
2
3
|
--on: rgb(91, 189, 246);
|
|
3
4
|
--color-primary: #409eff;
|
|
@@ -85,6 +86,17 @@
|
|
|
85
86
|
.list-div .list-table .list-table-th {
|
|
86
87
|
text-align: left;
|
|
87
88
|
}
|
|
89
|
+
.list-div .list-table .list-table-value {
|
|
90
|
+
word-break: break-all;
|
|
91
|
+
white-space: normal;
|
|
92
|
+
display: block;
|
|
93
|
+
max-height: var(--list-row-max-height);
|
|
94
|
+
display: -webkit-box;
|
|
95
|
+
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
96
|
+
-webkit-box-orient: vertical;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
text-overflow: ellipsis;
|
|
99
|
+
}
|
|
88
100
|
.list-div .list-table.right .list-table-th {
|
|
89
101
|
text-align: right;
|
|
90
102
|
}
|
|
@@ -88,6 +88,21 @@ $list: 'list';
|
|
|
88
88
|
.#{z($list, 'table-th')} {
|
|
89
89
|
text-align: left;
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
.#{z($list, 'table-value')} {
|
|
93
|
+
word-break: break-all;
|
|
94
|
+
white-space: normal;
|
|
95
|
+
display: block;
|
|
96
|
+
|
|
97
|
+
max-height: var(vdm('row-max-height', $list));
|
|
98
|
+
display: -webkit-box;
|
|
99
|
+
-webkit-line-clamp: var(
|
|
100
|
+
vdm('line-clamp', $list)
|
|
101
|
+
); /* 显示的行数 */
|
|
102
|
+
-webkit-box-orient: vertical;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
}
|
|
91
106
|
&.right {
|
|
92
107
|
.#{z($list, 'table-th')} {
|
|
93
108
|
text-align: right;
|
|
@@ -76,6 +76,9 @@ const dataProps = {
|
|
|
76
76
|
align: {
|
|
77
77
|
type: String
|
|
78
78
|
},
|
|
79
|
+
showOverflow: {
|
|
80
|
+
type: [Boolean, String]
|
|
81
|
+
},
|
|
79
82
|
/**
|
|
80
83
|
* @props { String } labelAlign ( )
|
|
81
84
|
* 标签展示左右位置
|
|
@@ -83,6 +86,13 @@ const dataProps = {
|
|
|
83
86
|
labelAlign: {
|
|
84
87
|
type: String
|
|
85
88
|
},
|
|
89
|
+
/**
|
|
90
|
+
* @props { String } items ( )
|
|
91
|
+
* 展示上下位置
|
|
92
|
+
*/
|
|
93
|
+
items: {
|
|
94
|
+
type: String
|
|
95
|
+
},
|
|
86
96
|
/**
|
|
87
97
|
* @props { String } labelItems=center ( )
|
|
88
98
|
* 标签展示上下位置
|
|
@@ -91,8 +101,17 @@ const dataProps = {
|
|
|
91
101
|
type: String,
|
|
92
102
|
default: "center"
|
|
93
103
|
},
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
/**
|
|
105
|
+
* @props { String } rowMaxHeight ( )
|
|
106
|
+
* 最大高度
|
|
107
|
+
*/
|
|
108
|
+
rowMaxHeight: { type: String },
|
|
109
|
+
/**
|
|
110
|
+
* @props { Number } lineClamp ( )
|
|
111
|
+
* 超出几行隐藏
|
|
112
|
+
*/
|
|
113
|
+
lineClamp: {
|
|
114
|
+
type: Number
|
|
96
115
|
},
|
|
97
116
|
/**
|
|
98
117
|
* @props { Boolean, String } border=true ( )
|
|
@@ -84,6 +84,9 @@ export declare const dataProps: {
|
|
|
84
84
|
align: {
|
|
85
85
|
type: StringConstructor;
|
|
86
86
|
};
|
|
87
|
+
showOverflow: {
|
|
88
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
89
|
+
};
|
|
87
90
|
/**
|
|
88
91
|
* @props { String } labelAlign ( )
|
|
89
92
|
* 标签展示左右位置
|
|
@@ -91,6 +94,13 @@ export declare const dataProps: {
|
|
|
91
94
|
labelAlign: {
|
|
92
95
|
type: StringConstructor;
|
|
93
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* @props { String } items ( )
|
|
99
|
+
* 展示上下位置
|
|
100
|
+
*/
|
|
101
|
+
items: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
};
|
|
94
104
|
/**
|
|
95
105
|
* @props { String } labelItems=center ( )
|
|
96
106
|
* 标签展示上下位置
|
|
@@ -99,9 +109,20 @@ export declare const dataProps: {
|
|
|
99
109
|
type: StringConstructor;
|
|
100
110
|
default: string;
|
|
101
111
|
};
|
|
102
|
-
|
|
112
|
+
/**
|
|
113
|
+
* @props { String } rowMaxHeight ( )
|
|
114
|
+
* 最大高度
|
|
115
|
+
*/
|
|
116
|
+
rowMaxHeight: {
|
|
103
117
|
type: StringConstructor;
|
|
104
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* @props { Number } lineClamp ( )
|
|
121
|
+
* 超出几行隐藏
|
|
122
|
+
*/
|
|
123
|
+
lineClamp: {
|
|
124
|
+
type: NumberConstructor;
|
|
125
|
+
};
|
|
105
126
|
/**
|
|
106
127
|
* @props { Boolean, String } border=true ( )
|
|
107
128
|
* 是否需要边框,边框颜色
|
|
@@ -74,6 +74,9 @@ const dataProps = {
|
|
|
74
74
|
align: {
|
|
75
75
|
type: String
|
|
76
76
|
},
|
|
77
|
+
showOverflow: {
|
|
78
|
+
type: [Boolean, String]
|
|
79
|
+
},
|
|
77
80
|
/**
|
|
78
81
|
* @props { String } labelAlign ( )
|
|
79
82
|
* 标签展示左右位置
|
|
@@ -81,6 +84,13 @@ const dataProps = {
|
|
|
81
84
|
labelAlign: {
|
|
82
85
|
type: String
|
|
83
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* @props { String } items ( )
|
|
89
|
+
* 展示上下位置
|
|
90
|
+
*/
|
|
91
|
+
items: {
|
|
92
|
+
type: String
|
|
93
|
+
},
|
|
84
94
|
/**
|
|
85
95
|
* @props { String } labelItems=center ( )
|
|
86
96
|
* 标签展示上下位置
|
|
@@ -89,8 +99,17 @@ const dataProps = {
|
|
|
89
99
|
type: String,
|
|
90
100
|
default: "center"
|
|
91
101
|
},
|
|
92
|
-
|
|
93
|
-
|
|
102
|
+
/**
|
|
103
|
+
* @props { String } rowMaxHeight ( )
|
|
104
|
+
* 最大高度
|
|
105
|
+
*/
|
|
106
|
+
rowMaxHeight: { type: String },
|
|
107
|
+
/**
|
|
108
|
+
* @props { Number } lineClamp ( )
|
|
109
|
+
* 超出几行隐藏
|
|
110
|
+
*/
|
|
111
|
+
lineClamp: {
|
|
112
|
+
type: Number
|
|
94
113
|
},
|
|
95
114
|
/**
|
|
96
115
|
* @props { Boolean, String } border=true ( )
|
|
@@ -6,6 +6,8 @@ const css = require("../../common/css.cjs");
|
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
7
7
|
const compons = require("../../common/compons.cjs");
|
|
8
8
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
9
|
+
const tooltip = require("../../tables/common/tooltip.cjs");
|
|
10
|
+
require("../../tables/common/config.cjs");
|
|
9
11
|
const index = require("../../../hooks/props-default/index.cjs");
|
|
10
12
|
const data = require("./data.cjs");
|
|
11
13
|
require("../../tables/common/img.cjs");
|
|
@@ -22,8 +24,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
22
24
|
setup(prs, { emit, slots }) {
|
|
23
25
|
const props = index.usePropsDefault(data.name, prs, data.dataProps);
|
|
24
26
|
index.viewProps(props, data.name);
|
|
25
|
-
const compons$1 = compons.
|
|
27
|
+
const compons$1 = compons.useCompons("list-compons", props.compons);
|
|
26
28
|
const cs = index$1.useCssName(data.name);
|
|
29
|
+
const refDom = vue.ref();
|
|
27
30
|
const isfocus = vue.ref(false);
|
|
28
31
|
const rowObj = vue.ref();
|
|
29
32
|
const borderColor = vue.computed(() => {
|
|
@@ -61,9 +64,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
61
64
|
lin = props.column;
|
|
62
65
|
is = true;
|
|
63
66
|
} else {
|
|
64
|
-
let k = (obj.
|
|
67
|
+
let k = (obj.colspan || 1) + lin;
|
|
65
68
|
if (k > props.column) {
|
|
66
|
-
lin = obj.
|
|
69
|
+
lin = obj.colspan || 1;
|
|
67
70
|
is = true;
|
|
68
71
|
} else {
|
|
69
72
|
lin = k;
|
|
@@ -99,9 +102,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
99
102
|
lin = props.column;
|
|
100
103
|
is = true;
|
|
101
104
|
} else {
|
|
102
|
-
let k = (obj.
|
|
105
|
+
let k = (obj.colspan || 1) + lin;
|
|
103
106
|
if (k > props.column) {
|
|
104
|
-
lin = obj.
|
|
107
|
+
lin = obj.colspan || 1;
|
|
105
108
|
is = true;
|
|
106
109
|
} else {
|
|
107
110
|
lin = k;
|
|
@@ -156,12 +159,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
156
159
|
obj.class ?? ""
|
|
157
160
|
].join(" "),
|
|
158
161
|
colspan: props.labelPosition == "top" ? setColspan(obj) : void 0,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
rowspan: props.labelPosition == "top" ? void 0 : setRowspan(obj)
|
|
163
|
+
// onClick: (event: Event) => {
|
|
164
|
+
// isfocus.value = true;
|
|
165
|
+
// rowObj.value = obj;
|
|
166
|
+
// event.stopPropagation();
|
|
167
|
+
// return false;
|
|
168
|
+
// },
|
|
165
169
|
},
|
|
166
170
|
[
|
|
167
171
|
vue.h(
|
|
@@ -187,6 +191,20 @@ const _sfc_main = vue.defineComponent({
|
|
|
187
191
|
]
|
|
188
192
|
);
|
|
189
193
|
};
|
|
194
|
+
const handleCellMouseLeave = ($event) => {
|
|
195
|
+
tooltip.hideTooltip($event);
|
|
196
|
+
};
|
|
197
|
+
const handleCellMouseEnter = ($event, obj) => {
|
|
198
|
+
const showOverflow = obj.showOverflow ?? props.showOverflow;
|
|
199
|
+
if (showOverflow) {
|
|
200
|
+
tooltip.showTooltip(
|
|
201
|
+
$event,
|
|
202
|
+
refDom.value,
|
|
203
|
+
showOverflow,
|
|
204
|
+
props.lineClamp
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
190
208
|
const getChildrenValue = (obj, index2) => {
|
|
191
209
|
if (obj.children) {
|
|
192
210
|
return [
|
|
@@ -208,7 +226,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
208
226
|
class: cs.z("table-value"),
|
|
209
227
|
style: {
|
|
210
228
|
textAlign: obj.align || props.align
|
|
211
|
-
}
|
|
229
|
+
},
|
|
230
|
+
title: obj.title,
|
|
231
|
+
onMouseenter: ($event) => handleCellMouseEnter($event, obj),
|
|
232
|
+
onMouseleave: handleCellMouseLeave
|
|
212
233
|
},
|
|
213
234
|
[
|
|
214
235
|
util.setSslot(
|
|
@@ -239,13 +260,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
239
260
|
obj.class ?? ""
|
|
240
261
|
].join(" "),
|
|
241
262
|
colspan: setColspan(obj),
|
|
242
|
-
rowspan: isRow
|
|
243
|
-
onClick: (event) => {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
263
|
+
rowspan: setRowspan(obj, isRow)
|
|
264
|
+
// onClick: (event: Event) => {
|
|
265
|
+
// isfocus.value = true;
|
|
266
|
+
// rowObj.value = obj;
|
|
267
|
+
// event.stopPropagation();
|
|
268
|
+
// return false;
|
|
269
|
+
// },
|
|
249
270
|
},
|
|
250
271
|
[...getChildrenValue(obj, index2)]
|
|
251
272
|
);
|
|
@@ -261,6 +282,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
261
282
|
"td",
|
|
262
283
|
{
|
|
263
284
|
colspan: setColspan(obj),
|
|
285
|
+
rowspan: setRowspan(obj),
|
|
264
286
|
class: cs.is("whole", obj.whole)
|
|
265
287
|
},
|
|
266
288
|
[
|
|
@@ -287,8 +309,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
287
309
|
if (["auto", "top"].includes(props.labelPosition)) {
|
|
288
310
|
if (obj.whole) {
|
|
289
311
|
return props.column;
|
|
290
|
-
} else if (obj.
|
|
291
|
-
return obj.
|
|
312
|
+
} else if (obj.colspan) {
|
|
313
|
+
return obj.colspan;
|
|
292
314
|
} else {
|
|
293
315
|
return "";
|
|
294
316
|
}
|
|
@@ -296,21 +318,51 @@ const _sfc_main = vue.defineComponent({
|
|
|
296
318
|
const j = !obj.isdiv ? 0 : 1;
|
|
297
319
|
if (obj.whole) {
|
|
298
320
|
return (props.column - 1) * 2 + 1 + j;
|
|
299
|
-
} else if (obj.
|
|
300
|
-
return (obj.
|
|
321
|
+
} else if (obj.colspan) {
|
|
322
|
+
return (obj.colspan - 1) * 2 + 1 + j;
|
|
301
323
|
} else {
|
|
302
324
|
return 1 + j;
|
|
303
325
|
}
|
|
304
326
|
}
|
|
305
327
|
};
|
|
328
|
+
const setRowspan = (obj, isRow) => {
|
|
329
|
+
if (props.labelPosition == "top") {
|
|
330
|
+
const j = !obj.isdiv ? 0 : 1;
|
|
331
|
+
if (obj.rowspan) {
|
|
332
|
+
return (obj.rowspan - 1) * 2 + 1 + j;
|
|
333
|
+
} else if (isRow) {
|
|
334
|
+
return 2;
|
|
335
|
+
}
|
|
336
|
+
} else if (props.labelPosition == "auto") {
|
|
337
|
+
if (obj.rowspan) {
|
|
338
|
+
return obj.rowspan;
|
|
339
|
+
} else if (isRow) {
|
|
340
|
+
return 2;
|
|
341
|
+
}
|
|
342
|
+
} else {
|
|
343
|
+
if (obj.rowspan) {
|
|
344
|
+
return obj.rowspan;
|
|
345
|
+
} else if (isRow) {
|
|
346
|
+
return 2;
|
|
347
|
+
} else {
|
|
348
|
+
return 1;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return;
|
|
352
|
+
};
|
|
306
353
|
const renderValue = () => {
|
|
307
354
|
if (props.list && props.list.length > 0) {
|
|
308
355
|
return vue.h(
|
|
309
356
|
"div",
|
|
310
357
|
{
|
|
358
|
+
ref: (el) => {
|
|
359
|
+
refDom.value = el;
|
|
360
|
+
},
|
|
311
361
|
class: cs.z("div"),
|
|
312
362
|
style: cs.vdo({
|
|
313
363
|
borderColor: borderColor.value,
|
|
364
|
+
rowMaxHeight: props.rowMaxHeight,
|
|
365
|
+
lineClamp: props.lineClamp,
|
|
314
366
|
interval: props.interval
|
|
315
367
|
})
|
|
316
368
|
// onClick(event: Event) {
|