@fangzhongya/fang-ui 0.0.11 → 0.0.12

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.
Files changed (48) hide show
  1. package/dist/components/index.css +32 -32
  2. package/dist/components/index.scss +5 -5
  3. package/dist/theme/box/index.scss +44 -0
  4. package/dist/theme/box-adjust/index.scss +41 -0
  5. package/dist/theme/box-local/index.scss +6 -0
  6. package/dist/theme/box-mask/index.scss +14 -0
  7. package/dist/theme/box-title/index.scss +26 -0
  8. package/dist/theme/common.scss +16 -0
  9. package/dist/theme/cs-title/index.scss +17 -0
  10. package/dist/theme/drawer/index.scss +13 -0
  11. package/dist/theme/drawer/src/cs.scss +12 -0
  12. package/dist/theme/global-config/index.scss +10 -0
  13. package/dist/theme/index.scss +10 -0
  14. package/dist/theme/popup/index.scss +55 -0
  15. package/dist/theme/window/index.scss +56 -0
  16. package/package.json +6 -6
  17. package/dist/theme/alert/index.d.ts +0 -0
  18. package/dist/theme/button/index.d.ts +0 -0
  19. package/dist/theme/checkbox/index.d.ts +0 -0
  20. package/dist/theme/checkbox-group/index.d.ts +0 -0
  21. package/dist/theme/config-provider/index.d.ts +0 -0
  22. package/dist/theme/date-picker/index.d.ts +0 -0
  23. package/dist/theme/dialog/index.d.ts +0 -0
  24. package/dist/theme/drawer/index.d.ts +0 -0
  25. package/dist/theme/dropdown/index.d.ts +0 -0
  26. package/dist/theme/dropdown-item/index.d.ts +0 -0
  27. package/dist/theme/dropdown-menu/index.d.ts +0 -0
  28. package/dist/theme/form/index.d.ts +0 -0
  29. package/dist/theme/form-item/index.d.ts +0 -0
  30. package/dist/theme/input/index.d.ts +0 -0
  31. package/dist/theme/input-number/index.d.ts +0 -0
  32. package/dist/theme/inputs/index.d.ts +0 -0
  33. package/dist/theme/option/index.d.ts +0 -0
  34. package/dist/theme/option-group/index.d.ts +0 -0
  35. package/dist/theme/pagination/index.d.ts +0 -0
  36. package/dist/theme/popconfirm/index.d.ts +0 -0
  37. package/dist/theme/radio/index.d.ts +0 -0
  38. package/dist/theme/radio-group/index.d.ts +0 -0
  39. package/dist/theme/select/index.d.ts +0 -0
  40. package/dist/theme/selects/index.d.ts +0 -0
  41. package/dist/theme/switch/index.d.ts +0 -0
  42. package/dist/theme/tab-pane/index.d.ts +0 -0
  43. package/dist/theme/tabs/index.d.ts +0 -0
  44. package/dist/theme/time-picker/index.d.ts +0 -0
  45. package/dist/theme/time-select/index.d.ts +0 -0
  46. package/dist/theme/tooltip/index.d.ts +0 -0
  47. package/dist/theme/tree/index.d.ts +0 -0
  48. package/dist/theme/upload/index.d.ts +0 -0
@@ -63,9 +63,36 @@
63
63
  margin: 10px;
64
64
  }
65
65
 
66
- .global-config {
66
+ .box-adjust {
67
+ position: fixed;
68
+ width: 100vw;
69
+ height: 100vh;
70
+ z-index: 1000;
71
+ top: 0;
67
72
  left: 0;
68
73
  }
74
+ .box-adjust .box-adjust-body {
75
+ position: absolute;
76
+ top: 30%;
77
+ left: 30%;
78
+ z-index: 100;
79
+ background: #fff;
80
+ width: 40%;
81
+ height: 40%;
82
+ display: flex;
83
+ flex-direction: column;
84
+ }
85
+ .box-adjust .box-adjust-body .box-adjust-body-div {
86
+ flex: 1;
87
+ overflow-y: auto;
88
+ padding: 20px;
89
+ }
90
+ .box-adjust .box-adjust-body.popup-center .box-adjust-body-div {
91
+ display: flex;
92
+ flex-direction: column;
93
+ align-items: center;
94
+ justify-content: center;
95
+ }
69
96
 
70
97
  .box {
71
98
  position: fixed;
@@ -105,37 +132,6 @@
105
132
  text-align: left;
106
133
  }
107
134
 
108
- .box-adjust {
109
- position: fixed;
110
- width: 100vw;
111
- height: 100vh;
112
- z-index: 1000;
113
- top: 0;
114
- left: 0;
115
- }
116
- .box-adjust .box-adjust-body {
117
- position: absolute;
118
- top: 30%;
119
- left: 30%;
120
- z-index: 100;
121
- background: #fff;
122
- width: 40%;
123
- height: 40%;
124
- display: flex;
125
- flex-direction: column;
126
- }
127
- .box-adjust .box-adjust-body .box-adjust-body-div {
128
- flex: 1;
129
- overflow-y: auto;
130
- padding: 20px;
131
- }
132
- .box-adjust .box-adjust-body.popup-center .box-adjust-body-div {
133
- display: flex;
134
- flex-direction: column;
135
- align-items: center;
136
- justify-content: center;
137
- }
138
-
139
135
  .popup {
140
136
  position: fixed;
141
137
  width: 100vw;
@@ -221,4 +217,8 @@
221
217
  }
222
218
  .window .window-body.max::-webkit-scrollbar {
223
219
  width: 0 !important;
220
+ }
221
+
222
+ .global-config {
223
+ left: 0;
224
224
  }
@@ -1,10 +1,10 @@
1
1
  @use './cs-title/index.scss' as *;
2
2
  @use './drawer/index.scss' as *;
3
- @use './global-config/index.scss' as *;
4
- @use './box-local/index.scss' as *;
5
3
  @use './box-adjust/index.scss' as *;
6
- @use './box/index.scss' as *;
4
+ @use './box-local/index.scss' as *;
7
5
  @use './box-mask/index.scss' as *;
8
- @use './popup/index.scss' as *;
9
6
  @use './box-title/index.scss' as *;
10
- @use './window/index.scss' as *;
7
+ @use './box/index.scss' as *;
8
+ @use './popup/index.scss' as *;
9
+ @use './window/index.scss' as *;
10
+ @use './global-config/index.scss' as *;
@@ -0,0 +1,44 @@
1
+ // @use '../common.scss' as *;
2
+
3
+ // @use '../box-mask/index.scss' as *;
4
+ // @use '../box-title/index.scss' as *;
5
+
6
+ @use '../common.scss' as *;
7
+ @use '../box-mask/index.scss' as *;
8
+ @use '../box-title/index.scss' as *;
9
+
10
+ .#{$namespace}box {
11
+ position: fixed;
12
+ width: 100%;
13
+ height: 100%;
14
+ z-index: 1000;
15
+ top: 0;
16
+ left: 0;
17
+ display: flex;
18
+ flex-direction: column;
19
+ align-items: center;
20
+ justify-content: center;
21
+ .#{$namespace}box-body {
22
+ position: relative;
23
+ z-index: 100;
24
+ background: #fff;
25
+ min-width: 30%;
26
+ min-height: 20%;
27
+ max-height: 90%;
28
+ display: flex;
29
+ flex-direction: column;
30
+ .#{$namespace}box-body-div {
31
+ flex: 1;
32
+ overflow-y: auto;
33
+ padding: 20px;
34
+ }
35
+ &.popup-center {
36
+ .#{$namespace}box-body-div {
37
+ display: flex;
38
+ flex-direction: column;
39
+ align-items: center;
40
+ justify-content: center;
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,41 @@
1
+ // @use '../common.scss' as *;
2
+
3
+ // @use '../box-mask/index.scss' as *;
4
+ // @use '../box-title/index.scss' as *;
5
+
6
+ @use '../common.scss' as *;
7
+ @use '../box-mask/index.scss' as *;
8
+ @use '../box-title/index.scss' as *;
9
+
10
+ .#{$namespace}box-adjust {
11
+ position: fixed;
12
+ width: 100vw;
13
+ height: 100vh;
14
+ z-index: 1000;
15
+ top: 0;
16
+ left: 0;
17
+ .#{$namespace}box-adjust-body {
18
+ position: absolute;
19
+ top: 30%;
20
+ left: 30%;
21
+ z-index: 100;
22
+ background: #fff;
23
+ width: 40%;
24
+ height: 40%;
25
+ display: flex;
26
+ flex-direction: column;
27
+ .box-adjust-body-div {
28
+ flex: 1;
29
+ overflow-y: auto;
30
+ padding: 20px;
31
+ }
32
+ &.popup-center {
33
+ .#{$namespace}box-adjust-body-div {
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ justify-content: center;
38
+ }
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,6 @@
1
+ @use '../common.scss' as *;
2
+ @use '../box/index.scss' as *;
3
+
4
+ .#{$namespace}box-local {
5
+ text-align: left;
6
+ }
@@ -0,0 +1,14 @@
1
+ // @use '../common.scss' as *;
2
+ @use '../common.scss' as *;
3
+
4
+ .#{$namespace}box-mask {
5
+ display: block;
6
+ opacity: 0.5;
7
+ z-index: 0;
8
+ position: fixed;
9
+ top: 0;
10
+ right: 0;
11
+ left: 0;
12
+ bottom: 0;
13
+ background: rgba(2, 28, 39, 0.4);
14
+ }
@@ -0,0 +1,26 @@
1
+ // @use '../common.scss' as *;
2
+ @use '../common.scss' as *;
3
+
4
+ .#{$namespace}box-title {
5
+ padding: 10px;
6
+ position: relative;
7
+ background-color: #467ddc;
8
+ color: #fff;
9
+ align-items: center;
10
+ display: flex;
11
+ .#{$namespace}box-title-name {
12
+ flex: 1;
13
+ }
14
+ .#{$namespace}box-title-close {
15
+ right: 10px;
16
+ font-size: 18px;
17
+ display: flex;
18
+ align-items: center;
19
+ i {
20
+ width: 20px;
21
+ height: 20px;
22
+ margin: 0 4px;
23
+ cursor: pointer;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,16 @@
1
+ @use 'sass:map';
2
+
3
+ $alias: '';
4
+ $namespace: '' !default;
5
+
6
+ @if $alias != '' {
7
+ $namespace: $alias + '-';
8
+ }
9
+
10
+ .#{$namespace}com {
11
+ font-size: 20px;
12
+ }
13
+
14
+ // .com-alert {
15
+ // text-align: left;
16
+ // }
@@ -0,0 +1,17 @@
1
+ // @use '../common.scss' as *;
2
+ @use '../common.scss' as *;
3
+
4
+ .#{$namespace}cs-title {
5
+ margin: 10px;
6
+ padding: 10px;
7
+ width: 200px;
8
+ height: 200px;
9
+ border: 1px solid rgb(0, 255, 145);
10
+ }
11
+ .dom {
12
+ width: 200px;
13
+ display: flex;
14
+ }
15
+ .d {
16
+ border: 1px solid #f00;
17
+ }
@@ -0,0 +1,13 @@
1
+ // @use '../common.scss' as *;
2
+
3
+ // @use '../box-mask/index.scss' as *;
4
+ // @use '../box-title/index.scss' as *;
5
+ @use './src/cs.scss' as *;
6
+
7
+ @use '../common.scss' as *;
8
+ @use '../box-mask/index.scss' as *;
9
+ @use '../box-title/index.scss' as *;
10
+
11
+ .#{$namespace}drawer {
12
+ margin: 10px;
13
+ }
@@ -0,0 +1,12 @@
1
+ // @use '../../common.scss' as *;
2
+
3
+ // @use '../../box-mask/index.scss' as *;
4
+ // @use '../../box-title/index.scss' as *;
5
+
6
+ @use '../../common.scss' as *;
7
+ @use '../../box-mask/index.scss' as *;
8
+ @use '../../box-title/index.scss' as *;
9
+
10
+ .cs {
11
+ text-align: center;
12
+ }
@@ -0,0 +1,10 @@
1
+ // @use '../common.scss' as *;
2
+
3
+ // @use 'drawer/src/index.scss' as *;
4
+
5
+ @use '../common.scss' as *;
6
+ @use '../drawer/index.scss' as *;
7
+
8
+ .#{$namespace}global-config {
9
+ left: 0;
10
+ }
@@ -0,0 +1,10 @@
1
+ @use './cs-title/index.scss' as *;
2
+ @use './drawer/index.scss' as *;
3
+ @use './box-adjust/index.scss' as *;
4
+ @use './box-local/index.scss' as *;
5
+ @use './box-mask/index.scss' as *;
6
+ @use './box-title/index.scss' as *;
7
+ @use './box/index.scss' as *;
8
+ @use './popup/index.scss' as *;
9
+ @use './window/index.scss' as *;
10
+ @use './global-config/index.scss' as *;
@@ -0,0 +1,55 @@
1
+ // @use '../common.scss' as *;
2
+
3
+ // @use '../box-mask/index.scss' as *;
4
+ // @use '../box-title/index.scss' as *;
5
+
6
+ @use '../common.scss' as *;
7
+ @use '../box-mask/index.scss' as *;
8
+ @use '../box-title/index.scss' as *;
9
+
10
+ .#{$namespace}popup {
11
+ position: fixed;
12
+ width: 100vw;
13
+ height: 100vh;
14
+ z-index: 1000;
15
+ top: 0;
16
+ left: 0;
17
+ .popup-body {
18
+ position: absolute;
19
+ top: 30%;
20
+ left: 30%;
21
+ z-index: 100;
22
+ background: #fff;
23
+ width: 40%;
24
+ height: 40%;
25
+ display: flex;
26
+ flex-direction: column;
27
+ .popup-body-div {
28
+ flex: 1;
29
+ overflow-y: auto;
30
+ padding: 20px;
31
+ }
32
+ }
33
+ &.popup-center {
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ justify-content: center;
38
+ .popup-body {
39
+ position: relative;
40
+ width: initial;
41
+ top: initial;
42
+ left: initial;
43
+ height: initial;
44
+ min-width: 30%;
45
+ min-height: 20%;
46
+ max-height: 90%;
47
+ .popup-body-div {
48
+ display: flex;
49
+ flex-direction: column;
50
+ align-items: center;
51
+ justify-content: center;
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,56 @@
1
+ // @use '../common.scss' as *;
2
+
3
+ // @use '../box-mask/index.scss' as *;
4
+ // @use '../box-title/index.scss' as *;
5
+
6
+ @use '../common.scss' as *;
7
+ @use '../box-mask/index.scss' as *;
8
+ @use '../box-title/index.scss' as *;
9
+
10
+ .#{$namespace}window {
11
+ position: fixed;
12
+ width: 100vw;
13
+ height: 100vh;
14
+ z-index: 1000;
15
+ top: 0;
16
+ left: 0;
17
+ .window-body {
18
+ position: absolute;
19
+ top: 30%;
20
+ left: 30%;
21
+ z-index: 100;
22
+ background: #fff;
23
+ width: 40%;
24
+ height: 40%;
25
+ display: flex;
26
+ flex-direction: column;
27
+ .window-title {
28
+ .com-title-close {
29
+ i {
30
+ width: 20px;
31
+ height: 20px;
32
+ margin: 0 4px;
33
+ cursor: pointer;
34
+ }
35
+ }
36
+ }
37
+ .window-body-div {
38
+ flex: 1;
39
+ overflow-y: auto;
40
+ padding: 20px;
41
+ }
42
+ &.max {
43
+ width: 100vw !important;
44
+ height: 100vh !important;
45
+ top: initial !important;
46
+ left: initial !important;
47
+
48
+ &::-webkit-scrollbar {
49
+ width: 0 !important;
50
+ }
51
+ }
52
+ }
53
+ // &.min {
54
+ // display: none;
55
+ // }
56
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -29,7 +29,7 @@
29
29
  "element-plus": "^2.9.10"
30
30
  },
31
31
  "devDependencies": {
32
- "@fangzhongya/create": "0.2.21",
32
+ "@fangzhongya/create": "0.2.23",
33
33
  "@types/node": "^22.15.18",
34
34
  "@vitejs/plugin-vue": "^5.2.4",
35
35
  "fast-glob": "^3.3.3",
@@ -45,11 +45,11 @@
45
45
  "vue": "^3.5.14",
46
46
  "vue-tsc": "^2.2.10",
47
47
  "@fang-ui/components": "0.0.1-0",
48
- "@fang-ui/directives": "0.0.1-0",
49
- "@fang-ui/icons": "0.0.1-0",
50
- "@fang-ui/theme": "0.0.1-0",
51
48
  "@fang-ui/hooks": "0.0.1-0",
49
+ "@fang-ui/icons": "0.0.1-0",
50
+ "@fang-ui/directives": "0.0.1-0",
52
51
  "@fang-ui/locale": "0.0.1-0",
52
+ "@fang-ui/theme": "0.0.1-0",
53
53
  "@fang-ui/types": "0.0.1-0",
54
54
  "@fang-ui/utils": "0.0.1-0"
55
55
  },
@@ -98,7 +98,7 @@
98
98
  "build:scss": "cd packages/components & pnpm dev & cd ../../ & pnpm build & cd packages/components & pnpm build & cd ../../",
99
99
  "build:tsup": "pnpm dev:exp & tsup",
100
100
  "build:archive": "pnpm run -C archive build",
101
- "build:all": "pnpm build:scss & pnpm build:tsup",
101
+ "build:all": "pnpm build:scss & pnpm build:tsup & cd packages/theme & pnpm move & cd ../../",
102
102
  "lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx --max-warnings 0 --cache",
103
103
  "pub": "pnpm publish --access public --no-git-checks",
104
104
  "all": "pnpm build:all & pnpm dev:v & pnpm pub"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes