|
@@ -61,6 +61,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
FORM_INPUT = 'xm-input',
|
|
FORM_INPUT = 'xm-input',
|
|
FORM_DL_INPUT = 'xm-dl-input',
|
|
FORM_DL_INPUT = 'xm-dl-input',
|
|
FORM_SELECT_TIPS = 'xm-select-tips',
|
|
FORM_SELECT_TIPS = 'xm-select-tips',
|
|
|
|
+ FORM_SELECT_PH = 'xm-select-placeholder',
|
|
CHECKBOX_YES = 'xm-iconfont',
|
|
CHECKBOX_YES = 'xm-iconfont',
|
|
FORM_TEAM_PID = 'XM_PID_VALUE',
|
|
FORM_TEAM_PID = 'XM_PID_VALUE',
|
|
CZ = 'xm-cz',
|
|
CZ = 'xm-cz',
|
|
@@ -166,7 +167,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
this.values = [];
|
|
this.values = [];
|
|
$.extend(true, this.config, options, {
|
|
$.extend(true, this.config, options, {
|
|
searchUrl: options.isSearch ? options.searchUrl : null,
|
|
searchUrl: options.isSearch ? options.searchUrl : null,
|
|
- placeholder: options.optionsFirst ? options.optionsFirst.value ? TIPS : options.optionsFirst.innerHTML || TIPS : TIPS,
|
|
|
|
|
|
+ placeholder: options.placeholder ? TIPS + options.placeholder : TIPS,
|
|
btns: options.radio ? [quickBtns[1]] : [quickBtns[0], quickBtns[1], quickBtns[2]]
|
|
btns: options.radio ? [quickBtns[1]] : [quickBtns[0], quickBtns[1], quickBtns[2]]
|
|
}, fsConfigs[options.name] || fsConfig);
|
|
}, fsConfigs[options.name] || fsConfig);
|
|
this.config.searchUrl = options.searchUrl;
|
|
this.config.searchUrl = options.searchUrl;
|
|
@@ -239,6 +240,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
Common.prototype.init = function (target) {
|
|
Common.prototype.init = function (target) {
|
|
var _this2 = this;
|
|
var _this2 = this;
|
|
|
|
|
|
|
|
+
|
|
//初始化页面上已有的select
|
|
//初始化页面上已有的select
|
|
$(target ? target : 'select[' + NAME + ']').each(function (index, select) {
|
|
$(target ? target : 'select[' + NAME + ']').each(function (index, select) {
|
|
var othis = $(select),
|
|
var othis = $(select),
|
|
@@ -256,6 +258,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
skin: othis.attr(SKIN),
|
|
skin: othis.attr(SKIN),
|
|
direction: othis.attr(DIRECTION),
|
|
direction: othis.attr(DIRECTION),
|
|
optionsFirst: select.options[0],
|
|
optionsFirst: select.options[0],
|
|
|
|
+ placeholder: othis.attr(FORM_SELECT_PH),
|
|
height: othis.attr(HEIGHT),
|
|
height: othis.attr(HEIGHT),
|
|
formname: othis.attr('name') || othis.attr('_name'),
|
|
formname: othis.attr('name') || othis.attr('_name'),
|
|
layverify: othis.attr('lay-verify') || othis.attr('_lay-verify'),
|
|
layverify: othis.attr('lay-verify') || othis.attr('_lay-verify'),
|
|
@@ -1351,12 +1354,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
|
|
|
} else {
|
|
} else {
|
|
var height = title.find('.' + NAME)[0].clientHeight;
|
|
var height = title.find('.' + NAME)[0].clientHeight;
|
|
- title.css('height', (height > 36 ? height + 4 : height) + 'px');
|
|
|
|
|
|
+ //title.css('height', (height > 36 ? height + 4 : height) + 'px');
|
|
//如果是layui pane模式, 处理label的高度
|
|
//如果是layui pane模式, 处理label的高度
|
|
var label = title.parents('.' + PNAME).parent().prev();
|
|
var label = title.parents('.' + PNAME).parent().prev();
|
|
if (label.is('.layui-form-label') && title.parents('.layui-form-pane')[0]) {
|
|
if (label.is('.layui-form-label') && title.parents('.layui-form-pane')[0]) {
|
|
height = height > 36 ? height + 4 : height;
|
|
height = height > 36 ? height + 4 : height;
|
|
- title.css('height', height + 'px');
|
|
|
|
|
|
+ //title.css('height', height + 'px');
|
|
label.css({
|
|
label.css({
|
|
height: height + 2 + 'px',
|
|
height: height + 2 + 'px',
|
|
lineHeight: height - 18 + 'px'
|
|
lineHeight: height - 18 + 'px'
|