@deot/vc 1.0.21 → 1.0.22

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.
@@ -26938,9 +26938,9 @@ var Vc = (function (exports, vue) {
26938
26938
  default: true
26939
26939
  },
26940
26940
  autoWidth: {
26941
- // 同宽
26941
+ // 当为false是,使用triggerEl宽度
26942
26942
  type: Boolean,
26943
- default: false
26943
+ default: true
26944
26944
  },
26945
26945
  triggerEl: {
26946
26946
  type: Object,
@@ -28023,7 +28023,7 @@ var Vc = (function (exports, vue) {
28023
28023
  fitPos.value = result;
28024
28024
  wrapperStyle.value = $wrapperStyle;
28025
28025
  arrowStyle.value = $arrowStyle;
28026
- if (!props2.autoWidth) return;
28026
+ if (props2.autoWidth) return;
28027
28027
  wrapperW.value = {
28028
28028
  width: `${triggerEl.getBoundingClientRect().width}px`
28029
28029
  };
@@ -29047,7 +29047,7 @@ var Vc = (function (exports, vue) {
29047
29047
  "trigger": props2.trigger,
29048
29048
  "tag": props2.tag,
29049
29049
  "placement": props2.placement,
29050
- "autoWidth": false,
29050
+ "autoWidth": true,
29051
29051
  "disabled": props2.disabled,
29052
29052
  "portalClass": ["is-padding-none", "vc-date-picker--portal", props2.portalClass],
29053
29053
  "class": [classes.value, its.value.class, "vc-date-picker"],
@@ -34990,7 +34990,7 @@ var Vc = (function (exports, vue) {
34990
34990
  },
34991
34991
  autoWidth: {
34992
34992
  type: Boolean,
34993
- default: true
34993
+ default: false
34994
34994
  },
34995
34995
  max: {
34996
34996
  type: Number,
@@ -35228,32 +35228,34 @@ var Vc = (function (exports, vue) {
35228
35228
  "class": "vc-select__loading"
35229
35229
  }, [vue.createVNode(Spin, {
35230
35230
  "size": 16
35231
- }, null)]), vue.createVNode("div", {
35231
+ }, null)]), vue.createVNode(Scroller, {
35232
35232
  "class": "vc-select__options"
35233
- }, [props2.data ? vue.createVNode("div", null, [props2.data.map((item) => {
35234
- let _slot;
35235
- return Array.isArray(item.children) ? vue.createVNode(OptionGroup, {
35236
- "value": item.value,
35237
- "label": item.label,
35238
- "key": item.value
35239
- }, _isSlot$1(_slot = item.children.map(($item) => {
35240
- return vue.createVNode(Option, {
35241
- "key": $item.value,
35242
- "value": $item.value,
35243
- "label": $item.label,
35244
- "disabled": $item.disabled,
35245
- "filterable": $item.filterable
35233
+ }, {
35234
+ default: () => [props2.data ? vue.createVNode("div", null, [props2.data.map((item) => {
35235
+ let _slot;
35236
+ return Array.isArray(item.children) ? vue.createVNode(OptionGroup, {
35237
+ "value": item.value,
35238
+ "label": item.label,
35239
+ "key": item.value
35240
+ }, _isSlot$1(_slot = item.children.map(($item) => {
35241
+ return vue.createVNode(Option, {
35242
+ "key": $item.value,
35243
+ "value": $item.value,
35244
+ "label": $item.label,
35245
+ "disabled": $item.disabled,
35246
+ "filterable": $item.filterable
35247
+ }, null);
35248
+ })) ? _slot : {
35249
+ default: () => [_slot]
35250
+ }) : vue.createVNode(Option, {
35251
+ "key": item.value,
35252
+ "value": item.value,
35253
+ "label": item.label,
35254
+ "disabled": item.disabled,
35255
+ "filterable": item.filterable
35246
35256
  }, null);
35247
- })) ? _slot : {
35248
- default: () => [_slot]
35249
- }) : vue.createVNode(Option, {
35250
- "key": item.value,
35251
- "value": item.value,
35252
- "label": item.label,
35253
- "disabled": item.disabled,
35254
- "filterable": item.filterable
35255
- }, null);
35256
- })]) : slots.default?.()])]);
35257
+ })]) : slots.default?.()]
35258
+ })]);
35257
35259
  }
35258
35260
  });
35259
35261
  };
@@ -39165,8 +39167,8 @@ var Vc = (function (exports, vue) {
39165
39167
  scrollPosition.value = "middle";
39166
39168
  }
39167
39169
  if (!props2.height) {
39168
- leftFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop;
39169
- rightFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop;
39170
+ leftFixedBody.value && (leftFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop);
39171
+ rightFixedBody.value && (rightFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop);
39170
39172
  }
39171
39173
  }, 20);
39172
39174
  const handleScollY = (e) => {
@@ -39812,7 +39814,7 @@ var Vc = (function (exports, vue) {
39812
39814
  return vue.createVNode(Text, {
39813
39815
  "style": style2,
39814
39816
  "line": line,
39815
- "value": value
39817
+ "value": `${value}`
39816
39818
  }, null);
39817
39819
  }
39818
39820
  return value;
@@ -26941,9 +26941,9 @@
26941
26941
  default: true
26942
26942
  },
26943
26943
  autoWidth: {
26944
- // 同宽
26944
+ // 当为false是,使用triggerEl宽度
26945
26945
  type: Boolean,
26946
- default: false
26946
+ default: true
26947
26947
  },
26948
26948
  triggerEl: {
26949
26949
  type: Object,
@@ -28026,7 +28026,7 @@
28026
28026
  fitPos.value = result;
28027
28027
  wrapperStyle.value = $wrapperStyle;
28028
28028
  arrowStyle.value = $arrowStyle;
28029
- if (!props2.autoWidth) return;
28029
+ if (props2.autoWidth) return;
28030
28030
  wrapperW.value = {
28031
28031
  width: `${triggerEl.getBoundingClientRect().width}px`
28032
28032
  };
@@ -29050,7 +29050,7 @@
29050
29050
  "trigger": props2.trigger,
29051
29051
  "tag": props2.tag,
29052
29052
  "placement": props2.placement,
29053
- "autoWidth": false,
29053
+ "autoWidth": true,
29054
29054
  "disabled": props2.disabled,
29055
29055
  "portalClass": ["is-padding-none", "vc-date-picker--portal", props2.portalClass],
29056
29056
  "class": [classes.value, its.value.class, "vc-date-picker"],
@@ -34993,7 +34993,7 @@
34993
34993
  },
34994
34994
  autoWidth: {
34995
34995
  type: Boolean,
34996
- default: true
34996
+ default: false
34997
34997
  },
34998
34998
  max: {
34999
34999
  type: Number,
@@ -35231,32 +35231,34 @@
35231
35231
  "class": "vc-select__loading"
35232
35232
  }, [vue.createVNode(Spin, {
35233
35233
  "size": 16
35234
- }, null)]), vue.createVNode("div", {
35234
+ }, null)]), vue.createVNode(Scroller, {
35235
35235
  "class": "vc-select__options"
35236
- }, [props2.data ? vue.createVNode("div", null, [props2.data.map((item) => {
35237
- let _slot;
35238
- return Array.isArray(item.children) ? vue.createVNode(OptionGroup, {
35239
- "value": item.value,
35240
- "label": item.label,
35241
- "key": item.value
35242
- }, _isSlot$1(_slot = item.children.map(($item) => {
35243
- return vue.createVNode(Option, {
35244
- "key": $item.value,
35245
- "value": $item.value,
35246
- "label": $item.label,
35247
- "disabled": $item.disabled,
35248
- "filterable": $item.filterable
35236
+ }, {
35237
+ default: () => [props2.data ? vue.createVNode("div", null, [props2.data.map((item) => {
35238
+ let _slot;
35239
+ return Array.isArray(item.children) ? vue.createVNode(OptionGroup, {
35240
+ "value": item.value,
35241
+ "label": item.label,
35242
+ "key": item.value
35243
+ }, _isSlot$1(_slot = item.children.map(($item) => {
35244
+ return vue.createVNode(Option, {
35245
+ "key": $item.value,
35246
+ "value": $item.value,
35247
+ "label": $item.label,
35248
+ "disabled": $item.disabled,
35249
+ "filterable": $item.filterable
35250
+ }, null);
35251
+ })) ? _slot : {
35252
+ default: () => [_slot]
35253
+ }) : vue.createVNode(Option, {
35254
+ "key": item.value,
35255
+ "value": item.value,
35256
+ "label": item.label,
35257
+ "disabled": item.disabled,
35258
+ "filterable": item.filterable
35249
35259
  }, null);
35250
- })) ? _slot : {
35251
- default: () => [_slot]
35252
- }) : vue.createVNode(Option, {
35253
- "key": item.value,
35254
- "value": item.value,
35255
- "label": item.label,
35256
- "disabled": item.disabled,
35257
- "filterable": item.filterable
35258
- }, null);
35259
- })]) : slots.default?.()])]);
35260
+ })]) : slots.default?.()]
35261
+ })]);
35260
35262
  }
35261
35263
  });
35262
35264
  };
@@ -39168,8 +39170,8 @@
39168
39170
  scrollPosition.value = "middle";
39169
39171
  }
39170
39172
  if (!props2.height) {
39171
- leftFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop;
39172
- rightFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop;
39173
+ leftFixedBody.value && (leftFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop);
39174
+ rightFixedBody.value && (rightFixedBody.value.getRootElement().scrollTop = bodyXWrapper.value.scrollTop);
39173
39175
  }
39174
39176
  }, 20);
39175
39177
  const handleScollY = (e) => {
@@ -39815,7 +39817,7 @@
39815
39817
  return vue.createVNode(Text, {
39816
39818
  "style": style2,
39817
39819
  "line": line,
39818
- "value": value
39820
+ "value": `${value}`
39819
39821
  }, null);
39820
39822
  }
39821
39823
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/vc",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@deot/vc-components": "^1.0.21",
23
- "@deot/vc-hooks": "^1.0.21",
24
- "@deot/vc-shared": "^1.0.21"
22
+ "@deot/vc-components": "^1.0.22",
23
+ "@deot/vc-hooks": "^1.0.22",
24
+ "@deot/vc-shared": "^1.0.22"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "vue": "*"