sard-uniapp 1.1.0-rc.2 → 1.1.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.
package/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
## <small>1.1.1 (2024-05-05)</small>
|
|
2
|
+
|
|
3
|
+
* fix: 修复upload-preview的image在h5环境下,没有宽度导致图片显示不全 ([e155724](https://github.com/sutras/sard-uniapp/commit/e155724))
|
|
4
|
+
* fix: 修复upload组件图片预览问题 ([dd69007](https://github.com/sutras/sard-uniapp/commit/dd69007))
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## 1.1.0 (2024-05-02)
|
|
9
|
+
|
|
10
|
+
* fix: 修复input组件字数统计问题 close #19 ([52160b3](https://github.com/sutras/sard-uniapp/commit/52160b3)), closes [#19](https://github.com/sutras/sard-uniapp/issues/19)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
## 1.1.0-rc.2 (2024-04-27)
|
|
2
15
|
|
|
16
|
+
* chore: update version ([df04e9a](https://github.com/sutras/sard-uniapp/commit/df04e9a))
|
|
3
17
|
* docs: 添加github文档和演示链接 ([3b1c445](https://github.com/sutras/sard-uniapp/commit/3b1c445))
|
|
4
18
|
* docs: close #16 ([e33dfa7](https://github.com/sutras/sard-uniapp/commit/e33dfa7)), closes [#16](https://github.com/sutras/sard-uniapp/issues/16)
|
|
5
19
|
* dropdown-item点击变化值后,没有回传 ([3f21060](https://github.com/sutras/sard-uniapp/commit/3f21060))
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<slot name="addon"></slot>
|
|
96
96
|
</view>
|
|
97
97
|
<view v-if="showCount" :class="bem.e('count')">
|
|
98
|
-
{{
|
|
98
|
+
{{ innerValue.length }} / {{ maxlength }}
|
|
99
99
|
</view>
|
|
100
100
|
</view>
|
|
101
101
|
</template>
|
|
@@ -139,7 +139,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
139
139
|
const isReadonly = computed(() => {
|
|
140
140
|
return formContext?.readonly ?? props.readonly;
|
|
141
141
|
});
|
|
142
|
-
const innerValue = ref(props.modelValue);
|
|
142
|
+
const innerValue = ref(String(props.modelValue ?? ""));
|
|
143
143
|
const setInnerValue = (value) => {
|
|
144
144
|
innerValue.value = value;
|
|
145
145
|
emit("update:model-value", value);
|
|
@@ -147,7 +147,7 @@ export default /* @__PURE__ */ _defineComponent({
|
|
|
147
147
|
watch(
|
|
148
148
|
() => props.modelValue,
|
|
149
149
|
() => {
|
|
150
|
-
innerValue.value = props.modelValue ?? "";
|
|
150
|
+
innerValue.value = String(props.modelValue ?? "");
|
|
151
151
|
if (props.validateEvent) {
|
|
152
152
|
formItemContext?.onChange();
|
|
153
153
|
}
|