@v2coding/ui 1.1.0 → 1.1.1
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/dist/v2coding-ui.esm.js +70 -22
- package/dist/v2coding-ui.min.js +2 -2
- package/dist/v2coding-ui.ssr.js +70 -24
- package/package.json +1 -1
package/dist/v2coding-ui.ssr.js
CHANGED
|
@@ -1895,7 +1895,8 @@ var __vue_component__$F = /*#__PURE__*/normalizeComponent({
|
|
|
1895
1895
|
var Icon$1 = __vue_component__$F;var Icon = {
|
|
1896
1896
|
install: function install(Vue) {
|
|
1897
1897
|
Vue.component(Icon$1.name, Icon$1);
|
|
1898
|
-
}
|
|
1898
|
+
},
|
|
1899
|
+
Icon: Icon$1
|
|
1899
1900
|
};var ID_Card = {
|
|
1900
1901
|
/** 最低年限 */
|
|
1901
1902
|
MIN: 1930,
|
|
@@ -3280,7 +3281,13 @@ var CheckboxField = __vue_component__$B;var script$z = {
|
|
|
3280
3281
|
filterable: {
|
|
3281
3282
|
type: Boolean,
|
|
3282
3283
|
default: true
|
|
3283
|
-
}
|
|
3284
|
+
},
|
|
3285
|
+
emptyOption: Boolean,
|
|
3286
|
+
emptyOptionLabel: {
|
|
3287
|
+
type: String,
|
|
3288
|
+
default: '全部'
|
|
3289
|
+
},
|
|
3290
|
+
emptyOptionValue: null
|
|
3284
3291
|
},
|
|
3285
3292
|
data: function data() {
|
|
3286
3293
|
return {
|
|
@@ -3294,15 +3301,33 @@ var CheckboxField = __vue_component__$B;var script$z = {
|
|
|
3294
3301
|
pickerValue: function pickerValue() {
|
|
3295
3302
|
return this.getPickerValue(this.value);
|
|
3296
3303
|
},
|
|
3304
|
+
enableEmptyOption: function enableEmptyOption() {
|
|
3305
|
+
if (this.multiple) {
|
|
3306
|
+
return false;
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
return this.emptyOption;
|
|
3310
|
+
},
|
|
3311
|
+
realOptions: function realOptions() {
|
|
3312
|
+
if (!this.enableEmptyOption) {
|
|
3313
|
+
return this.realData;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
var option = {
|
|
3317
|
+
label: this.emptyOptionLabel,
|
|
3318
|
+
value: this.emptyOptionValue
|
|
3319
|
+
};
|
|
3320
|
+
return [option].concat(_toConsumableArray(this.realData));
|
|
3321
|
+
},
|
|
3297
3322
|
displayOptions: function displayOptions(_ref) {
|
|
3298
|
-
var
|
|
3323
|
+
var realOptions = _ref.realOptions,
|
|
3299
3324
|
query = _ref.query;
|
|
3300
3325
|
|
|
3301
3326
|
if (!query) {
|
|
3302
|
-
return
|
|
3327
|
+
return realOptions;
|
|
3303
3328
|
}
|
|
3304
3329
|
|
|
3305
|
-
return
|
|
3330
|
+
return realOptions.filter(function (option) {
|
|
3306
3331
|
return PinyinMatch__default["default"].match(option.label, query);
|
|
3307
3332
|
});
|
|
3308
3333
|
}
|
|
@@ -3341,7 +3366,7 @@ var CheckboxField = __vue_component__$B;var script$z = {
|
|
|
3341
3366
|
break;
|
|
3342
3367
|
}
|
|
3343
3368
|
|
|
3344
|
-
_this.initDefaultValue(_this.
|
|
3369
|
+
_this.initDefaultValue(_this.realOptions);
|
|
3345
3370
|
|
|
3346
3371
|
_context.next = 8;
|
|
3347
3372
|
return _this.$nextTick();
|
|
@@ -3417,7 +3442,7 @@ var CheckboxField = __vue_component__$B;var script$z = {
|
|
|
3417
3442
|
}
|
|
3418
3443
|
},
|
|
3419
3444
|
validatePickerValue: function validatePickerValue(value) {
|
|
3420
|
-
return (this.
|
|
3445
|
+
return (this.realOptions || []).some(function (item) {
|
|
3421
3446
|
return item.value === value;
|
|
3422
3447
|
});
|
|
3423
3448
|
},
|
|
@@ -3648,7 +3673,7 @@ var __vue_staticRenderFns__$A = [];
|
|
|
3648
3673
|
|
|
3649
3674
|
var __vue_inject_styles__$A = function __vue_inject_styles__(inject) {
|
|
3650
3675
|
if (!inject) return;
|
|
3651
|
-
inject("data-v-
|
|
3676
|
+
inject("data-v-0ee8fd08_0", {
|
|
3652
3677
|
source: ".ui-field-select .el-select{width:100%}.ui-field-select .el-input-group--append .el-select .el-input.is-focus .el-input__inner{border-color:var(--color-primary)}.ui-field-select .empty{font-size:12px;color:#909399;display:flex;align-items:center}.ui-field-select .el-loading-mask .el-loading-spinner{margin-top:-14px}",
|
|
3653
3678
|
map: undefined,
|
|
3654
3679
|
media: undefined
|
|
@@ -3660,7 +3685,7 @@ var __vue_inject_styles__$A = function __vue_inject_styles__(inject) {
|
|
|
3660
3685
|
var __vue_scope_id__$A = undefined;
|
|
3661
3686
|
/* module identifier */
|
|
3662
3687
|
|
|
3663
|
-
var __vue_module_identifier__$A = "data-v-
|
|
3688
|
+
var __vue_module_identifier__$A = "data-v-0ee8fd08";
|
|
3664
3689
|
/* functional template */
|
|
3665
3690
|
|
|
3666
3691
|
var __vue_is_functional_template__$A = false;
|
|
@@ -7681,7 +7706,8 @@ var script$g = {
|
|
|
7681
7706
|
type: Boolean,
|
|
7682
7707
|
default: false
|
|
7683
7708
|
},
|
|
7684
|
-
message: String
|
|
7709
|
+
message: String,
|
|
7710
|
+
emptyOption: Boolean
|
|
7685
7711
|
},
|
|
7686
7712
|
data: function data() {
|
|
7687
7713
|
return {
|
|
@@ -7844,7 +7870,8 @@ var __vue_render__$g = function __vue_render__() {
|
|
|
7844
7870
|
"type": _vm.type,
|
|
7845
7871
|
"disabled": _vm.realDisabled,
|
|
7846
7872
|
"placeholder": _vm.realPlaceHolder,
|
|
7847
|
-
"ignore": _vm.ignore
|
|
7873
|
+
"ignore": _vm.ignore,
|
|
7874
|
+
"emptyOption": _vm.emptyOption
|
|
7848
7875
|
},
|
|
7849
7876
|
on: {
|
|
7850
7877
|
"update:lockedValue": function updateLockedValue($event) {
|
|
@@ -7871,8 +7898,8 @@ var __vue_staticRenderFns__$g = [];
|
|
|
7871
7898
|
|
|
7872
7899
|
var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
|
|
7873
7900
|
if (!inject) return;
|
|
7874
|
-
inject("data-v-
|
|
7875
|
-
source: ".ui-form-item.el-form-item--small[data-v-
|
|
7901
|
+
inject("data-v-4131aba1_0", {
|
|
7902
|
+
source: ".ui-form-item.el-form-item--small[data-v-4131aba1] .el-form-item__content .ui-form-item-prefix,.ui-form-item.el-form-item--small[data-v-4131aba1] .el-form-item__content .ui-form-item-suffix{height:32px}.ui-form-item[data-v-4131aba1] .el-form-item__content{display:flex;flex-direction:row;align-items:center}.ui-form-item[data-v-4131aba1] .el-form-item__content>.ui-form-field:not(.ui-file-upload-field){flex:1;display:flex;align-items:center}.ui-form-item[data-v-4131aba1] .el-form-item__content .ui-file-upload-field{flex:1;display:flex;flex-direction:column;align-items:flex-start}.ui-form-item[data-v-4131aba1] .el-form-item__content .has-suffix .el-input__inner{border-top-right-radius:0;border-bottom-right-radius:0}.ui-form-item[data-v-4131aba1] .el-form-item__content .ui-form-item-prefix,.ui-form-item[data-v-4131aba1] .el-form-item__content .ui-form-item-suffix{flex:none;background-color:#f5f7fa;color:#909399;vertical-align:middle;display:table-cell;position:relative;border:1px solid #dcdfe6;border-left:0;height:36px;border-radius:0 4px 4px 0;padding:0 20px;white-space:nowrap}.ui-form-item .info[data-v-4131aba1]{color:#909399;cursor:pointer;margin-left:4px}.ui-form-item.hidden-item[data-v-4131aba1]{display:none!important}.el-form--inline .ui-form-item[data-v-4131aba1] .el-form-item__label{flex:none;white-space:nowrap}.el-form--inline .ui-form-item[data-v-4131aba1] .el-form-item__content{display:inline-flex}",
|
|
7876
7903
|
map: undefined,
|
|
7877
7904
|
media: undefined
|
|
7878
7905
|
});
|
|
@@ -7880,10 +7907,10 @@ var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
|
|
|
7880
7907
|
/* scoped */
|
|
7881
7908
|
|
|
7882
7909
|
|
|
7883
|
-
var __vue_scope_id__$g = "data-v-
|
|
7910
|
+
var __vue_scope_id__$g = "data-v-4131aba1";
|
|
7884
7911
|
/* module identifier */
|
|
7885
7912
|
|
|
7886
|
-
var __vue_module_identifier__$g = "data-v-
|
|
7913
|
+
var __vue_module_identifier__$g = "data-v-4131aba1";
|
|
7887
7914
|
/* functional template */
|
|
7888
7915
|
|
|
7889
7916
|
var __vue_is_functional_template__$g = false;
|
|
@@ -9353,7 +9380,13 @@ var FormFieldset = __vue_component__$b;var Form = {
|
|
|
9353
9380
|
Vue.component(FormDrawer.name, FormDrawer);
|
|
9354
9381
|
Vue.component(FormFieldset.name, FormFieldset);
|
|
9355
9382
|
},
|
|
9356
|
-
|
|
9383
|
+
Form: Form$1,
|
|
9384
|
+
FormItem: FormItem,
|
|
9385
|
+
FormField: FormField,
|
|
9386
|
+
FormFields: FormFields,
|
|
9387
|
+
FormDialog: FormDialog,
|
|
9388
|
+
FormDrawer: FormDrawer,
|
|
9389
|
+
FormFieldset: FormFieldset
|
|
9357
9390
|
};var getReference = function getReference(el, binding, vnode) {
|
|
9358
9391
|
var _ref = binding.expression ? binding.value : binding.arg;
|
|
9359
9392
|
|
|
@@ -11471,7 +11504,12 @@ var TableSelect = __vue_component__$7;var Table = {
|
|
|
11471
11504
|
Vue.component(TablePagination.name, TablePagination);
|
|
11472
11505
|
Vue.component(TableSelect.name, TableSelect);
|
|
11473
11506
|
Vue.component(TableSelectItem.name, TableSelectItem);
|
|
11474
|
-
}
|
|
11507
|
+
},
|
|
11508
|
+
Table: Table$1,
|
|
11509
|
+
TableColumn: TableColumn,
|
|
11510
|
+
TablePagination: TablePagination,
|
|
11511
|
+
TableSelect: TableSelect,
|
|
11512
|
+
TableSelectItem: TableSelectItem
|
|
11475
11513
|
};var Drag = {
|
|
11476
11514
|
name: 'dialogDrag',
|
|
11477
11515
|
bind: function bind(el) {
|
|
@@ -11772,11 +11810,14 @@ var Dialog$1 = __vue_component__$6;var Dialog = {
|
|
|
11772
11810
|
install: function install(Vue) {
|
|
11773
11811
|
Vue.directive(Drag.name, Drag);
|
|
11774
11812
|
Vue.component(Dialog$1.name, Dialog$1);
|
|
11775
|
-
}
|
|
11813
|
+
},
|
|
11814
|
+
Drag: Drag,
|
|
11815
|
+
Dialog: Dialog$1
|
|
11776
11816
|
};var Drawer = {
|
|
11777
11817
|
install: function install(Vue) {
|
|
11778
11818
|
Vue.component(Drawer$1.name, Drawer$1);
|
|
11779
|
-
}
|
|
11819
|
+
},
|
|
11820
|
+
Drawer: Drawer$1
|
|
11780
11821
|
};var Fragment = {
|
|
11781
11822
|
install: function install(Vue) {
|
|
11782
11823
|
Vue.component(Fragment$1.name, Fragment$1);
|
|
@@ -11864,7 +11905,8 @@ var Provider$1 = __vue_component__$5;var Provider = {
|
|
|
11864
11905
|
};var Permission = {
|
|
11865
11906
|
install: function install(Vue) {
|
|
11866
11907
|
Vue.component(Permission$1.name, Permission$1);
|
|
11867
|
-
}
|
|
11908
|
+
},
|
|
11909
|
+
Permission: Permission$1
|
|
11868
11910
|
};var setDocumentTitle = function setDocumentTitle(title) {
|
|
11869
11911
|
document.title = title;
|
|
11870
11912
|
var ua = navigator.userAgent; // eslint-disable-next-line
|
|
@@ -11943,7 +11985,8 @@ DocumentTitle.install = function (Vue) {
|
|
|
11943
11985
|
var DocumentTitle$1 = DocumentTitle;var FillView = {
|
|
11944
11986
|
install: function install(Vue) {
|
|
11945
11987
|
Vue.component(FillView$1.name, FillView$1);
|
|
11946
|
-
}
|
|
11988
|
+
},
|
|
11989
|
+
FillView: FillView$1
|
|
11947
11990
|
};//
|
|
11948
11991
|
|
|
11949
11992
|
var firstUpperCase = function firstUpperCase(str) {
|
|
@@ -12139,7 +12182,8 @@ var __vue_component__$4 = /*#__PURE__*/normalizeComponent({
|
|
|
12139
12182
|
var ScrollView$1 = __vue_component__$4;var ScrollView = {
|
|
12140
12183
|
install: function install(Vue) {
|
|
12141
12184
|
Vue.component(ScrollView$1.name, ScrollView$1);
|
|
12142
|
-
}
|
|
12185
|
+
},
|
|
12186
|
+
ScrollView: ScrollView$1
|
|
12143
12187
|
};var script$3 = {
|
|
12144
12188
|
name: "ui-history",
|
|
12145
12189
|
components: {
|
|
@@ -12412,7 +12456,8 @@ var __vue_component__$3 = /*#__PURE__*/normalizeComponent({
|
|
|
12412
12456
|
var History$1 = __vue_component__$3;var History = {
|
|
12413
12457
|
install: function install(Vue) {
|
|
12414
12458
|
Vue.component(History$1.name, History$1);
|
|
12415
|
-
}
|
|
12459
|
+
},
|
|
12460
|
+
History: History$1
|
|
12416
12461
|
};//
|
|
12417
12462
|
//
|
|
12418
12463
|
//
|
|
@@ -12575,7 +12620,8 @@ var __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
|
12575
12620
|
var Minimize$1 = __vue_component__$2;var Minimize = {
|
|
12576
12621
|
install: function install(Vue) {
|
|
12577
12622
|
Vue.component(Minimize$1.name, Minimize$1);
|
|
12578
|
-
}
|
|
12623
|
+
},
|
|
12624
|
+
Minimize: Minimize$1
|
|
12579
12625
|
};//
|
|
12580
12626
|
var script$1 = {
|
|
12581
12627
|
name: 'ui-page',
|