@tplc/business 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.
@@ -35,17 +35,16 @@
35
35
  </view>
36
36
  </view>
37
37
  </template>
38
- <script lang="ts">
39
- export default {
38
+
39
+ <script lang="ts" setup>
40
+ defineOptions({
40
41
  name: 'LcbImgNav',
41
42
  options: {
42
43
  addGlobalClass: true,
43
44
  virtualHost: true,
44
45
  styleIsolation: 'shared',
45
46
  },
46
- }
47
- </script>
48
- <script lang="ts" setup>
47
+ })
49
48
  interface LcbImgNavProps {
50
49
  /** 模式 1.单行 2.多行 */
51
50
  styleGroup?: 1 | 2
@@ -52,6 +52,11 @@
52
52
  <script setup lang="ts">
53
53
  defineOptions({
54
54
  name: 'FinalNav',
55
+ options: {
56
+ addGlobalClass: true,
57
+ virtualHost: true,
58
+ styleIsolation: 'shared',
59
+ },
55
60
  })
56
61
  const emits = defineEmits<{ (e: 'search'): void }>()
57
62
 
package/global.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ declare module 'vue' {
2
+ // Helper for Volar
3
+ export interface GlobalComponents {
4
+ 'lcb-img-nav': (typeof import('./types/lcb-img-nav/lcb-img-nav.vue'))['default']
5
+ 'lcb-nav': (typeof import('./types/lcb-nav/lcb-nav.vue'))['default']
6
+ }
7
+ }
8
+
9
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "keywords": [
5
5
  "业务组件i"
6
6
  ],
@@ -8,13 +8,18 @@
8
8
  "access": "public",
9
9
  "registry": "https://registry.npmjs.org/"
10
10
  },
11
- "main": "index.ts",
12
11
  "peerDependencies": {
13
12
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.0.1"
13
+ "@tplc/wot": "0.1.1"
15
14
  },
16
15
  "engines": {
17
16
  "node": ">=18",
18
17
  "pnpm": ">=7.30"
18
+ },
19
+ "scripts": {
20
+ "dts": "vue-tsc",
21
+ "release-major": "standard-version --release-as major ",
22
+ "release-minor": "standard-version --release-as minor",
23
+ "release-patch": "standard-version --release-as patch "
19
24
  }
20
25
  }
package/tsconfig.json CHANGED
@@ -1,12 +1,25 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
3
2
  "compilerOptions": {
3
+ "target": "ESNext",
4
+ "useDefineForClassFields": true,
5
+ "noImplicitAny": false, // 隐式具有“any”类型
6
+ "module": "ESNext",
7
+ "moduleResolution": "Node",
8
+ "strict": true,
9
+ "jsx": "preserve",
10
+ "allowSyntheticDefaultImports": true,
11
+ "sourceMap": true,
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "esModuleInterop": true,
15
+ "skipLibCheck": true,
16
+ "declaration": true,
17
+ "declarationDir": "./types",
18
+ "emitDeclarationOnly": true,
4
19
  "baseUrl": ".",
5
- "types": ["@dcloudio/types", "miniprogram-api-typings", "mini-types"],
6
- "paths": {
7
- "@/*": ["./src/*"]
8
- },
9
- "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
20
+ "types": ["@dcloudio/types", "miniprogram-api-typings", "mini-types", "node"],
21
+ "lib": ["ESNext", "DOM"]
10
22
  },
23
+ "include": ["components/**/*.vue"],
11
24
  "exclude": ["node_modules"]
12
25
  }