@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
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.lists {
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-height: 100px;
|
|
18
|
+
position: relative;
|
|
19
|
+
flex: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
background-color: #eee;
|
|
23
|
+
}
|
|
24
|
+
.lists-list {
|
|
25
|
+
padding: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
26
|
+
}
|
|
27
|
+
.lists-list.is-absolute {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
}
|
|
32
|
+
.lists-list--column .lists-list-item {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
}
|
|
35
|
+
.lists-list-item:first-child {
|
|
36
|
+
margin-top: calc(var(--lists-interval) * 2);
|
|
37
|
+
}
|
|
38
|
+
.lists-list-item {
|
|
39
|
+
background-color: #fff;
|
|
40
|
+
margin: 0 var(--lists-interval-horizon, var(--lists-interval));
|
|
41
|
+
margin-bottom: calc(var(--lists-interval) * 2);
|
|
42
|
+
}
|
|
43
|
+
.lists-list-item.is-active {
|
|
44
|
+
background-color: rgb(250, 235, 215);
|
|
45
|
+
}
|
|
46
|
+
.lists-list-item.is-selected {
|
|
47
|
+
background-color: rgb(215, 250, 224);
|
|
48
|
+
}
|
|
49
|
+
.lists-list-item .el-card {
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.paging {
|
|
54
|
+
width: 100%;
|
|
55
|
+
padding: 10px;
|
|
56
|
+
}
|
|
57
|
+
.paging-pagination {
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
.paging-slot {
|
|
61
|
+
padding-left: 10px;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
color: #9b9b9b;
|
|
65
|
+
white-space: pre-wrap;
|
|
66
|
+
}
|
|
67
|
+
.paging-slot > span {
|
|
68
|
+
margin-right: 10px;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
}
|
|
71
|
+
.paging .el-pagination__total {
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
color: #9b9b9b;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.listspd {
|
|
78
|
+
width: 100%;
|
|
79
|
+
flex: 1;
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
}
|
|
83
|
+
.listspd-main {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
flex: 1;
|
|
87
|
+
width: 100%;
|
|
88
|
+
}
|
|
89
|
+
.listspd-main.is-scroll .v-scroll-add {
|
|
90
|
+
text-align: center;
|
|
91
|
+
padding: 10px;
|
|
92
|
+
color: #999;
|
|
93
|
+
}
|
|
94
|
+
.listspd-paginat {
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
}
|
|
97
|
+
.listspd-paginat .el-pagination {
|
|
98
|
+
justify-content: flex-end;
|
|
99
|
+
}
|
package/dist/css/page.css
CHANGED
|
@@ -697,6 +697,17 @@
|
|
|
697
697
|
.list-div .list-table .list-table-th {
|
|
698
698
|
text-align: left;
|
|
699
699
|
}
|
|
700
|
+
.list-div .list-table .list-table-value {
|
|
701
|
+
word-break: break-all;
|
|
702
|
+
white-space: normal;
|
|
703
|
+
display: block;
|
|
704
|
+
max-height: var(--list-row-max-height);
|
|
705
|
+
display: -webkit-box;
|
|
706
|
+
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
707
|
+
-webkit-box-orient: vertical;
|
|
708
|
+
overflow: hidden;
|
|
709
|
+
text-overflow: ellipsis;
|
|
710
|
+
}
|
|
700
711
|
.list-div .list-table.right .list-table-th {
|
|
701
712
|
text-align: right;
|
|
702
713
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tables {
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-height: var(--tables-min-height, 70px);
|
|
18
|
+
position: relative;
|
|
19
|
+
flex: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
.tables-table.is-absolute {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
}
|
|
27
|
+
.tables-table {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
--el-table-header-bg-color: rgb(248, 248, 249);
|
|
30
|
+
}
|
|
31
|
+
.tables-table.el-table--default .el-table__cell {
|
|
32
|
+
padding: var(--tables-interval) 0;
|
|
33
|
+
}
|
|
34
|
+
.tables-table.el-table--default .cell {
|
|
35
|
+
padding: 0 var(--tables-interval-horizon, var(--tables-interval));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.paging {
|
|
39
|
+
width: 100%;
|
|
40
|
+
padding: 10px;
|
|
41
|
+
}
|
|
42
|
+
.paging-pagination {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.paging-slot {
|
|
46
|
+
padding-left: 10px;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
color: #9b9b9b;
|
|
50
|
+
white-space: pre-wrap;
|
|
51
|
+
}
|
|
52
|
+
.paging-slot > span {
|
|
53
|
+
margin-right: 10px;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
}
|
|
56
|
+
.paging .el-pagination__total {
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
font-weight: 400;
|
|
59
|
+
color: #9b9b9b;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tablespd {
|
|
63
|
+
width: 100%;
|
|
64
|
+
flex: 1;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
}
|
|
68
|
+
.tablespd-main {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
flex: 1;
|
|
72
|
+
width: 100%;
|
|
73
|
+
}
|
|
74
|
+
.tablespd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
.tablespd-main.is-scroll .v-scroll-add {
|
|
78
|
+
text-align: center;
|
|
79
|
+
padding: 10px;
|
|
80
|
+
color: #999;
|
|
81
|
+
background-color: #eee;
|
|
82
|
+
}
|
|
83
|
+
.tablespd-paginat {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
.tablespd-paginat .el-pagination {
|
|
87
|
+
justify-content: flex-end;
|
|
88
|
+
}
|
|
@@ -82,38 +82,42 @@ function getWidth(el) {
|
|
|
82
82
|
return 0;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
const cssHeightName = "v-adjust-xux-";
|
|
86
|
+
const border = "3px dashed #1d8bfa";
|
|
85
87
|
function getDomHeight() {
|
|
86
|
-
const
|
|
88
|
+
const name = "height";
|
|
89
|
+
const dom = document.querySelector("." + cssHeightName + name);
|
|
87
90
|
if (dom) {
|
|
88
91
|
return dom;
|
|
89
92
|
} else {
|
|
90
93
|
const xux = document.createElement("div");
|
|
91
|
-
xux.className =
|
|
94
|
+
xux.className = cssHeightName + name;
|
|
92
95
|
xux.style.zIndex = "100000";
|
|
93
96
|
xux.style.position = "fixed";
|
|
94
97
|
xux.style.left = "0";
|
|
95
98
|
xux.style.right = "0";
|
|
96
99
|
xux.style.height = "0";
|
|
97
100
|
xux.style.display = "none";
|
|
98
|
-
xux.style.borderBottom =
|
|
101
|
+
xux.style.borderBottom = border;
|
|
99
102
|
document.body.appendChild(xux);
|
|
100
103
|
return xux;
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
function getDomWidth() {
|
|
104
|
-
const
|
|
107
|
+
const name = "width";
|
|
108
|
+
const dom = document.querySelector("." + cssHeightName + name);
|
|
105
109
|
if (dom) {
|
|
106
110
|
return dom;
|
|
107
111
|
} else {
|
|
108
112
|
const xux = document.createElement("div");
|
|
109
|
-
xux.className =
|
|
113
|
+
xux.className = cssHeightName + name;
|
|
110
114
|
xux.style.zIndex = "100000";
|
|
111
115
|
xux.style.position = "fixed";
|
|
112
116
|
xux.style.top = "0";
|
|
113
117
|
xux.style.bottom = "0";
|
|
114
118
|
xux.style.width = "0";
|
|
115
119
|
xux.style.display = "none";
|
|
116
|
-
xux.style.borderLeft =
|
|
120
|
+
xux.style.borderLeft = border;
|
|
117
121
|
document.body.appendChild(xux);
|
|
118
122
|
return xux;
|
|
119
123
|
}
|
|
@@ -80,38 +80,42 @@ function getWidth(el) {
|
|
|
80
80
|
return 0;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
const cssHeightName = "v-adjust-xux-";
|
|
84
|
+
const border = "3px dashed #1d8bfa";
|
|
83
85
|
function getDomHeight() {
|
|
84
|
-
const
|
|
86
|
+
const name = "height";
|
|
87
|
+
const dom = document.querySelector("." + cssHeightName + name);
|
|
85
88
|
if (dom) {
|
|
86
89
|
return dom;
|
|
87
90
|
} else {
|
|
88
91
|
const xux = document.createElement("div");
|
|
89
|
-
xux.className =
|
|
92
|
+
xux.className = cssHeightName + name;
|
|
90
93
|
xux.style.zIndex = "100000";
|
|
91
94
|
xux.style.position = "fixed";
|
|
92
95
|
xux.style.left = "0";
|
|
93
96
|
xux.style.right = "0";
|
|
94
97
|
xux.style.height = "0";
|
|
95
98
|
xux.style.display = "none";
|
|
96
|
-
xux.style.borderBottom =
|
|
99
|
+
xux.style.borderBottom = border;
|
|
97
100
|
document.body.appendChild(xux);
|
|
98
101
|
return xux;
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
function getDomWidth() {
|
|
102
|
-
const
|
|
105
|
+
const name = "width";
|
|
106
|
+
const dom = document.querySelector("." + cssHeightName + name);
|
|
103
107
|
if (dom) {
|
|
104
108
|
return dom;
|
|
105
109
|
} else {
|
|
106
110
|
const xux = document.createElement("div");
|
|
107
|
-
xux.className =
|
|
111
|
+
xux.className = cssHeightName + name;
|
|
108
112
|
xux.style.zIndex = "100000";
|
|
109
113
|
xux.style.position = "fixed";
|
|
110
114
|
xux.style.top = "0";
|
|
111
115
|
xux.style.bottom = "0";
|
|
112
116
|
xux.style.width = "0";
|
|
113
117
|
xux.style.display = "none";
|
|
114
|
-
xux.style.borderLeft =
|
|
118
|
+
xux.style.borderLeft = border;
|
|
115
119
|
document.body.appendChild(xux);
|
|
116
120
|
return xux;
|
|
117
121
|
}
|
|
@@ -6,17 +6,19 @@ const index$2 = require("./expose/index.cjs");
|
|
|
6
6
|
const index$3 = require("./inserted/index.cjs");
|
|
7
7
|
const index$4 = require("./locus/index.cjs");
|
|
8
8
|
const index$5 = require("./scroll/index.cjs");
|
|
9
|
-
const index$6 = require("./
|
|
9
|
+
const index$6 = require("./sortable/index.cjs");
|
|
10
|
+
const index$7 = require("./stick/index.cjs");
|
|
10
11
|
require("./v-loading/index.cjs");
|
|
11
|
-
const index$
|
|
12
|
+
const index$8 = require("element-plus/es/components/loading/index");
|
|
12
13
|
exports.Adjust = index.default;
|
|
13
14
|
exports.Drag = index$1.default;
|
|
14
15
|
exports.Expose = index$2.default;
|
|
15
16
|
exports.Inserted = index$3.default;
|
|
16
17
|
exports.Locus = index$4.default;
|
|
17
18
|
exports.Scroll = index$5.default;
|
|
18
|
-
exports.
|
|
19
|
+
exports.Sortable = index$6.default;
|
|
20
|
+
exports.Stick = index$7.default;
|
|
19
21
|
Object.defineProperty(exports, "VLoading", {
|
|
20
22
|
enumerable: true,
|
|
21
|
-
get: () => index$
|
|
23
|
+
get: () => index$8.vLoading
|
|
22
24
|
});
|
|
@@ -4,5 +4,6 @@ export { default as Expose } from './expose';
|
|
|
4
4
|
export { default as Inserted } from './inserted';
|
|
5
5
|
export { default as Locus } from './locus';
|
|
6
6
|
export { default as Scroll } from './scroll';
|
|
7
|
+
export { default as Sortable } from './sortable';
|
|
7
8
|
export { default as Stick } from './stick';
|
|
8
9
|
export { default as VLoading } from './v-loading';
|
package/dist/directives/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import { default as default4 } from "./expose/index.js";
|
|
|
4
4
|
import { default as default5 } from "./inserted/index.js";
|
|
5
5
|
import { default as default6 } from "./locus/index.js";
|
|
6
6
|
import { default as default7 } from "./scroll/index.js";
|
|
7
|
-
import { default as default8 } from "./
|
|
7
|
+
import { default as default8 } from "./sortable/index.js";
|
|
8
|
+
import { default as default9 } from "./stick/index.js";
|
|
8
9
|
import "./v-loading/index.js";
|
|
9
10
|
import { vLoading } from "element-plus/es/components/loading/index";
|
|
10
11
|
export {
|
|
@@ -14,6 +15,7 @@ export {
|
|
|
14
15
|
default5 as Inserted,
|
|
15
16
|
default6 as Locus,
|
|
16
17
|
default7 as Scroll,
|
|
17
|
-
default8 as
|
|
18
|
+
default8 as Sortable,
|
|
19
|
+
default9 as Stick,
|
|
18
20
|
vLoading as VLoading
|
|
19
21
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const Sortable = require("sortablejs");
|
|
4
|
+
const vSortable = {
|
|
5
|
+
name: "Sortable",
|
|
6
|
+
mounted(el, binding) {
|
|
7
|
+
const value = binding.value;
|
|
8
|
+
let selector = el.getAttribute(`sortable-selector`);
|
|
9
|
+
let dom;
|
|
10
|
+
if (value.dom) {
|
|
11
|
+
if (typeof value.dom == "string") {
|
|
12
|
+
dom = el.querySelector(value.dom);
|
|
13
|
+
} else {
|
|
14
|
+
dom = value.dom;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
if (selector) {
|
|
18
|
+
dom = el.querySelector(selector);
|
|
19
|
+
} else {
|
|
20
|
+
dom = el;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (dom && value.is !== false) {
|
|
24
|
+
const options = Object.assign(
|
|
25
|
+
{
|
|
26
|
+
animation: 150,
|
|
27
|
+
// 动画时长
|
|
28
|
+
ghostClass: "sortable-ghost",
|
|
29
|
+
// 拖拽时占位元素的样式
|
|
30
|
+
chosenClass: "sortable-chosen",
|
|
31
|
+
// 被选中元素的样式
|
|
32
|
+
dragClass: "sortable-drag"
|
|
33
|
+
// 拖拽元素的样式
|
|
34
|
+
},
|
|
35
|
+
value.options || {
|
|
36
|
+
...value,
|
|
37
|
+
dom: void 0,
|
|
38
|
+
is: void 0
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
Sortable.create(dom, options);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.default = vSortable;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Sortable from "sortablejs";
|
|
2
|
+
const vSortable = {
|
|
3
|
+
name: "Sortable",
|
|
4
|
+
mounted(el, binding) {
|
|
5
|
+
const value = binding.value;
|
|
6
|
+
let selector = el.getAttribute(`sortable-selector`);
|
|
7
|
+
let dom;
|
|
8
|
+
if (value.dom) {
|
|
9
|
+
if (typeof value.dom == "string") {
|
|
10
|
+
dom = el.querySelector(value.dom);
|
|
11
|
+
} else {
|
|
12
|
+
dom = value.dom;
|
|
13
|
+
}
|
|
14
|
+
} else {
|
|
15
|
+
if (selector) {
|
|
16
|
+
dom = el.querySelector(selector);
|
|
17
|
+
} else {
|
|
18
|
+
dom = el;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
if (dom && value.is !== false) {
|
|
22
|
+
const options = Object.assign(
|
|
23
|
+
{
|
|
24
|
+
animation: 150,
|
|
25
|
+
// 动画时长
|
|
26
|
+
ghostClass: "sortable-ghost",
|
|
27
|
+
// 拖拽时占位元素的样式
|
|
28
|
+
chosenClass: "sortable-chosen",
|
|
29
|
+
// 被选中元素的样式
|
|
30
|
+
dragClass: "sortable-drag"
|
|
31
|
+
// 拖拽元素的样式
|
|
32
|
+
},
|
|
33
|
+
value.options || {
|
|
34
|
+
...value,
|
|
35
|
+
dom: void 0,
|
|
36
|
+
is: void 0
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
Sortable.create(dom, options);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
vSortable as default
|
|
45
|
+
};
|
|
@@ -129,9 +129,11 @@ var config_default = {
|
|
|
129
129
|
"list",
|
|
130
130
|
"lists",
|
|
131
131
|
"listsp",
|
|
132
|
+
"listspd",
|
|
132
133
|
"paging",
|
|
133
134
|
"tables",
|
|
134
135
|
"tablesp",
|
|
136
|
+
"tablespd",
|
|
135
137
|
"tabless",
|
|
136
138
|
"tablesv",
|
|
137
139
|
"tablesvp"
|
|
@@ -143,6 +145,7 @@ var config_default = {
|
|
|
143
145
|
"inserted",
|
|
144
146
|
"locus",
|
|
145
147
|
"scroll",
|
|
148
|
+
"sortable",
|
|
146
149
|
"stick",
|
|
147
150
|
"v-loading"
|
|
148
151
|
],
|
|
@@ -196,9 +199,11 @@ var config_default = {
|
|
|
196
199
|
"list",
|
|
197
200
|
"lists",
|
|
198
201
|
"listsp",
|
|
202
|
+
"listspd",
|
|
199
203
|
"paging",
|
|
200
204
|
"tables",
|
|
201
205
|
"tablesp",
|
|
206
|
+
"tablespd",
|
|
202
207
|
"tabless",
|
|
203
208
|
"tablesv",
|
|
204
209
|
"tablesvp",
|
|
@@ -129,9 +129,11 @@ var config_default = {
|
|
|
129
129
|
"list",
|
|
130
130
|
"lists",
|
|
131
131
|
"listsp",
|
|
132
|
+
"listspd",
|
|
132
133
|
"paging",
|
|
133
134
|
"tables",
|
|
134
135
|
"tablesp",
|
|
136
|
+
"tablespd",
|
|
135
137
|
"tabless",
|
|
136
138
|
"tablesv",
|
|
137
139
|
"tablesvp"
|
|
@@ -143,6 +145,7 @@ var config_default = {
|
|
|
143
145
|
"inserted",
|
|
144
146
|
"locus",
|
|
145
147
|
"scroll",
|
|
148
|
+
"sortable",
|
|
146
149
|
"stick",
|
|
147
150
|
"v-loading"
|
|
148
151
|
],
|
|
@@ -196,9 +199,11 @@ var config_default = {
|
|
|
196
199
|
"list",
|
|
197
200
|
"lists",
|
|
198
201
|
"listsp",
|
|
202
|
+
"listspd",
|
|
199
203
|
"paging",
|
|
200
204
|
"tables",
|
|
201
205
|
"tablesp",
|
|
206
|
+
"tablespd",
|
|
202
207
|
"tabless",
|
|
203
208
|
"tablesv",
|
|
204
209
|
"tablesvp",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2L4PC7LZcjs = require('./chunk-2L4PC7LZ.cjs');
|
|
4
4
|
|
|
5
5
|
// expand/components.ts
|
|
6
6
|
var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
|
|
@@ -35,11 +35,11 @@ function getFrom(mc, type, conf) {
|
|
|
35
35
|
const p = config.prefix ? config.prefix + "-" : "";
|
|
36
36
|
const filename = p ? mc.replace(new RegExp("^" + p), "") : mc;
|
|
37
37
|
if (type == 1) {
|
|
38
|
-
if (
|
|
38
|
+
if (_chunk2L4PC7LZcjs.config_default.components.includes(filename)) {
|
|
39
39
|
const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
|
|
40
40
|
const from = `${config.name}/components/${filename}/index`;
|
|
41
41
|
let sideEffects;
|
|
42
|
-
if (
|
|
42
|
+
if (_chunk2L4PC7LZcjs.config_default.sideEffects.includes(filename)) {
|
|
43
43
|
if (conf.css) {
|
|
44
44
|
sideEffects = `${config.name}/components/${filename}/style/index${conf.css || 2}.scss`;
|
|
45
45
|
} else {
|
|
@@ -55,14 +55,14 @@ function getFrom(mc, type, conf) {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
} else {
|
|
58
|
-
if (
|
|
58
|
+
if (_chunk2L4PC7LZcjs.config_default.directives.includes(filename)) {
|
|
59
59
|
const name = "default";
|
|
60
60
|
const from = `${config.name}/directives/${filename}/index`;
|
|
61
61
|
return {
|
|
62
62
|
name,
|
|
63
63
|
from
|
|
64
64
|
};
|
|
65
|
-
} else if (
|
|
65
|
+
} else if (_chunk2L4PC7LZcjs.config_default.directives.includes("v-" + filename)) {
|
|
66
66
|
const name = "default";
|
|
67
67
|
const from = `${config.name}/directives/${"v-" + filename}/index`;
|
|
68
68
|
return {
|
package/dist/expand/config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2L4PC7LZcjs = require('./chunk-2L4PC7LZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = _chunk2L4PC7LZcjs.config_default;
|
package/dist/expand/config.js
CHANGED
|
@@ -12,9 +12,9 @@ export declare const useCssName: (block: string) => {
|
|
|
12
12
|
ec: (name?: string, blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
13
13
|
is: (name: string, state?: boolean) => string;
|
|
14
14
|
zis: (blockSuffix?: string, modifier?: string, state?: boolean) => string;
|
|
15
|
-
vo: (object: Record<string, string>) => Record<string, string>;
|
|
15
|
+
vo: (object: Record<string, string | number>) => Record<string, string | number>;
|
|
16
16
|
vm: (name: string) => string;
|
|
17
|
-
vdo: (object: Record<string, string | undefined>) => Record<string, string>;
|
|
17
|
+
vdo: (object: Record<string, string | number | undefined>) => Record<string, string | number>;
|
|
18
18
|
vdm: (name: string) => string;
|
|
19
19
|
};
|
|
20
20
|
export type UseCssNameReturn = ReturnType<typeof useCssName>;
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -19,7 +19,6 @@ exports.provideGlobalConfig = index$5.provideGlobalConfig;
|
|
|
19
19
|
exports.setGlobalConfig = index$5.setGlobalConfig;
|
|
20
20
|
exports.setGlobalConfigs = index$5.setGlobalConfigs;
|
|
21
21
|
exports.useGlobalConfig = index$5.useGlobalConfig;
|
|
22
|
-
exports.useAttrValue = index$6.useAttrValue;
|
|
23
22
|
exports.useInherit = index$6.useInherit;
|
|
24
23
|
exports.buildLocaleAdd = index$7.buildLocaleAdd;
|
|
25
24
|
exports.buildLocaleContext = index$7.buildLocaleContext;
|
package/dist/hooks/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { eventAliass } from "./event-aliass/index.js";
|
|
|
4
4
|
import { useExpose } from "./expose/index.js";
|
|
5
5
|
import { useFullscreen } from "./full-screen/index.js";
|
|
6
6
|
import { provideGlobalConfig, setGlobalConfig, setGlobalConfigs, useGlobalConfig } from "./global-config/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { useInherit } from "./inherit/index.js";
|
|
8
8
|
import { buildLocaleAdd, buildLocaleContext, buildTranslator, useLocale } from "./locale/index.js";
|
|
9
9
|
import { getProps, usePropsDefault, viewProps } from "./props-default/index.js";
|
|
10
10
|
export {
|
|
@@ -16,7 +16,6 @@ export {
|
|
|
16
16
|
provideGlobalConfig,
|
|
17
17
|
setGlobalConfig,
|
|
18
18
|
setGlobalConfigs,
|
|
19
|
-
useAttrValue,
|
|
20
19
|
useCssName,
|
|
21
20
|
useDefaultConfig,
|
|
22
21
|
useDefaultConfigs,
|
|
@@ -45,12 +45,4 @@ const useInherit = (attrs = vue.useAttrs(), name) => {
|
|
|
45
45
|
})
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
function useAttrValue(attrs, k) {
|
|
49
|
-
if (typeof k === "string") {
|
|
50
|
-
return attrs[k] ?? attrs[humpToLine.humpToLine(k)];
|
|
51
|
-
} else {
|
|
52
|
-
return attrs[k];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.useAttrValue = useAttrValue;
|
|
56
48
|
exports.useInherit = useInherit;
|
|
@@ -43,14 +43,6 @@ const useInherit = (attrs = useAttrs(), name) => {
|
|
|
43
43
|
})
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
function useAttrValue(attrs, k) {
|
|
47
|
-
if (typeof k === "string") {
|
|
48
|
-
return attrs[k] ?? attrs[humpToLine(k)];
|
|
49
|
-
} else {
|
|
50
|
-
return attrs[k];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
46
|
export {
|
|
54
|
-
useAttrValue,
|
|
55
47
|
useInherit
|
|
56
48
|
};
|
package/dist/icons/index.json
CHANGED