@v2coding/ui 0.1.55 → 0.1.57

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.
@@ -3349,7 +3349,7 @@ var CheckboxField = __vue_component__$B;var script$z = {
3349
3349
 
3350
3350
  if (this.lockedValue) {
3351
3351
  if (this.value !== this.lockedValue) {
3352
- this.onChange(this.lockedValue, true);
3352
+ this.onChange(this.getPickerValue(this.lockedValue), true);
3353
3353
  }
3354
3354
 
3355
3355
  return;
@@ -3369,7 +3369,7 @@ var CheckboxField = __vue_component__$B;var script$z = {
3369
3369
  }
3370
3370
 
3371
3371
  var first = data.find(Boolean);
3372
- first && first.value !== this.value && this.onChange(first.value, true);
3372
+ first && first.value !== this.value && this.onChange(this.getPickerValue(first.value), true);
3373
3373
  },
3374
3374
  getPickerValue: function getPickerValue(value) {
3375
3375
  var _this3 = this;
@@ -3635,7 +3635,7 @@ var __vue_staticRenderFns__$z = [];
3635
3635
 
3636
3636
  var __vue_inject_styles__$A = function __vue_inject_styles__(inject) {
3637
3637
  if (!inject) return;
3638
- inject("data-v-5ed62eec_0", {
3638
+ inject("data-v-3c9745c2_0", {
3639
3639
  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
3640
  map: undefined,
3641
3641
  media: undefined
@@ -3647,7 +3647,7 @@ var __vue_inject_styles__$A = function __vue_inject_styles__(inject) {
3647
3647
  var __vue_scope_id__$A = undefined;
3648
3648
  /* module identifier */
3649
3649
 
3650
- var __vue_module_identifier__$A = "data-v-5ed62eec";
3650
+ var __vue_module_identifier__$A = "data-v-3c9745c2";
3651
3651
  /* functional template */
3652
3652
 
3653
3653
  var __vue_is_functional_template__$A = false;
@@ -10549,6 +10549,7 @@ var DefaultTypes = {
10549
10549
  direction: 'vertical'
10550
10550
  }
10551
10551
  }) : null, h('el-button', {
10552
+ attrs: props,
10552
10553
  props: _objectSpread2({
10553
10554
  type: 'text',
10554
10555
  size: 'mini'
@@ -10588,6 +10589,7 @@ var DefaultTypes = {
10588
10589
  props = _objectWithoutProperties(_ref9, _excluded2$1);
10589
10590
 
10590
10591
  return h('el-dropdown-item', {
10592
+ attrs: props,
10591
10593
  props: _objectSpread2(_objectSpread2({}, props), {}, {
10592
10594
  command: key
10593
10595
  })
@@ -13274,9 +13276,19 @@ var mixin = {
13274
13276
  }
13275
13277
  }
13276
13278
  };var _excluded = ["onReady"];
13279
+ var isReady = false;
13280
+ var onReadyCallbacks = [];
13281
+ var onReady = function onReady(callback) {
13282
+ if (isReady) {
13283
+ callback();
13284
+ return;
13285
+ }
13286
+
13287
+ onReadyCallbacks.push(callback);
13288
+ };
13277
13289
  var index = {
13278
13290
  install: function install(Vue, opt) {
13279
- var onReady = opt.onReady,
13291
+ var _onReady = opt.onReady,
13280
13292
  options = _objectWithoutProperties(opt, _excluded);
13281
13293
 
13282
13294
  var _Config$init = Config.init(Vue, options),
@@ -13289,13 +13301,20 @@ var index = {
13289
13301
  Vue.use(Directives, options);
13290
13302
  Vue.use(Components, options);
13291
13303
 
13292
- if (typeof onReady === 'function') {
13293
- onReady({
13304
+ if (typeof _onReady === 'function') {
13305
+ _onReady({
13294
13306
  axios: axios,
13295
13307
  store: store,
13296
13308
  router: router
13297
13309
  });
13298
13310
  }
13311
+
13312
+ isReady = true;
13313
+
13314
+ while (onReadyCallbacks.length) {
13315
+ var callback = onReadyCallbacks.shift();
13316
+ typeof callback === 'function' && callback();
13317
+ }
13299
13318
  },
13300
13319
  Components: ComponentList
13301
- };exports.Arrays=arrays;exports.Axios=Axios;exports.Dates=Date$1;exports.FieldMixin=FieldMixin;exports.HistoryMixin=mixin;exports.Objects=Objects;exports.Router=Router;exports.Store=Store;exports.Strings=Strings;exports.Upload=Upload;exports.addFieldType=addFieldType;exports["default"]=index;exports.getAMap=getAMap;
13320
+ };exports.Arrays=arrays;exports.Axios=Axios;exports.Dates=Date$1;exports.FieldMixin=FieldMixin;exports.HistoryMixin=mixin;exports.Objects=Objects;exports.Router=Router;exports.Store=Store;exports.Strings=Strings;exports.Upload=Upload;exports.addFieldType=addFieldType;exports["default"]=index;exports.getAMap=getAMap;exports.onReady=onReady;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v2coding/ui",
3
- "version": "0.1.55",
3
+ "version": "0.1.57",
4
4
  "description": "",
5
5
 
6
6
  "main": "dist/v2coding-ui.ssr.js",