ExtJS 中的评级表
Rating Form in ExtJS
我正在尝试从 Sencha's online examples 复制示例评级表。我不明白为什么会出现此错误:
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.
[ERR] java:99)
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:247: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\watch-impl.xml:61: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:380: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\init-impl.xml:382: com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker
当我查看 AppRootDirectory/ext/packages/ux/classic/src/rating
时,Picker.js
文件就在那里,在生成应用程序时由 ExtJS 自动创建。这是 class 的摘录,我在其中尝试要求选择器 class:
Ext.define('FreshApp.view.form.RatingForm', {
extend: 'Ext.panel.Panel',
xtype: 'form-rating',
requires: [
'Ext.ux.rating.Picker'
],
title: 'Rating Form',
viewModel: true,
bodyPadding: 10,
width: 520,
height: 500,
minHeight: 400,
resizable: true,
frame: true,
layout: {
type: 'vbox',
align: 'stretch'
},
defaultType: 'textfield',
如有任何帮助,我们将不胜感激。谢谢。
您需要指定您的应用需要ux包。您可以通过在 app.json.
中添加以下代码片段来实现
"requires": [
"ux"
],
我正在尝试从 Sencha's online examples 复制示例评级表。我不明白为什么会出现此错误:
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker
[ERR] at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.
[ERR] java:99)
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:247: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\watch-impl.xml:61: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\build-impl.xml:380: The following error occurred while executing this line:
C:\users\Diederiksj\Desktop\FreshApp\.sencha\app\init-impl.xml:382: com.sencha.exceptions.ExBuild: Failed to find any files for C:\users\Diederiksj\Desktop\FreshApp\classic\src\view\form\RatingForm.js::ClassRequire::Ext.ux.rating.Picker
当我查看 AppRootDirectory/ext/packages/ux/classic/src/rating
时,Picker.js
文件就在那里,在生成应用程序时由 ExtJS 自动创建。这是 class 的摘录,我在其中尝试要求选择器 class:
Ext.define('FreshApp.view.form.RatingForm', {
extend: 'Ext.panel.Panel',
xtype: 'form-rating',
requires: [
'Ext.ux.rating.Picker'
],
title: 'Rating Form',
viewModel: true,
bodyPadding: 10,
width: 520,
height: 500,
minHeight: 400,
resizable: true,
frame: true,
layout: {
type: 'vbox',
align: 'stretch'
},
defaultType: 'textfield',
如有任何帮助,我们将不胜感激。谢谢。
您需要指定您的应用需要ux包。您可以通过在 app.json.
中添加以下代码片段来实现"requires": [
"ux"
],