yc-ui2 0.1.2-beta11 → 0.1.2-beta13

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-ui2",
3
- "version": "0.1.2-beta11",
3
+ "version": "0.1.2-beta13",
4
4
  "private": false,
5
5
  "description": "湖南优创UI组件库",
6
6
  "main": "dist/yc-ui2.umd.min.js",
@@ -9,7 +9,8 @@
9
9
  "serve": "vue-cli-service serve",
10
10
  "build": "vue-cli-service build",
11
11
  "lint": "vue-cli-service lint",
12
- "lib": "vue-cli-service build --target lib src/packages/index.js && npm publish"
12
+ "lib": "vue-cli-service build --target lib src/packages/index.js",
13
+ "publish": "npm run lib && npm publish"
13
14
  },
14
15
  "dependencies": {
15
16
  "core-js": "^3.8.3",
@@ -45,7 +46,10 @@
45
46
  "parserOptions": {
46
47
  "parser": "@babel/eslint-parser"
47
48
  },
48
- "rules": {}
49
+ "rules": {
50
+ "no-debugger": "off",
51
+ "no-console": "off"
52
+ }
49
53
  },
50
54
  "browserslist": [
51
55
  "> 1%",
package/src/App.vue CHANGED
@@ -19,6 +19,7 @@
19
19
  </template>
20
20
  </div>
21
21
  </YcCustomerService>
22
+ <YcCA :region="region" :caUrl="caUrl" @caSuccess="login" />
22
23
  </div>
23
24
  </template>
24
25
 
@@ -28,6 +29,41 @@ export default {
28
29
  components: {
29
30
  // YcSlideVerify: () => import("comp/YcSlideVerify"),
30
31
  YcCustomerService: () => import("comp/YcCustomerService"),
32
+ YcCA: () => import("comp/YcCA"),
33
+ },
34
+ data() {
35
+ return {
36
+ region: void 0,
37
+ caUrl: void 0,
38
+ }
39
+ },
40
+ created() {
41
+ setTimeout(() => {
42
+ this.region = 1
43
+ this.caUrl =
44
+ "http://120.25.167.9:9000/website/media/ce861516a25d4671ab01e150790b6111.zip"
45
+ }, 3000)
46
+ },
47
+ methods: {
48
+ login(value, back) {
49
+ back(value)
50
+ // this.$store
51
+ // .dispatch("CALogin", this.loginForm)
52
+ // .then(() => {
53
+ // this.$router.push({ path: this.redirect || "/" }).catch(() => {})
54
+ // })
55
+ // .catch(() => {
56
+ // this.loading = false
57
+ // })
58
+ // this.$store
59
+ // .dispatch("CALogin", this.loginForm)
60
+ // .then(() => {
61
+ // this.$router.push({ path: this.redirect || "/" }).catch(() => {})
62
+ // })
63
+ // .catch(() => {
64
+ // this.loading = false
65
+ // })
66
+ },
31
67
  },
32
68
  }
33
69
  </script>
package/dist/demo.html DELETED
@@ -1 +0,0 @@
1
- <!doctype html><meta charset="utf-8"><title>yc-ui2 demo</title><script src="./yc-ui2.umd.js"></script><link rel="stylesheet" href="./yc-ui2.css"><script>console.log(yc-ui2)</script>