flex开发报错 属性"dataProvider"有多个初始值设定项(注意:“dataProvider”是“mx.charts.PieChart”的
</fx:Script><s:DataGridwidth="490"height="204"requestedRowCount="4"dataProvider="{dp}...
</fx:Script>
<s:DataGrid width="490" height="204" requestedRowCount="4" dataProvider="{dp}">(这里报错求高手)
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="pic" headerText="列 1">
<s:itemRenderer>
<fx:Component>
<s:Image source="{data.pic}" width="100%" height="100%"/>
</fx:Component>
</s:itemRenderer>
</s:GridColumn>
<s:GridColumn dataField="name" headerText="列 2"></s:GridColumn>
<s:GridColumn dataField="price" headerText="列 3"></s:GridColumn>
</s:ArrayList>
</s:columns>
<s:typicalItem>
<fx:Object dataField1="示例数据" dataField2="示例数据" dataField3="示例数据"></fx:Object>
</s:typicalItem>
<s:ArrayList>
<fx:Object dataField1="数据1" dataField2="数据1" dataField3="数据1"></fx:Object>
<fx:Object dataField1="数据2" dataField2="数据2" dataField3="数据2"></fx:Object>
<fx:Object dataField1="数据3" dataField2="数据3" dataField3="数据3"></fx:Object>
<fx:Object dataField1="数据4" dataField2="数据4" dataField3="数据4"></fx:Object>
</s:ArrayList>
</s:DataGrid> 展开
<s:DataGrid width="490" height="204" requestedRowCount="4" dataProvider="{dp}">(这里报错求高手)
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="pic" headerText="列 1">
<s:itemRenderer>
<fx:Component>
<s:Image source="{data.pic}" width="100%" height="100%"/>
</fx:Component>
</s:itemRenderer>
</s:GridColumn>
<s:GridColumn dataField="name" headerText="列 2"></s:GridColumn>
<s:GridColumn dataField="price" headerText="列 3"></s:GridColumn>
</s:ArrayList>
</s:columns>
<s:typicalItem>
<fx:Object dataField1="示例数据" dataField2="示例数据" dataField3="示例数据"></fx:Object>
</s:typicalItem>
<s:ArrayList>
<fx:Object dataField1="数据1" dataField2="数据1" dataField3="数据1"></fx:Object>
<fx:Object dataField1="数据2" dataField2="数据2" dataField3="数据2"></fx:Object>
<fx:Object dataField1="数据3" dataField2="数据3" dataField3="数据3"></fx:Object>
<fx:Object dataField1="数据4" dataField2="数据4" dataField3="数据4"></fx:Object>
</s:ArrayList>
</s:DataGrid> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询