vant 4.9.0 → 4.9.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.
@@ -125,6 +125,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
125
125
  (0, import_use.useEventListener)("touchmove", onTouchmove, {
126
126
  target: rootRef
127
127
  });
128
+ const renderHeader = () => {
129
+ if (slots.header) {
130
+ return slots.header();
131
+ }
132
+ return (0, import_vue.createVNode)("div", {
133
+ "class": bem("header")
134
+ }, [(0, import_vue.createVNode)("div", {
135
+ "class": bem("header-bar")
136
+ }, null)]);
137
+ };
128
138
  return () => {
129
139
  var _a;
130
140
  return (0, import_vue.createVNode)("div", {
@@ -136,11 +146,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
136
146
  "onTouchstartPassive": onTouchstart,
137
147
  "onTouchend": onTouchend,
138
148
  "onTouchcancel": onTouchend
139
- }, [(0, import_vue.createVNode)("div", {
140
- "class": bem("header")
141
- }, [(0, import_vue.createVNode)("div", {
142
- "class": bem("header-bar")
143
- }, null)]), (0, import_vue.createVNode)("div", {
149
+ }, [renderHeader(), (0, import_vue.createVNode)("div", {
144
150
  "class": bem("content"),
145
151
  "ref": contentRef
146
152
  }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);