@10yun/cv-pc-ui 0.2.5 → 0.2.6

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": "@10yun/cv-pc-ui",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "cvjs-pc-ui组件",
5
5
  "author": "10yun",
6
6
  "private": false,
@@ -90,7 +90,7 @@ export default {
90
90
  },
91
91
  computed: {
92
92
  // 传给内部组件的数据,内部组件通过 props 接收一个对象,因此把数据整合在一个对象中
93
- props() {
93
+ props2() {
94
94
  return Object.assign(this.dataField, { emitPath: this.emitPath }, { multiple: this.multiple })
95
95
  }
96
96
  },
@@ -49,18 +49,17 @@ export default {
49
49
  },
50
50
  data() {
51
51
  return {
52
- // 是否处于表单中
53
- is_form: false,
54
52
  // 是否必填
55
53
  // localRequired: false,
56
54
  // 错误提示信息
57
55
  localError: "",
58
56
  // 自定义的input错误状态
59
- validateState: "",
57
+ // validateState: "",
60
58
  };
61
59
  },
62
60
  // data() {
63
61
  // return {
62
+ // is_form:false,
64
63
  // localVal: this.value //将prop属性绑定到data属性上,以便修改prop属性(Vue不允许直接修改prop属性的值)
65
64
  // };
66
65
  // },
@@ -71,9 +70,9 @@ export default {
71
70
  // },
72
71
  beforeMount() {
73
72
  // 判断祖先元素是否存在form节点
74
- if (this.elForm && this.elForm._vnode.data.staticClass === "el-form") {
75
- this.is_form = true;
76
- }
73
+ // if (this.elForm && this.elForm._vnode.data.staticClass === "el-form") {
74
+ // this.is_form = true;
75
+ // }
77
76
  },
78
77
 
79
78
  methods: {
@@ -57,7 +57,7 @@ export default {
57
57
  },
58
58
  // 处理错误提示信息
59
59
  _showError(msg) {
60
- this.validateState = "error";
60
+ // this.validateState = "error";
61
61
  this.localError = msg || "请输入正确的" + this.label;
62
62
  },
63
63
  _diyValidate() {
@@ -68,7 +68,7 @@ export default {
68
68
  const localRules = newArr;
69
69
 
70
70
  this.localError = "";
71
- this.validateState = "";
71
+ // this.validateState = "";
72
72
 
73
73
  for (let i in localRules) {
74
74
  let itemRuleStr = localRules[i];