@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.
@@ -2828,7 +2828,7 @@ var script$z = {
2828
2828
  initDefaultValue(data) {
2829
2829
  if (this.lockedValue) {
2830
2830
  if (this.value !== this.lockedValue) {
2831
- this.onChange(this.lockedValue, true);
2831
+ this.onChange(this.getPickerValue(this.lockedValue), true);
2832
2832
  }
2833
2833
 
2834
2834
  return;
@@ -2846,7 +2846,7 @@ var script$z = {
2846
2846
  }
2847
2847
 
2848
2848
  const first = data.find(Boolean);
2849
- first && first.value !== this.value && this.onChange(first.value, true);
2849
+ first && first.value !== this.value && this.onChange(this.getPickerValue(first.value), true);
2850
2850
  },
2851
2851
 
2852
2852
  getPickerValue(value) {
@@ -3081,7 +3081,7 @@ var __vue_staticRenderFns__$z = [];
3081
3081
 
3082
3082
  const __vue_inject_styles__$A = function (inject) {
3083
3083
  if (!inject) return;
3084
- inject("data-v-5ed62eec_0", {
3084
+ inject("data-v-3c9745c2_0", {
3085
3085
  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}",
3086
3086
  map: undefined,
3087
3087
  media: undefined
@@ -10087,6 +10087,7 @@ const DefaultTypes = {
10087
10087
  direction: 'vertical'
10088
10088
  }
10089
10089
  }) : null, h('el-button', {
10090
+ attrs: props,
10090
10091
  props: {
10091
10092
  type: 'text',
10092
10093
  size: 'mini',
@@ -10128,6 +10129,7 @@ const DefaultTypes = {
10128
10129
  ...props
10129
10130
  } = _ref8;
10130
10131
  return h('el-dropdown-item', {
10132
+ attrs: props,
10131
10133
  props: { ...props,
10132
10134
  command: key
10133
10135
  }
@@ -12875,10 +12877,20 @@ var mixin = {
12875
12877
  }
12876
12878
  };
12877
12879
 
12880
+ let isReady = false;
12881
+ const onReadyCallbacks = [];
12882
+ const onReady = callback => {
12883
+ if (isReady) {
12884
+ callback();
12885
+ return;
12886
+ }
12887
+
12888
+ onReadyCallbacks.push(callback);
12889
+ };
12878
12890
  var index = {
12879
12891
  install: (Vue, opt) => {
12880
12892
  const {
12881
- onReady,
12893
+ onReady: _onReady,
12882
12894
  ...options
12883
12895
  } = opt;
12884
12896
  const {
@@ -12891,15 +12903,22 @@ var index = {
12891
12903
  Vue.use(Directives, options);
12892
12904
  Vue.use(Components, options);
12893
12905
 
12894
- if (typeof onReady === 'function') {
12895
- onReady({
12906
+ if (typeof _onReady === 'function') {
12907
+ _onReady({
12896
12908
  axios,
12897
12909
  store,
12898
12910
  router
12899
12911
  });
12900
12912
  }
12913
+
12914
+ isReady = true;
12915
+
12916
+ while (onReadyCallbacks.length) {
12917
+ const callback = onReadyCallbacks.shift();
12918
+ typeof callback === 'function' && callback();
12919
+ }
12901
12920
  },
12902
12921
  Components: ComponentList
12903
12922
  };
12904
12923
 
12905
- export { arrays as Arrays, Axios, Date$1 as Dates, FieldMixin, mixin as HistoryMixin, Objects, Router, Store, Strings, Upload, addFieldType, index as default, getAMap };
12924
+ export { arrays as Arrays, Axios, Date$1 as Dates, FieldMixin, mixin as HistoryMixin, Objects, Router, Store, Strings, Upload, addFieldType, index as default, getAMap, onReady };