♻️ component
fix(utils): 调整计算内容高度公式中的偏移量 style(component): 移除 soulkey 的默认空字符串值 chore(component): 更新 layer-vue 依赖路径为本地路径 feat(layer): 为图片组件添加滚轮缩放功能 refactor(component): 优化 computedRefImpl 类的实现 docs(component): 更新依赖路径和版本信息 style(component): 统一 isObject 函数的命名和实现 refactor(component): 重构上传组件的代码结构
This commit is contained in:
@@ -172,13 +172,11 @@ function triggerRefValue(ref, newVal) {
|
||||
}
|
||||
}
|
||||
}
|
||||
var _a;
|
||||
class ComputedRefImpl {
|
||||
constructor(getter, _setter, isReadonly, isSSR) {
|
||||
this._setter = _setter;
|
||||
this.dep = void 0;
|
||||
this.__v_isRef = true;
|
||||
this[_a] = false;
|
||||
this._dirty = true;
|
||||
this.effect = new ReactiveEffect(getter, () => {
|
||||
if (!this._dirty) {
|
||||
@@ -203,7 +201,6 @@ class ComputedRefImpl {
|
||||
this._setter(newValue);
|
||||
}
|
||||
}
|
||||
_a = "__v_isReadonly";
|
||||
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
||||
let getter;
|
||||
let setter;
|
||||
|
||||
Reference in New Issue
Block a user