@zykjcommon/questions 0.0.9 → 0.0.11

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.9",
3
+ "version": "0.0.11",
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.6",
15
+ "@zykjcommon/questions": "^0.0.10",
16
16
  "alife-logger": "^1.8.30",
17
17
  "axios": "^0.26.0",
18
18
  "cookie": "^0.4.1",
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Created by Allen Liu on 2023/7/19.
3
3
  */
4
- import ZYKJQuestionsPlugin from "../../../dist/zykjcommon-questions.umd.min"
5
- import ZYKJQuestionsPluginDev from "./developmentEntry.js"
4
+ // import ZYKJQuestionsPlugin from "../../../dist/zykjcommon-questions.umd.min"
5
+ // import ZYKJQuestionsPluginDev from "./developmentEntry.js"
6
6
  import {createApp} from 'vue';
7
7
  import Vue from 'vue';
8
8
  function getVueVersion(){
@@ -24,11 +24,14 @@ let exportObj = null
24
24
  if(version!='undefined'){
25
25
  version = parseInt(version)
26
26
  if(version >= 3){
27
+ let ZYKJQuestionsPlugin = require("../../../dist/zykjcommon-questions.umd.min").default
27
28
  exportObj = ZYKJQuestionsPlugin
28
29
  }else{
30
+ let ZYKJQuestionsPluginDev = require("./developmentEntry.js").default
29
31
  exportObj = ZYKJQuestionsPluginDev
30
32
  }
31
33
  }else{
34
+ let ZYKJQuestionsPluginDev = require("./developmentEntry.js").default
32
35
  exportObj = ZYKJQuestionsPluginDev
33
36
  }
34
37
  console.log(version,'vue版本');
package/src/main.ts CHANGED
@@ -50,6 +50,8 @@ 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);
54
+
53
55
 
54
56
  vueInstance.component('remote-js', {
55
57
  render() {