@tplc/wot 0.1.29 → 0.1.30

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.30](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.67...v0.1.30) (2024-11-21)
6
+
5
7
  ### [0.1.29](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.24...v0.1.29) (2024-11-21)
6
8
 
7
9
 
@@ -32,10 +32,9 @@ export default {
32
32
  </script>
33
33
 
34
34
  <script lang="ts" setup>
35
- import { computed, onBeforeMount, ref, watch } from 'vue'
35
+ import { computed, inject, onBeforeMount, ref, watch } from 'vue'
36
36
  import { isObj, requestAnimationFrame } from '../common/util'
37
37
  import { popupProps } from './types'
38
- import { usePopup } from '../composables/usePopup'
39
38
 
40
39
  const props = defineProps(popupProps)
41
40
  const emit = defineEmits([
@@ -85,7 +84,9 @@ const safeBottom = ref<number>(0)
85
84
 
86
85
  const name = ref<string>('') // 动画名
87
86
 
88
- const [showPopup] = usePopup()
87
+ const popupProvide = inject('wd-popup', {
88
+ value: false,
89
+ })
89
90
 
90
91
  const style = computed(() => {
91
92
  return `z-index: ${props.zIndex}; padding-bottom: ${safeBottom.value}px; -webkit-transition-duration: ${
@@ -122,7 +123,7 @@ watch(
122
123
  () => props.modelValue,
123
124
  (newVal) => {
124
125
  observermodelValue(newVal)
125
- showPopup.value = newVal
126
+ popupProvide.value = newVal
126
127
  },
127
128
  { deep: true, immediate: true },
128
129
  )
package/index.ts CHANGED
@@ -17,8 +17,6 @@ export { useMessage } from './components/wd-message-box'
17
17
  // useQueue
18
18
  export { useQueue } from './components/composables/useQueue'
19
19
 
20
- export { usePopup } from './components/composables/usePopup'
21
-
22
20
  // Notify
23
21
  export * from './components/wd-notify'
24
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.29",
4
+ "version": "0.1.30",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -9,18 +9,18 @@
9
9
  "vue3",
10
10
  "暗黑模式"
11
11
  ],
12
- "main": "index.ts",
13
- "peerDependencies": {
14
- "vue": ">=3.2.47"
15
- },
16
- "dependencies": {
17
- "mp-html": "^2.5.0"
18
- },
19
12
  "scripts": {
20
13
  "pub": "pnpm dts && pnpm publish --no-git-checks",
21
14
  "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
22
15
  "release-major": "standard-version --release-as major ",
23
16
  "release-minor": "standard-version --release-as minor",
24
17
  "release-patch": "standard-version --release-as patch "
18
+ },
19
+ "main": "index.ts",
20
+ "peerDependencies": {
21
+ "vue": ">=3.2.47"
22
+ },
23
+ "dependencies": {
24
+ "mp-html": "^2.5.0"
25
25
  }
26
- }
26
+ }
@@ -1,6 +0,0 @@
1
- import { ref } from 'vue'
2
-
3
- const showPopup = ref(false)
4
- export const usePopup = () => {
5
- return [showPopup]
6
- }
@@ -1 +0,0 @@
1
- export declare const usePopup: () => import('vue').Ref<boolean>[]