为什么 ExtJs 6.0 Spinnerfield 不工作..?

Why is ExtJs 6.0 Spinnerfield not working ..?

我的 ExtJs 版本是 6.0。

Ext.onReady(function(){
    Ext.create('Ext.Panel', {
        width:300,
        height:300,
        items:
        [
        {
            xtype: 'spinnerfield',
            fieldLabel: 'Test',
            name: 'test',
            minValue: 0,
            allowDecimals: false,
            incrementValue: 1,
            accelerate: true
        }

        ],
        renderTo: Ext.getBody()
    });
});

我的版本不工作...!

示例:[http://cdn.sencha.com/ext/gpl/3.4.1.1/examples/spinner/spinner.html]

{
    xtype: 'spinnerfield',
    fieldLabel: 'Test',
    name: 'test',
    minValue: 0,
    allowDecimals: false,
    incrementValue: 1,
    accelerate: true
}

[http://docs.sencha.com/extjs/6.0/6.0.1-classic/#!/api/Ext.form.field.Spinner]

这个class通常不会被直接实例化,而是被subclassed并且实现onSpinUponSpinDown方法来处理按钮被点击.一个很好的例子是 Ext.form.field.Number 字段,它使用微调器通过其步骤配置值增加和减少字段的值。