Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 30, 2024
1 parent c222644 commit a002e2d
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/uni-app-plus/dist/uni-app-view.umd.js

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions packages/uni-h5/dist-x/uni-h5.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3937,7 +3937,10 @@ function useBase(props2, rootRef, emit2) {
return isNaN(maxlength2) || maxlength2 < 0 ? Infinity : Math.floor(maxlength2);
}
});
const value = getValueString(props2.modelValue, props2.type, maxlength.value) || getValueString(props2.value, props2.type, maxlength.value);
let value = "";
{
value = getValueString(props2.modelValue, props2.type, maxlength.value) || getValueString(props2.value, props2.type, maxlength.value);
}
const state = vue.reactive({
value,
valueOrigin: value,
Expand Down Expand Up @@ -3966,9 +3969,12 @@ function useBase(props2, rootRef, emit2) {
};
}
function useValueSync(props2, state, emit2, trigger) {
const valueChangeFn = throttle((val) => {
state.value = getValueString(val, props2.type, state.maxlength);
}, 100);
let valueChangeFn = null;
{
valueChangeFn = throttle((val) => {
state.value = getValueString(val, props2.type, state.maxlength);
}, 100);
}
vue.watch(() => props2.modelValue, valueChangeFn);
vue.watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
Expand Down
14 changes: 10 additions & 4 deletions packages/uni-h5/dist-x/uni-h5.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -10093,7 +10093,10 @@ function useBase(props2, rootRef, emit2) {
return isNaN(maxlength2) || maxlength2 < 0 ? Infinity : Math.floor(maxlength2);
}
});
const value = getValueString(props2.modelValue, props2.type, maxlength.value) || getValueString(props2.value, props2.type, maxlength.value);
let value = "";
{
value = getValueString(props2.modelValue, props2.type, maxlength.value) || getValueString(props2.value, props2.type, maxlength.value);
}
const state2 = reactive({
value,
valueOrigin: value,
Expand Down Expand Up @@ -10122,9 +10125,12 @@ function useBase(props2, rootRef, emit2) {
};
}
function useValueSync(props2, state2, emit2, trigger) {
const valueChangeFn = throttle((val) => {
state2.value = getValueString(val, props2.type, state2.maxlength);
}, 100);
let valueChangeFn = null;
{
valueChangeFn = throttle((val) => {
state2.value = getValueString(val, props2.type, state2.maxlength);
}, 100);
}
watch(() => props2.modelValue, valueChangeFn);
watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
Expand Down
22 changes: 14 additions & 8 deletions packages/uni-h5/dist/uni-h5.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3299,7 +3299,10 @@ function useBase(props2, rootRef, emit2) {
return isNaN(maxlength2) ? 140 : maxlength2;
}
});
const value = getValueString(props2.modelValue, props2.type) || getValueString(props2.value, props2.type);
let value = "";
{
value = getValueString(props2.modelValue, props2.type) || getValueString(props2.value, props2.type);
}
const state = vue.reactive({
value,
valueOrigin: value,
Expand Down Expand Up @@ -3328,13 +3331,16 @@ function useBase(props2, rootRef, emit2) {
};
}
function useValueSync(props2, state, emit2, trigger) {
const valueChangeFn = uniShared.debounce(
(val) => {
state.value = getValueString(val, props2.type);
},
100,
{ setTimeout, clearTimeout }
);
let valueChangeFn = null;
{
valueChangeFn = uniShared.debounce(
(val) => {
state.value = getValueString(val, props2.type);
},
100,
{ setTimeout, clearTimeout }
);
}
vue.watch(() => props2.modelValue, valueChangeFn);
vue.watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
Expand Down
22 changes: 14 additions & 8 deletions packages/uni-h5/dist/uni-h5.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -9466,7 +9466,10 @@ function useBase(props2, rootRef, emit2) {
return isNaN(maxlength2) ? 140 : maxlength2;
}
});
const value = getValueString(props2.modelValue, props2.type) || getValueString(props2.value, props2.type);
let value = "";
{
value = getValueString(props2.modelValue, props2.type) || getValueString(props2.value, props2.type);
}
const state2 = reactive({
value,
valueOrigin: value,
Expand Down Expand Up @@ -9495,13 +9498,16 @@ function useBase(props2, rootRef, emit2) {
};
}
function useValueSync(props2, state2, emit2, trigger) {
const valueChangeFn = debounce(
(val) => {
state2.value = getValueString(val, props2.type);
},
100,
{ setTimeout, clearTimeout }
);
let valueChangeFn = null;
{
valueChangeFn = debounce(
(val) => {
state2.value = getValueString(val, props2.type);
},
100,
{ setTimeout, clearTimeout }
);
}
watch(() => props2.modelValue, valueChangeFn);
watch(() => props2.value, valueChangeFn);
const triggerInputFn = throttle((event, detail) => {
Expand Down

0 comments on commit a002e2d

Please sign in to comment.