w-ui-v1 1.0.76 → 1.0.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -24,7 +24,7 @@ const props = defineProps({
24
24
  default: ''
25
25
  },
26
26
  query:{
27
- type:Object,
27
+ type:String,
28
28
  default: ''
29
29
  }
30
30
  })
@@ -39,7 +39,7 @@ const pageData = ref<{
39
39
  onLoad((option: any) => {
40
40
  console.log(option,props)
41
41
  sourceId.value = props.sourceId || option.sourceId
42
- query.value=props.query || (option.query?JSON.parse(option.query):'')
42
+ query.value=props.query || option.query
43
43
  getPageConfig()
44
44
  //监听页
45
45
  uni.$on('checkeDData', function (data: any) {
@@ -26,6 +26,10 @@ const props = defineProps({
26
26
  mainCode:{
27
27
  type: String,
28
28
  default: ''
29
+ },
30
+ query:{
31
+ type: String,
32
+ default: ''
29
33
  }
30
34
  })
31
35
  const query = ref('')
@@ -43,6 +47,7 @@ const pageData = ref<{
43
47
  onLoad((option: any) => {
44
48
  sourceId.value = props.sourceId || option.sourceId
45
49
  mainCode.value = props.mainCode ||option.mainCode
50
+ query.value=props.query || option.query
46
51
  uni.setNavigationBarTitle({ title: option.pageTitle })
47
52
  getPageConfig()
48
53
  })