eoss-mobiles 0.1.81 → 0.1.83
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 +106 -79
- package/lib/field.js +59 -7
- 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 +54 -7
- 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=44f44a04&
|
|
4277
|
+
var mainvue_type_template_id_44f44a04_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_44f44a04_staticRenderFns = []
|
|
4351
|
+
mainvue_type_template_id_44f44a04_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=44f44a04&
|
|
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,15 +4477,25 @@ 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;
|
|
4449
4500
|
if (this.$attrs.type == 'number' && this.precision != null) {
|
|
4450
4501
|
this.$emit('input', Number(this.value).toFixed(Number(this.precision)));
|
|
@@ -4455,8 +4506,9 @@ mainvue_type_template_id_6bf22457_render._withStripped = true
|
|
|
4455
4506
|
});
|
|
4456
4507
|
} else {
|
|
4457
4508
|
if (rules && rules.required && !rules.validator && !this.value) {
|
|
4458
|
-
this.newPlaceholder = '';
|
|
4509
|
+
rules.message && (this.newPlaceholder = '');
|
|
4459
4510
|
this.newErrorMessage = rules.message;
|
|
4511
|
+
this.isBlur = true;
|
|
4460
4512
|
return { name: _that.$attrs.name, message: rules.message };
|
|
4461
4513
|
} else if (rules && rules.validator) {
|
|
4462
4514
|
rules.validator(this.value, this.valid);
|
|
@@ -4494,8 +4546,8 @@ mainvue_type_template_id_6bf22457_render._withStripped = true
|
|
|
4494
4546
|
|
|
4495
4547
|
var field_src_main_component = normalizeComponent(
|
|
4496
4548
|
packages_field_src_mainvue_type_script_lang_js_,
|
|
4497
|
-
|
|
4498
|
-
|
|
4549
|
+
mainvue_type_template_id_44f44a04_render,
|
|
4550
|
+
mainvue_type_template_id_44f44a04_staticRenderFns,
|
|
4499
4551
|
false,
|
|
4500
4552
|
null,
|
|
4501
4553
|
null,
|
|
@@ -4775,8 +4827,8 @@ radio_src_main.install = function (Vue) {
|
|
|
4775
4827
|
};
|
|
4776
4828
|
|
|
4777
4829
|
/* 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
|
|
4830
|
+
// 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&
|
|
4831
|
+
var mainvue_type_template_id_4bb4da5a_render = function () {
|
|
4780
4832
|
var _vm = this
|
|
4781
4833
|
var _h = _vm.$createElement
|
|
4782
4834
|
var _c = _vm._self._c || _h
|
|
@@ -4797,38 +4849,20 @@ var mainvue_type_template_id_1fa63cee_render = function () {
|
|
|
4797
4849
|
required: _vm.required,
|
|
4798
4850
|
"label-width": _vm.labelWidth,
|
|
4799
4851
|
hideLabel: _vm.hideLabel,
|
|
4852
|
+
placeholder: _vm.pickerValue
|
|
4853
|
+
? _vm.pickerValue
|
|
4854
|
+
: _vm.disabled || _vm.readonly
|
|
4855
|
+
? "暂无数据"
|
|
4856
|
+
: _vm.placeholder
|
|
4857
|
+
? _vm.placeholder
|
|
4858
|
+
: "请选择" + _vm.label,
|
|
4800
4859
|
},
|
|
4801
4860
|
on: { click: _vm.handlePicker },
|
|
4802
4861
|
},
|
|
4803
4862
|
"em-input",
|
|
4804
4863
|
_vm.$attrs,
|
|
4805
4864
|
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
|
|
4865
|
+
)
|
|
4832
4866
|
)
|
|
4833
4867
|
: _c(
|
|
4834
4868
|
"em-input",
|
|
@@ -5056,11 +5090,11 @@ var mainvue_type_template_id_1fa63cee_render = function () {
|
|
|
5056
5090
|
1
|
|
5057
5091
|
)
|
|
5058
5092
|
}
|
|
5059
|
-
var
|
|
5060
|
-
|
|
5093
|
+
var mainvue_type_template_id_4bb4da5a_staticRenderFns = []
|
|
5094
|
+
mainvue_type_template_id_4bb4da5a_render._withStripped = true
|
|
5061
5095
|
|
|
5062
5096
|
|
|
5063
|
-
// CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=
|
|
5097
|
+
// CONCATENATED MODULE: ./packages/picker/src/main.vue?vue&type=template&id=4bb4da5a&
|
|
5064
5098
|
|
|
5065
5099
|
// 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
5100
|
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 +5220,6 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
|
|
|
5186
5220
|
//
|
|
5187
5221
|
//
|
|
5188
5222
|
//
|
|
5189
|
-
//
|
|
5190
|
-
//
|
|
5191
|
-
//
|
|
5192
|
-
//
|
|
5193
|
-
//
|
|
5194
|
-
//
|
|
5195
5223
|
|
|
5196
5224
|
|
|
5197
5225
|
|
|
@@ -5595,8 +5623,8 @@ var mainvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof
|
|
|
5595
5623
|
|
|
5596
5624
|
var picker_src_main_component = normalizeComponent(
|
|
5597
5625
|
packages_picker_src_mainvue_type_script_lang_js_,
|
|
5598
|
-
|
|
5599
|
-
|
|
5626
|
+
mainvue_type_template_id_4bb4da5a_render,
|
|
5627
|
+
mainvue_type_template_id_4bb4da5a_staticRenderFns,
|
|
5600
5628
|
false,
|
|
5601
5629
|
null,
|
|
5602
5630
|
null,
|
|
@@ -10334,8 +10362,8 @@ StartFlowvue_type_template_id_1ab5f2f0_render._withStripped = true
|
|
|
10334
10362
|
|
|
10335
10363
|
// CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=1ab5f2f0&
|
|
10336
10364
|
|
|
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
|
|
10365
|
+
// 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&
|
|
10366
|
+
var Opinionvue_type_template_id_37d0b4da_render = function () {
|
|
10339
10367
|
var _vm = this
|
|
10340
10368
|
var _h = _vm.$createElement
|
|
10341
10369
|
var _c = _vm._self._c || _h
|
|
@@ -10439,11 +10467,11 @@ var Opinionvue_type_template_id_f682be22_render = function () {
|
|
|
10439
10467
|
1
|
|
10440
10468
|
)
|
|
10441
10469
|
}
|
|
10442
|
-
var
|
|
10443
|
-
|
|
10470
|
+
var Opinionvue_type_template_id_37d0b4da_staticRenderFns = []
|
|
10471
|
+
Opinionvue_type_template_id_37d0b4da_render._withStripped = true
|
|
10444
10472
|
|
|
10445
10473
|
|
|
10446
|
-
// CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=
|
|
10474
|
+
// CONCATENATED MODULE: ./packages/flow/src/components/Opinion.vue?vue&type=template&id=37d0b4da&
|
|
10447
10475
|
|
|
10448
10476
|
// 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
10477
|
//
|
|
@@ -10560,7 +10588,6 @@ Opinionvue_type_template_id_f682be22_render._withStripped = true
|
|
|
10560
10588
|
methods: {
|
|
10561
10589
|
handleClose: function handleClose() {
|
|
10562
10590
|
this.showPicker = false;
|
|
10563
|
-
console.log('取消取消');
|
|
10564
10591
|
},
|
|
10565
10592
|
|
|
10566
10593
|
// 获取常用意见列表
|
|
@@ -10603,8 +10630,8 @@ Opinionvue_type_template_id_f682be22_render._withStripped = true
|
|
|
10603
10630
|
|
|
10604
10631
|
var Opinion_component = normalizeComponent(
|
|
10605
10632
|
components_Opinionvue_type_script_lang_js_,
|
|
10606
|
-
|
|
10607
|
-
|
|
10633
|
+
Opinionvue_type_template_id_37d0b4da_render,
|
|
10634
|
+
Opinionvue_type_template_id_37d0b4da_staticRenderFns,
|
|
10608
10635
|
false,
|
|
10609
10636
|
null,
|
|
10610
10637
|
null,
|
|
@@ -14873,8 +14900,8 @@ var TaskRead_component = normalizeComponent(
|
|
|
14873
14900
|
)
|
|
14874
14901
|
|
|
14875
14902
|
/* 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
|
|
14903
|
+
// 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&
|
|
14904
|
+
var taskUnionExaminevue_type_template_id_0cefc67d_render = function () {
|
|
14878
14905
|
var _vm = this
|
|
14879
14906
|
var _h = _vm.$createElement
|
|
14880
14907
|
var _c = _vm._self._c || _h
|
|
@@ -15021,11 +15048,11 @@ var taskUnionExaminevue_type_template_id_0ac41253_render = function () {
|
|
|
15021
15048
|
]),
|
|
15022
15049
|
])
|
|
15023
15050
|
}
|
|
15024
|
-
var
|
|
15025
|
-
|
|
15051
|
+
var taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns = []
|
|
15052
|
+
taskUnionExaminevue_type_template_id_0cefc67d_render._withStripped = true
|
|
15026
15053
|
|
|
15027
15054
|
|
|
15028
|
-
// CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=
|
|
15055
|
+
// CONCATENATED MODULE: ./packages/flow/src/components/taskUnionExamine.vue?vue&type=template&id=0cefc67d&
|
|
15029
15056
|
|
|
15030
15057
|
// 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
15058
|
//
|
|
@@ -15261,7 +15288,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15261
15288
|
});
|
|
15262
15289
|
},
|
|
15263
15290
|
changeSelectUser: function changeSelectUser(val, type) {
|
|
15264
|
-
console.log(val, 'va;');
|
|
15265
15291
|
var list = val.list;
|
|
15266
15292
|
|
|
15267
15293
|
var newNextUser = '';
|
|
@@ -15272,7 +15298,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15272
15298
|
newNextUser = item.selecttype + '-' + item.showid;
|
|
15273
15299
|
}
|
|
15274
15300
|
});
|
|
15275
|
-
console.log(newNextUser, 'newNextUser');
|
|
15276
15301
|
this.infoList[type] = newNextUser;
|
|
15277
15302
|
this[type] = list;
|
|
15278
15303
|
},
|
|
@@ -15392,7 +15417,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15392
15417
|
|
|
15393
15418
|
// 通知消息回调
|
|
15394
15419
|
onInputMsg: function onInputMsg(obj) {
|
|
15395
|
-
console.log(obj, '222');
|
|
15396
15420
|
this.infoList.noticeType = obj.notificationType;
|
|
15397
15421
|
this.infoList.noticeInfo = obj.notificationMsg;
|
|
15398
15422
|
},
|
|
@@ -15437,7 +15461,6 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15437
15461
|
}
|
|
15438
15462
|
// if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
|
|
15439
15463
|
// return this.$toast('暂未开放,敬请期待!');
|
|
15440
|
-
console.log(nextOtherOrgObj, 'nextOtherOrgObj');
|
|
15441
15464
|
var param = {
|
|
15442
15465
|
url: this.type === 'startDraf' ? taskStartDraft : this.type == 'unionSeal' ? taskUnionSeal : this.type === 'twoOfficesDispatch' ? twoOfficesDispatch : this.type == 'takeAdvice' ? taskTakeAdvice : taskUnionExamine,
|
|
15443
15466
|
params: {
|
|
@@ -15557,8 +15580,8 @@ taskUnionExaminevue_type_template_id_0ac41253_render._withStripped = true
|
|
|
15557
15580
|
|
|
15558
15581
|
var taskUnionExamine_component = normalizeComponent(
|
|
15559
15582
|
components_taskUnionExaminevue_type_script_lang_js_,
|
|
15560
|
-
|
|
15561
|
-
|
|
15583
|
+
taskUnionExaminevue_type_template_id_0cefc67d_render,
|
|
15584
|
+
taskUnionExaminevue_type_template_id_0cefc67d_staticRenderFns,
|
|
15562
15585
|
false,
|
|
15563
15586
|
null,
|
|
15564
15587
|
null,
|
|
@@ -16242,8 +16265,8 @@ count_down_src_main.install = function (Vue) {
|
|
|
16242
16265
|
};
|
|
16243
16266
|
|
|
16244
16267
|
/* 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
|
|
16268
|
+
// 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&
|
|
16269
|
+
var mainvue_type_template_id_ed69589e_render = function () {
|
|
16247
16270
|
var _vm = this
|
|
16248
16271
|
var _h = _vm.$createElement
|
|
16249
16272
|
var _c = _vm._self._c || _h
|
|
@@ -16268,7 +16291,9 @@ var mainvue_type_template_id_5aa23c3c_render = function () {
|
|
|
16268
16291
|
item.type === "text" ||
|
|
16269
16292
|
item.type === "textarea" ||
|
|
16270
16293
|
item.type == "number" ||
|
|
16271
|
-
item.type == "digit"
|
|
16294
|
+
item.type == "digit" ||
|
|
16295
|
+
item.type == "password" ||
|
|
16296
|
+
item.type == "tel"
|
|
16272
16297
|
? _c(
|
|
16273
16298
|
"em-input",
|
|
16274
16299
|
_vm._b(
|
|
@@ -16659,11 +16684,11 @@ var mainvue_type_template_id_5aa23c3c_render = function () {
|
|
|
16659
16684
|
2
|
|
16660
16685
|
)
|
|
16661
16686
|
}
|
|
16662
|
-
var
|
|
16663
|
-
|
|
16687
|
+
var mainvue_type_template_id_ed69589e_staticRenderFns = []
|
|
16688
|
+
mainvue_type_template_id_ed69589e_render._withStripped = true
|
|
16664
16689
|
|
|
16665
16690
|
|
|
16666
|
-
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=
|
|
16691
|
+
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=ed69589e&
|
|
16667
16692
|
|
|
16668
16693
|
// 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
16694
|
//
|
|
@@ -16850,6 +16875,8 @@ mainvue_type_template_id_5aa23c3c_render._withStripped = true
|
|
|
16850
16875
|
//
|
|
16851
16876
|
//
|
|
16852
16877
|
//
|
|
16878
|
+
//
|
|
16879
|
+
//
|
|
16853
16880
|
|
|
16854
16881
|
/* harmony default export */ var form_src_mainvue_type_script_lang_js_ = ({
|
|
16855
16882
|
name: 'EmForm',
|
|
@@ -16974,8 +17001,8 @@ mainvue_type_template_id_5aa23c3c_render._withStripped = true
|
|
|
16974
17001
|
|
|
16975
17002
|
var form_src_main_component = normalizeComponent(
|
|
16976
17003
|
packages_form_src_mainvue_type_script_lang_js_,
|
|
16977
|
-
|
|
16978
|
-
|
|
17004
|
+
mainvue_type_template_id_ed69589e_render,
|
|
17005
|
+
mainvue_type_template_id_ed69589e_staticRenderFns,
|
|
16979
17006
|
false,
|
|
16980
17007
|
null,
|
|
16981
17008
|
null,
|
|
@@ -17973,7 +18000,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
17973
18000
|
}
|
|
17974
18001
|
|
|
17975
18002
|
/* harmony default export */ var src = __webpack_exports__["default"] = ({
|
|
17976
|
-
version: '0.1.
|
|
18003
|
+
version: '0.1.83',
|
|
17977
18004
|
install: install,
|
|
17978
18005
|
Button: packages_button,
|
|
17979
18006
|
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=44f44a04&
|
|
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=44f44a04&
|
|
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,15 +403,25 @@ 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;
|
|
375
426
|
if (this.$attrs.type == 'number' && this.precision != null) {
|
|
376
427
|
this.$emit('input', Number(this.value).toFixed(Number(this.precision)));
|
|
@@ -381,8 +432,9 @@ render._withStripped = true
|
|
|
381
432
|
});
|
|
382
433
|
} else {
|
|
383
434
|
if (rules && rules.required && !rules.validator && !this.value) {
|
|
384
|
-
this.newPlaceholder = '';
|
|
435
|
+
rules.message && (this.newPlaceholder = '');
|
|
385
436
|
this.newErrorMessage = rules.message;
|
|
437
|
+
this.isBlur = true;
|
|
386
438
|
return { name: _that.$attrs.name, message: rules.message };
|
|
387
439
|
} else if (rules && rules.validator) {
|
|
388
440
|
rules.validator(this.value, this.valid);
|