@fangzhongya/fang-ui 0.1.44 → 0.1.46
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/buttons/src/index2.cjs +15 -8
- package/dist/components/buttons/src/index2.js +13 -6
- package/dist/components/common/css.cjs +0 -1
- package/dist/components/common/css.js +0 -1
- package/dist/components/common/use.cjs +34 -27
- package/dist/components/common/use.js +14 -7
- package/dist/components/dates/src/data.cjs +6 -0
- package/dist/components/dates/src/data.d.ts +6 -0
- package/dist/components/dates/src/data.js +6 -0
- package/dist/components/dates/src/index2.cjs +12 -1
- package/dist/components/dates/src/index2.js +12 -1
- package/dist/components/dates-divide/src/data.cjs +7 -1
- package/dist/components/dates-divide/src/data.d.ts +6 -0
- package/dist/components/dates-divide/src/data.js +7 -1
- package/dist/components/dates-divide/src/index2.cjs +13 -4
- package/dist/components/dates-divide/src/index2.js +13 -4
- package/dist/components/dates-picker/src/data.cjs +6 -0
- package/dist/components/dates-picker/src/data.d.ts +12 -0
- package/dist/components/dates-picker/src/data.js +6 -0
- package/dist/components/dates-picker/src/index2.cjs +11 -0
- package/dist/components/dates-picker/src/index2.js +11 -0
- package/dist/components/dates2/src/data.cjs +6 -0
- package/dist/components/dates2/src/data.d.ts +6 -0
- package/dist/components/dates2/src/data.js +6 -0
- package/dist/components/dates2/src/index2.cjs +12 -0
- package/dist/components/dates2/src/index2.js +12 -0
- package/dist/components/forms/src/setup.cjs +1 -2
- package/dist/components/forms/src/setup.js +1 -2
- package/dist/components/forms-items/src/index2.cjs +1 -2
- package/dist/components/forms-items/src/index2.js +1 -2
- package/dist/components/list/index.css +15 -14
- package/dist/components/list/index.scss +21 -19
- package/dist/components/list/src/index2.cjs +55 -41
- package/dist/components/list/src/index2.js +55 -41
- package/dist/components/lists/index.css +15 -14
- package/dist/components/lists/src/index2.cjs +1 -2
- package/dist/components/lists/src/index2.js +1 -2
- package/dist/components/listsp/index.css +15 -14
- package/dist/components/listspd/index.css +15 -14
- package/dist/components/page/index.css +20 -14
- package/dist/components/tables/common/com-but2.cjs +9 -13
- package/dist/components/tables/common/com-but2.js +7 -11
- package/dist/components/tables/common/com-color2.cjs +7 -11
- package/dist/components/tables/common/com-color2.js +8 -12
- package/dist/components/tables/common/com-lis2.cjs +7 -10
- package/dist/components/tables/common/com-lis2.js +8 -11
- package/dist/components/tables/common/pagin.cjs +1 -1
- package/dist/components/tables/common/pagin.js +1 -1
- package/dist/components/tables/common/tooltip.cjs +1 -1
- package/dist/components/tables/common/tooltip.js +1 -1
- package/dist/components/tables/common/util.cjs +0 -88
- package/dist/components/tables/common/util.d.ts +0 -8
- package/dist/components/tables/common/util.js +1 -89
- package/dist/components/tables/index.css +5 -0
- package/dist/components/tables/index.scss +3 -0
- package/dist/components/tables/src/data.cjs +1 -3
- package/dist/components/tables/src/data.d.ts +1 -1
- package/dist/components/tables/src/data.js +1 -3
- package/dist/components/tablesp/index.css +5 -0
- package/dist/components/tablespd/index.css +5 -0
- package/dist/components/tablesv/src/data.cjs +1 -3
- package/dist/components/tablesv/src/data.d.ts +1 -1
- package/dist/components/tablesv/src/data.js +1 -3
- package/dist/css/index.css +20 -14
- package/dist/css/list.css +15 -14
- package/dist/css/lists.css +15 -14
- package/dist/css/listsp.css +15 -14
- package/dist/css/listspd.css +15 -14
- package/dist/css/page.css +20 -14
- package/dist/css/tables.css +5 -0
- package/dist/css/tablesp.css +5 -0
- package/dist/css/tablespd.css +5 -0
- package/dist/hooks/event-aliass/index.cjs +121 -0
- package/dist/hooks/event-aliass/index.d.ts +1 -0
- package/dist/hooks/event-aliass/index.js +121 -0
- package/dist/icons/index.json +1 -1
- package/dist/index.css +20 -14
- package/dist/utils/css.cjs +0 -10
- package/dist/utils/css.d.ts +0 -2
- package/dist/utils/css.js +1 -5
- package/dist/utils/vues/buildProps.d.ts +5 -0
- package/dist/utils/vues/common.d.ts +0 -8
- package/package.json +6 -6
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
}
|
|
30
|
-
.list-div .list-table
|
|
30
|
+
.list-div .list-table-td {
|
|
31
31
|
text-align: left;
|
|
32
32
|
}
|
|
33
|
-
.list-div .list-table
|
|
33
|
+
.list-div .list-table-th {
|
|
34
34
|
font-weight: initial;
|
|
35
35
|
}
|
|
36
36
|
.list-div .list-table .is-whole .list-table-auto {
|
|
@@ -102,11 +102,13 @@
|
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
104
|
white-space: pre-wrap;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
107
|
+
.list-div .list-table .list-table-value.is-tooltip {
|
|
105
108
|
max-height: var(--list-row-max-height);
|
|
106
109
|
display: -webkit-box;
|
|
107
|
-
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
110
|
+
-webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
|
|
108
111
|
-webkit-box-orient: vertical;
|
|
109
|
-
overflow: hidden;
|
|
110
112
|
text-overflow: ellipsis;
|
|
111
113
|
}
|
|
112
114
|
.list-div .list-table.right .list-table-th {
|
|
@@ -126,36 +128,35 @@
|
|
|
126
128
|
border-top: 1px solid var(--list-border-color);
|
|
127
129
|
border-bottom: 1px solid var(--list-border-color);
|
|
128
130
|
}
|
|
129
|
-
.list-div .list-table.is-border > tr > td {
|
|
131
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td {
|
|
130
132
|
border-bottom: 1px solid var(--list-border-color);
|
|
131
133
|
border-left: 1px solid var(--list-border-color);
|
|
132
134
|
}
|
|
133
|
-
.list-div .list-table.is-border > tr > td:last-child {
|
|
135
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
|
|
134
136
|
border-right: 1px solid var(--list-border-color);
|
|
135
137
|
}
|
|
136
|
-
.list-div .list-table.is-border > tr > th {
|
|
138
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th {
|
|
137
139
|
border-left: 1px solid var(--list-border-color);
|
|
138
140
|
border-bottom: 1px solid var(--list-border-color);
|
|
139
141
|
}
|
|
140
|
-
.list-div .list-table.is-border > tr > th:last-child {
|
|
142
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
|
|
141
143
|
border-right: 1px solid var(--list-border-color);
|
|
142
144
|
}
|
|
143
|
-
.list-div .list-table.is-border > tr:last-child > td {
|
|
145
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
|
|
144
146
|
border-bottom: 0;
|
|
145
147
|
}
|
|
146
|
-
.list-div .list-table.is-border > tr:last-child > th {
|
|
148
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
|
|
147
149
|
border-bottom: 0;
|
|
148
150
|
}
|
|
149
|
-
.list-div .list-table.is-border.top > tr > th {
|
|
151
|
+
.list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
|
|
150
152
|
border-bottom: 0;
|
|
151
153
|
}
|
|
152
154
|
.list-div .list-table .list-com {
|
|
153
155
|
display: flex;
|
|
154
156
|
align-items: center;
|
|
155
157
|
}
|
|
156
|
-
.list-div .
|
|
157
|
-
|
|
158
|
-
height: 50px;
|
|
158
|
+
.list-div .el-tooltip {
|
|
159
|
+
white-space: pre-wrap;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
.lists {
|
|
@@ -9,9 +9,8 @@ const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
|
9
9
|
const index$1 = require("../../../hooks/locale/index.cjs");
|
|
10
10
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
11
11
|
const index$5 = require("../../list/index.cjs");
|
|
12
|
-
require("../../../utils/css.cjs");
|
|
13
|
-
const index$3 = require("../../../hooks/props-default/index.cjs");
|
|
14
12
|
const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
|
|
13
|
+
const index$3 = require("../../../hooks/props-default/index.cjs");
|
|
15
14
|
const index$7 = require("element-plus/es/components/loading/index");
|
|
16
15
|
const _hoisted_1 = ["onClick"];
|
|
17
16
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -7,9 +7,8 @@ import { useCssName } from "../../../hooks/cssname/index.js";
|
|
|
7
7
|
import { useLocale } from "../../../hooks/locale/index.js";
|
|
8
8
|
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
9
9
|
import { List } from "../../list/index.js";
|
|
10
|
-
import "../../../utils/css.js";
|
|
11
|
-
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
12
10
|
import { setObjStyle } from "@fangzhongya/utils/css/setObjStyle";
|
|
11
|
+
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
13
12
|
import { vLoading } from "element-plus/es/components/loading/index";
|
|
14
13
|
const _hoisted_1 = ["onClick"];
|
|
15
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
}
|
|
30
|
-
.list-div .list-table
|
|
30
|
+
.list-div .list-table-td {
|
|
31
31
|
text-align: left;
|
|
32
32
|
}
|
|
33
|
-
.list-div .list-table
|
|
33
|
+
.list-div .list-table-th {
|
|
34
34
|
font-weight: initial;
|
|
35
35
|
}
|
|
36
36
|
.list-div .list-table .is-whole .list-table-auto {
|
|
@@ -102,11 +102,13 @@
|
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
104
|
white-space: pre-wrap;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
107
|
+
.list-div .list-table .list-table-value.is-tooltip {
|
|
105
108
|
max-height: var(--list-row-max-height);
|
|
106
109
|
display: -webkit-box;
|
|
107
|
-
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
110
|
+
-webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
|
|
108
111
|
-webkit-box-orient: vertical;
|
|
109
|
-
overflow: hidden;
|
|
110
112
|
text-overflow: ellipsis;
|
|
111
113
|
}
|
|
112
114
|
.list-div .list-table.right .list-table-th {
|
|
@@ -126,36 +128,35 @@
|
|
|
126
128
|
border-top: 1px solid var(--list-border-color);
|
|
127
129
|
border-bottom: 1px solid var(--list-border-color);
|
|
128
130
|
}
|
|
129
|
-
.list-div .list-table.is-border > tr > td {
|
|
131
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td {
|
|
130
132
|
border-bottom: 1px solid var(--list-border-color);
|
|
131
133
|
border-left: 1px solid var(--list-border-color);
|
|
132
134
|
}
|
|
133
|
-
.list-div .list-table.is-border > tr > td:last-child {
|
|
135
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
|
|
134
136
|
border-right: 1px solid var(--list-border-color);
|
|
135
137
|
}
|
|
136
|
-
.list-div .list-table.is-border > tr > th {
|
|
138
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th {
|
|
137
139
|
border-left: 1px solid var(--list-border-color);
|
|
138
140
|
border-bottom: 1px solid var(--list-border-color);
|
|
139
141
|
}
|
|
140
|
-
.list-div .list-table.is-border > tr > th:last-child {
|
|
142
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
|
|
141
143
|
border-right: 1px solid var(--list-border-color);
|
|
142
144
|
}
|
|
143
|
-
.list-div .list-table.is-border > tr:last-child > td {
|
|
145
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
|
|
144
146
|
border-bottom: 0;
|
|
145
147
|
}
|
|
146
|
-
.list-div .list-table.is-border > tr:last-child > th {
|
|
148
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
|
|
147
149
|
border-bottom: 0;
|
|
148
150
|
}
|
|
149
|
-
.list-div .list-table.is-border.top > tr > th {
|
|
151
|
+
.list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
|
|
150
152
|
border-bottom: 0;
|
|
151
153
|
}
|
|
152
154
|
.list-div .list-table .list-com {
|
|
153
155
|
display: flex;
|
|
154
156
|
align-items: center;
|
|
155
157
|
}
|
|
156
|
-
.list-div .
|
|
157
|
-
|
|
158
|
-
height: 50px;
|
|
158
|
+
.list-div .el-tooltip {
|
|
159
|
+
white-space: pre-wrap;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
.lists {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
}
|
|
30
|
-
.list-div .list-table
|
|
30
|
+
.list-div .list-table-td {
|
|
31
31
|
text-align: left;
|
|
32
32
|
}
|
|
33
|
-
.list-div .list-table
|
|
33
|
+
.list-div .list-table-th {
|
|
34
34
|
font-weight: initial;
|
|
35
35
|
}
|
|
36
36
|
.list-div .list-table .is-whole .list-table-auto {
|
|
@@ -102,11 +102,13 @@
|
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
104
|
white-space: pre-wrap;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
107
|
+
.list-div .list-table .list-table-value.is-tooltip {
|
|
105
108
|
max-height: var(--list-row-max-height);
|
|
106
109
|
display: -webkit-box;
|
|
107
|
-
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
110
|
+
-webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
|
|
108
111
|
-webkit-box-orient: vertical;
|
|
109
|
-
overflow: hidden;
|
|
110
112
|
text-overflow: ellipsis;
|
|
111
113
|
}
|
|
112
114
|
.list-div .list-table.right .list-table-th {
|
|
@@ -126,36 +128,35 @@
|
|
|
126
128
|
border-top: 1px solid var(--list-border-color);
|
|
127
129
|
border-bottom: 1px solid var(--list-border-color);
|
|
128
130
|
}
|
|
129
|
-
.list-div .list-table.is-border > tr > td {
|
|
131
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td {
|
|
130
132
|
border-bottom: 1px solid var(--list-border-color);
|
|
131
133
|
border-left: 1px solid var(--list-border-color);
|
|
132
134
|
}
|
|
133
|
-
.list-div .list-table.is-border > tr > td:last-child {
|
|
135
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
|
|
134
136
|
border-right: 1px solid var(--list-border-color);
|
|
135
137
|
}
|
|
136
|
-
.list-div .list-table.is-border > tr > th {
|
|
138
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th {
|
|
137
139
|
border-left: 1px solid var(--list-border-color);
|
|
138
140
|
border-bottom: 1px solid var(--list-border-color);
|
|
139
141
|
}
|
|
140
|
-
.list-div .list-table.is-border > tr > th:last-child {
|
|
142
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
|
|
141
143
|
border-right: 1px solid var(--list-border-color);
|
|
142
144
|
}
|
|
143
|
-
.list-div .list-table.is-border > tr:last-child > td {
|
|
145
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
|
|
144
146
|
border-bottom: 0;
|
|
145
147
|
}
|
|
146
|
-
.list-div .list-table.is-border > tr:last-child > th {
|
|
148
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
|
|
147
149
|
border-bottom: 0;
|
|
148
150
|
}
|
|
149
|
-
.list-div .list-table.is-border.top > tr > th {
|
|
151
|
+
.list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
|
|
150
152
|
border-bottom: 0;
|
|
151
153
|
}
|
|
152
154
|
.list-div .list-table .list-com {
|
|
153
155
|
display: flex;
|
|
154
156
|
align-items: center;
|
|
155
157
|
}
|
|
156
|
-
.list-div .
|
|
157
|
-
|
|
158
|
-
height: 50px;
|
|
158
|
+
.list-div .el-tooltip {
|
|
159
|
+
white-space: pre-wrap;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
162
|
.lists {
|
|
@@ -663,10 +663,10 @@
|
|
|
663
663
|
width: 100%;
|
|
664
664
|
height: 100%;
|
|
665
665
|
}
|
|
666
|
-
.list-div .list-table
|
|
666
|
+
.list-div .list-table-td {
|
|
667
667
|
text-align: left;
|
|
668
668
|
}
|
|
669
|
-
.list-div .list-table
|
|
669
|
+
.list-div .list-table-th {
|
|
670
670
|
font-weight: initial;
|
|
671
671
|
}
|
|
672
672
|
.list-div .list-table .is-whole .list-table-auto {
|
|
@@ -738,11 +738,13 @@
|
|
|
738
738
|
.list-div .list-table .list-table-value {
|
|
739
739
|
word-break: break-all;
|
|
740
740
|
white-space: pre-wrap;
|
|
741
|
+
overflow: hidden;
|
|
742
|
+
}
|
|
743
|
+
.list-div .list-table .list-table-value.is-tooltip {
|
|
741
744
|
max-height: var(--list-row-max-height);
|
|
742
745
|
display: -webkit-box;
|
|
743
|
-
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
746
|
+
-webkit-line-clamp: var(--list-line-clamp, 1); /* 显示的行数 */
|
|
744
747
|
-webkit-box-orient: vertical;
|
|
745
|
-
overflow: hidden;
|
|
746
748
|
text-overflow: ellipsis;
|
|
747
749
|
}
|
|
748
750
|
.list-div .list-table.right .list-table-th {
|
|
@@ -762,36 +764,35 @@
|
|
|
762
764
|
border-top: 1px solid var(--list-border-color);
|
|
763
765
|
border-bottom: 1px solid var(--list-border-color);
|
|
764
766
|
}
|
|
765
|
-
.list-div .list-table.is-border > tr > td {
|
|
767
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td {
|
|
766
768
|
border-bottom: 1px solid var(--list-border-color);
|
|
767
769
|
border-left: 1px solid var(--list-border-color);
|
|
768
770
|
}
|
|
769
|
-
.list-div .list-table.is-border > tr > td:last-child {
|
|
771
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-td:last-child {
|
|
770
772
|
border-right: 1px solid var(--list-border-color);
|
|
771
773
|
}
|
|
772
|
-
.list-div .list-table.is-border > tr > th {
|
|
774
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th {
|
|
773
775
|
border-left: 1px solid var(--list-border-color);
|
|
774
776
|
border-bottom: 1px solid var(--list-border-color);
|
|
775
777
|
}
|
|
776
|
-
.list-div .list-table.is-border > tr > th:last-child {
|
|
778
|
+
.list-div .list-table.is-border > .list-table-tr > .list-table-th:last-child {
|
|
777
779
|
border-right: 1px solid var(--list-border-color);
|
|
778
780
|
}
|
|
779
|
-
.list-div .list-table.is-border > tr:last-child > td {
|
|
781
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-td {
|
|
780
782
|
border-bottom: 0;
|
|
781
783
|
}
|
|
782
|
-
.list-div .list-table.is-border > tr:last-child > th {
|
|
784
|
+
.list-div .list-table.is-border > .list-table-tr:last-child > .list-table-th {
|
|
783
785
|
border-bottom: 0;
|
|
784
786
|
}
|
|
785
|
-
.list-div .list-table.is-border.top > tr > th {
|
|
787
|
+
.list-div .list-table.is-border.top > .list-table-tr > .list-table-th {
|
|
786
788
|
border-bottom: 0;
|
|
787
789
|
}
|
|
788
790
|
.list-div .list-table .list-com {
|
|
789
791
|
display: flex;
|
|
790
792
|
align-items: center;
|
|
791
793
|
}
|
|
792
|
-
.list-div .
|
|
793
|
-
|
|
794
|
-
height: 50px;
|
|
794
|
+
.list-div .el-tooltip {
|
|
795
|
+
white-space: pre-wrap;
|
|
795
796
|
}
|
|
796
797
|
|
|
797
798
|
.tables {
|
|
@@ -815,6 +816,11 @@
|
|
|
815
816
|
}
|
|
816
817
|
.tables-table.el-table--default .cell {
|
|
817
818
|
white-space: pre-wrap;
|
|
819
|
+
}
|
|
820
|
+
.tables-table.el-table--default .cell.el-tooltip {
|
|
821
|
+
white-space: nowrap;
|
|
822
|
+
}
|
|
823
|
+
.tables-table.el-table--default .cell {
|
|
818
824
|
padding: 0 var(--tables-interval-horizon, var(--tables-interval));
|
|
819
825
|
}
|
|
820
826
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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$
|
|
4
|
+
const index$2 = require("../../button/index.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
|
-
const
|
|
6
|
+
const index$1 = require("../../../hooks/event-aliass/index.cjs");
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
8
|
__name: "com-but",
|
|
9
9
|
props: {
|
|
@@ -78,21 +78,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
78
|
}
|
|
79
79
|
function onClick(obj, index2, $event) {
|
|
80
80
|
var _a;
|
|
81
|
-
|
|
81
|
+
const is = index$1.eventAliass(
|
|
82
82
|
(callback) => {
|
|
83
|
-
callback(
|
|
84
|
-
"but",
|
|
85
|
-
obj,
|
|
86
|
-
props.valueobj,
|
|
87
|
-
props.listobj,
|
|
88
|
-
props.comscope
|
|
89
|
-
);
|
|
83
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
90
84
|
},
|
|
91
85
|
"click",
|
|
92
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
86
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
93
87
|
$event
|
|
94
88
|
);
|
|
95
|
-
|
|
89
|
+
if (!is) {
|
|
90
|
+
emit("but", obj);
|
|
91
|
+
}
|
|
96
92
|
}
|
|
97
93
|
return (_ctx, _cache) => {
|
|
98
94
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -100,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
100
96
|
}, [
|
|
101
97
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.list, (item, index2) => {
|
|
102
98
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
103
|
-
getHide(item) ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
99
|
+
getHide(item) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Button), vue.mergeProps({
|
|
104
100
|
key: 0,
|
|
105
101
|
ref_for: true
|
|
106
102
|
}, item, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createBlock, createCommentVNode, mergeProps, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Button } from "../../button/index.js";
|
|
3
3
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
|
-
import { eventAliass } from "
|
|
4
|
+
import { eventAliass } from "../../../hooks/event-aliass/index.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "com-but",
|
|
7
7
|
props: {
|
|
@@ -76,21 +76,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
}
|
|
77
77
|
function onClick(obj, index, $event) {
|
|
78
78
|
var _a;
|
|
79
|
-
eventAliass(
|
|
79
|
+
const is = eventAliass(
|
|
80
80
|
(callback) => {
|
|
81
|
-
callback(
|
|
82
|
-
"but",
|
|
83
|
-
obj,
|
|
84
|
-
props.valueobj,
|
|
85
|
-
props.listobj,
|
|
86
|
-
props.comscope
|
|
87
|
-
);
|
|
81
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
88
82
|
},
|
|
89
83
|
"click",
|
|
90
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
84
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
91
85
|
$event
|
|
92
86
|
);
|
|
93
|
-
|
|
87
|
+
if (!is) {
|
|
88
|
+
emit("but", obj);
|
|
89
|
+
}
|
|
94
90
|
}
|
|
95
91
|
return (_ctx, _cache) => {
|
|
96
92
|
return openBlock(), createElementBlock("span", {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
|
+
const index$1 = require("../../../hooks/event-aliass/index.cjs");
|
|
5
6
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
8
|
__name: "com-color",
|
|
@@ -100,22 +101,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
100
101
|
}
|
|
101
102
|
function onClick($event) {
|
|
102
103
|
var _a;
|
|
103
|
-
const
|
|
104
|
-
util.eventAliass(
|
|
104
|
+
const is = index$1.eventAliass(
|
|
105
105
|
(callback) => {
|
|
106
|
-
callback(
|
|
107
|
-
"color",
|
|
108
|
-
obj,
|
|
109
|
-
props.valueobj,
|
|
110
|
-
props.listobj,
|
|
111
|
-
props.comscope
|
|
112
|
-
);
|
|
106
|
+
callback(props, props.valueobj, props.listobj, props.comscope);
|
|
113
107
|
},
|
|
114
108
|
"click",
|
|
115
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
109
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || props,
|
|
116
110
|
$event
|
|
117
111
|
);
|
|
118
|
-
|
|
112
|
+
if (!is) {
|
|
113
|
+
emit("color", props);
|
|
114
|
+
}
|
|
119
115
|
}
|
|
120
116
|
return (_ctx, _cache) => {
|
|
121
117
|
return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeStyle, normalizeClass, unref, createElementVNode } from "vue";
|
|
2
|
-
import { setEmptyDisplay
|
|
2
|
+
import { setEmptyDisplay } from "./util.js";
|
|
3
|
+
import { eventAliass } from "../../../hooks/event-aliass/index.js";
|
|
3
4
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "com-color",
|
|
@@ -98,22 +99,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
99
|
}
|
|
99
100
|
function onClick($event) {
|
|
100
101
|
var _a;
|
|
101
|
-
const
|
|
102
|
-
eventAliass(
|
|
102
|
+
const is = eventAliass(
|
|
103
103
|
(callback) => {
|
|
104
|
-
callback(
|
|
105
|
-
"color",
|
|
106
|
-
obj,
|
|
107
|
-
props.valueobj,
|
|
108
|
-
props.listobj,
|
|
109
|
-
props.comscope
|
|
110
|
-
);
|
|
104
|
+
callback(props, props.valueobj, props.listobj, props.comscope);
|
|
111
105
|
},
|
|
112
106
|
"click",
|
|
113
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
107
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || props,
|
|
114
108
|
$event
|
|
115
109
|
);
|
|
116
|
-
|
|
110
|
+
if (!is) {
|
|
111
|
+
emit("color", props);
|
|
112
|
+
}
|
|
117
113
|
}
|
|
118
114
|
return (_ctx, _cache) => {
|
|
119
115
|
return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
|
+
const index$1 = require("../../../hooks/event-aliass/index.cjs");
|
|
5
6
|
const use = require("../../common/use.cjs");
|
|
6
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
7
8
|
const _hoisted_1 = ["onClick"];
|
|
@@ -112,21 +113,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
113
|
});
|
|
113
114
|
function onClickList(obj, index2, $event) {
|
|
114
115
|
var _a;
|
|
115
|
-
|
|
116
|
+
const is = index$1.eventAliass(
|
|
116
117
|
(callback) => {
|
|
117
|
-
callback(
|
|
118
|
-
"lis",
|
|
119
|
-
obj,
|
|
120
|
-
props.valueobj,
|
|
121
|
-
props.listobj,
|
|
122
|
-
props.comscope
|
|
123
|
-
);
|
|
118
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
124
119
|
},
|
|
125
120
|
"click",
|
|
126
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
121
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
127
122
|
$event
|
|
128
123
|
);
|
|
129
|
-
|
|
124
|
+
if (!is) {
|
|
125
|
+
emit("lis", obj, index2);
|
|
126
|
+
}
|
|
130
127
|
}
|
|
131
128
|
return (_ctx, _cache) => {
|
|
132
129
|
return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeClass, unref, renderList, normalizeStyle } from "vue";
|
|
2
|
-
import { setEmptyDisplay
|
|
2
|
+
import { setEmptyDisplay } from "./util.js";
|
|
3
|
+
import { eventAliass } from "../../../hooks/event-aliass/index.js";
|
|
3
4
|
import { useGetDomValue } from "../../common/use.js";
|
|
4
5
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
5
6
|
const _hoisted_1 = ["onClick"];
|
|
@@ -110,21 +111,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
111
|
});
|
|
111
112
|
function onClickList(obj, index, $event) {
|
|
112
113
|
var _a;
|
|
113
|
-
eventAliass(
|
|
114
|
+
const is = eventAliass(
|
|
114
115
|
(callback) => {
|
|
115
|
-
callback(
|
|
116
|
-
"lis",
|
|
117
|
-
obj,
|
|
118
|
-
props.valueobj,
|
|
119
|
-
props.listobj,
|
|
120
|
-
props.comscope
|
|
121
|
-
);
|
|
116
|
+
callback(obj, props.valueobj, props.listobj, props.comscope);
|
|
122
117
|
},
|
|
123
118
|
"click",
|
|
124
|
-
((_a = props.listobj) == null ? void 0 : _a.events) ||
|
|
119
|
+
((_a = props.listobj) == null ? void 0 : _a.events) || obj,
|
|
125
120
|
$event
|
|
126
121
|
);
|
|
127
|
-
|
|
122
|
+
if (!is) {
|
|
123
|
+
emit("lis", obj, index);
|
|
124
|
+
}
|
|
128
125
|
}
|
|
129
126
|
return (_ctx, _cache) => {
|
|
130
127
|
return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -662,7 +662,7 @@ const useInit = (props2, emit, refTable, getLocale, defaultConfig = {}) => {
|
|
|
662
662
|
}
|
|
663
663
|
const height = vue.computed(() => {
|
|
664
664
|
var _a2;
|
|
665
|
-
return (
|
|
665
|
+
return (_a2 = tableConfig.value.config) == null ? void 0 : _a2.height;
|
|
666
666
|
});
|
|
667
667
|
const onScroll = () => {
|
|
668
668
|
console.log("onScroll");
|
|
@@ -660,7 +660,7 @@ const useInit = (props2, emit, refTable, getLocale, defaultConfig = {}) => {
|
|
|
660
660
|
}
|
|
661
661
|
const height = computed(() => {
|
|
662
662
|
var _a2;
|
|
663
|
-
return (
|
|
663
|
+
return (_a2 = tableConfig.value.config) == null ? void 0 : _a2.height;
|
|
664
664
|
});
|
|
665
665
|
const onScroll = () => {
|
|
666
666
|
console.log("onScroll");
|
|
@@ -42,7 +42,7 @@ function isExceed(cellChild, lineClamp = 1) {
|
|
|
42
42
|
const verticalPadding = top + bottom;
|
|
43
43
|
const horizontalPadding = left + right;
|
|
44
44
|
if (lineClamp > 1) {
|
|
45
|
-
if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)
|
|
45
|
+
if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
48
|
} else if (isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {
|
|
@@ -40,7 +40,7 @@ function isExceed(cellChild, lineClamp = 1) {
|
|
|
40
40
|
const verticalPadding = top + bottom;
|
|
41
41
|
const horizontalPadding = left + right;
|
|
42
42
|
if (lineClamp > 1) {
|
|
43
|
-
if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)
|
|
43
|
+
if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {
|
|
44
44
|
return true;
|
|
45
45
|
}
|
|
46
46
|
} else if (isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {
|