lew-ui 1.6.4 → 1.6.5
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.es.js +5 -11
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4159,7 +4159,7 @@ const formProps = {
|
|
|
4159
4159
|
description: "\u8868\u5355\u5BBD\u5EA6"
|
|
4160
4160
|
},
|
|
4161
4161
|
labelWidth: {
|
|
4162
|
-
type: Number,
|
|
4162
|
+
type: [Number, String],
|
|
4163
4163
|
default: "",
|
|
4164
4164
|
description: "\u6807\u7B7E\u5BBD\u5EA6"
|
|
4165
4165
|
},
|
|
@@ -6070,7 +6070,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6070
6070
|
class: "lew-form-item"
|
|
6071
6071
|
}, [
|
|
6072
6072
|
createElementVNode("div", {
|
|
6073
|
-
style: normalizeStyle(_ctx.direction === "x" ? `width:${_ctx.labelWidth}
|
|
6073
|
+
style: normalizeStyle(_ctx.direction === "x" ? `width:${unref(any2px)(_ctx.labelWidth)}` : ""),
|
|
6074
6074
|
class: "label-box"
|
|
6075
6075
|
}, [
|
|
6076
6076
|
createElementVNode("label", {
|
|
@@ -6079,7 +6079,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6079
6079
|
], 4),
|
|
6080
6080
|
createElementVNode("div", {
|
|
6081
6081
|
style: normalizeStyle(
|
|
6082
|
-
_ctx.direction === "x" ? `width:calc(100% - ${_ctx.labelWidth
|
|
6082
|
+
_ctx.direction === "x" ? `width:calc(100% - ${unref(any2px)(_ctx.labelWidth)})` : ""
|
|
6083
6083
|
),
|
|
6084
6084
|
class: normalizeClass(["lew-form-main", { "lew-form-item-error": item.errMessage }])
|
|
6085
6085
|
}, [
|
|
@@ -14623,14 +14623,8 @@ var index$4 = {
|
|
|
14623
14623
|
_toBackUp = () => {
|
|
14624
14624
|
if (!dom.value)
|
|
14625
14625
|
return;
|
|
14626
|
-
const
|
|
14627
|
-
|
|
14628
|
-
const ispeed = Math.floor(-scrollDom.scrollTop / 5);
|
|
14629
|
-
scrollDom.scrollTop = scrollDom.scrollTop + ispeed;
|
|
14630
|
-
if (scrollDom.scrollTop === 0) {
|
|
14631
|
-
clearInterval(timer2);
|
|
14632
|
-
}
|
|
14633
|
-
}, 20);
|
|
14626
|
+
const scrollDom = dom.value;
|
|
14627
|
+
scrollDom.scrollTop = 0;
|
|
14634
14628
|
};
|
|
14635
14629
|
el.addEventListener("click", _toBackUp);
|
|
14636
14630
|
},
|