@sweetui/sweet-mobile
Advanced tools
Comparing version 2.2.7 to 2.2.8
@@ -8,8 +8,8 @@ import Form from './form/src/form.vue' | ||
export default { | ||
install(Vue) { | ||
Vue.component(Form.name, Form) | ||
Vue.component(FormItem.name, FormItem) | ||
Vue.component(sweetInput.name, sweetInput) | ||
Vue.component(sweetGroup.name, sweetGroup) | ||
}, | ||
install(Vue) { | ||
Vue.component(Form.name, Form) | ||
Vue.component(FormItem.name, FormItem) | ||
Vue.component(sweetInput.name, sweetInput) | ||
Vue.component(sweetGroup.name, sweetGroup) | ||
}, | ||
} |
### 表单验证 | ||
验证组件 `sweet-form` ` sweet-form-item` 参考饿了么 `el-form` `el-form-item`组件 | ||
验证组件 `el-form` ` sweet-form-item` 参考饿了么的`el-form` `el-form-item` | ||
@@ -12,3 +12,3 @@ [文档参数具体参考饿了么官网](http://element-cn.eleme.io/#/zh-CN/component/form) | ||
```html | ||
// 这里 el-form-item 的 class="sweet-input-form" 必须有, | ||
// 这里 sweet-form-item 的 class="sweet-input-form" 必须有, | ||
<sweet-form-item prop="name" class="sweet-input-form"> | ||
@@ -40,3 +40,3 @@ <sweet-input v-model="formData.name" type="text" placeholder="Name"/> | ||
```html | ||
// 这里 el-form-item 的 class="sweet-group-form" 必须有 | ||
// 这里 sweet-form-item 的 class="sweet-group-form" 必须有 | ||
// template 的 v-if="scope" 必须有 | ||
@@ -43,0 +43,0 @@ <sweet-form-item prop="checkVal" class="sweet-group-form"> |
{ | ||
"name": "@sweetui/sweet-mobile", | ||
"version": "2.2.7", | ||
"version": "2.2.8", | ||
"description": "Sweet Mobile Core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155430