gy-webcode2 1.0.11 → 1.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.
@@ -56,6 +56,20 @@ export default {
56
56
  headerMenuHide:defaultConfig.headerMenuHide
57
57
  }
58
58
  },
59
+ watch:{
60
+ names(){
61
+ let breadcrumb_list = this.$store.state.menu.breadcrumb_list;
62
+ if(this.names.length){
63
+ this.names.forEach(item => {
64
+ breadcrumb_list.push({
65
+ name:item,
66
+ click:this.backClick
67
+ })
68
+ })
69
+ }
70
+ // console.log(breadcrumb_list);
71
+ }
72
+ },
59
73
  computed:{
60
74
  names(){
61
75
  return this.name ? this.name.split(',') : []
@@ -12,7 +12,9 @@
12
12
  &.wide{
13
13
  padding: 4px 8px ;
14
14
  }
15
-
15
+ &.noBoder{
16
+ border-color: transparent !important;
17
+ }
16
18
  &.hui{
17
19
  background: #f5f5f5;
18
20
  border-color: hsl(0, 0%, 96%);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 用来获取和设置localStorage存储
3
+ **/
4
+ let local = {
5
+ get(key, value) {
6
+ localStorage.setItem(key, JSON.stringify(value))
7
+ },
8
+ set(key) {
9
+ return JSON.parse(localStorage.getItem(key)) || [];
10
+ },
11
+ del(key) {
12
+ localStorage.removeItem(key);
13
+ }
14
+ }
15
+
16
+ export default {
17
+ install: function (vm) {
18
+ vm.prototype.$local = local
19
+ }
20
+ }
21
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@ export default function({text="",color="rgba(0,0,0,0.07)",width=300,height=300})
17
17
  ctx.fillStyle = color;
18
18
 
19
19
  ctx.rotate(-25*Math.PI/180);
20
- ctx.fillText(`(${text}`, 50, 80);
20
+ ctx.fillText(`${text}`, 50, 80);
21
21
  // ctx.rotate(30*Math.PI/180);
22
22
  let img = cw.toDataURL("image/webp");
23
23
  // console.log(a);