@v2coding/ui 1.0.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.
@@ -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,
@@ -2680,6 +2681,16 @@ var script$C = {
2680
2681
  showWordLimit: {
2681
2682
  type: Boolean,
2682
2683
  default: true
2684
+ },
2685
+ modifier: Function
2686
+ },
2687
+ methods: {
2688
+ onInput: function onInput(val) {
2689
+ if (typeof this.modifier === 'function') {
2690
+ val = this.modifier(val);
2691
+ }
2692
+
2693
+ this.emitChange(val);
2683
2694
  }
2684
2695
  }
2685
2696
  };/* script */
@@ -2702,8 +2713,11 @@ var __vue_render__$D = function __vue_render__() {
2702
2713
  "rows": _vm.rows,
2703
2714
  "autosize": _vm.autosize,
2704
2715
  "show-word-limit": _vm.showWordLimit
2716
+ },
2717
+ on: {
2718
+ "input": _vm.onInput
2705
2719
  }
2706
- }, 'el-input', _vm.$attrs, false), _vm.$listeners));
2720
+ }, 'el-input', _vm.$attrs, false), _vm._listeners));
2707
2721
  };
2708
2722
 
2709
2723
  var __vue_staticRenderFns__$D = [];
@@ -2711,7 +2725,7 @@ var __vue_staticRenderFns__$D = [];
2711
2725
 
2712
2726
  var __vue_inject_styles__$D = function __vue_inject_styles__(inject) {
2713
2727
  if (!inject) return;
2714
- inject("data-v-208093e4_0", {
2728
+ inject("data-v-44711bc5_0", {
2715
2729
  source: ".el-input__suffix-inner{display:flex;align-items:center;height:100%}.el-input--large .el-input__count .el-input__count-inner{line-height:38px}.el-input--medium .el-input__count .el-input__count-inner{line-height:34px}.el-input--mini .el-input__count .el-input__count-inner{line-height:26px}",
2716
2730
  map: undefined,
2717
2731
  media: undefined
@@ -2723,7 +2737,7 @@ var __vue_inject_styles__$D = function __vue_inject_styles__(inject) {
2723
2737
  var __vue_scope_id__$D = undefined;
2724
2738
  /* module identifier */
2725
2739
 
2726
- var __vue_module_identifier__$D = "data-v-208093e4";
2740
+ var __vue_module_identifier__$D = "data-v-44711bc5";
2727
2741
  /* functional template */
2728
2742
 
2729
2743
  var __vue_is_functional_template__$D = false;
@@ -3267,7 +3281,13 @@ var CheckboxField = __vue_component__$B;var script$z = {
3267
3281
  filterable: {
3268
3282
  type: Boolean,
3269
3283
  default: true
3270
- }
3284
+ },
3285
+ emptyOption: Boolean,
3286
+ emptyOptionLabel: {
3287
+ type: String,
3288
+ default: '全部'
3289
+ },
3290
+ emptyOptionValue: null
3271
3291
  },
3272
3292
  data: function data() {
3273
3293
  return {
@@ -3281,15 +3301,33 @@ var CheckboxField = __vue_component__$B;var script$z = {
3281
3301
  pickerValue: function pickerValue() {
3282
3302
  return this.getPickerValue(this.value);
3283
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
+ },
3284
3322
  displayOptions: function displayOptions(_ref) {
3285
- var realData = _ref.realData,
3323
+ var realOptions = _ref.realOptions,
3286
3324
  query = _ref.query;
3287
3325
 
3288
3326
  if (!query) {
3289
- return realData;
3327
+ return realOptions;
3290
3328
  }
3291
3329
 
3292
- return realData.filter(function (option) {
3330
+ return realOptions.filter(function (option) {
3293
3331
  return PinyinMatch__default["default"].match(option.label, query);
3294
3332
  });
3295
3333
  }
@@ -3328,7 +3366,7 @@ var CheckboxField = __vue_component__$B;var script$z = {
3328
3366
  break;
3329
3367
  }
3330
3368
 
3331
- _this.initDefaultValue(_this.realData);
3369
+ _this.initDefaultValue(_this.realOptions);
3332
3370
 
3333
3371
  _context.next = 8;
3334
3372
  return _this.$nextTick();
@@ -3404,7 +3442,7 @@ var CheckboxField = __vue_component__$B;var script$z = {
3404
3442
  }
3405
3443
  },
3406
3444
  validatePickerValue: function validatePickerValue(value) {
3407
- return (this.realData || []).some(function (item) {
3445
+ return (this.realOptions || []).some(function (item) {
3408
3446
  return item.value === value;
3409
3447
  });
3410
3448
  },
@@ -3635,7 +3673,7 @@ var __vue_staticRenderFns__$A = [];
3635
3673
 
3636
3674
  var __vue_inject_styles__$A = function __vue_inject_styles__(inject) {
3637
3675
  if (!inject) return;
3638
- inject("data-v-216b333a_0", {
3676
+ inject("data-v-0ee8fd08_0", {
3639
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}",
3640
3678
  map: undefined,
3641
3679
  media: undefined
@@ -3647,7 +3685,7 @@ var __vue_inject_styles__$A = function __vue_inject_styles__(inject) {
3647
3685
  var __vue_scope_id__$A = undefined;
3648
3686
  /* module identifier */
3649
3687
 
3650
- var __vue_module_identifier__$A = "data-v-216b333a";
3688
+ var __vue_module_identifier__$A = "data-v-0ee8fd08";
3651
3689
  /* functional template */
3652
3690
 
3653
3691
  var __vue_is_functional_template__$A = false;
@@ -7668,7 +7706,8 @@ var script$g = {
7668
7706
  type: Boolean,
7669
7707
  default: false
7670
7708
  },
7671
- message: String
7709
+ message: String,
7710
+ emptyOption: Boolean
7672
7711
  },
7673
7712
  data: function data() {
7674
7713
  return {
@@ -7831,7 +7870,8 @@ var __vue_render__$g = function __vue_render__() {
7831
7870
  "type": _vm.type,
7832
7871
  "disabled": _vm.realDisabled,
7833
7872
  "placeholder": _vm.realPlaceHolder,
7834
- "ignore": _vm.ignore
7873
+ "ignore": _vm.ignore,
7874
+ "emptyOption": _vm.emptyOption
7835
7875
  },
7836
7876
  on: {
7837
7877
  "update:lockedValue": function updateLockedValue($event) {
@@ -7858,8 +7898,8 @@ var __vue_staticRenderFns__$g = [];
7858
7898
 
7859
7899
  var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
7860
7900
  if (!inject) return;
7861
- inject("data-v-7980c558_0", {
7862
- source: ".ui-form-item.el-form-item--small[data-v-7980c558] .el-form-item__content .ui-form-item-prefix,.ui-form-item.el-form-item--small[data-v-7980c558] .el-form-item__content .ui-form-item-suffix{height:32px}.ui-form-item[data-v-7980c558] .el-form-item__content{display:flex;flex-direction:row;align-items:center}.ui-form-item[data-v-7980c558] .el-form-item__content>.ui-form-field:not(.ui-file-upload-field){flex:1;display:flex;align-items:center}.ui-form-item[data-v-7980c558] .el-form-item__content .ui-file-upload-field{flex:1;display:flex;flex-direction:column;align-items:flex-start}.ui-form-item[data-v-7980c558] .el-form-item__content .has-suffix .el-input__inner{border-top-right-radius:0;border-bottom-right-radius:0}.ui-form-item[data-v-7980c558] .el-form-item__content .ui-form-item-prefix,.ui-form-item[data-v-7980c558] .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-7980c558]{color:#909399;cursor:pointer;margin-left:4px}.ui-form-item.hidden-item[data-v-7980c558]{display:none!important}.el-form--inline .ui-form-item[data-v-7980c558] .el-form-item__label{flex:none;white-space:nowrap}.el-form--inline .ui-form-item[data-v-7980c558] .el-form-item__content{display:inline-flex}",
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}",
7863
7903
  map: undefined,
7864
7904
  media: undefined
7865
7905
  });
@@ -7867,10 +7907,10 @@ var __vue_inject_styles__$g = function __vue_inject_styles__(inject) {
7867
7907
  /* scoped */
7868
7908
 
7869
7909
 
7870
- var __vue_scope_id__$g = "data-v-7980c558";
7910
+ var __vue_scope_id__$g = "data-v-4131aba1";
7871
7911
  /* module identifier */
7872
7912
 
7873
- var __vue_module_identifier__$g = "data-v-7980c558";
7913
+ var __vue_module_identifier__$g = "data-v-4131aba1";
7874
7914
  /* functional template */
7875
7915
 
7876
7916
  var __vue_is_functional_template__$g = false;
@@ -9340,7 +9380,13 @@ var FormFieldset = __vue_component__$b;var Form = {
9340
9380
  Vue.component(FormDrawer.name, FormDrawer);
9341
9381
  Vue.component(FormFieldset.name, FormFieldset);
9342
9382
  },
9343
- FormFields: FormFields
9383
+ Form: Form$1,
9384
+ FormItem: FormItem,
9385
+ FormField: FormField,
9386
+ FormFields: FormFields,
9387
+ FormDialog: FormDialog,
9388
+ FormDrawer: FormDrawer,
9389
+ FormFieldset: FormFieldset
9344
9390
  };var getReference = function getReference(el, binding, vnode) {
9345
9391
  var _ref = binding.expression ? binding.value : binding.arg;
9346
9392
 
@@ -11458,7 +11504,12 @@ var TableSelect = __vue_component__$7;var Table = {
11458
11504
  Vue.component(TablePagination.name, TablePagination);
11459
11505
  Vue.component(TableSelect.name, TableSelect);
11460
11506
  Vue.component(TableSelectItem.name, TableSelectItem);
11461
- }
11507
+ },
11508
+ Table: Table$1,
11509
+ TableColumn: TableColumn,
11510
+ TablePagination: TablePagination,
11511
+ TableSelect: TableSelect,
11512
+ TableSelectItem: TableSelectItem
11462
11513
  };var Drag = {
11463
11514
  name: 'dialogDrag',
11464
11515
  bind: function bind(el) {
@@ -11759,11 +11810,14 @@ var Dialog$1 = __vue_component__$6;var Dialog = {
11759
11810
  install: function install(Vue) {
11760
11811
  Vue.directive(Drag.name, Drag);
11761
11812
  Vue.component(Dialog$1.name, Dialog$1);
11762
- }
11813
+ },
11814
+ Drag: Drag,
11815
+ Dialog: Dialog$1
11763
11816
  };var Drawer = {
11764
11817
  install: function install(Vue) {
11765
11818
  Vue.component(Drawer$1.name, Drawer$1);
11766
- }
11819
+ },
11820
+ Drawer: Drawer$1
11767
11821
  };var Fragment = {
11768
11822
  install: function install(Vue) {
11769
11823
  Vue.component(Fragment$1.name, Fragment$1);
@@ -11851,7 +11905,8 @@ var Provider$1 = __vue_component__$5;var Provider = {
11851
11905
  };var Permission = {
11852
11906
  install: function install(Vue) {
11853
11907
  Vue.component(Permission$1.name, Permission$1);
11854
- }
11908
+ },
11909
+ Permission: Permission$1
11855
11910
  };var setDocumentTitle = function setDocumentTitle(title) {
11856
11911
  document.title = title;
11857
11912
  var ua = navigator.userAgent; // eslint-disable-next-line
@@ -11930,7 +11985,8 @@ DocumentTitle.install = function (Vue) {
11930
11985
  var DocumentTitle$1 = DocumentTitle;var FillView = {
11931
11986
  install: function install(Vue) {
11932
11987
  Vue.component(FillView$1.name, FillView$1);
11933
- }
11988
+ },
11989
+ FillView: FillView$1
11934
11990
  };//
11935
11991
 
11936
11992
  var firstUpperCase = function firstUpperCase(str) {
@@ -12126,7 +12182,8 @@ var __vue_component__$4 = /*#__PURE__*/normalizeComponent({
12126
12182
  var ScrollView$1 = __vue_component__$4;var ScrollView = {
12127
12183
  install: function install(Vue) {
12128
12184
  Vue.component(ScrollView$1.name, ScrollView$1);
12129
- }
12185
+ },
12186
+ ScrollView: ScrollView$1
12130
12187
  };var script$3 = {
12131
12188
  name: "ui-history",
12132
12189
  components: {
@@ -12399,7 +12456,8 @@ var __vue_component__$3 = /*#__PURE__*/normalizeComponent({
12399
12456
  var History$1 = __vue_component__$3;var History = {
12400
12457
  install: function install(Vue) {
12401
12458
  Vue.component(History$1.name, History$1);
12402
- }
12459
+ },
12460
+ History: History$1
12403
12461
  };//
12404
12462
  //
12405
12463
  //
@@ -12562,7 +12620,8 @@ var __vue_component__$2 = /*#__PURE__*/normalizeComponent({
12562
12620
  var Minimize$1 = __vue_component__$2;var Minimize = {
12563
12621
  install: function install(Vue) {
12564
12622
  Vue.component(Minimize$1.name, Minimize$1);
12565
- }
12623
+ },
12624
+ Minimize: Minimize$1
12566
12625
  };//
12567
12626
  var script$1 = {
12568
12627
  name: 'ui-page',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v2coding/ui",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
 
6
6
  "main": "dist/v2coding-ui.ssr.js",