@@ -99,7 +99,7 @@ exports[`render textarea 1`] = `
exports[`size prop 1`] = `
-
diff --git a/src/form/demo/FieldType.vue b/src/form/demo/FieldType.vue
index f01f43b1e..0e682b1d6 100644
--- a/src/form/demo/FieldType.vue
+++ b/src/form/demo/FieldType.vue
@@ -13,6 +13,10 @@
+
+
+
+
@@ -31,6 +35,7 @@ export default {
rate: '评分',
submit: '提交',
switch: '开关',
+ slider: '滑块',
stepper: '步进器',
checkbox: '复选框',
fieldType: '表单项类型',
@@ -40,6 +45,7 @@ export default {
rate: 'Rate',
submit: 'Submit',
switch: 'Switch',
+ slider: 'Slider',
stepper: 'Stepper',
checkbox: 'Checkbox',
fieldType: 'Field Type',
@@ -50,6 +56,7 @@ export default {
data() {
return {
rate: 3,
+ slider: 50,
stepper: 1,
checkbox: false,
switchChecked: false,
diff --git a/src/form/index.js b/src/form/index.js
index 1f062bebe..577e85fe8 100644
--- a/src/form/index.js
+++ b/src/form/index.js
@@ -1,4 +1,3 @@
-// Utils
import { createNamespace } from '../utils';
const [createComponent, bem] = createNamespace('form');
diff --git a/src/form/test/__snapshots__/demo.spec.js.snap b/src/form/test/__snapshots__/demo.spec.js.snap
index d93531cc0..df0931314 100644
--- a/src/form/test/__snapshots__/demo.spec.js.snap
+++ b/src/form/test/__snapshots__/demo.spec.js.snap
@@ -6,13 +6,13 @@ exports[`renders demo correctly 1`] = `