@mdui/shared 1.0.7 → 1.0.8

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.
@@ -27,7 +27,7 @@ export function defaultValue(propertyName = 'value') {
27
27
  const converter = options.converter || defaultConverter;
28
28
  const fromAttribute = isFunction(converter)
29
29
  ? converter
30
- : converter?.fromAttribute ?? defaultConverter.fromAttribute;
30
+ : (converter?.fromAttribute ?? defaultConverter.fromAttribute);
31
31
  const newValue = fromAttribute(value, options.type);
32
32
  if (this[propertyName] !== newValue) {
33
33
  this[key] = newValue;
@@ -113,20 +113,18 @@ export const ScrollBehaviorMixin = (superclass) => {
113
113
  /**
114
114
  * 执行滚动事件,在滚动距离超过 scrollThreshold 时才会执行
115
115
  * Note: 父类可以按需实现该方法
116
- * @param isScrollingUp 是否向上滚动
117
- * @param scrollTop 距离 scrollTarget 顶部的距离
116
+ * @param _isScrollingUp 是否向上滚动
117
+ * @param _scrollTop 距离 scrollTarget 顶部的距离
118
118
  */
119
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
120
- runScrollThreshold(isScrollingUp, scrollTop) {
119
+ runScrollThreshold(_isScrollingUp, _scrollTop) {
121
120
  return;
122
121
  }
123
122
  /**
124
123
  * 执行滚动事件,会无视 scrollThreshold,始终会执行
125
- * @param isScrollingUp 是否向上滚动
126
- * @param scrollTop 距离 scrollTarget 顶部的距离
124
+ * @param _isScrollingUp 是否向上滚动
125
+ * @param _scrollTop 距离 scrollTarget 顶部的距离
127
126
  */
128
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
129
- runScrollNoThreshold(isScrollingUp, scrollTop) {
127
+ runScrollNoThreshold(_isScrollingUp, _scrollTop) {
130
128
  return;
131
129
  }
132
130
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdui/shared",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "mdui 项目的公共部分",
5
5
  "type": "module",
6
6
  "files": [
@@ -27,10 +27,10 @@
27
27
  },
28
28
  "homepage": "https://github.com/zdhxiong/mdui#readme",
29
29
  "dependencies": {
30
- "@lit/reactive-element": "^2.0.4",
31
- "lit": "^3.1.4",
32
- "ssr-window": "^4.0.2",
33
- "tslib": "^2.6.3",
34
- "@mdui/jq": "^3.0.2"
30
+ "@lit/reactive-element": "^2.1.0",
31
+ "lit": "^3.3.0",
32
+ "ssr-window": "^5.0.0",
33
+ "tslib": "^2.8.1",
34
+ "@mdui/jq": "^3.0.3"
35
35
  }
36
36
  }