@fangzhongya/fang-ui 0.1.6 → 0.1.8
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/common/urls.cjs +1 -1
- package/dist/components/common/urls.js +1 -1
- package/dist/components/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- package/dist/components/no-data/index.css +6 -1
- package/dist/components/no-data/index.scss +6 -1
- package/dist/components/page/index.css +1 -1
- package/dist/components/tables/common/pagin.cjs +2 -2
- package/dist/components/tables/common/pagin.js +2 -2
- package/dist/components/tables/index.css +1 -1
- package/dist/components/tables/index.scss +1 -1
- package/dist/components/tables/src/data.cjs +14 -0
- package/dist/components/tables/src/data.d.ts +14 -0
- package/dist/components/tables/src/data.js +14 -0
- package/dist/components/tables/src/index2.cjs +5 -3
- package/dist/components/tables/src/index2.js +5 -3
- package/dist/components/tablesp/index.css +1 -1
- package/dist/css/index.css +29 -24
- package/dist/css/no-data.css +6 -1
- package/dist/css/page.css +1 -1
- package/dist/css/tables.css +1 -1
- package/dist/css/tablesp.css +1 -1
- package/dist/icons/index.json +1 -1
- package/dist/index.css +29 -24
- package/package.json +5 -5
- /package/dist/components/{config-provider → keep-com}/index.css +0 -0
- /package/dist/css/{config-provider.css → keep-com.css} +0 -0
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
@use './paging/index.scss' as *;
|
|
117
117
|
@use './tables/index.scss' as *;
|
|
118
118
|
@use './tablesp/index.scss' as *;
|
|
119
|
-
@use './
|
|
120
|
-
@use './
|
|
119
|
+
@use './tabless/index.scss' as *;
|
|
120
|
+
@use './tablesv/index.scss' as *;
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
@use './paging/style/index2.scss' as *;
|
|
117
117
|
@use './tables/style/index2.scss' as *;
|
|
118
118
|
@use './tablesp/style/index2.scss' as *;
|
|
119
|
-
@use './
|
|
120
|
-
@use './
|
|
119
|
+
@use './tabless/style/index2.scss' as *;
|
|
120
|
+
@use './tablesv/style/index2.scss' as *;
|
|
@@ -562,7 +562,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
562
562
|
return obj;
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
function inDataFilter(data2, obj) {
|
|
565
|
+
function inDataFilter(data2, obj, isValue) {
|
|
566
566
|
var _a2, _b2;
|
|
567
567
|
let after = props2.onRequestAfter;
|
|
568
568
|
let ajaxData = {};
|
|
@@ -575,7 +575,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
575
575
|
} else {
|
|
576
576
|
const l = (ajaxData == null ? void 0 : ajaxData.list) ?? mpagconfig.data.list;
|
|
577
577
|
const t = (ajaxData == null ? void 0 : ajaxData.total) ?? mpagconfig.data.total;
|
|
578
|
-
const list = objValue.getObjValue(l, data2) ?? data2;
|
|
578
|
+
const list = objValue.getObjValue(l, data2) ?? (isValue ? data2 : []);
|
|
579
579
|
const total = t == "" ? list.length : objValue.getObjValue(t, data2);
|
|
580
580
|
return {
|
|
581
581
|
list,
|
|
@@ -560,7 +560,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
560
560
|
return obj;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function inDataFilter(data2, obj) {
|
|
563
|
+
function inDataFilter(data2, obj, isValue) {
|
|
564
564
|
var _a2, _b2;
|
|
565
565
|
let after = props2.onRequestAfter;
|
|
566
566
|
let ajaxData = {};
|
|
@@ -573,7 +573,7 @@ const useInit = (props2, emit, refTable, getLocale, isEl) => {
|
|
|
573
573
|
} else {
|
|
574
574
|
const l = (ajaxData == null ? void 0 : ajaxData.list) ?? mpagconfig.data.list;
|
|
575
575
|
const t = (ajaxData == null ? void 0 : ajaxData.total) ?? mpagconfig.data.total;
|
|
576
|
-
const list = getObjValue(l, data2) ?? data2;
|
|
576
|
+
const list = getObjValue(l, data2) ?? (isValue ? data2 : []);
|
|
577
577
|
const total = t == "" ? list.length : getObjValue(t, data2);
|
|
578
578
|
return {
|
|
579
579
|
list,
|
|
@@ -19,6 +19,20 @@ const dataProps = {
|
|
|
19
19
|
return "auto";
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @props { String, Number } maxHeight
|
|
24
|
+
* 最大高度 设置了最大高度 height 值将无效化
|
|
25
|
+
*/
|
|
26
|
+
maxHeight: {
|
|
27
|
+
type: String
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* @props { String, Number } minHeight
|
|
31
|
+
* 最小高度
|
|
32
|
+
*/
|
|
33
|
+
minHeight: {
|
|
34
|
+
type: String
|
|
35
|
+
},
|
|
22
36
|
/**
|
|
23
37
|
* 加载中
|
|
24
38
|
*/
|
|
@@ -24,6 +24,20 @@ export declare const dataProps: {
|
|
|
24
24
|
type: (StringConstructor | NumberConstructor)[];
|
|
25
25
|
default(): string;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* @props { String, Number } maxHeight
|
|
29
|
+
* 最大高度 设置了最大高度 height 值将无效化
|
|
30
|
+
*/
|
|
31
|
+
maxHeight: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @props { String, Number } minHeight
|
|
36
|
+
* 最小高度
|
|
37
|
+
*/
|
|
38
|
+
minHeight: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
};
|
|
27
41
|
/**
|
|
28
42
|
* 加载中
|
|
29
43
|
*/
|
|
@@ -17,6 +17,20 @@ const dataProps = {
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* @props { String, Number } maxHeight
|
|
22
|
+
* 最大高度 设置了最大高度 height 值将无效化
|
|
23
|
+
*/
|
|
24
|
+
maxHeight: {
|
|
25
|
+
type: String
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* @props { String, Number } minHeight
|
|
29
|
+
* 最小高度
|
|
30
|
+
*/
|
|
31
|
+
minHeight: {
|
|
32
|
+
type: String
|
|
33
|
+
},
|
|
20
34
|
/**
|
|
21
35
|
* 加载中
|
|
22
36
|
*/
|
|
@@ -131,7 +131,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
131
131
|
}, vue.unref(attrs).root, {
|
|
132
132
|
style: vue.unref(cs).vdo({
|
|
133
133
|
interval: _ctx.interval,
|
|
134
|
-
intervalHorizon: _ctx.intervalHorizon
|
|
134
|
+
intervalHorizon: _ctx.intervalHorizon,
|
|
135
|
+
minHeight: _ctx.minHeight
|
|
135
136
|
})
|
|
136
137
|
}), [
|
|
137
138
|
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.Table), vue.mergeProps(vue.unref(attrs).assem, {
|
|
@@ -139,7 +140,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
139
140
|
ref_key: "tableRef",
|
|
140
141
|
ref: tableRef,
|
|
141
142
|
class: [vue.unref(cs).z("table"), vue.unref(cs).is("absolute", props.adaptive)],
|
|
142
|
-
height: props.height,
|
|
143
|
+
height: props.maxHeight ? "" : props.height,
|
|
144
|
+
"max-height": props.maxHeight,
|
|
143
145
|
"scroll-selector": ".el-scrollbar .el-scrollbar__wrap",
|
|
144
146
|
"row-style": rowStyle.value,
|
|
145
147
|
data: props.value,
|
|
@@ -175,7 +177,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
175
177
|
]), 1032, ["table", "value", "list", "options"])
|
|
176
178
|
]),
|
|
177
179
|
_: 3
|
|
178
|
-
}, 16, ["class", "height", "row-style", "data", "default-sort"])), [
|
|
180
|
+
}, 16, ["class", "height", "max-height", "row-style", "data", "default-sort"])), [
|
|
179
181
|
[vue.unref(index$4.vLoading), props.loading]
|
|
180
182
|
])
|
|
181
183
|
], 16);
|
|
@@ -129,7 +129,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
}, unref(attrs).root, {
|
|
130
130
|
style: unref(cs).vdo({
|
|
131
131
|
interval: _ctx.interval,
|
|
132
|
-
intervalHorizon: _ctx.intervalHorizon
|
|
132
|
+
intervalHorizon: _ctx.intervalHorizon,
|
|
133
|
+
minHeight: _ctx.minHeight
|
|
133
134
|
})
|
|
134
135
|
}), [
|
|
135
136
|
withDirectives((openBlock(), createBlock(unref(Table), mergeProps(unref(attrs).assem, {
|
|
@@ -137,7 +138,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
138
|
ref_key: "tableRef",
|
|
138
139
|
ref: tableRef,
|
|
139
140
|
class: [unref(cs).z("table"), unref(cs).is("absolute", props.adaptive)],
|
|
140
|
-
height: props.height,
|
|
141
|
+
height: props.maxHeight ? "" : props.height,
|
|
142
|
+
"max-height": props.maxHeight,
|
|
141
143
|
"scroll-selector": ".el-scrollbar .el-scrollbar__wrap",
|
|
142
144
|
"row-style": rowStyle.value,
|
|
143
145
|
data: props.value,
|
|
@@ -173,7 +175,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
173
175
|
]), 1032, ["table", "value", "list", "options"])
|
|
174
176
|
]),
|
|
175
177
|
_: 3
|
|
176
|
-
}, 16, ["class", "height", "row-style", "data", "default-sort"])), [
|
|
178
|
+
}, 16, ["class", "height", "max-height", "row-style", "data", "default-sort"])), [
|
|
177
179
|
[unref(vLoading), props.loading]
|
|
178
180
|
])
|
|
179
181
|
], 16);
|
package/dist/css/index.css
CHANGED
|
@@ -787,7 +787,12 @@
|
|
|
787
787
|
|
|
788
788
|
.no-data {
|
|
789
789
|
text-align: center;
|
|
790
|
-
|
|
790
|
+
display: flex;
|
|
791
|
+
width: 100%;
|
|
792
|
+
min-height: 70px;
|
|
793
|
+
height: 100%;
|
|
794
|
+
align-items: center;
|
|
795
|
+
justify-content: center;
|
|
791
796
|
color: #999;
|
|
792
797
|
}
|
|
793
798
|
|
|
@@ -1121,7 +1126,7 @@
|
|
|
1121
1126
|
|
|
1122
1127
|
.tables {
|
|
1123
1128
|
width: 100%;
|
|
1124
|
-
min-height:
|
|
1129
|
+
min-height: var(--tables-min-height, 70px);
|
|
1125
1130
|
position: relative;
|
|
1126
1131
|
flex: 1;
|
|
1127
1132
|
display: flex;
|
|
@@ -1626,6 +1631,28 @@
|
|
|
1626
1631
|
justify-content: flex-end;
|
|
1627
1632
|
}
|
|
1628
1633
|
|
|
1634
|
+
.tabless {
|
|
1635
|
+
width: 100%;
|
|
1636
|
+
flex: 1;
|
|
1637
|
+
display: flex;
|
|
1638
|
+
flex-direction: column;
|
|
1639
|
+
}
|
|
1640
|
+
.tabless-main {
|
|
1641
|
+
display: flex;
|
|
1642
|
+
flex-direction: column;
|
|
1643
|
+
flex: 1;
|
|
1644
|
+
width: 100%;
|
|
1645
|
+
}
|
|
1646
|
+
.tabless-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1647
|
+
display: none;
|
|
1648
|
+
}
|
|
1649
|
+
.tabless-paginat {
|
|
1650
|
+
overflow: hidden;
|
|
1651
|
+
}
|
|
1652
|
+
.tabless-paginat .el-pagination {
|
|
1653
|
+
justify-content: flex-end;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1629
1656
|
.tablesv {
|
|
1630
1657
|
width: 100%;
|
|
1631
1658
|
min-height: 100px;
|
|
@@ -1707,26 +1734,4 @@
|
|
|
1707
1734
|
left: 0;
|
|
1708
1735
|
z-index: 1;
|
|
1709
1736
|
opacity: 0;
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
.tablesvp {
|
|
1713
|
-
width: 100%;
|
|
1714
|
-
height: var(--tablesvp-height);
|
|
1715
|
-
display: flex;
|
|
1716
|
-
flex-direction: column;
|
|
1717
|
-
}
|
|
1718
|
-
.tablesvp-main {
|
|
1719
|
-
display: flex;
|
|
1720
|
-
flex-direction: column;
|
|
1721
|
-
flex: 1;
|
|
1722
|
-
width: 100%;
|
|
1723
|
-
}
|
|
1724
|
-
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1725
|
-
display: none;
|
|
1726
|
-
}
|
|
1727
|
-
.tablesvp-paginat {
|
|
1728
|
-
overflow: hidden;
|
|
1729
|
-
}
|
|
1730
|
-
.tablesvp-paginat .el-pagination {
|
|
1731
|
-
justify-content: flex-end;
|
|
1732
1737
|
}
|
package/dist/css/no-data.css
CHANGED
package/dist/css/page.css
CHANGED
package/dist/css/tables.css
CHANGED
package/dist/css/tablesp.css
CHANGED
package/dist/icons/index.json
CHANGED
package/dist/index.css
CHANGED
|
@@ -787,7 +787,12 @@
|
|
|
787
787
|
|
|
788
788
|
.no-data {
|
|
789
789
|
text-align: center;
|
|
790
|
-
|
|
790
|
+
display: flex;
|
|
791
|
+
width: 100%;
|
|
792
|
+
min-height: 70px;
|
|
793
|
+
height: 100%;
|
|
794
|
+
align-items: center;
|
|
795
|
+
justify-content: center;
|
|
791
796
|
color: #999;
|
|
792
797
|
}
|
|
793
798
|
|
|
@@ -1121,7 +1126,7 @@
|
|
|
1121
1126
|
|
|
1122
1127
|
.tables {
|
|
1123
1128
|
width: 100%;
|
|
1124
|
-
min-height:
|
|
1129
|
+
min-height: var(--tables-min-height, 70px);
|
|
1125
1130
|
position: relative;
|
|
1126
1131
|
flex: 1;
|
|
1127
1132
|
display: flex;
|
|
@@ -1626,6 +1631,28 @@
|
|
|
1626
1631
|
justify-content: flex-end;
|
|
1627
1632
|
}
|
|
1628
1633
|
|
|
1634
|
+
.tabless {
|
|
1635
|
+
width: 100%;
|
|
1636
|
+
flex: 1;
|
|
1637
|
+
display: flex;
|
|
1638
|
+
flex-direction: column;
|
|
1639
|
+
}
|
|
1640
|
+
.tabless-main {
|
|
1641
|
+
display: flex;
|
|
1642
|
+
flex-direction: column;
|
|
1643
|
+
flex: 1;
|
|
1644
|
+
width: 100%;
|
|
1645
|
+
}
|
|
1646
|
+
.tabless-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1647
|
+
display: none;
|
|
1648
|
+
}
|
|
1649
|
+
.tabless-paginat {
|
|
1650
|
+
overflow: hidden;
|
|
1651
|
+
}
|
|
1652
|
+
.tabless-paginat .el-pagination {
|
|
1653
|
+
justify-content: flex-end;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1629
1656
|
.tablesv {
|
|
1630
1657
|
width: 100%;
|
|
1631
1658
|
min-height: 100px;
|
|
@@ -1707,26 +1734,4 @@
|
|
|
1707
1734
|
left: 0;
|
|
1708
1735
|
z-index: 1;
|
|
1709
1736
|
opacity: 0;
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
.tablesvp {
|
|
1713
|
-
width: 100%;
|
|
1714
|
-
height: var(--tablesvp-height);
|
|
1715
|
-
display: flex;
|
|
1716
|
-
flex-direction: column;
|
|
1717
|
-
}
|
|
1718
|
-
.tablesvp-main {
|
|
1719
|
-
display: flex;
|
|
1720
|
-
flex-direction: column;
|
|
1721
|
-
flex: 1;
|
|
1722
|
-
width: 100%;
|
|
1723
|
-
}
|
|
1724
|
-
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1725
|
-
display: none;
|
|
1726
|
-
}
|
|
1727
|
-
.tablesvp-paginat {
|
|
1728
|
-
overflow: hidden;
|
|
1729
|
-
}
|
|
1730
|
-
.tablesvp-paginat .el-pagination {
|
|
1731
|
-
justify-content: flex-end;
|
|
1732
1737
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"vue-tsc": "^3.1.3",
|
|
50
50
|
"vuedraggable": "4.1.0",
|
|
51
51
|
"vxe-table": "4.17.10",
|
|
52
|
-
"@fang-ui/directives": "0.0.1-0",
|
|
53
|
-
"@fang-ui/hooks": "0.0.1-0",
|
|
54
52
|
"@fang-ui/components": "0.0.1-0",
|
|
55
53
|
"@fang-ui/icons": "0.0.1-0",
|
|
56
|
-
"@fang-ui/
|
|
57
|
-
"@fang-ui/
|
|
54
|
+
"@fang-ui/directives": "0.0.1-0",
|
|
55
|
+
"@fang-ui/hooks": "0.0.1-0",
|
|
58
56
|
"@fang-ui/utils": "0.0.1-0",
|
|
57
|
+
"@fang-ui/locale": "0.0.1-0",
|
|
58
|
+
"@fang-ui/theme": "0.0.1-0",
|
|
59
59
|
"@fang-ui/types": "0.0.1-0"
|
|
60
60
|
},
|
|
61
61
|
"main": "./dist/index.cjs",
|
|
File without changes
|
|
File without changes
|