@94ai/nf-search-form 3.2.67 → 3.2.69

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
@@ -1386,6 +1386,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1386
1386
  category?: string | undefined;
1387
1387
  initValue?: any;
1388
1388
  slot?: string | undefined;
1389
+ labelSlot?: string | undefined;
1389
1390
  class?: string | undefined;
1390
1391
  tooltip?: {
1391
1392
  slot: string;
@@ -2289,6 +2290,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
2289
2290
  category?: string | undefined;
2290
2291
  initValue?: any;
2291
2292
  slot?: string | undefined;
2293
+ labelSlot?: string | undefined;
2292
2294
  class?: string | undefined;
2293
2295
  tooltip?: {
2294
2296
  slot: string;
@@ -2858,11 +2860,11 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
2858
2860
  } & (new () => {
2859
2861
  $slots: Partial<Record<string, (_: {
2860
2862
  slot: string;
2863
+ }) => any>> & Partial<Record<string, (_: {
2864
+ slot: string;
2865
+ }) => any>> & Partial<Record<string, (_: {
2866
+ slot: string;
2861
2867
  }) => any>> & {
2862
- default?(_: {
2863
- nam: string;
2864
- slot: string;
2865
- }): any;
2866
2868
  btnBox?(_: {}): any;
2867
2869
  dialogTitle?(_: {
2868
2870
  slot: string;
@@ -7585,7 +7585,6 @@ var _sfc_render = function render6() {
7585
7585
  attrs: {
7586
7586
  "hidden": !!item.hidden,
7587
7587
  "prop": item.prop,
7588
- "label": item.label ? item.isShowColon ? item.label + ":" : item.label : "",
7589
7588
  "rules": item.rules,
7590
7589
  "show-message": item.showMessage,
7591
7590
  "size": item.size,
@@ -7593,7 +7592,11 @@ var _sfc_render = function render6() {
7593
7592
  "required": item.required,
7594
7593
  "label-width": item.labelWidth
7595
7594
  }
7596
- }, [_c("search-form-item", {
7595
+ }, [_vm._t(item.labelSlot, function() {
7596
+ return [_vm._v(" " + _vm._s(item.label ? item.isShowColon ? item.label + ":" : item.label : "") + " ")];
7597
+ }, {
7598
+ "slot": "label"
7599
+ }), _c("search-form-item", {
7597
7600
  key: item.key,
7598
7601
  attrs: {
7599
7602
  "item-width": _vm.itemWidth,
@@ -7606,9 +7609,8 @@ var _sfc_render = function render6() {
7606
7609
  },
7607
7610
  expression: "nfSearchFormModel[item.prop]"
7608
7611
  }
7609
- }, [item.tooltip ? _vm._t("default", null, {
7610
- "slot": item.tooltip.slot,
7611
- "nam": item.tooltip.slot
7612
+ }, [item.tooltip ? _vm._t(item.tooltip.slot, null, {
7613
+ "slot": item.tooltip.slot
7612
7614
  }) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
7613
7615
  "slot": item.slot
7614
7616
  }) : _vm._e()], 2), _vm.closable ? _c("div", {
@@ -7620,7 +7622,7 @@ var _sfc_render = function render6() {
7620
7622
  return _vm.hiddenNfSearchFormItemOptionField(item.prop);
7621
7623
  }
7622
7624
  }
7623
- })]) : _vm._e()], 1) : _vm._e()];
7625
+ })]) : _vm._e()], 2) : _vm._e()];
7624
7626
  }), _vm.btnModel === "inline" ? _c("nf-form-item", {
7625
7627
  ref: "defaultButtonSlot",
7626
7628
  staticClass: "nf-search-form-nf-form-item-btn-box-label",
@@ -7583,7 +7583,6 @@ var _sfc_render = function render6() {
7583
7583
  attrs: {
7584
7584
  "hidden": !!item.hidden,
7585
7585
  "prop": item.prop,
7586
- "label": item.label ? item.isShowColon ? item.label + ":" : item.label : "",
7587
7586
  "rules": item.rules,
7588
7587
  "show-message": item.showMessage,
7589
7588
  "size": item.size,
@@ -7591,7 +7590,11 @@ var _sfc_render = function render6() {
7591
7590
  "required": item.required,
7592
7591
  "label-width": item.labelWidth
7593
7592
  }
7594
- }, [_c("search-form-item", {
7593
+ }, [_vm._t(item.labelSlot, function() {
7594
+ return [_vm._v(" " + _vm._s(item.label ? item.isShowColon ? item.label + ":" : item.label : "") + " ")];
7595
+ }, {
7596
+ "slot": "label"
7597
+ }), _c("search-form-item", {
7595
7598
  key: item.key,
7596
7599
  attrs: {
7597
7600
  "item-width": _vm.itemWidth,
@@ -7604,9 +7607,8 @@ var _sfc_render = function render6() {
7604
7607
  },
7605
7608
  expression: "nfSearchFormModel[item.prop]"
7606
7609
  }
7607
- }, [item.tooltip ? _vm._t("default", null, {
7608
- "slot": item.tooltip.slot,
7609
- "nam": item.tooltip.slot
7610
+ }, [item.tooltip ? _vm._t(item.tooltip.slot, null, {
7611
+ "slot": item.tooltip.slot
7610
7612
  }) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
7611
7613
  "slot": item.slot
7612
7614
  }) : _vm._e()], 2), _vm.closable ? _c("div", {
@@ -7618,7 +7620,7 @@ var _sfc_render = function render6() {
7618
7620
  return _vm.hiddenNfSearchFormItemOptionField(item.prop);
7619
7621
  }
7620
7622
  }
7621
- })]) : _vm._e()], 1) : _vm._e()];
7623
+ })]) : _vm._e()], 2) : _vm._e()];
7622
7624
  }), _vm.btnModel === "inline" ? _c("nf-form-item", {
7623
7625
  ref: "defaultButtonSlot",
7624
7626
  staticClass: "nf-search-form-nf-form-item-btn-box-label",
@@ -446,6 +446,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
446
446
  category?: string | undefined;
447
447
  initValue?: any;
448
448
  slot?: string | undefined;
449
+ labelSlot?: string | undefined;
449
450
  class?: string | undefined;
450
451
  tooltip?: {
451
452
  slot: string;
@@ -1012,11 +1013,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
1012
1013
  resetBtnClass: string;
1013
1014
  }>, Partial<Record<string, (_: {
1014
1015
  slot: string;
1016
+ }) => any>> & Partial<Record<string, (_: {
1017
+ slot: string;
1018
+ }) => any>> & Partial<Record<string, (_: {
1019
+ slot: string;
1015
1020
  }) => any>> & {
1016
- default?(_: {
1017
- nam: string;
1018
- slot: string;
1019
- }): any;
1020
1021
  btnBox?(_: {}): any;
1021
1022
  dialogTitle?(_: {
1022
1023
  slot: string;
package/lib/types.d.ts CHANGED
@@ -20,6 +20,7 @@ export type NfSearchFormItemOption = {
20
20
  category?: string;
21
21
  initValue?: any;
22
22
  slot?: string;
23
+ labelSlot?: string;
23
24
  class?: string;
24
25
  tooltip?: {
25
26
  slot: string;
@@ -45,7 +45,6 @@
45
45
  :hidden="!!item.hidden"
46
46
  :key="item.key"
47
47
  :prop="item.prop"
48
- :label="item.label ? (item.isShowColon?item.label + ':':item.label) : ''"
49
48
  :rules="item.rules"
50
49
  :show-message="item.showMessage"
51
50
  :size="item.size"
@@ -53,13 +52,16 @@
53
52
  :required="item.required"
54
53
  :label-width="item.labelWidth"
55
54
  >
55
+ <slot :name="item.labelSlot" slot="label">
56
+ {{ item.label ? (item.isShowColon?item.label + ':':item.label) : '' }}
57
+ </slot>
56
58
  <search-form-item
57
59
  :key="item.key"
58
60
  :item-width="itemWidth"
59
61
  v-model="nfSearchFormModel[item.prop]"
60
62
  :item-options="item">
61
63
  <!-- 定制化SearchItem?提示-->
62
- <slot :nam="item.tooltip.slot" v-if="item.tooltip" :slot="item.tooltip.slot" />
64
+ <slot :name="item.tooltip.slot" v-if="item.tooltip" :slot="item.tooltip.slot" />
63
65
  <!-- 定制化SearchItem插槽-->
64
66
  <slot :name="item.slot" v-if="item.slot" :slot="item.slot" />
65
67
  </search-form-item>
package/package/types.ts CHANGED
@@ -35,6 +35,10 @@ export type NfSearchFormItemOption = {
35
35
  * 定制化SearchItem插槽
36
36
  */
37
37
  slot?: string,
38
+ /**
39
+ * 定制化labelSlot
40
+ */
41
+ labelSlot?: string,
38
42
  /**
39
43
  * 定制化SearchItem类名
40
44
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-search-form",
3
- "version": "3.2.67",
3
+ "version": "3.2.69",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,22 +14,22 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^3.2.67",
18
- "@94ai/nf-button": "^3.2.67",
19
- "@94ai/nf-double-half-year": "^3.2.67",
20
- "@94ai/nf-double-quarter": "^3.2.67",
21
- "@94ai/nf-double-week": "^3.2.67",
22
- "@94ai/nf-double-year": "^3.2.67",
23
- "@94ai/nf-drawer": "^3.2.67",
24
- "@94ai/nf-form": "^3.2.67",
25
- "@94ai/nf-form-item": "^3.2.67",
26
- "@94ai/nf-half-year-picker": "^3.2.67",
27
- "@94ai/nf-lazy-select": "^3.2.67",
28
- "@94ai/nf-message": "^3.2.67",
29
- "@94ai/nf-quarter-picker": "^3.2.67",
30
- "@94ai/nf-select-transfer": "^3.2.67",
31
- "@94ai/nf-theme-chalk": "^3.2.67",
32
- "@94ai/nf-virtual-select": "^3.2.67",
17
+ "@94ai/common-utils": "^3.2.69",
18
+ "@94ai/nf-button": "^3.2.69",
19
+ "@94ai/nf-double-half-year": "^3.2.69",
20
+ "@94ai/nf-double-quarter": "^3.2.69",
21
+ "@94ai/nf-double-week": "^3.2.69",
22
+ "@94ai/nf-double-year": "^3.2.69",
23
+ "@94ai/nf-drawer": "^3.2.69",
24
+ "@94ai/nf-form": "^3.2.69",
25
+ "@94ai/nf-form-item": "^3.2.69",
26
+ "@94ai/nf-half-year-picker": "^3.2.69",
27
+ "@94ai/nf-lazy-select": "^3.2.69",
28
+ "@94ai/nf-message": "^3.2.69",
29
+ "@94ai/nf-quarter-picker": "^3.2.69",
30
+ "@94ai/nf-select-transfer": "^3.2.69",
31
+ "@94ai/nf-theme-chalk": "^3.2.69",
32
+ "@94ai/nf-virtual-select": "^3.2.69",
33
33
  "idb-keyval": "^6.2.1",
34
34
  "resize-observer-polyfill": "^1.5.1",
35
35
  "vue-demi": "^0.14.5",
@@ -48,5 +48,5 @@
48
48
  "types": "lib/index.d.ts",
49
49
  "main": "lib/nf-search-form.cjs.js",
50
50
  "module": "lib/nf-search-form.esm-bundler.js",
51
- "gitHead": "8358310d86c4490fff7acb7ba2cf1d7b1230f80d"
51
+ "gitHead": "5a0c98a10f4bc189c07b4e947ffedb4f9aa0c568"
52
52
  }