@handaotech-design/bom 0.0.17 → 0.0.18

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.
@@ -1,6 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import { nextTick, onBeforeUnmount, onMounted, ref, toRefs, watch } from 'vue'
3
3
  import type { TreeProps } from 'ant-design-vue'
4
+ import { Dropdown, Tree } from 'ant-design-vue'
4
5
  import { watchDebounced } from '@vueuse/shared'
5
6
  import * as _ from 'lodash-es'
6
7
  import type { DataNode } from 'ant-design-vue/es/vc-tree-select/interface'
@@ -13,6 +14,7 @@ const emits = defineEmits(['select'])
13
14
  const COMPONENT_NAME = 'HdBomTree'
14
15
  defineOptions({
15
16
  name: COMPONENT_NAME,
17
+ components: { ATree: Tree, ADropdown: Dropdown },
16
18
  })
17
19
 
18
20
  type TreeNodeWithMeta = DataNode & {
@@ -1,7 +1,10 @@
1
1
  <script setup lang="ts">
2
+ import { Input } from 'ant-design-vue'
3
+
2
4
  const COMPONENT_NAME = 'HdBomGrayInput'
3
5
  defineOptions({
4
6
  name: COMPONENT_NAME,
7
+ components: { AInput: Input },
5
8
  })
6
9
  </script>
7
10
 
@@ -1,6 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import { nextTick, onBeforeUnmount, onMounted, ref, toRefs, watch } from 'vue'
3
3
  import type { TreeProps } from 'ant-design-vue'
4
+ import { Dropdown, Tree } from 'ant-design-vue'
4
5
  import { watchDebounced } from '@vueuse/shared'
5
6
  import * as _ from 'lodash-es'
6
7
  import type { DataNode } from 'ant-design-vue/es/vc-tree-select/interface'
@@ -13,6 +14,7 @@ const emits = defineEmits(['select'])
13
14
  const COMPONENT_NAME = 'HdBomTree'
14
15
  defineOptions({
15
16
  name: COMPONENT_NAME,
17
+ components: { ATree: Tree, ADropdown: Dropdown },
16
18
  })
17
19
 
18
20
  type TreeNodeWithMeta = DataNode & {
@@ -1,7 +1,10 @@
1
1
  <script setup lang="ts">
2
+ import { Input } from 'ant-design-vue'
3
+
2
4
  const COMPONENT_NAME = 'HdBomGrayInput'
3
5
  defineOptions({
4
6
  name: COMPONENT_NAME,
7
+ components: { AInput: Input },
5
8
  })
6
9
  </script>
7
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handaotech-design/bom",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1,6 +1,7 @@
1
1
  <script lang="ts" setup>
2
2
  import { nextTick, onBeforeUnmount, onMounted, ref, toRefs, watch } from 'vue'
3
3
  import type { TreeProps } from 'ant-design-vue'
4
+ import { Dropdown, Tree } from 'ant-design-vue'
4
5
  import { watchDebounced } from '@vueuse/shared'
5
6
  import * as _ from 'lodash-es'
6
7
  import type { DataNode } from 'ant-design-vue/es/vc-tree-select/interface'
@@ -13,6 +14,7 @@ const emits = defineEmits(['select'])
13
14
  const COMPONENT_NAME = 'HdBomTree'
14
15
  defineOptions({
15
16
  name: COMPONENT_NAME,
17
+ components: { ATree: Tree, ADropdown: Dropdown },
16
18
  })
17
19
 
18
20
  type TreeNodeWithMeta = DataNode & {
@@ -1,7 +1,10 @@
1
1
  <script setup lang="ts">
2
+ import { Input } from 'ant-design-vue'
3
+
2
4
  const COMPONENT_NAME = 'HdBomGrayInput'
3
5
  defineOptions({
4
6
  name: COMPONENT_NAME,
7
+ components: { AInput: Input },
5
8
  })
6
9
  </script>
7
10