@zykjcommon/questions 0.0.11 → 0.0.13

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": "@zykjcommon/questions",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "main": "src/components/questions/entry.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -12,7 +12,7 @@
12
12
  "build:lib": "vue-cli-service build --target lib src/components/questions/buildEntry.js --name zykjcommon-questions"
13
13
  },
14
14
  "dependencies": {
15
- "@zykjcommon/questions": "^0.0.10",
15
+ "@zykjcommon/questions": "^0.0.11",
16
16
  "alife-logger": "^1.8.30",
17
17
  "axios": "^0.26.0",
18
18
  "cookie": "^0.4.1",
@@ -3,11 +3,9 @@
3
3
  */
4
4
  // import ZYKJQuestionsPlugin from "../../../dist/zykjcommon-questions.umd.min"
5
5
  // import ZYKJQuestionsPluginDev from "./developmentEntry.js"
6
- import {createApp} from 'vue';
7
- import Vue from 'vue';
8
6
  function getVueVersion(){
9
7
  let version = ''
10
- if(!Vue){
8
+ /*if(!Vue){
11
9
  if(createApp){
12
10
  let v = createApp({})
13
11
  version = v.version
@@ -16,7 +14,10 @@ function getVueVersion(){
16
14
  }
17
15
  }else{
18
16
  version = Vue.version || 'undefined'
19
- }
17
+ }*/
18
+ let Vue = require('vue')
19
+ Vue = Vue.default || Vue
20
+ version = Vue.version || 'undefined'
20
21
  return version
21
22
  }
22
23
  let version = getVueVersion()
package/src/main.ts CHANGED
@@ -41,7 +41,7 @@ import '@src/assets/js/arms'
41
41
  let vueInstance = createApp(App)
42
42
  // console.log(vueInstance,77);
43
43
 
44
- // import ZYKJQuestionsPlugin from "../dist/zykjcommon-questions.umd.min"
44
+ // import ZYKJQuestionsPlugin from "@src/components/questions/entry.js"
45
45
  // console.log(ZYKJQuestionsPlugin,799);
46
46
  // vueInstance.use(ZYKJQuestionsPlugin as any)
47
47
  // import '../dist/zykjcommon-questions.css';
@@ -50,7 +50,7 @@ import ZYKJQuestionsPlugin from "@zykjcommon/questions"
50
50
  vueInstance.use(ZYKJQuestionsPlugin as any)
51
51
  import '@zykjcommon/questions/dist/zykjcommon-questions.css';
52
52
 
53
- console.log(ZYKJQuestionsPlugin,111);
53
+ // console.log(ZYKJQuestionsPlugin,111);
54
54
 
55
55
 
56
56
  vueInstance.component('remote-js', {