@hlw-uni/mp-vue 1.0.6 → 1.0.7

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.
package/dist/index.js CHANGED
@@ -240,7 +240,9 @@
240
240
  }, [..._cache[0] || (_cache[0] = [
241
241
  vue.createElementVNode("text", { class: "iconfont icon-back" }, null, -1)
242
242
  ])]),
243
- vue.createElementVNode("view", _hoisted_1$3, vue.toDisplayString(props.title), 1),
243
+ vue.createElementVNode("view", _hoisted_1$3, [
244
+ vue.createElementVNode("text", null, vue.toDisplayString(props.title), 1)
245
+ ]),
244
246
  _cache[1] || (_cache[1] = vue.createElementVNode("view", { class: "header-placeholder" }, null, -1))
245
247
  ], 64)) : vue.renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
246
248
  props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$3, vue.toDisplayString(props.title), 1)) : vue.createCommentVNode("", true)
@@ -250,7 +252,7 @@
250
252
  };
251
253
  }
252
254
  });
253
- const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6f338046"]]);
255
+ const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cebafa4e"]]);
254
256
  const _hoisted_1$2 = { class: "hlw-loading" };
255
257
  const _hoisted_2$2 = {
256
258
  key: 0,
package/dist/index.mjs CHANGED
@@ -237,7 +237,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
237
237
  }, [..._cache[0] || (_cache[0] = [
238
238
  createElementVNode("text", { class: "iconfont icon-back" }, null, -1)
239
239
  ])]),
240
- createElementVNode("view", _hoisted_1$3, toDisplayString(props.title), 1),
240
+ createElementVNode("view", _hoisted_1$3, [
241
+ createElementVNode("text", null, toDisplayString(props.title), 1)
242
+ ]),
241
243
  _cache[1] || (_cache[1] = createElementVNode("view", { class: "header-placeholder" }, null, -1))
242
244
  ], 64)) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
243
245
  props.title ? (openBlock(), createElementBlock("view", _hoisted_2$3, toDisplayString(props.title), 1)) : createCommentVNode("", true)
@@ -247,7 +249,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
247
249
  };
248
250
  }
249
251
  });
250
- const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6f338046"]]);
252
+ const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cebafa4e"]]);
251
253
  const _hoisted_1$2 = { class: "hlw-loading" };
252
254
  const _hoisted_2$2 = {
253
255
  key: 0,
package/dist/style.css CHANGED
@@ -57,7 +57,7 @@
57
57
  font-size: 28rpx;
58
58
  color: #bbb;
59
59
  }
60
- .hlw-header[data-v-6f338046] {
60
+ .hlw-header[data-v-cebafa4e] {
61
61
  position: sticky;
62
62
  top: 0;
63
63
  z-index: 999;
@@ -65,7 +65,7 @@
65
65
  flex-direction: column;
66
66
  overflow: hidden;
67
67
  }
68
- .header-bg-layer[data-v-6f338046] {
68
+ .header-bg-layer[data-v-cebafa4e] {
69
69
  position: absolute;
70
70
  top: 0;
71
71
  left: 0;
@@ -73,13 +73,13 @@
73
73
  bottom: 0;
74
74
  z-index: 0;
75
75
  }
76
- .status-bar-spacer[data-v-6f338046] {
76
+ .status-bar-spacer[data-v-cebafa4e] {
77
77
  flex-shrink: 0;
78
78
  width: 100%;
79
79
  position: relative;
80
80
  z-index: 1;
81
81
  }
82
- .header-content-area[data-v-6f338046] {
82
+ .header-content-area[data-v-cebafa4e] {
83
83
  flex-shrink: 0;
84
84
  width: 100%;
85
85
  display: flex;
@@ -87,7 +87,7 @@
87
87
  position: relative;
88
88
  z-index: 1;
89
89
  }
90
- .header-back[data-v-6f338046] {
90
+ .header-back[data-v-cebafa4e] {
91
91
  width: 88rpx;
92
92
  height: 100%;
93
93
  display: flex;
@@ -95,20 +95,22 @@
95
95
  justify-content: center;
96
96
  flex-shrink: 0;
97
97
  }
98
- .header-back .iconfont[data-v-6f338046] {
98
+ .header-back .iconfont[data-v-cebafa4e] {
99
99
  font-size: 40rpx;
100
100
  }
101
- .header-title[data-v-6f338046] {
101
+ .header-title[data-v-cebafa4e] {
102
102
  flex: 1;
103
- text-align: center;
104
- font-size: 26rpx;
105
- font-weight: 500;
106
103
  overflow: hidden;
107
104
  text-overflow: ellipsis;
108
105
  white-space: nowrap;
109
106
  letter-spacing: 1rpx;
110
107
  }
111
- .header-placeholder[data-v-6f338046] {
108
+ .header-title text[data-v-cebafa4e] {
109
+ text-align: center;
110
+ font-size: 26rpx;
111
+ font-weight: 500;
112
+ }
113
+ .header-placeholder[data-v-cebafa4e] {
112
114
  width: 88rpx;
113
115
  flex-shrink: 0;
114
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hlw-uni/mp-vue",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "hlw-uni Vue 组件库 — 供小程序业务方使用的 UI 组件集合",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9,7 +9,9 @@
9
9
  <view class="header-back" @click="handleBack">
10
10
  <text class="iconfont icon-back"></text>
11
11
  </view>
12
- <view class="header-title">{{ props.title }}</view>
12
+ <view class="header-title">
13
+ <text>{{ props.title }}</text>
14
+ </view>
13
15
  <view class="header-placeholder"></view>
14
16
  </template>
15
17
  <slot v-else>
@@ -123,13 +125,16 @@ const totalNavBarHeight = computed(() => statusBarHeight.value + NAV_BAR_CONTENT
123
125
 
124
126
  .header-title {
125
127
  flex: 1;
126
- text-align: center;
127
- font-size: 26rpx;
128
- font-weight: 500;
129
128
  overflow: hidden;
130
129
  text-overflow: ellipsis;
131
130
  white-space: nowrap;
132
131
  letter-spacing: 1rpx;
132
+
133
+ text {
134
+ text-align: center;
135
+ font-size: 26rpx;
136
+ font-weight: 500;
137
+ }
133
138
  }
134
139
 
135
140
  .header-placeholder {