artalk 2.2.8 → 2.2.11
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/Artalk.css +1 -1
- package/dist/Artalk.es.js +225 -121
- package/dist/Artalk.iife.js +1 -1
- package/dist/Artalk.js +1 -1
- package/package.json +1 -1
- package/src/artalk.ts +6 -0
- package/src/components/comment.ts +60 -25
- package/src/components/editor.ts +15 -2
- package/src/components/list-lite.ts +63 -77
- package/src/components/list-nest.ts +66 -0
- package/src/components/list.ts +36 -16
- package/src/defaults.ts +5 -2
- package/src/style/comment.less +21 -0
- package/types/artalk-config.d.ts +5 -2
package/src/style/comment.less
CHANGED
|
@@ -83,6 +83,27 @@
|
|
|
83
83
|
color: var(--at-color-main);
|
|
84
84
|
text-decoration: none;
|
|
85
85
|
}
|
|
86
|
+
|
|
87
|
+
&.atk-reply-at {
|
|
88
|
+
margin-left: 2px;
|
|
89
|
+
|
|
90
|
+
& > .atk-arrow:before {
|
|
91
|
+
content: '';
|
|
92
|
+
vertical-align: middle;
|
|
93
|
+
transform: rotate(90deg);
|
|
94
|
+
border-bottom: 4px solid var(--at-color-grey);
|
|
95
|
+
border-left: 3px solid transparent;
|
|
96
|
+
border-right: 3px solid transparent;
|
|
97
|
+
display: inline-block;
|
|
98
|
+
margin-top: -1px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
& > .atk-nick {
|
|
102
|
+
color: var(--at-color-main);
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
margin-left: 6px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
86
107
|
}
|
|
87
108
|
|
|
88
109
|
.badge() {
|
package/types/artalk-config.d.ts
CHANGED
|
@@ -74,8 +74,11 @@ export default interface ArtalkConfig {
|
|
|
74
74
|
/** 平铺模式 */
|
|
75
75
|
flatMode?: boolean|'auto'
|
|
76
76
|
|
|
77
|
-
/**
|
|
78
|
-
|
|
77
|
+
/** 嵌套模式 · 最大层数 */
|
|
78
|
+
nestMax?: number
|
|
79
|
+
|
|
80
|
+
/** 嵌套模式 · 排序方式 */
|
|
81
|
+
nestSort?: 'DATE_ASC'|'DATE_DESC'
|
|
79
82
|
|
|
80
83
|
/** 显示 UA 徽标 */
|
|
81
84
|
uaBadge?: boolean
|