feat: order

This commit is contained in:
lisonge
2024-01-27 21:32:30 +08:00
parent 0c337abd47
commit 2e6a77e86b

View File

@@ -6,7 +6,7 @@ type RawCommonProps = {
*
* 当前规则的冷却时间, 或者执行 action 最小间隔
*
* 默认值: 1000
* @default 1000
*/
actionCd?: number;
@@ -83,10 +83,10 @@ type RawCommonProps = {
actionMaximum?: number;
/**
* 默认值: `activity`
*
* 当规则因为 matchTime/actionMaximum 而休眠时, 如何唤醒此规则
*
* @default 'activity'
*
* @example
* 'activity'
* // 当 activity 刷新时, 唤醒规则
@@ -117,6 +117,18 @@ type RawCommonProps = {
*/
actionMaximumKey?: number;
/**
* 规则参与匹配的顺序, 数字越小越先匹配
*
* 如果两个规则 order 相同, 按照 groups 中的声明顺序匹配, app 类型规则顺序优先于 global 类型规则
*
* 属于不同订阅的规则按照订阅列表中顺序执行, 长按订阅卡片可以拖动排序
*
* @default 0
*
*/
order?: number;
/**
* 当前 规则/规则组 的快照链接, 增强订阅可维护性
*/