@fangzhongya/fang-ui 0.0.8 → 0.0.10

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/README.md CHANGED
@@ -566,7 +566,8 @@ import Components from 'unplugin-vue-components/vite';
566
566
  import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
567
567
 
568
568
  // fang-ui 自动导入 需要引入的方法
569
- import { FangComponentResolver } from '@fangzhongya/fang-ui/expand/components.js';
569
+ import { FangComponentResolver } from '@fangzhongya/fang-ui/expand/components';
570
+
570
571
  export default defineConfig({
571
572
  plugins: [
572
573
  vue(),
@@ -2,6 +2,23 @@
2
2
  font-size: 20px;
3
3
  }
4
4
 
5
+ .cs-title {
6
+ margin: 10px;
7
+ padding: 10px;
8
+ width: 200px;
9
+ height: 200px;
10
+ border: 1px solid rgb(0, 255, 145);
11
+ }
12
+
13
+ .dom {
14
+ width: 200px;
15
+ display: flex;
16
+ }
17
+
18
+ .d {
19
+ border: 1px solid #f00;
20
+ }
21
+
5
22
  .box-mask {
6
23
  display: block;
7
24
  opacity: 0.5;
@@ -46,23 +63,6 @@
46
63
  margin: 10px;
47
64
  }
48
65
 
49
- .cs-title {
50
- margin: 10px;
51
- padding: 10px;
52
- width: 200px;
53
- height: 200px;
54
- border: 1px solid rgb(0, 255, 145);
55
- }
56
-
57
- .dom {
58
- width: 200px;
59
- display: flex;
60
- }
61
-
62
- .d {
63
- border: 1px solid #f00;
64
- }
65
-
66
66
  .box {
67
67
  position: fixed;
68
68
  width: 100%;
@@ -97,10 +97,6 @@
97
97
  justify-content: center;
98
98
  }
99
99
 
100
- .box-local {
101
- text-align: left;
102
- }
103
-
104
100
  .box-adjust {
105
101
  position: fixed;
106
102
  width: 100vw;
@@ -132,6 +128,10 @@
132
128
  justify-content: center;
133
129
  }
134
130
 
131
+ .box-local {
132
+ text-align: left;
133
+ }
134
+
135
135
  .popup {
136
136
  position: fixed;
137
137
  width: 100vw;
@@ -1,8 +1,8 @@
1
- @use './drawer/index.scss' as *;
2
1
  @use './cs-title/index.scss' as *;
2
+ @use './drawer/index.scss' as *;
3
3
  @use './box/index.scss' as *;
4
- @use './box-local/index.scss' as *;
5
4
  @use './box-adjust/index.scss' as *;
5
+ @use './box-local/index.scss' as *;
6
6
  @use './box-mask/index.scss' as *;
7
7
  @use './box-title/index.scss' as *;
8
8
  @use './popup/index.scss' as *;
@@ -7,7 +7,7 @@ var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
7
7
  var _lineToLargeHump = require('@fangzhongya/utils/name/lineToLargeHump');
8
8
  var config = {
9
9
  prefix: "",
10
- name: "fang-ui",
10
+ name: "@fangzhongya/fang-ui",
11
11
  styles: []
12
12
  };
13
13
  function namefilter(c, name) {
@@ -31,10 +31,10 @@ function getFrom(mc, type) {
31
31
  if (type == 1) {
32
32
  if (_chunkQEPARHHXcjs.config_default.components.includes(filename)) {
33
33
  const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
34
- const from = `${config.name}/dist/components/${filename}/index`;
34
+ const from = `${config.name}/components/${filename}/index`;
35
35
  let sideEffects;
36
36
  if (_chunkQEPARHHXcjs.config_default.sideEffects.includes(filename)) {
37
- sideEffects = `${config.name}/dist/components/${filename}/index.scss`;
37
+ sideEffects = `${config.name}/components/${filename}/index.scss`;
38
38
  }
39
39
  return {
40
40
  name,
@@ -47,14 +47,14 @@ function getFrom(mc, type) {
47
47
  } else {
48
48
  if (_chunkQEPARHHXcjs.config_default.directives.includes(filename)) {
49
49
  const name = "default";
50
- const from = `${config.name}/dist/directives/${filename}/index`;
50
+ const from = `${config.name}/directives/${filename}/index`;
51
51
  return {
52
52
  name,
53
53
  from
54
54
  };
55
55
  } else if (_chunkQEPARHHXcjs.config_default.directives.includes("v-" + filename)) {
56
56
  const name = "default";
57
- const from = `${config.name}/dist/directives/${"v-" + filename}/index`;
57
+ const from = `${config.name}/directives/${"v-" + filename}/index`;
58
58
  return {
59
59
  name,
60
60
  from
@@ -7,7 +7,7 @@ import { humpToLine } from "@fangzhongya/utils/name/humpToLine";
7
7
  import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
8
8
  var config = {
9
9
  prefix: "",
10
- name: "fang-ui",
10
+ name: "@fangzhongya/fang-ui",
11
11
  styles: []
12
12
  };
13
13
  function namefilter(c, name) {
@@ -31,10 +31,10 @@ function getFrom(mc, type) {
31
31
  if (type == 1) {
32
32
  if (config_default.components.includes(filename)) {
33
33
  const name = lineToLargeHump(mc);
34
- const from = `${config.name}/dist/components/${filename}/index`;
34
+ const from = `${config.name}/components/${filename}/index`;
35
35
  let sideEffects;
36
36
  if (config_default.sideEffects.includes(filename)) {
37
- sideEffects = `${config.name}/dist/components/${filename}/index.scss`;
37
+ sideEffects = `${config.name}/components/${filename}/index.scss`;
38
38
  }
39
39
  return {
40
40
  name,
@@ -47,14 +47,14 @@ function getFrom(mc, type) {
47
47
  } else {
48
48
  if (config_default.directives.includes(filename)) {
49
49
  const name = "default";
50
- const from = `${config.name}/dist/directives/${filename}/index`;
50
+ const from = `${config.name}/directives/${filename}/index`;
51
51
  return {
52
52
  name,
53
53
  from
54
54
  };
55
55
  } else if (config_default.directives.includes("v-" + filename)) {
56
56
  const name = "default";
57
- const from = `${config.name}/dist/directives/${"v-" + filename}/index`;
57
+ const from = `${config.name}/directives/${"v-" + filename}/index`;
58
58
  return {
59
59
  name,
60
60
  from
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { App } from 'vue';
2
- export * from '@fang-ui/components';
3
- export * from '@fang-ui/directives';
2
+ export * from './packages/components/packages/index';
3
+ export * from './packages/directives/packages/index';
4
4
  declare const _default: {
5
5
  install: (app: App) => void;
6
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -44,13 +44,13 @@
44
44
  "vitest": "^3.1.3",
45
45
  "vue": "^3.5.14",
46
46
  "vue-tsc": "^2.2.10",
47
- "@fang-ui/hooks": "0.0.1-0",
48
- "@fang-ui/directives": "0.0.1-0",
49
- "@fang-ui/components": "0.0.1-0",
50
47
  "@fang-ui/icons": "0.0.1-0",
51
- "@fang-ui/theme": "0.0.1-0",
52
48
  "@fang-ui/locale": "0.0.1-0",
49
+ "@fang-ui/hooks": "0.0.1-0",
50
+ "@fang-ui/components": "0.0.1-0",
53
51
  "@fang-ui/utils": "0.0.1-0",
52
+ "@fang-ui/theme": "0.0.1-0",
53
+ "@fang-ui/directives": "0.0.1-0",
54
54
  "@fang-ui/types": "0.0.1-0"
55
55
  },
56
56
  "main": "./dist/index.cjs",
@@ -62,7 +62,12 @@
62
62
  "exports": {
63
63
  "./css": "./dist/components/index.css",
64
64
  "./scss": "./dist/components/index.scss",
65
- "./*": "./dist/*",
65
+ "./*": {
66
+ "types": "./dist/*.d.ts",
67
+ "require": "./dist/*.cjs",
68
+ "import": "./dist/*",
69
+ "default": "./dist/*"
70
+ },
66
71
  ".": {
67
72
  "types": "./dist/index.d.ts",
68
73
  "require": "./dist/index.cjs",