@weitutech/by-components 1.0.27 → 1.0.30

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.
@@ -1,26 +1,26 @@
1
- .b-page-search {
2
- .footer {
3
- position: relative;
4
- }
5
- .header {
6
- color: red;
7
- }
8
- .btn {
9
- display: flex;
10
- justify-content: space-between;
11
- }
12
- .handle-btn {
13
- display: flex;
14
- flex-wrap: nowrap;
15
- }
16
- .page-search {
17
- /* display: flex; */
18
- /* align-items: flex-start; */
19
- position: relative;
20
- }
21
- .fold {
22
- position: absolute;
23
- bottom: -30px;
24
- left: 40%;
25
- }
26
- }
1
+ .b-page-search {
2
+ .footer {
3
+ position: relative;
4
+ }
5
+ .header {
6
+ color: red;
7
+ }
8
+ .btn {
9
+ display: flex;
10
+ justify-content: space-between;
11
+ }
12
+ .handle-btn {
13
+ display: flex;
14
+ flex-wrap: nowrap;
15
+ }
16
+ .page-search {
17
+ /* display: flex; */
18
+ /* align-items: flex-start; */
19
+ position: relative;
20
+ }
21
+ .fold {
22
+ position: absolute;
23
+ bottom: -30px;
24
+ left: 40%;
25
+ }
26
+ }
@@ -1,40 +1,40 @@
1
- #pager {
2
- padding: 10px 0;
3
- background: #ffffff;
4
- border-top: 1px solid #f2f2f3;
5
- width: 100%;
6
- display: flex;
7
- justify-content: flex-end;
8
- ::v-deep {
9
- .el-pagination__jump {
10
- margin-left: 0;
11
- }
12
-
13
- .el-pagination {
14
- ul li {
15
- border: 1px solid #e7e7f1;
16
- }
17
-
18
- button {
19
- border: 1px solid #e7e7f1;
20
- }
21
- }
22
-
23
- .el-pagination.is-background .el-pager li:not(.disabled).active {
24
- background-color: #f3f3fe;
25
- color: #000;
26
- }
27
-
28
- .el-pagination.is-background .btn-prev {
29
- background-color: #fff;
30
- }
31
-
32
- .el-pagination.is-background .btn-next {
33
- background-color: #fff;
34
- }
35
-
36
- .el-pagination.is-background .el-pager li {
37
- background-color: #fff;
38
- }
39
- }
40
- }
1
+ #pager {
2
+ padding: 10px 0;
3
+ background: #ffffff;
4
+ border-top: 1px solid #f2f2f3;
5
+ width: 100%;
6
+ display: flex;
7
+ justify-content: flex-end;
8
+ ::v-deep {
9
+ .el-pagination__jump {
10
+ margin-left: 0;
11
+ }
12
+
13
+ .el-pagination {
14
+ ul li {
15
+ border: 1px solid #e7e7f1;
16
+ }
17
+
18
+ button {
19
+ border: 1px solid #e7e7f1;
20
+ }
21
+ }
22
+
23
+ .el-pagination.is-background .el-pager li:not(.disabled).active {
24
+ background-color: #f3f3fe;
25
+ color: #000;
26
+ }
27
+
28
+ .el-pagination.is-background .btn-prev {
29
+ background-color: #fff;
30
+ }
31
+
32
+ .el-pagination.is-background .btn-next {
33
+ background-color: #fff;
34
+ }
35
+
36
+ .el-pagination.is-background .el-pager li {
37
+ background-color: #fff;
38
+ }
39
+ }
40
+ }
@@ -1,39 +1,39 @@
1
- .b-table {
2
- .table-row-overflow-line-2 {
3
- // 用语文案超出两行打点
4
- overflow: hidden;
5
- text-overflow: ellipsis;
6
- -webkit-line-clamp: 2;
7
- display: -webkit-box;
8
- -webkit-box-orient: vertical;
9
- line-height: 15px;
10
- }
11
- .text_pointer_primary {
12
- // 模拟Element按钮的text样式 解决在表格中按钮不可以打点问题
13
- cursor: pointer;
14
- color: #409eff;
15
- }
16
- .table_wrapper {
17
- // 表格外围样式
18
- background-color: #ffffff;
19
- padding: 10px 10px 0 10px;
20
- border-radius: 5px;
21
- }
22
- .vxe-header--column.group-split,
23
- .vxe-body--column.group-split {
24
- background: #e8eaec;
25
- }
26
- }
27
- .table_wrapper {
28
- // 表格外围样式
29
- background-color: #ffffff;
30
- padding: 10px 10px 0 10px;
31
- border-radius: 5px;
32
- }
33
-
34
- .form_wrapper {
35
- // 表单外围样式
36
- background-color: #ffffff;
37
- padding: 10px 0 5px 0px;
38
- border-radius: 5px;
39
- }
1
+ .b-table {
2
+ .table-row-overflow-line-2 {
3
+ // 用语文案超出两行打点
4
+ overflow: hidden;
5
+ text-overflow: ellipsis;
6
+ -webkit-line-clamp: 2;
7
+ display: -webkit-box;
8
+ -webkit-box-orient: vertical;
9
+ line-height: 15px;
10
+ }
11
+ .text_pointer_primary {
12
+ // 模拟Element按钮的text样式 解决在表格中按钮不可以打点问题
13
+ cursor: pointer;
14
+ color: #409eff;
15
+ }
16
+ .table_wrapper {
17
+ // 表格外围样式
18
+ background-color: #ffffff;
19
+ padding: 10px 10px 0 10px;
20
+ border-radius: 5px;
21
+ }
22
+ .vxe-header--column.group-split,
23
+ .vxe-body--column.group-split {
24
+ background: #e8eaec;
25
+ }
26
+ }
27
+ .table_wrapper {
28
+ // 表格外围样式
29
+ background-color: #ffffff;
30
+ padding: 10px 10px 0 10px;
31
+ border-radius: 5px;
32
+ }
33
+
34
+ .form_wrapper {
35
+ // 表单外围样式
36
+ background-color: #ffffff;
37
+ padding: 10px 0 5px 0px;
38
+ border-radius: 5px;
39
+ }
@@ -1,32 +1,32 @@
1
- export const deepClone = (target) => {
2
- // 定义一个变量
3
- let result
4
- // 如果当前需要深拷贝的是一个对象的话
5
- if (typeof target === "object") {
6
- // 如果是一个数组的话
7
- if (Array.isArray(target)) {
8
- result = [] // 将result赋值为一个数组,并且执行遍历
9
- for (const i in target) {
10
- // 递归克隆数组中的每一项
11
- result.push(deepClone(target[i]))
12
- }
13
- // 判断如果当前的值是null的话;直接赋值为null
14
- } else if (target === null) {
15
- result = null
16
- // 判断如果当前的值是一个RegExp对象的话,直接赋值
17
- } else if (target.constructor === RegExp) {
18
- result = target
19
- } else {
20
- // 否则是普通对象,直接for in循环,递归赋值对象的所有值
21
- result = {}
22
- for (const i in target) {
23
- result[i] = deepClone(target[i])
24
- }
25
- }
26
- // 如果不是对象的话,就是基本数据类型,那么直接赋值
27
- } else {
28
- result = target
29
- }
30
- // 返回最终结果
31
- return result
1
+ export const deepClone = (target) => {
2
+ // 定义一个变量
3
+ let result
4
+ // 如果当前需要深拷贝的是一个对象的话
5
+ if (typeof target === "object") {
6
+ // 如果是一个数组的话
7
+ if (Array.isArray(target)) {
8
+ result = [] // 将result赋值为一个数组,并且执行遍历
9
+ for (const i in target) {
10
+ // 递归克隆数组中的每一项
11
+ result.push(deepClone(target[i]))
12
+ }
13
+ // 判断如果当前的值是null的话;直接赋值为null
14
+ } else if (target === null) {
15
+ result = null
16
+ // 判断如果当前的值是一个RegExp对象的话,直接赋值
17
+ } else if (target.constructor === RegExp) {
18
+ result = target
19
+ } else {
20
+ // 否则是普通对象,直接for in循环,递归赋值对象的所有值
21
+ result = {}
22
+ for (const i in target) {
23
+ result[i] = deepClone(target[i])
24
+ }
25
+ }
26
+ // 如果不是对象的话,就是基本数据类型,那么直接赋值
27
+ } else {
28
+ result = target
29
+ }
30
+ // 返回最终结果
31
+ return result
32
32
  }