提交 3e1dbb63 编写于 作者: U unknown

element

上级 fd76639e
......@@ -49,6 +49,11 @@
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_slider,
"className": "Elslider"
},
"eldatetime": {
"fontIcon": "el-icon-date",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_date,
"className": "Eldatetime"
},
"elbutton": {
"fontIcon": "el-icon-thumb",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_button,
......
......@@ -49,6 +49,11 @@
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_slider,
"className": "Elslider"
},
"eldatetime": {
"fontIcon": "el-icon-date",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_date,
"className": "Eldatetime"
},
"elbutton": {
"fontIcon": "el-icon-thumb",
"text": MWF.xApplication.process.FormDesigner.LP.modules.el_button,
......
......@@ -24,26 +24,49 @@
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
<tr>
<td class="editTableTitle">{{$.lp.max}}:</td>
<td class="editTableValue"><input type="number" name="max" value="text{$.max}" class="editTableInput"/></td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.min}}:</td>
<td class="editTableValue"><input type="number" name="min" value="text{$.min}" class="editTableInput"/></td>
<td class="editTableTitle">{{$.lp.selectType}}:</td>
<td class="editTableValue">
<input type="radio" name="selectType" text{($.selectType=='datetime')?'checked':''} value="datetime"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"/>{{$.lp.dateTime}}
<input type="radio" name="selectType" text{($.selectType=='date')?'checked':''} value="date"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"/>{{$.lp.dateOnly}}
<input type="radio" name="selectType" text{($.selectType=='dates')?'checked':''} value="dates"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"/>{{$.lp.multidateOnly}}
<input type="radio" name="selectType" text{($.selectType=='time')?'checked':''} value="time"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"/>{{$.lp.timeOnly}}
<br/>
<input type="radio" name="selectType" text{($.selectType=='month')?'checked':''} value="month"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"/>{{$.lp.monthOnly}}
<input type="radio" name="selectType" text{($.selectType=='year')?'checked':''} value="year"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"/>{{$.lp.yearOnly}}
<input type="radio" name="selectType" text{($.selectType=='week')?'checked':''} value="week"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', 'none')}"/>{{$.lp.weekOnly}}
<br/>
<input type="radio" name="selectType" text{($.selectType=='datetimerange')?'checked':''} value="datetimerange"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"/>{{$.lp.datetimerange}}
<input type="radio" name="selectType" text{($.selectType=='daterange')?'checked':''} value="daterange"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"/>{{$.lp.daterange}}
<input type="radio" name="selectType" text{($.selectType=='timerange')?'checked':''} value="timerange"
onclick="if (this.checked){ $('text{$.pid}timeSelectTable').setStyle('display', '')}"/>{{$.lp.timerange}}
</td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.step}}:</td>
<td class="editTableValue"><input type="number" name="step" value="text{$.step || '1'}" class="editTableInput"/></td>
<td class="editTableTitle">{{$.lp.format}}:</td>
<td class="editTableValue"><input type="text" name="format" value="text{$.format}" class="editTableInput"/></td>
</tr>
<tr>
<td class="editTableValue" colspan="2"><b>{{$.lp.step_strictly}}:</b>
<input type="radio" name="stepStrictly" value="true" text{($.stepStrictly===true)?'checked':''}/>{{$.lp.yes}}
<input type="radio" name="stepStrictly" value="false" text{($.stepStrictly!==true)?'checked':''}/>{{$.lp.no}}
<td class="editTableTitle">{{$.lp.editable}}:</td>
<td class="editTableValue">
<input type="radio" name="editable" value="true" text{($.editable===true)?'checked':''}/>{{$.lp.yes}}
<input type="radio" name="editable" value="false" text{($.editable!==true)?'checked':''}/>{{$.lp.no}}
</td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.precision}}:</td>
<td class="editTableValue"><input type="number" name="precision" value="text{$.precision || 0}" class="editTableInput"/></td>
<td class="editTableTitle">{{$.lp.clearable}}:</td>
<td class="editTableValue">
<input type="radio" name="clearable" value="true" text{($.clearable===true)?'checked':''}/>{{$.lp.yes}}
<input type="radio" name="clearable" value="false" text{($.clearable!==true)?'checked':''}/>{{$.lp.no}}
</td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.size}}:</td>
......@@ -54,20 +77,55 @@
<input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
</td>
</tr>
<!-- <tr>-->
<!-- <td class="editTableValue" colspan="2"><b>{{$.lp.controls}}:</b>-->
<!-- <input type="radio" name="controls" value="true" text{($.showPassword!==false)?'checked':''}/>{{$.lp.yes}}-->
<!-- <input type="radio" name="controls" value="false" text{($.showPassword===false)?'checked':''}/>{{$.lp.no}}-->
<!-- </td>-->
<!-- </tr>-->
</table>
<table id="text{$.pid}timeSelectTable">
<tr>
<td class="editTableTitle">{{$.lp.step}}:</td>
<td class="editTableValue"><input type="number" name="step" value="text{$.step || '1'}" class="editTableInput"/></td>
</tr>
</table>
<table id="text{$.pid}timePickTable">
<tr>
<td class="editTableTitle">{{$.lp.controlsPosition}}:</td>
<td class="editTableTitle">{{$.lp.step}}:</td>
<td class="editTableValue"><input type="number" name="step" value="text{$.step || '1'}" class="editTableInput"/></td>
</tr>
</table>
<table id="text{$.pid}datePickTable">
<tr>
<td class="editTableTitle">{{$.lp.firstDayOfWeek}}:</td>
<td class="editTableValue">
<input type="radio" name="controlsPosition" value="default" text{(!$.controlsPosition || $.controlsPosition!=='right')?'checked':''}/>default
<input type="radio" name="controlsPosition" value="right" text{($.controlsPosition==='right')?'checked':''}/>right
<select name="firstDayOfWeek" class="editTableInput">
<option value="1" text{($.firstDayOfWeek=="1") ? "selected" : ""}>{{$.lp.weeks.arr[0]}}</option>
<option value="2" text{($.firstDayOfWeek=="2") ? "selected" : ""}>{{$.lp.weeks.arr[1]}}</option>
<option value="3" text{($.firstDayOfWeek=="3") ? "selected" : ""}>{{$.lp.weeks.arr[2]}}</option>
<option value="4" text{($.firstDayOfWeek=="4") ? "selected" : ""}>{{$.lp.weeks.arr[3]}}</option>
<option value="5" text{($.firstDayOfWeek=="5") ? "selected" : ""}>{{$.lp.weeks.arr[4]}}</option>
<option value="6" text{($.firstDayOfWeek=="6") ? "selected" : ""}>{{$.lp.weeks.arr[5]}}</option>
<option value="7" text{(!$.firstDayOfWeek || $.firstDayOfWeek=="7") ? "selected" : ""}>{{$.lp.weeks.arr[6]}}</option>
</select>
</td>
</tr>
</table>
<table id="text{$.pid}rangeTable">
<tr>
<td class="editTableTitle">{{$.lp.rangeSeparator}}:</td>
<td class="editTableValue"><input type="text" name="rangeSeparator" value="text{$.rangeSeparator || '至'}" class="editTableInput"/></td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.startPlaceholder}}:</td>
<td class="editTableValue"><input type="text" name="startPlaceholder" value="text{$.startPlaceholder || '开始'}" class="editTableInput"/></td>
</tr>
<tr>
<td class="editTableTitle">{{$.lp.endPlaceholder}}:</td>
<td class="editTableValue"><input type="text" name="endPlaceholder" value="text{$.endPlaceholder || '结束'}" class="editTableInput"/></td>
</tr>
</table>
<div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.prefixIcon}}</div>
<div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="prefixIcon"></div>
<div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.suffixIcon}}</div>
<div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="suffixIcon"></div>
<div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
<div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
......
......@@ -4,6 +4,8 @@
"type": "Eldatetime",
"description": "",
"isReadonly" : false,
"selectType": "dateTime",
"format": "yyyy-MM-dd HH:mm:ss",
"vueData": {},
"vueMethods": {},
"vueCss": {},
......
......@@ -67,4 +67,5 @@ MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elswitch", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elslider", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elselect", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elcascader", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Eldatetime", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.SmartBI", null, false);
\ No newline at end of file
......@@ -348,6 +348,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"el_number": "Number",
"el_switch": "Switch",
"el_slider": "Slider",
"el_date": "Datetime",
"el_common": "Common",
"importer": "DataImporter",
......@@ -523,6 +524,11 @@ MWF.xApplication.process.FormDesigner.LP = {
"monthOnly": "MonthOnly",
"yearOnly": "YearOnly",
"timeOnly": "TimeOnly",
"weekOnly": "WeekOnly",
"multidate": "Dates",
"datetimerange": "DatetimeRange",
"daterange": "DateRange",
"timerange": "TimeRange",
"selectSecond": "Select Second",
"timeSelectType": "Time Select Type",
"format": "Format",
......@@ -1231,6 +1237,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"leftTreeShow":"show",
"leftTreeHide":"hide"
},
"weeks": {
"arr": ["Sun","Mon","Tues","Wed","Thur","Fri","Sat"]
},
"tabletWidth": "Tablet Width",
"tabletHeight": "Tablet Height",
"tabletSizeNote": "Valid only on the PC terminal, full screen horizontally on the mobile terminal",
......
......@@ -347,6 +347,7 @@ MWF.xApplication.process.FormDesigner.LP = {
"el_number": "计数器",
"el_switch": "开关",
"el_slider": "滑块",
"el_date": "日期",
"el_common": "通用",
"importer": "数据导入",
......@@ -521,6 +522,11 @@ MWF.xApplication.process.FormDesigner.LP = {
"monthOnly": "仅月份",
"yearOnly": "仅年度",
"timeOnly": "仅时间",
"weekOnly": "第几周",
"multidate": "多个日期",
"datetimerange": "日期时间范围",
"daterange": "日期范围",
"timerange": "时间范围",
"selectSecond": "是否选择秒",
"timeSelectType": "时间选择方式",
"timeSelectType_slider" : "滑块",
......@@ -1240,6 +1246,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"leftTreeShow":"显示",
"leftTreeHide":"隐藏"
},
"weeks": {
"arr": ["周一","周二","周三","周四","周五","周六","周日"]
},
"tabletWidth": "手写板宽度",
"tabletHeight": "手写板高度",
"tabletSizeNote": "仅PC端有效,移动端横向满屏",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册