@94ai/nf-search-form 3.1.44 → 3.1.45
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.
|
@@ -308,9 +308,6 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
308
308
|
return props.itemOptions.slot || "";
|
|
309
309
|
});
|
|
310
310
|
const width = vueDemi.computed(() => {
|
|
311
|
-
if (isDatePickerDateRange.value) {
|
|
312
|
-
return props.itemWidth * 2 + props.labelWidth + 10 + "px";
|
|
313
|
-
}
|
|
314
311
|
return props.itemWidth + "px";
|
|
315
312
|
});
|
|
316
313
|
const currentVal = vueDemi.computed({
|
|
@@ -639,7 +636,6 @@ var _sfc_render$2 = function render3() {
|
|
|
639
636
|
}
|
|
640
637
|
}, "nf-double-half-year", _vm.bindProps, false), _vm.bindEvents)) : _vm._e(), _vm.isHalfYearPicker ? _c("nf-half-year-picker", _vm._g(_vm._b({
|
|
641
638
|
attrs: {
|
|
642
|
-
"placeholder": "请选择半年",
|
|
643
639
|
"placeholder": _vm.itemOptions.placeholder || "请选择半年"
|
|
644
640
|
},
|
|
645
641
|
model: {
|
|
@@ -1173,7 +1169,7 @@ __sfc_main.props = {
|
|
|
1173
1169
|
key: "itemWidth",
|
|
1174
1170
|
required: false,
|
|
1175
1171
|
type: Number,
|
|
1176
|
-
default:
|
|
1172
|
+
default: 227
|
|
1177
1173
|
},
|
|
1178
1174
|
btnItems: {
|
|
1179
1175
|
key: "btnItems",
|
|
@@ -1209,7 +1205,7 @@ __sfc_main.props = {
|
|
|
1209
1205
|
key: "checkBtnType",
|
|
1210
1206
|
required: false,
|
|
1211
1207
|
type: String,
|
|
1212
|
-
default: "
|
|
1208
|
+
default: ""
|
|
1213
1209
|
},
|
|
1214
1210
|
checkBtnPlain: {
|
|
1215
1211
|
key: "checkBtnPlain",
|
|
@@ -1335,7 +1331,7 @@ __sfc_main.props = {
|
|
|
1335
1331
|
key: "queryBtnPlain",
|
|
1336
1332
|
required: false,
|
|
1337
1333
|
type: Boolean,
|
|
1338
|
-
default:
|
|
1334
|
+
default: false
|
|
1339
1335
|
},
|
|
1340
1336
|
queryBtnSize: {
|
|
1341
1337
|
key: "queryBtnSize",
|
|
@@ -1765,7 +1761,7 @@ var _sfc_render = function render5() {
|
|
|
1765
1761
|
attrs: {
|
|
1766
1762
|
"hidden": !!item.hidden,
|
|
1767
1763
|
"prop": item.prop,
|
|
1768
|
-
"label": item.label ?
|
|
1764
|
+
"label": item.label ? item.isShowColon ? item.label + ":" : item.label : "",
|
|
1769
1765
|
"rules": item.rules,
|
|
1770
1766
|
"show-message": item.showMessage,
|
|
1771
1767
|
"size": item.size,
|
|
@@ -1853,11 +1849,17 @@ var _sfc_render = function render5() {
|
|
|
1853
1849
|
on: {
|
|
1854
1850
|
"click": _vm.resetNfSearchFormModel
|
|
1855
1851
|
}
|
|
1856
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(),
|
|
1852
|
+
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _c("el-tooltip", {
|
|
1853
|
+
staticClass: "item",
|
|
1854
|
+
attrs: {
|
|
1855
|
+
"effect": "dark",
|
|
1856
|
+
"content": "添加筛选条件",
|
|
1857
|
+
"placement": "bottom"
|
|
1858
|
+
}
|
|
1859
|
+
}, [_vm.isShowAdd ? _c("el-button", {
|
|
1857
1860
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
1858
1861
|
attrs: {
|
|
1859
1862
|
"type": _vm.checkBtnType,
|
|
1860
|
-
"icon": _vm.checkBtnIcon,
|
|
1861
1863
|
"plain": _vm.checkBtnPlain,
|
|
1862
1864
|
"size": _vm.checkBtnSize,
|
|
1863
1865
|
"round": _vm.checkBtnRound,
|
|
@@ -1871,7 +1873,9 @@ var _sfc_render = function render5() {
|
|
|
1871
1873
|
_vm.configNfSearchItemVisibleDialog = true;
|
|
1872
1874
|
}
|
|
1873
1875
|
}
|
|
1874
|
-
}, [
|
|
1876
|
+
}, [_c("i", {
|
|
1877
|
+
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
1878
|
+
})]) : _vm._e()], 1), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
1875
1879
|
staticClass: "nf-flex nf-flex-align-items nf-mt10"
|
|
1876
1880
|
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("el-button", {
|
|
1877
1881
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
@@ -306,9 +306,6 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
306
306
|
return props.itemOptions.slot || "";
|
|
307
307
|
});
|
|
308
308
|
const width = computed(() => {
|
|
309
|
-
if (isDatePickerDateRange.value) {
|
|
310
|
-
return props.itemWidth * 2 + props.labelWidth + 10 + "px";
|
|
311
|
-
}
|
|
312
309
|
return props.itemWidth + "px";
|
|
313
310
|
});
|
|
314
311
|
const currentVal = computed({
|
|
@@ -637,7 +634,6 @@ var _sfc_render$2 = function render3() {
|
|
|
637
634
|
}
|
|
638
635
|
}, "nf-double-half-year", _vm.bindProps, false), _vm.bindEvents)) : _vm._e(), _vm.isHalfYearPicker ? _c("nf-half-year-picker", _vm._g(_vm._b({
|
|
639
636
|
attrs: {
|
|
640
|
-
"placeholder": "请选择半年",
|
|
641
637
|
"placeholder": _vm.itemOptions.placeholder || "请选择半年"
|
|
642
638
|
},
|
|
643
639
|
model: {
|
|
@@ -1171,7 +1167,7 @@ __sfc_main.props = {
|
|
|
1171
1167
|
key: "itemWidth",
|
|
1172
1168
|
required: false,
|
|
1173
1169
|
type: Number,
|
|
1174
|
-
default:
|
|
1170
|
+
default: 227
|
|
1175
1171
|
},
|
|
1176
1172
|
btnItems: {
|
|
1177
1173
|
key: "btnItems",
|
|
@@ -1207,7 +1203,7 @@ __sfc_main.props = {
|
|
|
1207
1203
|
key: "checkBtnType",
|
|
1208
1204
|
required: false,
|
|
1209
1205
|
type: String,
|
|
1210
|
-
default: "
|
|
1206
|
+
default: ""
|
|
1211
1207
|
},
|
|
1212
1208
|
checkBtnPlain: {
|
|
1213
1209
|
key: "checkBtnPlain",
|
|
@@ -1333,7 +1329,7 @@ __sfc_main.props = {
|
|
|
1333
1329
|
key: "queryBtnPlain",
|
|
1334
1330
|
required: false,
|
|
1335
1331
|
type: Boolean,
|
|
1336
|
-
default:
|
|
1332
|
+
default: false
|
|
1337
1333
|
},
|
|
1338
1334
|
queryBtnSize: {
|
|
1339
1335
|
key: "queryBtnSize",
|
|
@@ -1763,7 +1759,7 @@ var _sfc_render = function render5() {
|
|
|
1763
1759
|
attrs: {
|
|
1764
1760
|
"hidden": !!item.hidden,
|
|
1765
1761
|
"prop": item.prop,
|
|
1766
|
-
"label": item.label ?
|
|
1762
|
+
"label": item.label ? item.isShowColon ? item.label + ":" : item.label : "",
|
|
1767
1763
|
"rules": item.rules,
|
|
1768
1764
|
"show-message": item.showMessage,
|
|
1769
1765
|
"size": item.size,
|
|
@@ -1851,11 +1847,17 @@ var _sfc_render = function render5() {
|
|
|
1851
1847
|
on: {
|
|
1852
1848
|
"click": _vm.resetNfSearchFormModel
|
|
1853
1849
|
}
|
|
1854
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(),
|
|
1850
|
+
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm._e(), _c("el-tooltip", {
|
|
1851
|
+
staticClass: "item",
|
|
1852
|
+
attrs: {
|
|
1853
|
+
"effect": "dark",
|
|
1854
|
+
"content": "添加筛选条件",
|
|
1855
|
+
"placement": "bottom"
|
|
1856
|
+
}
|
|
1857
|
+
}, [_vm.isShowAdd ? _c("el-button", {
|
|
1855
1858
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
1856
1859
|
attrs: {
|
|
1857
1860
|
"type": _vm.checkBtnType,
|
|
1858
|
-
"icon": _vm.checkBtnIcon,
|
|
1859
1861
|
"plain": _vm.checkBtnPlain,
|
|
1860
1862
|
"size": _vm.checkBtnSize,
|
|
1861
1863
|
"round": _vm.checkBtnRound,
|
|
@@ -1869,7 +1871,9 @@ var _sfc_render = function render5() {
|
|
|
1869
1871
|
_vm.configNfSearchItemVisibleDialog = true;
|
|
1870
1872
|
}
|
|
1871
1873
|
}
|
|
1872
|
-
}, [
|
|
1874
|
+
}, [_c("i", {
|
|
1875
|
+
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
1876
|
+
})]) : _vm._e()], 1), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
1873
1877
|
staticClass: "nf-flex nf-flex-align-items nf-mt10"
|
|
1874
1878
|
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("el-button", {
|
|
1875
1879
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
@@ -104,7 +104,6 @@
|
|
|
104
104
|
v-model="currentVal"
|
|
105
105
|
v-bind="bindProps"
|
|
106
106
|
v-on="bindEvents"
|
|
107
|
-
placeholder="请选择半年"
|
|
108
107
|
:placeholder="itemOptions.placeholder || '请选择半年'"
|
|
109
108
|
/>
|
|
110
109
|
<nf-quarter-picker
|
|
@@ -212,9 +211,6 @@ const slotName = computed(() => {
|
|
|
212
211
|
})
|
|
213
212
|
|
|
214
213
|
const width = computed(() => {
|
|
215
|
-
if (isDatePickerDateRange.value) {
|
|
216
|
-
return props.itemWidth * 2 + props.labelWidth + 10 + 'px'
|
|
217
|
-
}
|
|
218
214
|
return props.itemWidth + 'px'
|
|
219
215
|
})
|
|
220
216
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
:hidden="!!item.hidden"
|
|
30
30
|
:key="newKeys[index]"
|
|
31
31
|
:prop="item.prop"
|
|
32
|
-
:label="item.label ? (
|
|
32
|
+
:label="item.label ? (item.isShowColon?item.label + ':':item.label) : ''"
|
|
33
33
|
:rules="item.rules"
|
|
34
34
|
:show-message="item.showMessage"
|
|
35
35
|
:size="item.size"
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
@click="resetNfSearchFormModel"
|
|
98
98
|
>{{ resetBtnText }}
|
|
99
99
|
</el-button>
|
|
100
|
+
<el-tooltip class="item" effect="dark" content="添加筛选条件" placement="bottom">
|
|
100
101
|
<el-button v-if="isShowAdd"
|
|
101
102
|
:type="checkBtnType"
|
|
102
|
-
:icon="checkBtnIcon"
|
|
103
103
|
:plain="checkBtnPlain"
|
|
104
104
|
:size="checkBtnSize"
|
|
105
105
|
:round="checkBtnRound"
|
|
@@ -109,8 +109,9 @@
|
|
|
109
109
|
:class="(checkBtnClass || '') + ' nf-btn-check'"
|
|
110
110
|
@click.stop="configNfSearchItemVisibleDialog = true"
|
|
111
111
|
>
|
|
112
|
-
|
|
112
|
+
<i class="iconfont icon-shaixuan1 nf-fs12"></i>
|
|
113
113
|
</el-button>
|
|
114
|
+
</el-tooltip>
|
|
114
115
|
<slot v-if="isShowBtnBoxSlot && reverseBtnSlot" name="btnBox" />
|
|
115
116
|
</div>
|
|
116
117
|
</nf-form-item>
|
|
@@ -390,7 +391,7 @@ const props = withDefaults(defineProps<{
|
|
|
390
391
|
formOptions: () => [],
|
|
391
392
|
showItems:() => [],
|
|
392
393
|
closable: false,
|
|
393
|
-
itemWidth:
|
|
394
|
+
itemWidth: 227,
|
|
394
395
|
btnItems: () => '',
|
|
395
396
|
|
|
396
397
|
isShowAdd: true,
|
|
@@ -399,7 +400,7 @@ const props = withDefaults(defineProps<{
|
|
|
399
400
|
|
|
400
401
|
checkBtnIcon: 'el-icon-plus',
|
|
401
402
|
checkBtnPlain: true,
|
|
402
|
-
checkBtnType: '
|
|
403
|
+
checkBtnType: '',
|
|
403
404
|
checkBtnSize: 'mini',
|
|
404
405
|
checkBtnRound: false,
|
|
405
406
|
checkBtnCircle: false,
|
|
@@ -409,7 +410,7 @@ const props = withDefaults(defineProps<{
|
|
|
409
410
|
checkBtnClass: '',
|
|
410
411
|
|
|
411
412
|
queryBtnIcon: '',
|
|
412
|
-
queryBtnPlain:
|
|
413
|
+
queryBtnPlain: false,
|
|
413
414
|
queryBtnType: 'primary',
|
|
414
415
|
queryBtnSize: 'mini',
|
|
415
416
|
queryBtnRound: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-search-form",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.45",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-action": "^3.1.
|
|
18
|
-
"@94ai/nf-double-half-year": "^3.1.
|
|
19
|
-
"@94ai/nf-double-quarter": "^3.1.
|
|
20
|
-
"@94ai/nf-double-week": "^3.1.
|
|
21
|
-
"@94ai/nf-double-year": "^3.1.
|
|
22
|
-
"@94ai/nf-form": "^3.1.
|
|
23
|
-
"@94ai/nf-form-item": "^3.1.
|
|
24
|
-
"@94ai/nf-half-year-picker": "^3.1.
|
|
25
|
-
"@94ai/nf-quarter-picker": "^3.1.
|
|
26
|
-
"@94ai/nf-select-transfer": "^3.1.
|
|
27
|
-
"@94ai/nf-theme-chalk": "^3.1.
|
|
28
|
-
"@94ai/nf-virtual-select": "^3.1.
|
|
17
|
+
"@94ai/nf-action": "^3.1.45",
|
|
18
|
+
"@94ai/nf-double-half-year": "^3.1.45",
|
|
19
|
+
"@94ai/nf-double-quarter": "^3.1.45",
|
|
20
|
+
"@94ai/nf-double-week": "^3.1.45",
|
|
21
|
+
"@94ai/nf-double-year": "^3.1.45",
|
|
22
|
+
"@94ai/nf-form": "^3.1.45",
|
|
23
|
+
"@94ai/nf-form-item": "^3.1.45",
|
|
24
|
+
"@94ai/nf-half-year-picker": "^3.1.45",
|
|
25
|
+
"@94ai/nf-quarter-picker": "^3.1.45",
|
|
26
|
+
"@94ai/nf-select-transfer": "^3.1.45",
|
|
27
|
+
"@94ai/nf-theme-chalk": "^3.1.45",
|
|
28
|
+
"@94ai/nf-virtual-select": "^3.1.45",
|
|
29
29
|
"vue-demi": "^0.14.5"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"types": "lib/index.d.ts",
|
|
42
42
|
"main": "lib/nf-search-form.cjs.js",
|
|
43
43
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "c9ffdc2771406bc6d0c6531ab8cf210d07304096"
|
|
45
45
|
}
|