@94ai/nf-conditions 8.1.6 → 8.1.9
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/lib/index.d.ts
CHANGED
|
@@ -283,6 +283,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
283
283
|
type: import("vue-demi").PropType<boolean>;
|
|
284
284
|
default: boolean;
|
|
285
285
|
};
|
|
286
|
+
outLogicMergeDesc: {
|
|
287
|
+
type: import("vue-demi").PropType<string>;
|
|
288
|
+
default: string;
|
|
289
|
+
};
|
|
286
290
|
}>>, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
287
291
|
tag: {
|
|
288
292
|
type: import("vue-demi").PropType<string>;
|
|
@@ -567,6 +571,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
567
571
|
type: import("vue-demi").PropType<boolean>;
|
|
568
572
|
default: boolean;
|
|
569
573
|
};
|
|
574
|
+
outLogicMergeDesc: {
|
|
575
|
+
type: import("vue-demi").PropType<string>;
|
|
576
|
+
default: string;
|
|
577
|
+
};
|
|
570
578
|
}>>, {
|
|
571
579
|
reduceCondition: (event: Record<string, any>) => void;
|
|
572
580
|
addCondition: (event: Record<string, any>) => void;
|
|
@@ -627,6 +635,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
627
635
|
addConditionDesc: string;
|
|
628
636
|
deleteConditionDesc: string;
|
|
629
637
|
initAddRuleData: boolean;
|
|
638
|
+
outLogicMergeDesc: string;
|
|
630
639
|
}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
631
640
|
tag: {
|
|
632
641
|
type: import("vue-demi").PropType<string>;
|
|
@@ -911,6 +920,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
911
920
|
type: import("vue-demi").PropType<boolean>;
|
|
912
921
|
default: boolean;
|
|
913
922
|
};
|
|
923
|
+
outLogicMergeDesc: {
|
|
924
|
+
type: import("vue-demi").PropType<string>;
|
|
925
|
+
default: string;
|
|
926
|
+
};
|
|
914
927
|
}>>> & import("vue-demi").ShallowUnwrapRef<{
|
|
915
928
|
addCondition: () => Promise<void>;
|
|
916
929
|
removeCondition: (j: any) => void;
|
|
@@ -1346,6 +1359,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1346
1359
|
type: import("vue-demi").PropType<boolean>;
|
|
1347
1360
|
default: boolean;
|
|
1348
1361
|
};
|
|
1362
|
+
outLogicMergeDesc: {
|
|
1363
|
+
type: import("vue-demi").PropType<string>;
|
|
1364
|
+
default: string;
|
|
1365
|
+
};
|
|
1349
1366
|
}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
1350
1367
|
tag: {
|
|
1351
1368
|
type: import("vue-demi").PropType<string>;
|
|
@@ -1630,6 +1647,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1630
1647
|
type: import("vue-demi").PropType<boolean>;
|
|
1631
1648
|
default: boolean;
|
|
1632
1649
|
};
|
|
1650
|
+
outLogicMergeDesc: {
|
|
1651
|
+
type: import("vue-demi").PropType<string>;
|
|
1652
|
+
default: string;
|
|
1653
|
+
};
|
|
1633
1654
|
}>>, {
|
|
1634
1655
|
addCondition: () => Promise<void>;
|
|
1635
1656
|
removeCondition: (j: any) => void;
|
|
@@ -1841,6 +1862,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1841
1862
|
addConditionDesc: string;
|
|
1842
1863
|
deleteConditionDesc: string;
|
|
1843
1864
|
initAddRuleData: boolean;
|
|
1865
|
+
outLogicMergeDesc: string;
|
|
1844
1866
|
}> & {
|
|
1845
1867
|
props: {
|
|
1846
1868
|
tag: {
|
|
@@ -2126,6 +2148,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2126
2148
|
type: import("vue-demi").PropType<boolean>;
|
|
2127
2149
|
default: boolean;
|
|
2128
2150
|
};
|
|
2151
|
+
outLogicMergeDesc: {
|
|
2152
|
+
type: import("vue-demi").PropType<string>;
|
|
2153
|
+
default: string;
|
|
2154
|
+
};
|
|
2129
2155
|
};
|
|
2130
2156
|
} & PluginObject<undefined>;
|
|
2131
2157
|
export default _default;
|
package/lib/nf-conditions.cjs.js
CHANGED
|
@@ -147,6 +147,12 @@ __sfc_main.props = {
|
|
|
147
147
|
type: String,
|
|
148
148
|
default: "且"
|
|
149
149
|
},
|
|
150
|
+
outLogicMergeDesc: {
|
|
151
|
+
key: "outLogicMergeDesc",
|
|
152
|
+
required: false,
|
|
153
|
+
type: String,
|
|
154
|
+
default: "或"
|
|
155
|
+
},
|
|
150
156
|
placeholder: {
|
|
151
157
|
key: "placeholder",
|
|
152
158
|
required: false,
|
|
@@ -564,7 +570,17 @@ var _sfc_render = function render() {
|
|
|
564
570
|
"onChange": () => _vm.$emit("ruleChange", _vm.plan[_vm.conditionsKey])
|
|
565
571
|
}
|
|
566
572
|
})], 1);
|
|
573
|
+
}), _vm.plan[_vm.conditionsKey].length > 0 ? [_c("div", {
|
|
574
|
+
staticClass: "nf-line-icon-pre-circle out"
|
|
575
|
+
}), _c("div", {
|
|
576
|
+
staticClass: "nf-line-icon-pre out"
|
|
577
|
+
}), _vm.plan[_vm.conditionsKey].length > 1 ? _c("div", {
|
|
578
|
+
staticClass: "nf-also-icon out"
|
|
579
|
+
}, [_vm._v(" " + _vm._s(_vm.outLogicMergeDesc) + " ")]) : _vm._e(), _c("div", {
|
|
580
|
+
staticClass: "nf-line-icon-after out"
|
|
567
581
|
}), _c("div", {
|
|
582
|
+
staticClass: "nf-line-icon-after-circle"
|
|
583
|
+
})] : _vm._e(), _c("div", {
|
|
568
584
|
staticClass: "condition-footer"
|
|
569
585
|
}, [!_vm.hiddenConditionAdd && (!_vm.conditionLimit || ((_a = _vm.plan[_vm.conditionsKey]) == null ? void 0 : _a.length) < _vm.conditionLimit) ? _c("span", {
|
|
570
586
|
staticClass: "add-condition",
|
|
@@ -145,6 +145,12 @@ __sfc_main.props = {
|
|
|
145
145
|
type: String,
|
|
146
146
|
default: "且"
|
|
147
147
|
},
|
|
148
|
+
outLogicMergeDesc: {
|
|
149
|
+
key: "outLogicMergeDesc",
|
|
150
|
+
required: false,
|
|
151
|
+
type: String,
|
|
152
|
+
default: "或"
|
|
153
|
+
},
|
|
148
154
|
placeholder: {
|
|
149
155
|
key: "placeholder",
|
|
150
156
|
required: false,
|
|
@@ -562,7 +568,17 @@ var _sfc_render = function render() {
|
|
|
562
568
|
"onChange": () => _vm.$emit("ruleChange", _vm.plan[_vm.conditionsKey])
|
|
563
569
|
}
|
|
564
570
|
})], 1);
|
|
571
|
+
}), _vm.plan[_vm.conditionsKey].length > 0 ? [_c("div", {
|
|
572
|
+
staticClass: "nf-line-icon-pre-circle out"
|
|
573
|
+
}), _c("div", {
|
|
574
|
+
staticClass: "nf-line-icon-pre out"
|
|
575
|
+
}), _vm.plan[_vm.conditionsKey].length > 1 ? _c("div", {
|
|
576
|
+
staticClass: "nf-also-icon out"
|
|
577
|
+
}, [_vm._v(" " + _vm._s(_vm.outLogicMergeDesc) + " ")]) : _vm._e(), _c("div", {
|
|
578
|
+
staticClass: "nf-line-icon-after out"
|
|
565
579
|
}), _c("div", {
|
|
580
|
+
staticClass: "nf-line-icon-after-circle"
|
|
581
|
+
})] : _vm._e(), _c("div", {
|
|
566
582
|
staticClass: "condition-footer"
|
|
567
583
|
}, [!_vm.hiddenConditionAdd && (!_vm.conditionLimit || ((_a = _vm.plan[_vm.conditionsKey]) == null ? void 0 : _a.length) < _vm.conditionLimit) ? _c("span", {
|
|
568
584
|
staticClass: "add-condition",
|
|
@@ -22,6 +22,7 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
22
22
|
statusIcon?: boolean | undefined;
|
|
23
23
|
validPrefix?: string | undefined;
|
|
24
24
|
logicMergeDesc?: string | undefined;
|
|
25
|
+
outLogicMergeDesc?: string | undefined;
|
|
25
26
|
placeholder?: string | undefined;
|
|
26
27
|
numberRequireDesc?: string | undefined;
|
|
27
28
|
commonLenLimitDesc?: string | undefined;
|
|
@@ -79,6 +80,7 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
79
80
|
deleteConditionDesc: string;
|
|
80
81
|
size: string;
|
|
81
82
|
logicMergeDesc: string;
|
|
83
|
+
outLogicMergeDesc: string;
|
|
82
84
|
placeholder: string;
|
|
83
85
|
numberRequireDesc: string;
|
|
84
86
|
commonLenLimitDesc: string;
|
|
@@ -339,6 +341,7 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
339
341
|
statusIcon?: boolean | undefined;
|
|
340
342
|
validPrefix?: string | undefined;
|
|
341
343
|
logicMergeDesc?: string | undefined;
|
|
344
|
+
outLogicMergeDesc?: string | undefined;
|
|
342
345
|
placeholder?: string | undefined;
|
|
343
346
|
numberRequireDesc?: string | undefined;
|
|
344
347
|
commonLenLimitDesc?: string | undefined;
|
|
@@ -396,6 +399,7 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
396
399
|
deleteConditionDesc: string;
|
|
397
400
|
size: string;
|
|
398
401
|
logicMergeDesc: string;
|
|
402
|
+
outLogicMergeDesc: string;
|
|
399
403
|
placeholder: string;
|
|
400
404
|
numberRequireDesc: string;
|
|
401
405
|
commonLenLimitDesc: string;
|
|
@@ -537,6 +541,7 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
537
541
|
addConditionDesc: string;
|
|
538
542
|
deleteConditionDesc: string;
|
|
539
543
|
initAddRuleData: boolean;
|
|
544
|
+
outLogicMergeDesc: string;
|
|
540
545
|
}>;
|
|
541
546
|
export default _default;
|
|
542
547
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -80,6 +80,16 @@
|
|
|
80
80
|
@onChange="() => $emit('ruleChange' , plan[conditionsKey])"
|
|
81
81
|
/>
|
|
82
82
|
</el-form-item>
|
|
83
|
+
<template v-if="plan[conditionsKey].length > 0">
|
|
84
|
+
<div class="nf-line-icon-pre-circle out" />
|
|
85
|
+
<div class="nf-line-icon-pre out" />
|
|
86
|
+
<div class="nf-also-icon out" v-if="plan[conditionsKey].length > 1">
|
|
87
|
+
{{ outLogicMergeDesc }}
|
|
88
|
+
</div>
|
|
89
|
+
<div class="nf-line-icon-after out" />
|
|
90
|
+
<div class="nf-line-icon-after-circle" />
|
|
91
|
+
</template>
|
|
92
|
+
|
|
83
93
|
<div class="condition-footer">
|
|
84
94
|
<span class="add-condition" @click="addCondition()" v-if="!hiddenConditionAdd && (!conditionLimit || plan[conditionsKey]?.length < conditionLimit)">
|
|
85
95
|
<span class="add-condition-icon">{{ addConditionDesc }}</span>
|
|
@@ -147,6 +157,7 @@ const props = withDefaults(defineProps<{
|
|
|
147
157
|
* 国际化
|
|
148
158
|
*/
|
|
149
159
|
logicMergeDesc?: string,
|
|
160
|
+
outLogicMergeDesc?: string,
|
|
150
161
|
placeholder?: string,
|
|
151
162
|
numberRequireDesc?: string,
|
|
152
163
|
commonLenLimitDesc?: string,
|
|
@@ -229,6 +240,7 @@ const props = withDefaults(defineProps<{
|
|
|
229
240
|
|
|
230
241
|
size: 'mini',
|
|
231
242
|
logicMergeDesc: '且',
|
|
243
|
+
outLogicMergeDesc: '或',
|
|
232
244
|
placeholder: '请选择',
|
|
233
245
|
numberRequireDesc: '请输入数字',
|
|
234
246
|
commonLenLimitDesc: '总文案长度不超过2000中文字符',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-conditions",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.9",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/ui/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^8.1.
|
|
18
|
-
"@94ai/nf-rules": "^8.1.
|
|
19
|
-
"@94ai/nf-theme-chalk": "^8.1.
|
|
17
|
+
"@94ai/common-utils": "^8.1.9",
|
|
18
|
+
"@94ai/nf-rules": "^8.1.9",
|
|
19
|
+
"@94ai/nf-theme-chalk": "^8.1.9",
|
|
20
20
|
"vue-demi": "^0.14.5"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"types": "lib/index.d.ts",
|
|
33
33
|
"main": "lib/nf-conditions.cjs.js",
|
|
34
34
|
"module": "lib/nf-conditions.esm-bundler.js",
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "eb0b1c5ee29b277208e13eeebdb43d1b07554ce3"
|
|
36
36
|
}
|