@fangzhongya/fang-ui 0.0.10 → 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 (49) hide show
  1. package/dist/components/index.css +25 -25
  2. package/dist/components/index.scss +1 -1
  3. package/dist/index.d.ts +2 -2
  4. package/dist/theme/box/index.scss +44 -0
  5. package/dist/theme/box-adjust/index.scss +41 -0
  6. package/dist/theme/box-local/index.scss +6 -0
  7. package/dist/theme/box-mask/index.scss +14 -0
  8. package/dist/theme/box-title/index.scss +26 -0
  9. package/dist/theme/common.scss +16 -0
  10. package/dist/theme/cs-title/index.scss +17 -0
  11. package/dist/theme/drawer/index.scss +13 -0
  12. package/dist/theme/drawer/src/cs.scss +12 -0
  13. package/dist/theme/global-config/index.scss +10 -0
  14. package/dist/theme/index.scss +10 -0
  15. package/dist/theme/popup/index.scss +55 -0
  16. package/dist/theme/window/index.scss +56 -0
  17. package/package.json +11 -11
  18. package/dist/theme/alert/index.d.ts +0 -0
  19. package/dist/theme/button/index.d.ts +0 -0
  20. package/dist/theme/checkbox/index.d.ts +0 -0
  21. package/dist/theme/checkbox-group/index.d.ts +0 -0
  22. package/dist/theme/config-provider/index.d.ts +0 -0
  23. package/dist/theme/date-picker/index.d.ts +0 -0
  24. package/dist/theme/dialog/index.d.ts +0 -0
  25. package/dist/theme/drawer/index.d.ts +0 -0
  26. package/dist/theme/dropdown/index.d.ts +0 -0
  27. package/dist/theme/dropdown-item/index.d.ts +0 -0
  28. package/dist/theme/dropdown-menu/index.d.ts +0 -0
  29. package/dist/theme/form/index.d.ts +0 -0
  30. package/dist/theme/form-item/index.d.ts +0 -0
  31. package/dist/theme/input/index.d.ts +0 -0
  32. package/dist/theme/input-number/index.d.ts +0 -0
  33. package/dist/theme/inputs/index.d.ts +0 -0
  34. package/dist/theme/option/index.d.ts +0 -0
  35. package/dist/theme/option-group/index.d.ts +0 -0
  36. package/dist/theme/pagination/index.d.ts +0 -0
  37. package/dist/theme/popconfirm/index.d.ts +0 -0
  38. package/dist/theme/radio/index.d.ts +0 -0
  39. package/dist/theme/radio-group/index.d.ts +0 -0
  40. package/dist/theme/select/index.d.ts +0 -0
  41. package/dist/theme/selects/index.d.ts +0 -0
  42. package/dist/theme/switch/index.d.ts +0 -0
  43. package/dist/theme/tab-pane/index.d.ts +0 -0
  44. package/dist/theme/tabs/index.d.ts +0 -0
  45. package/dist/theme/time-picker/index.d.ts +0 -0
  46. package/dist/theme/time-select/index.d.ts +0 -0
  47. package/dist/theme/tooltip/index.d.ts +0 -0
  48. package/dist/theme/tree/index.d.ts +0 -0
  49. package/dist/theme/upload/index.d.ts +0 -0
@@ -63,65 +63,65 @@
63
63
  margin: 10px;
64
64
  }
65
65
 
66
- .box {
66
+ .box-adjust {
67
67
  position: fixed;
68
- width: 100%;
69
- height: 100%;
68
+ width: 100vw;
69
+ height: 100vh;
70
70
  z-index: 1000;
71
71
  top: 0;
72
72
  left: 0;
73
- display: flex;
74
- flex-direction: column;
75
- align-items: center;
76
- justify-content: center;
77
73
  }
78
- .box .box-body {
79
- position: relative;
74
+ .box-adjust .box-adjust-body {
75
+ position: absolute;
76
+ top: 30%;
77
+ left: 30%;
80
78
  z-index: 100;
81
79
  background: #fff;
82
- min-width: 30%;
83
- min-height: 20%;
84
- max-height: 90%;
80
+ width: 40%;
81
+ height: 40%;
85
82
  display: flex;
86
83
  flex-direction: column;
87
84
  }
88
- .box .box-body .box-body-div {
85
+ .box-adjust .box-adjust-body .box-adjust-body-div {
89
86
  flex: 1;
90
87
  overflow-y: auto;
91
88
  padding: 20px;
92
89
  }
93
- .box .box-body.popup-center .box-body-div {
90
+ .box-adjust .box-adjust-body.popup-center .box-adjust-body-div {
94
91
  display: flex;
95
92
  flex-direction: column;
96
93
  align-items: center;
97
94
  justify-content: center;
98
95
  }
99
96
 
100
- .box-adjust {
97
+ .box {
101
98
  position: fixed;
102
- width: 100vw;
103
- height: 100vh;
99
+ width: 100%;
100
+ height: 100%;
104
101
  z-index: 1000;
105
102
  top: 0;
106
103
  left: 0;
104
+ display: flex;
105
+ flex-direction: column;
106
+ align-items: center;
107
+ justify-content: center;
107
108
  }
108
- .box-adjust .box-adjust-body {
109
- position: absolute;
110
- top: 30%;
111
- left: 30%;
109
+ .box .box-body {
110
+ position: relative;
112
111
  z-index: 100;
113
112
  background: #fff;
114
- width: 40%;
115
- height: 40%;
113
+ min-width: 30%;
114
+ min-height: 20%;
115
+ max-height: 90%;
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  }
119
- .box-adjust .box-adjust-body .box-adjust-body-div {
119
+ .box .box-body .box-body-div {
120
120
  flex: 1;
121
121
  overflow-y: auto;
122
122
  padding: 20px;
123
123
  }
124
- .box-adjust .box-adjust-body.popup-center .box-adjust-body-div {
124
+ .box .box-body.popup-center .box-body-div {
125
125
  display: flex;
126
126
  flex-direction: column;
127
127
  align-items: center;
@@ -1,10 +1,10 @@
1
1
  @use './cs-title/index.scss' as *;
2
2
  @use './drawer/index.scss' as *;
3
- @use './box/index.scss' as *;
4
3
  @use './box-adjust/index.scss' as *;
5
4
  @use './box-local/index.scss' as *;
6
5
  @use './box-mask/index.scss' as *;
7
6
  @use './box-title/index.scss' as *;
7
+ @use './box/index.scss' as *;
8
8
  @use './popup/index.scss' as *;
9
9
  @use './window/index.scss' as *;
10
10
  @use './global-config/index.scss' as *;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { App } from 'vue';
2
- export * from './packages/components/packages/index';
3
- export * from './packages/directives/packages/index';
2
+ export * from './components/index';
3
+ export * from './directives/index';
4
4
  declare const _default: {
5
5
  install: (app: App) => void;
6
6
  };
@@ -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.10",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -24,12 +24,12 @@
24
24
  "fangui": "bin/fang-ui.js"
25
25
  },
26
26
  "dependencies": {
27
- "@fangzhongya/utils": "0.0.9",
27
+ "@fangzhongya/utils": "0.0.11",
28
28
  "axios": "^1.9.0",
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",
@@ -44,14 +44,14 @@
44
44
  "vitest": "^3.1.3",
45
45
  "vue": "^3.5.14",
46
46
  "vue-tsc": "^2.2.10",
47
+ "@fang-ui/components": "0.0.1-0",
48
+ "@fang-ui/hooks": "0.0.1-0",
47
49
  "@fang-ui/icons": "0.0.1-0",
50
+ "@fang-ui/directives": "0.0.1-0",
48
51
  "@fang-ui/locale": "0.0.1-0",
49
- "@fang-ui/hooks": "0.0.1-0",
50
- "@fang-ui/components": "0.0.1-0",
51
- "@fang-ui/utils": "0.0.1-0",
52
52
  "@fang-ui/theme": "0.0.1-0",
53
- "@fang-ui/directives": "0.0.1-0",
54
- "@fang-ui/types": "0.0.1-0"
53
+ "@fang-ui/types": "0.0.1-0",
54
+ "@fang-ui/utils": "0.0.1-0"
55
55
  },
56
56
  "main": "./dist/index.cjs",
57
57
  "module": "./dist/index.js",
@@ -94,11 +94,11 @@
94
94
  "docs:dev": "pnpm -C docs docs:dev",
95
95
  "docs:build": "pnpm -C docs docs:build",
96
96
  "docs:preview": "pnpm -C docs docs:preview",
97
- "build": "cd packages/components & pnpm dev & cd ../../ & vue-tsc && vite build",
98
- "build:scss": "pnpm build & cd packages/components & pnpm build & cd ../../",
97
+ "build": "vue-tsc && vite build",
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