eoss-mobiles 0.1.81 → 0.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/eoss-mobile.common.js +108 -80
- package/lib/field.js +61 -8
- package/lib/flow.js +14 -19
- package/lib/form.js +7 -3
- package/lib/index.js +1 -1
- package/lib/picker.js +10 -34
- package/package.json +1 -1
- package/packages/field/src/main.vue +56 -8
- package/packages/flow/src/components/Opinion.vue +0 -1
- package/packages/flow/src/components/taskUnionExamine.vue +0 -4
- package/packages/form/src/main.vue +10 -8
- package/packages/picker/src/main.vue +4 -10
- package/src/index.js +1 -1
|
@@ -4273,8 +4273,8 @@ selector_src_main.install = function (Vue) {
|
|
|
4273
4273
|
};
|
|
4274
4274
|
|
|
4275
4275
|
/* harmony default export */ var selector = (selector_src_main);
|
|
4276
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=
|
|
4277
|
-
var
|
|
4276
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=4bdc96b0&
|
|
4277
|
+
var mainvue_type_template_id_4bdc96b0_render = function () {
|
|
4278
4278
|
var _vm = this
|
|
4279
4279
|
var _h = _vm.$createElement
|
|
4280
4280
|
var _c = _vm._self._c || _h
|
|
@@ -4306,14 +4306,21 @@ var mainvue_type_template_id_6bf22457_render = function () {
|
|
|
4306
4306
|
error:
|
|
4307
4307
|
(!_vm.newErrorMessage &&
|
|
4308
4308
|
!_vm.modelValue &&
|
|
4309
|
-
_vm.rules
|
|
4309
|
+
_vm.rules &&
|
|
4310
|
+
(Array.isArray(_vm.rules)
|
|
4311
|
+
? _vm.rules[0].required
|
|
4312
|
+
: _vm.rules.required) &&
|
|
4313
|
+
_vm.isBlur) ||
|
|
4310
4314
|
_vm.$attrs.error,
|
|
4315
|
+
"right-icon": _vm.$attrs.rightIcon || _vm.getRightIcon,
|
|
4316
|
+
type: _vm.newType,
|
|
4311
4317
|
rules: Array.isArray(_vm.rules) ? _vm.rules : [],
|
|
4312
4318
|
},
|
|
4313
4319
|
on: {
|
|
4314
4320
|
blur: function ($event) {
|
|
4315
4321
|
_vm.handleBlur(_vm.rules)
|
|
4316
4322
|
},
|
|
4323
|
+
"click-right-icon": _vm.handleRightIcon,
|
|
4317
4324
|
},
|
|
4318
4325
|
model: {
|
|
4319
4326
|
value: _vm.modelValue,
|
|
@@ -4340,11 +4347,11 @@ var mainvue_type_template_id_6bf22457_render = function () {
|
|
|
4340
4347
|
1
|
|
4341
4348
|
)
|
|
4342
4349
|
}
|
|
4343
|
-
var
|
|
4344
|
-
|
|
4350
|
+
var mainvue_type_template_id_4bdc96b0_staticRenderFns = []
|
|
4351
|
+
mainvue_type_template_id_4bdc96b0_render._withStripped = true
|
|
4345
4352
|
|
|
4346
4353
|
|
|
4347
|
-
// CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=
|
|
4354
|
+
// CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=4bdc96b0&
|
|
4348
4355
|
|
|
4349
4356
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=script&lang=js&
|
|
4350
4357
|
//
|
|
@@ -4376,6 +4383,14 @@ mainvue_type_template_id_6bf22457_render._withStripped = true
|
|
|
4376
4383
|
//
|
|
4377
4384
|
//
|
|
4378
4385
|
//
|
|
4386
|
+
//
|
|
4387
|
+
//
|
|
4388
|
+
//
|
|
4389
|
+
//
|
|
4390
|
+
//
|
|
4391
|
+
//
|
|
4392
|
+
//
|
|
4393
|
+
//
|
|
4379
4394
|
|
|
4380
4395
|
/* harmony default export */ var field_src_mainvue_type_script_lang_js_ = ({
|
|
4381
4396
|
name: 'EmInput',
|
|
@@ -4414,20 +4429,46 @@ mainvue_type_template_id_6bf22457_render._withStripped = true
|
|
|
4414
4429
|
labelPosition: {
|
|
4415
4430
|
type: String,
|
|
4416
4431
|
default: 'left'
|
|
4432
|
+
},
|
|
4433
|
+
showPassword: {
|
|
4434
|
+
type: Boolean,
|
|
4435
|
+
default: false
|
|
4436
|
+
},
|
|
4437
|
+
type: {
|
|
4438
|
+
type: String,
|
|
4439
|
+
default: 'text'
|
|
4417
4440
|
}
|
|
4418
4441
|
},
|
|
4419
4442
|
data: function data() {
|
|
4420
4443
|
return {
|
|
4421
4444
|
newPlaceholder: '',
|
|
4422
|
-
newErrorMessage: ''
|
|
4445
|
+
newErrorMessage: '',
|
|
4446
|
+
isBlur: false,
|
|
4447
|
+
newType: ''
|
|
4423
4448
|
};
|
|
4424
4449
|
},
|
|
4425
4450
|
|
|
4426
4451
|
computed: {
|
|
4452
|
+
|
|
4453
|
+
getRightIcon: {
|
|
4454
|
+
get: function get() {
|
|
4455
|
+
var icon = undefined;
|
|
4456
|
+
if (this.showPassword) {
|
|
4457
|
+
if (this.newType != 'password') {
|
|
4458
|
+
icon = 'eye-o';
|
|
4459
|
+
} else {
|
|
4460
|
+
icon = 'closed-eye';
|
|
4461
|
+
}
|
|
4462
|
+
}
|
|
4463
|
+
return icon;
|
|
4464
|
+
},
|
|
4465
|
+
set: function set(val) {
|
|
4466
|
+
return val;
|
|
4467
|
+
}
|
|
4468
|
+
},
|
|
4427
4469
|
modelValue: {
|
|
4428
4470
|
get: function get() {
|
|
4429
4471
|
var val = this.value;
|
|
4430
|
-
|
|
4431
4472
|
return val;
|
|
4432
4473
|
},
|
|
4433
4474
|
set: function set(val) {
|
|
@@ -4436,16 +4477,27 @@ mainvue_type_template_id_6bf22457_render._withStripped = true
|
|
|
4436
4477
|
}
|
|
4437
4478
|
},
|
|
4438
4479
|
mounted: function mounted() {
|
|
4480
|
+
this.newType = this.type;
|
|
4439
4481
|
this.newPlaceholder = this.$attrs.placeholder;
|
|
4440
4482
|
this.newErrorMessage = this.errorMessage;
|
|
4441
4483
|
},
|
|
4442
4484
|
|
|
4443
4485
|
methods: {
|
|
4486
|
+
handleRightIcon: function handleRightIcon(event) {
|
|
4487
|
+
if (this.showPassword) {
|
|
4488
|
+
if (this.newType == 'text') {
|
|
4489
|
+
this.newType = 'password';
|
|
4490
|
+
} else {
|
|
4491
|
+
this.newType = 'text';
|
|
4492
|
+
}
|
|
4493
|
+
}
|
|
4494
|
+
this.$emit('click-right-icon', event);
|
|
4495
|
+
},
|
|
4444
4496
|
handleBlur: function handleBlur(rules) {
|
|
4445
4497
|
var _this = this;
|
|
4446
4498
|
|
|
4447
|
-
console.log(rules, 'rules');
|
|
4448
4499
|
var _that = this;
|
|
4500
|
+
this.isBlur = true;
|
|
4449
4501
|
if (this.$attrs.type == 'number' && this.precision != null) {
|
|
4450
4502
|
this.$emit('input', Number(this.value).toFixed(Number(this.precision)));
|
|
4451
4503
|
}
|
|
@@ -4455,13 +4507,14 @@ mainvue_type_template_id_6bf22457_render._withStripped = true
|
|
|
4455
4507
|
});
|
|
4456
4508
|
} else {
|
|
4457
4509
|
if (rules && rules.required && !rules.validator && !this.value) {
|
|
4458
|
-
this.newPlaceholder = '';
|
|
4510
|
+
rules.message && (this.newPlaceholder = '');
|
|
4459
4511
|
this.newErrorMessage = rules.message;
|
|
4512
|
+
|
|
4460
4513
|
return { name: _that.$attrs.name, message: rules.message };
|
|
4461
4514
|
} else if (rules && rules.validator) {
|
|
4462
4515
|
rules.validator(this.value, this.valid);
|
|
4463
4516
|
} else {
|
|
4464
|
-
this.newPlaceholder = '';
|
|
4517
|
+
// this.newPlaceholder = '';
|
|
4465
4518
|
this.newErrorMessage = '';
|
|
4466
4519
|
}
|
|
4467
4520
|
}
|
|
@@ -4494,8 +4547,8 @@ mainvue_type_template_id_6bf22457_render._withStripped = true
|
|
|
4494
4547
|
|
|
4495
4548
|
var field_src_main_component = normalizeComponent(
|
|
4496
4549
|
packages_field_src_mainvue_type_script_lang_js_,
|
|
4497
|
-
|
|
4498
|
-
|
|
4550
|
+
mainvue_type_template_id_4bdc96b0_render,
|
|
4551
|
+
mainvue_type_template_id_4bdc96b0_staticRenderFns,
|
|
4499
4552
|
false,
|
|
4500
4553
|
null,
|
|
4501
4554
|
null,
|
|
@@ -4775,8 +4828,8 @@ radio_src_main.install = function (Vue) {
|
|
|
4775
4828
|
};
|
|
4776
4829
|
|
|
4777
4830
|
/* harmony default export */ var packages_radio = (radio_src_main);
|
|
4778
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=
|
|
4779
|
-
var
|
|
4831
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=template&id=4bb4da5a&
|
|
4832
|
+
var mainvue_type_template_id_4bb4da5a_render = function () {
|
|
4780
4833
|
var _vm = this
|
|
4781
4834
|
var _h = _vm.$createElement
|
|
4782
4835
|
var _c = _vm._self._c || _h
|
|
@@ -4797,38 +4850,20 @@ var mainvue_type_template_id_1fa63cee_render = function () {
|
|
|
4797
4850
|
required: _vm.required,
|
|
4798
4851
|
"label-width": _vm.labelWidth,
|
|
4799
4852
|
hideLabel: _vm.hideLabel,
|
|
4853
|
+
placeholder: _vm.pickerValue
|
|
4854
|
+
? _vm.pickerValue
|
|
4855
|
+
: _vm.disabled || _vm.readonly
|
|
4856
|
+
? "暂无数据"
|
|
4857
|
+
: _vm.placeholder
|
|
4858
|
+
? _vm.placeholder
|
|
4859
|
+
: "请选择" + _vm.label,
|
|
4800
4860
|
},
|
|
4801
4861
|
on: { click: _vm.handlePicker },
|
|
4802
4862
|
},
|
|
4803
4863
|
"em-input",
|
|
4804
4864
|
_vm.$attrs,
|
|
4805
4865
|
false
|
|
4806
|
-
)
|
|
4807
|
-
[
|
|
4808
|
-
_c("template", { slot: "input" }, [
|
|
4809
|
-
_c(
|
|
4810
|
-
"span",
|
|
4811
|
-
{
|
|
4812
|
-
style:
|
|
4813
|
-
"color:" + (!_vm.pickerValue ? "rgb(150, 151, 153)" : ""),
|
|
4814
|
-
},
|
|
4815
|
-
[
|
|
4816
|
-
_vm._v(
|
|
4817
|
-
_vm._s(
|
|
4818
|
-
_vm.pickerValue
|
|
4819
|
-
? _vm.pickerValue
|
|
4820
|
-
: _vm.disabled || _vm.readonly
|
|
4821
|
-
? "暂无数据"
|
|
4822
|
-
: _vm.placeholder
|
|
4823
|
-
? _vm.placeholder
|
|
4824
|
-
: "请选择" + _vm.label
|
|
4825
|
-
)
|
|
4826
|
-
),
|
|
4827
|
-
]
|
|
4828
|
-
),
|
|
4829
|
-
]),
|
|
4830
|
-
],
|
|
4831
|
-
2
|
|
4866
|
+
)
|
|
4832
4867
|
)
|
|
4833
4868
|
: _c(
|
|
4834
4869
|
"em-input",
|
|
@@ -5056,11 +5091,11 @@ var mainvue_type_template_id_1fa63cee_render = function () {
|
|
|
5056
5091
|
1
|
|
5057
5092
|
)
|
|
5058
5093
|
}
|
|
5059
|
-
var
|
|
5060
|
-
|
|
5094
|
+
var mainvue_type_template_id_4bb4da5a_staticRenderFns = []
|
|
5095
|
+
mainvue_type_template_id_4bb4da5a_render._withStripped = true
|
|
5061
5096
|
|
|
5062
5097
|
|
|
5063
|
-
// CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=
|
|
5098
|
+
// CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=4bb4da5a&
|
|
5064
5099
|
|
|
5065
5100
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/picker/src/main.vue?vue&type=script&lang=js&
|
|
5066
5101
|
var src_mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -5186,12 +5221,6 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
|
|
|
5186
5221
|
//
|
|
5187
5222
|
//
|
|
5188
5223
|
//
|
|
5189
|
-
//
|
|
5190
|
-
//
|
|
5191
|
-
//
|
|
5192
|
-
//
|
|
5193
|
-
//
|
|
5194
|
-
//
|
|
5195
5224
|
|
|
5196
5225
|
|
|
5197
5226
|
|
|
@@ -5595,8 +5624,8 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
|
|
|
5595
5624
|
|
|
5596
5625
|
var picker_src_main_component = normalizeComponent(
|
|
5597
5626
|
packages_picker_src_mainvue_type_script_lang_js_,
|
|
5598
|
-
|
|
5599
|
-
|
|
5627
|
+
mainvue_type_template_id_4bb4da5a_render,
|
|
5628
|
+
mainvue_type_template_id_4bb4da5a_staticRenderFns,
|
|
5600
5629
|
false,
|
|
5601
5630
|
null,
|
|
5602
5631
|
null,
|
|
@@ -10334,8 +10363,8 @@ StartFlowvue_type_template_id_1ab5f2f0_render._withStripped = true
|
|
|
10334
10363
|
|
|
10335
10364
|
// CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=1ab5f2f0&
|
|
10336
10365
|
|
|
10337
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Opinion.vue?vue&type=template&id=
|
|
10338
|
-
var
|
|
10366
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Opinion.vue?vue&type=template&id=37d0b4da&
|
|
10367
|
+
var Opinionvue_type_template_id_37d0b4da_render = function () {
|
|
10339
10368
|
var _vm = this
|
|
10340
10369
|
var _h = _vm.$createElement
|
|
10341
10370
|
var _c = _vm._self._c || _h
|
|
@@ -10439,11 +10468,11 @@ var Opinionvue_type_template_id_f682be22_render = function () {
|
|
|
10439
10468
|
1
|
|
10440
10469
|
)
|
|
10441
10470
|
}
|
|
10442
|
-
var
|
|
10443
|
-
|
|
10471
|
+
var Opinionvue_type_template_id_37d0b4da_staticRenderFns = []
|
|
10472
|
+
Opinionvue_type_template_id_37d0b4da_render._withStripped = true
|
|
10444
10473
|
|
|
10445
10474
|
|
|
10446
|
-
// CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=
|
|
10475
|
+
// CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=37d0b4da&
|
|
10447
10476
|
|
|
10448
10477
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Opinion.vue?vue&type=script&lang=js&
|
|
10449
10478
|
//
|
|
@@ -10560,7 +10589,6 @@ Opinionvue_type_template_id_f682be22_render._withStripped = true
|
|
|
10560
10589
|
methods: {
|
|
10561
10590
|
handleClose: function handleClose() {
|
|
10562
10591
|
this.showPicker = false;
|
|
10563
|
-
console.log('取消取消');
|
|
10564
10592
|
},
|
|
10565
10593
|
|
|
10566
10594
|
// 获取常用意见列表
|
|
@@ -10603,8 +10631,8 @@ Opinionvue_type_template_id_f682be22_render._withStripped = true
|
|
|
10603
10631
|
|
|
10604
10632
|
var Opinion_component = normalizeComponent(
|
|
10605
10633
|
components_Opinionvue_type_script_lang_js_,
|
|
10606
|
-
|
|
10607
|
-
|
|
10634
|
+
Opinionvue_type_template_id_37d0b4da_render,
|
|
10635
|
+
Opinionvue_type_template_id_37d0b4da_staticRenderFns,
|
|
10608
10636
|
false,
|
|
10609
10637
|
null,
|
|
10610
10638
|
null,
|
|
@@ -14873,8 +14901,8 @@ var TaskRead_component = normalizeComponent(
|
|
|
14873
14901
|
)
|
|
14874
14902
|
|
|
14875
14903
|
/* harmony default export */ var TaskRead = (TaskRead_component.exports);
|
|
14876
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=
|
|
14877
|
-
var
|
|
14904
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=0cefc67d&
|
|
14905
|
+
var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
|
|
14878
14906
|
var _vm = this
|
|
14879
14907
|
var _h = _vm.$createElement
|
|
14880
14908
|
var _c = _vm._self._c || _h
|
|
@@ -15021,11 +15049,11 @@ var taskUnionExaminevue_type_template_id_0ac41253_render = function () {
|
|
|
15021
15049
|
]),
|
|
15022
15050
|
])
|
|
15023
15051
|
}
|
|
15024
|
-
var
|
|
15025
|
-
|
|
15052
|
+
var taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns = []
|
|
15053
|
+
taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
|
|
15026
15054
|
|
|
15027
15055
|
|
|
15028
|
-
// CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=
|
|
15056
|
+
// CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=0cefc67d&
|
|
15029
15057
|
|
|
15030
15058
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/taskUnionExamine.vue?vue&type=script&lang=js&
|
|
15031
15059
|
//
|
|
@@ -15261,7 +15289,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15261
15289
|
});
|
|
15262
15290
|
},
|
|
15263
15291
|
changeSelectUser: function changeSelectUser(val, type) {
|
|
15264
|
-
console.log(val, 'va;');
|
|
15265
15292
|
var list = val.list;
|
|
15266
15293
|
|
|
15267
15294
|
var newNextUser = '';
|
|
@@ -15272,7 +15299,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15272
15299
|
newNextUser = item.selecttype + '-' + item.showid;
|
|
15273
15300
|
}
|
|
15274
15301
|
});
|
|
15275
|
-
console.log(newNextUser, 'newNextUser');
|
|
15276
15302
|
this.infoList[type] = newNextUser;
|
|
15277
15303
|
this[type] = list;
|
|
15278
15304
|
},
|
|
@@ -15392,7 +15418,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15392
15418
|
|
|
15393
15419
|
// 通知消息回调
|
|
15394
15420
|
onInputMsg: function onInputMsg(obj) {
|
|
15395
|
-
console.log(obj, '222');
|
|
15396
15421
|
this.infoList.noticeType = obj.notificationType;
|
|
15397
15422
|
this.infoList.noticeInfo = obj.notificationMsg;
|
|
15398
15423
|
},
|
|
@@ -15437,7 +15462,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15437
15462
|
}
|
|
15438
15463
|
// if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
|
|
15439
15464
|
// return this.$toast('暂未开放,敬请期待!');
|
|
15440
|
-
console.log(nextOtherOrgObj, 'nextOtherOrgObj');
|
|
15441
15465
|
var param = {
|
|
15442
15466
|
url: this.type === 'startDraf' ? taskStartDraft : this.type == 'unionSeal' ? taskUnionSeal : this.type === 'twoOfficesDispatch' ? twoOfficesDispatch : this.type == 'takeAdvice' ? taskTakeAdvice : taskUnionExamine,
|
|
15443
15467
|
params: {
|
|
@@ -15557,8 +15581,8 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15557
15581
|
|
|
15558
15582
|
var taskUnionExamine_component = normalizeComponent(
|
|
15559
15583
|
components_taskUnionExaminevue_type_script_lang_js_,
|
|
15560
|
-
|
|
15561
|
-
|
|
15584
|
+
taskUnionExaminevue_type_template_id_0cefc67d_render,
|
|
15585
|
+
taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns,
|
|
15562
15586
|
false,
|
|
15563
15587
|
null,
|
|
15564
15588
|
null,
|
|
@@ -16242,8 +16266,8 @@ count_down_src_main.install = function (Vue) {
|
|
|
16242
16266
|
};
|
|
16243
16267
|
|
|
16244
16268
|
/* harmony default export */ var count_down = (count_down_src_main);
|
|
16245
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=
|
|
16246
|
-
var
|
|
16269
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=ed69589e&
|
|
16270
|
+
var mainvue_type_template_id_ed69589e_render = function () {
|
|
16247
16271
|
var _vm = this
|
|
16248
16272
|
var _h = _vm.$createElement
|
|
16249
16273
|
var _c = _vm._self._c || _h
|
|
@@ -16268,7 +16292,9 @@ var mainvue_type_template_id_5aa23c3c_render = function () {
|
|
|
16268
16292
|
item.type === "text" ||
|
|
16269
16293
|
item.type === "textarea" ||
|
|
16270
16294
|
item.type == "number" ||
|
|
16271
|
-
item.type == "digit"
|
|
16295
|
+
item.type == "digit" ||
|
|
16296
|
+
item.type == "password" ||
|
|
16297
|
+
item.type == "tel"
|
|
16272
16298
|
? _c(
|
|
16273
16299
|
"em-input",
|
|
16274
16300
|
_vm._b(
|
|
@@ -16659,11 +16685,11 @@ var mainvue_type_template_id_5aa23c3c_render = function () {
|
|
|
16659
16685
|
2
|
|
16660
16686
|
)
|
|
16661
16687
|
}
|
|
16662
|
-
var
|
|
16663
|
-
|
|
16688
|
+
var mainvue_type_template_id_ed69589e_staticRenderFns = []
|
|
16689
|
+
mainvue_type_template_id_ed69589e_render._withStripped = true
|
|
16664
16690
|
|
|
16665
16691
|
|
|
16666
|
-
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=
|
|
16692
|
+
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=ed69589e&
|
|
16667
16693
|
|
|
16668
16694
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=script&lang=js&
|
|
16669
16695
|
//
|
|
@@ -16850,6 +16876,8 @@ mainvue_type_template_id_5aa23c3c_render._withStripped = true
|
|
|
16850
16876
|
//
|
|
16851
16877
|
//
|
|
16852
16878
|
//
|
|
16879
|
+
//
|
|
16880
|
+
//
|
|
16853
16881
|
|
|
16854
16882
|
/* harmony default export */ var form_src_mainvue_type_script_lang_js_ = ({
|
|
16855
16883
|
name: 'EmForm',
|
|
@@ -16974,8 +17002,8 @@ mainvue_type_template_id_5aa23c3c_render._withStripped = true
|
|
|
16974
17002
|
|
|
16975
17003
|
var form_src_main_component = normalizeComponent(
|
|
16976
17004
|
packages_form_src_mainvue_type_script_lang_js_,
|
|
16977
|
-
|
|
16978
|
-
|
|
17005
|
+
mainvue_type_template_id_ed69589e_render,
|
|
17006
|
+
mainvue_type_template_id_ed69589e_staticRenderFns,
|
|
16979
17007
|
false,
|
|
16980
17008
|
null,
|
|
16981
17009
|
null,
|
|
@@ -17973,7 +18001,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
17973
18001
|
}
|
|
17974
18002
|
|
|
17975
18003
|
/* harmony default export */ var src = __webpack_exports__["default"] = ({
|
|
17976
|
-
version: '0.1.
|
|
18004
|
+
version: '0.1.84',
|
|
17977
18005
|
install: install,
|
|
17978
18006
|
Button: packages_button,
|
|
17979
18007
|
ButtonGroup: button_group,
|
package/lib/field.js
CHANGED
|
@@ -199,7 +199,7 @@ function normalizeComponent(
|
|
|
199
199
|
// ESM COMPAT FLAG
|
|
200
200
|
__webpack_require__.r(__webpack_exports__);
|
|
201
201
|
|
|
202
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=
|
|
202
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=template&id=4bdc96b0&
|
|
203
203
|
var render = function () {
|
|
204
204
|
var _vm = this
|
|
205
205
|
var _h = _vm.$createElement
|
|
@@ -232,14 +232,21 @@ var render = function () {
|
|
|
232
232
|
error:
|
|
233
233
|
(!_vm.newErrorMessage &&
|
|
234
234
|
!_vm.modelValue &&
|
|
235
|
-
_vm.rules
|
|
235
|
+
_vm.rules &&
|
|
236
|
+
(Array.isArray(_vm.rules)
|
|
237
|
+
? _vm.rules[0].required
|
|
238
|
+
: _vm.rules.required) &&
|
|
239
|
+
_vm.isBlur) ||
|
|
236
240
|
_vm.$attrs.error,
|
|
241
|
+
"right-icon": _vm.$attrs.rightIcon || _vm.getRightIcon,
|
|
242
|
+
type: _vm.newType,
|
|
237
243
|
rules: Array.isArray(_vm.rules) ? _vm.rules : [],
|
|
238
244
|
},
|
|
239
245
|
on: {
|
|
240
246
|
blur: function ($event) {
|
|
241
247
|
_vm.handleBlur(_vm.rules)
|
|
242
248
|
},
|
|
249
|
+
"click-right-icon": _vm.handleRightIcon,
|
|
243
250
|
},
|
|
244
251
|
model: {
|
|
245
252
|
value: _vm.modelValue,
|
|
@@ -270,7 +277,7 @@ var staticRenderFns = []
|
|
|
270
277
|
render._withStripped = true
|
|
271
278
|
|
|
272
279
|
|
|
273
|
-
// CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=
|
|
280
|
+
// CONCATENATED MODULE: ./packages/field/src/main.vue?vue&type=template&id=4bdc96b0&
|
|
274
281
|
|
|
275
282
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/field/src/main.vue?vue&type=script&lang=js&
|
|
276
283
|
//
|
|
@@ -302,6 +309,14 @@ render._withStripped = true
|
|
|
302
309
|
//
|
|
303
310
|
//
|
|
304
311
|
//
|
|
312
|
+
//
|
|
313
|
+
//
|
|
314
|
+
//
|
|
315
|
+
//
|
|
316
|
+
//
|
|
317
|
+
//
|
|
318
|
+
//
|
|
319
|
+
//
|
|
305
320
|
|
|
306
321
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
307
322
|
name: 'EmInput',
|
|
@@ -340,20 +355,46 @@ render._withStripped = true
|
|
|
340
355
|
labelPosition: {
|
|
341
356
|
type: String,
|
|
342
357
|
default: 'left'
|
|
358
|
+
},
|
|
359
|
+
showPassword: {
|
|
360
|
+
type: Boolean,
|
|
361
|
+
default: false
|
|
362
|
+
},
|
|
363
|
+
type: {
|
|
364
|
+
type: String,
|
|
365
|
+
default: 'text'
|
|
343
366
|
}
|
|
344
367
|
},
|
|
345
368
|
data: function data() {
|
|
346
369
|
return {
|
|
347
370
|
newPlaceholder: '',
|
|
348
|
-
newErrorMessage: ''
|
|
371
|
+
newErrorMessage: '',
|
|
372
|
+
isBlur: false,
|
|
373
|
+
newType: ''
|
|
349
374
|
};
|
|
350
375
|
},
|
|
351
376
|
|
|
352
377
|
computed: {
|
|
378
|
+
|
|
379
|
+
getRightIcon: {
|
|
380
|
+
get: function get() {
|
|
381
|
+
var icon = undefined;
|
|
382
|
+
if (this.showPassword) {
|
|
383
|
+
if (this.newType != 'password') {
|
|
384
|
+
icon = 'eye-o';
|
|
385
|
+
} else {
|
|
386
|
+
icon = 'closed-eye';
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return icon;
|
|
390
|
+
},
|
|
391
|
+
set: function set(val) {
|
|
392
|
+
return val;
|
|
393
|
+
}
|
|
394
|
+
},
|
|
353
395
|
modelValue: {
|
|
354
396
|
get: function get() {
|
|
355
397
|
var val = this.value;
|
|
356
|
-
|
|
357
398
|
return val;
|
|
358
399
|
},
|
|
359
400
|
set: function set(val) {
|
|
@@ -362,16 +403,27 @@ render._withStripped = true
|
|
|
362
403
|
}
|
|
363
404
|
},
|
|
364
405
|
mounted: function mounted() {
|
|
406
|
+
this.newType = this.type;
|
|
365
407
|
this.newPlaceholder = this.$attrs.placeholder;
|
|
366
408
|
this.newErrorMessage = this.errorMessage;
|
|
367
409
|
},
|
|
368
410
|
|
|
369
411
|
methods: {
|
|
412
|
+
handleRightIcon: function handleRightIcon(event) {
|
|
413
|
+
if (this.showPassword) {
|
|
414
|
+
if (this.newType == 'text') {
|
|
415
|
+
this.newType = 'password';
|
|
416
|
+
} else {
|
|
417
|
+
this.newType = 'text';
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
this.$emit('click-right-icon', event);
|
|
421
|
+
},
|
|
370
422
|
handleBlur: function handleBlur(rules) {
|
|
371
423
|
var _this = this;
|
|
372
424
|
|
|
373
|
-
console.log(rules, 'rules');
|
|
374
425
|
var _that = this;
|
|
426
|
+
this.isBlur = true;
|
|
375
427
|
if (this.$attrs.type == 'number' && this.precision != null) {
|
|
376
428
|
this.$emit('input', Number(this.value).toFixed(Number(this.precision)));
|
|
377
429
|
}
|
|
@@ -381,13 +433,14 @@ render._withStripped = true
|
|
|
381
433
|
});
|
|
382
434
|
} else {
|
|
383
435
|
if (rules && rules.required && !rules.validator && !this.value) {
|
|
384
|
-
this.newPlaceholder = '';
|
|
436
|
+
rules.message && (this.newPlaceholder = '');
|
|
385
437
|
this.newErrorMessage = rules.message;
|
|
438
|
+
|
|
386
439
|
return { name: _that.$attrs.name, message: rules.message };
|
|
387
440
|
} else if (rules && rules.validator) {
|
|
388
441
|
rules.validator(this.value, this.valid);
|
|
389
442
|
} else {
|
|
390
|
-
this.newPlaceholder = '';
|
|
443
|
+
// this.newPlaceholder = '';
|
|
391
444
|
this.newErrorMessage = '';
|
|
392
445
|
}
|
|
393
446
|
}
|