@v-c/picker 1.3.1 → 1.3.2

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.
@@ -93,6 +93,10 @@ var Popup = /* @__PURE__ */ defineComponent((props) => {
93
93
  const onPanelFocusOut = (event) => {
94
94
  onBlur?.(event);
95
95
  };
96
+ const onInternalPanelMouseDown = (event) => {
97
+ onPanelMouseDown?.(event);
98
+ event.preventDefault();
99
+ };
96
100
  const prefixCls = ctx.value.prefixCls;
97
101
  let mergedNodes = createVNode("div", { "class": `${prefixCls}-panel-layout` }, [createVNode(PresetPanel, {
98
102
  "prefixCls": prefixCls,
@@ -114,7 +118,7 @@ var Popup = /* @__PURE__ */ defineComponent((props) => {
114
118
  if (range) containerRef.value = node;
115
119
  if (props.popupContainerRef) props.popupContainerRef.value = node;
116
120
  },
117
- "onMousedown": onPanelMouseDown,
121
+ "onMousedown": onInternalPanelMouseDown,
118
122
  "tabindex": -1,
119
123
  "class": clsx(containerPrefixCls, `${ctx.value.prefixCls}-${internalMode}-panel-container`, classNames?.popup?.container),
120
124
  "style": {
@@ -340,13 +340,12 @@ var SinglePicker = /* @__PURE__ */ defineComponent((props, { expose }) => {
340
340
  onNow,
341
341
  cellRender: onInternalCellRender,
342
342
  classNames: mergedClassNames,
343
- styles: mergedStyles,
344
- popupContainerRef: popupRef.value
343
+ styles: mergedStyles
345
344
  };
346
345
  });
347
346
  return () => {
348
347
  const [mergedClassNames, mergedStyles] = semanticCtx.value;
349
- const panel = createVNode(Popup, popupProps.value, null);
348
+ const panel = createVNode(Popup, mergeProps(popupProps.value, { "popupContainerRef": popupRef }), null);
350
349
  const singleSelectorProps = {
351
350
  ...omit$1(fp.value, [
352
351
  "autoFocus",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/picker",
3
3
  "type": "module",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "description": "picker ui component for vue",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -77,10 +77,10 @@
77
77
  }
78
78
  },
79
79
  "dependencies": {
80
+ "@v-c/util": "^1.1.0",
80
81
  "@v-c/overflow": "^1.1.1",
81
82
  "@v-c/resize-observer": "^1.1.3",
82
- "@v-c/trigger": "^1.1.0",
83
- "@v-c/util": "^1.1.0"
83
+ "@v-c/trigger": "^1.1.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@types/luxon": "^3.7.2"