dijit表单选择自定义小部件内部不显示箭头

时间:2014-11-17 22:06:25

标签: javascript dojo

我在自定义小部件中有一个dijit / form / Select,并且没有出现下拉箭头。我还需要设置样式的宽度和高度,以便控件可读,并且似乎无法识别所选属性。知道为什么会这样吗?如果我只使用常规的HTML选择控件,它可以正常工作。

窗口小部件:

define([
  ...
  "dijit/_WidgetBase",
  "dijit/_TemplatedMixin",
  "dijit/_WidgetsInTemplateMixin",
  "dijit/form/Select",
 ...
  "dojo/text!Templates/MarkTicketForm.htm"
], function (.., _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin,
   Select,
   ...
    MTFormTpl) {
    return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
        templateString: MTFormTpl,
...

模板(MarkTicketForm.htm):

...
<select id="selectReach" style="width: 150px; height:20px;" data-dojo-type="dijit/form/Select">
                <option selected="selected">IV</option>
                <option>IVA</option>
                <option>IVB</option>
                <option>IVD</option>
                <option>IVE</option>
                <option>V</option>
                </select>

...

由于

0 个答案:

没有答案