@qy_better_lib/pc 0.0.1 → 0.0.2

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.
@@ -0,0 +1,47 @@
1
+ .contextmenu {
2
+ position: fixed;
3
+ top: 110px;
4
+ left: 200px;
5
+ z-index: 10000;
6
+
7
+ &-wrap {
8
+ overflow: hidden;
9
+ color: var(--el-text-color-regular);
10
+ background-color: var(--el-bg-color);
11
+ border-radius: var(--el-border-radius-base);
12
+ box-shadow: var(--el-box-shadow);
13
+ padding: 5px 0;
14
+ }
15
+
16
+
17
+ &-items {
18
+ list-style-type: none;
19
+ box-sizing: border-box;
20
+
21
+ .el-divider--horizontal {
22
+ margin: 5px 0;
23
+ }
24
+
25
+ li {
26
+ cursor: pointer;
27
+ user-select: none;
28
+ height: 34px;
29
+ padding: 0 20px;
30
+ margin: 0 5px;
31
+ // border-bottom: 1px solid var(--el-border-color-extra-light);
32
+ display: flex;
33
+ gap: 10px;
34
+ align-items: center;
35
+ border-radius: var(--el-border-radius-base);
36
+ transition: background-color .3s cubic-bezier(.4, 0, .2, 1);
37
+
38
+ &:last-child {
39
+ border: none;
40
+ }
41
+
42
+ &:hover {
43
+ background-color: var(--el-color-primary-light-7);
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,3 @@
1
+ @import './textButton.scss';
2
+ @import './tableExtend.scss';
3
+ @import './contextMenu.scss';
File without changes
@@ -0,0 +1,91 @@
1
+ .table-extend {
2
+ display: flex;
3
+ flex-direction: column;
4
+ flex: 1 0 0%;
5
+ align-items: center;
6
+ width: 100%;
7
+ height: 100%;
8
+ position: relative;
9
+ min-height: 200px;
10
+
11
+ .tool-panel {
12
+ display: flex;
13
+ width: 100%;
14
+ margin-bottom: 10px;
15
+ }
16
+
17
+ .left-panel,
18
+ .right-panel {
19
+ display: flex;
20
+ flex-wrap: wrap;
21
+ align-items: center;
22
+ gap: 10px;
23
+ }
24
+
25
+ .right-panel {
26
+ flex: 1 0 0;
27
+ justify-content: flex-end;
28
+ }
29
+
30
+ .el-table--border td {
31
+ border-right: none !important;
32
+ }
33
+
34
+ .el-pagination {
35
+ margin-top: 20px;
36
+ }
37
+
38
+ .el-empty {
39
+ padding: 0;
40
+ }
41
+
42
+ .el-empty__description {
43
+ margin-top: 0;
44
+ }
45
+ }
46
+
47
+ .default-tool {
48
+ font-size: 18px;
49
+ margin-left: 10px;
50
+ display: flex;
51
+ align-items: center;
52
+ height: 100%;
53
+ }
54
+
55
+ .set-column-list-wrap {
56
+ max-height: 70vh;
57
+ overflow: auto;
58
+ }
59
+
60
+ .set-column-check-group {
61
+ .group-item {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+ min-height: 32px;
66
+ }
67
+
68
+ .fixed-wrap {
69
+ display: flex;
70
+ justify-content: space-between;
71
+ width: 50px;
72
+ font-size: 16px;
73
+ color: #333;
74
+ }
75
+
76
+ .fixed-icon {
77
+ cursor: pointer;
78
+
79
+ &:first-child {
80
+ transform: rotate(-90deg);
81
+ }
82
+
83
+ &:last-child {
84
+ transform: rotate(90deg);
85
+ }
86
+
87
+ &.active {
88
+ color: var(--el-color-primary);
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,53 @@
1
+ .text-button {
2
+ display: inline-block;
3
+ font-size: 12px;
4
+ cursor: pointer;
5
+ user-select: none;
6
+
7
+ &.is-disabled {
8
+ cursor: not-allowed !important;
9
+ }
10
+
11
+ &-default {
12
+ color: inherit;
13
+ &.is-disabled {
14
+ color: var(--el-text-color-disabled);
15
+ }
16
+ }
17
+ &-primary {
18
+ color: var(--el-color-primary);
19
+ &.is-disabled {
20
+ color: var(--el-color-primary-light-5);
21
+ }
22
+ }
23
+ &-success {
24
+ color: var(--el-color-success);
25
+ &.is-disabled {
26
+ color: var(--el-color-success-light-5);
27
+ }
28
+ }
29
+ &-warning {
30
+ color: var(--el-color-warning);
31
+ &.is-disabled {
32
+ color: var(--el-color-warning-light-5);
33
+ }
34
+ }
35
+ &-danger {
36
+ color: var(--el-color-danger);
37
+ &.is-disabled {
38
+ color: var(--el-color-danger-light-5);
39
+ }
40
+ }
41
+ &-error {
42
+ color: var(--el-color-error);
43
+ &.is-disabled {
44
+ color: var(--el-color-error-light-5);
45
+ }
46
+ }
47
+ &-info {
48
+ color: var(--el-color-info);
49
+ &.is-disabled {
50
+ color: var(--el-color-info-light-5);
51
+ }
52
+ }
53
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qy_better_lib/pc",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "qy better lib core",
6
6
  "author": "luhuiming",
7
7
  "license": "ISC",
@@ -25,6 +25,7 @@
25
25
  "*",
26
26
  "dist/*",
27
27
  "lib/*",
28
+ "lib/*.scss",
28
29
  "lib/*.d.ts",
29
30
  "lib/*/index.d.ts"
30
31
  ]
@@ -37,7 +38,9 @@
37
38
  "./directives": "./lib/directives/index.js",
38
39
  "./directives/*": "./lib/directives/*/*.js",
39
40
  "./utils": "./lib/utils/index.js",
40
- "./utils/*": "./lib/utils/*.js"
41
+ "./utils/*": "./lib/utils/*.js",
42
+ "./styles": "./libstyles/index.scss",
43
+ "./styles/*": "./lib/styles/*"
41
44
  },
42
45
  "publishConfig": {
43
46
  "access": "public",
@@ -48,6 +51,8 @@
48
51
  "@types/node": "^20.14.9",
49
52
  "@vitejs/plugin-vue": "^5.0.5",
50
53
  "element-plus": "^2.7.6",
54
+ "magic-string": "^0.30.10",
55
+ "mkdirp": "^1.0.4",
51
56
  "vite": "^5.3.2",
52
57
  "vite-plugin-dts": "^3.9.1",
53
58
  "vue": "^3.4.31",
@@ -0,0 +1,47 @@
1
+ .contextmenu {
2
+ position: fixed;
3
+ top: 110px;
4
+ left: 200px;
5
+ z-index: 10000;
6
+
7
+ &-wrap {
8
+ overflow: hidden;
9
+ color: var(--el-text-color-regular);
10
+ background-color: var(--el-bg-color);
11
+ border-radius: var(--el-border-radius-base);
12
+ box-shadow: var(--el-box-shadow);
13
+ padding: 5px 0;
14
+ }
15
+
16
+
17
+ &-items {
18
+ list-style-type: none;
19
+ box-sizing: border-box;
20
+
21
+ .el-divider--horizontal {
22
+ margin: 5px 0;
23
+ }
24
+
25
+ li {
26
+ cursor: pointer;
27
+ user-select: none;
28
+ height: 34px;
29
+ padding: 0 20px;
30
+ margin: 0 5px;
31
+ // border-bottom: 1px solid var(--el-border-color-extra-light);
32
+ display: flex;
33
+ gap: 10px;
34
+ align-items: center;
35
+ border-radius: var(--el-border-radius-base);
36
+ transition: background-color .3s cubic-bezier(.4, 0, .2, 1);
37
+
38
+ &:last-child {
39
+ border: none;
40
+ }
41
+
42
+ &:hover {
43
+ background-color: var(--el-color-primary-light-7);
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,3 @@
1
+ @import './textButton.scss';
2
+ @import './tableExtend.scss';
3
+ @import './contextMenu.scss';
File without changes
@@ -0,0 +1,91 @@
1
+ .table-extend {
2
+ display: flex;
3
+ flex-direction: column;
4
+ flex: 1 0 0%;
5
+ align-items: center;
6
+ width: 100%;
7
+ height: 100%;
8
+ position: relative;
9
+ min-height: 200px;
10
+
11
+ .tool-panel {
12
+ display: flex;
13
+ width: 100%;
14
+ margin-bottom: 10px;
15
+ }
16
+
17
+ .left-panel,
18
+ .right-panel {
19
+ display: flex;
20
+ flex-wrap: wrap;
21
+ align-items: center;
22
+ gap: 10px;
23
+ }
24
+
25
+ .right-panel {
26
+ flex: 1 0 0;
27
+ justify-content: flex-end;
28
+ }
29
+
30
+ .el-table--border td {
31
+ border-right: none !important;
32
+ }
33
+
34
+ .el-pagination {
35
+ margin-top: 20px;
36
+ }
37
+
38
+ .el-empty {
39
+ padding: 0;
40
+ }
41
+
42
+ .el-empty__description {
43
+ margin-top: 0;
44
+ }
45
+ }
46
+
47
+ .default-tool {
48
+ font-size: 18px;
49
+ margin-left: 10px;
50
+ display: flex;
51
+ align-items: center;
52
+ height: 100%;
53
+ }
54
+
55
+ .set-column-list-wrap {
56
+ max-height: 70vh;
57
+ overflow: auto;
58
+ }
59
+
60
+ .set-column-check-group {
61
+ .group-item {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+ min-height: 32px;
66
+ }
67
+
68
+ .fixed-wrap {
69
+ display: flex;
70
+ justify-content: space-between;
71
+ width: 50px;
72
+ font-size: 16px;
73
+ color: #333;
74
+ }
75
+
76
+ .fixed-icon {
77
+ cursor: pointer;
78
+
79
+ &:first-child {
80
+ transform: rotate(-90deg);
81
+ }
82
+
83
+ &:last-child {
84
+ transform: rotate(90deg);
85
+ }
86
+
87
+ &.active {
88
+ color: var(--el-color-primary);
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,53 @@
1
+ .text-button {
2
+ display: inline-block;
3
+ font-size: 12px;
4
+ cursor: pointer;
5
+ user-select: none;
6
+
7
+ &.is-disabled {
8
+ cursor: not-allowed !important;
9
+ }
10
+
11
+ &-default {
12
+ color: inherit;
13
+ &.is-disabled {
14
+ color: var(--el-text-color-disabled);
15
+ }
16
+ }
17
+ &-primary {
18
+ color: var(--el-color-primary);
19
+ &.is-disabled {
20
+ color: var(--el-color-primary-light-5);
21
+ }
22
+ }
23
+ &-success {
24
+ color: var(--el-color-success);
25
+ &.is-disabled {
26
+ color: var(--el-color-success-light-5);
27
+ }
28
+ }
29
+ &-warning {
30
+ color: var(--el-color-warning);
31
+ &.is-disabled {
32
+ color: var(--el-color-warning-light-5);
33
+ }
34
+ }
35
+ &-danger {
36
+ color: var(--el-color-danger);
37
+ &.is-disabled {
38
+ color: var(--el-color-danger-light-5);
39
+ }
40
+ }
41
+ &-error {
42
+ color: var(--el-color-error);
43
+ &.is-disabled {
44
+ color: var(--el-color-error-light-5);
45
+ }
46
+ }
47
+ &-info {
48
+ color: var(--el-color-info);
49
+ &.is-disabled {
50
+ color: var(--el-color-info-light-5);
51
+ }
52
+ }
53
+ }