jobsys-explore 4.0.22 → 4.0.23

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.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "jobsys-explore": patch
3
+ ---
4
+
5
+ help add function
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # jobsys-explore
2
2
 
3
+ ## 4.0.23
4
+
5
+ ### Patch Changes
6
+
7
+ - address
8
+ - form loading status
9
+ - fixed date modelValue
10
+ - date default value
11
+ - y
12
+ - add exPros parameter
13
+ - select add textInValue
14
+ - option fetch data only once
15
+ - add form reset
16
+ - fixed
17
+ - add sm2 encrypt
18
+ - form expose fetchItem method
19
+ - fixed address modelValue
20
+ - fixed textInValue
21
+ - fixed textInValue
22
+ - help add function
23
+ - add key_cn
24
+ - search watch model value
25
+ - address
26
+ - cascader
27
+ - e
28
+
3
29
  ## 4.0.22
4
30
 
5
31
  ### Patch Changes
@@ -53,21 +53,29 @@ export default defineComponent({
53
53
 
54
54
  /****************** render **********************/
55
55
 
56
+ const helpElem = () => {
57
+ if (props.append) {
58
+ return (
59
+ <Popover v-model:show={state.showHelp} theme={"dark"} placement={"bottom-start"}>
60
+ {{
61
+ default: () => <div class={"ex-field__help"}>{isString(props.help) ? props.help : props.help()}</div>,
62
+ reference: () =>
63
+ props.help ? (
64
+ <span class={"ex-field__help-handler"}>
65
+ <Icon name={"warning-o"}></Icon>
66
+ </span>
67
+ ) : null,
68
+ }}
69
+ </Popover>
70
+ )
71
+ }
72
+ return null
73
+ }
56
74
  const labelElem = () => (
57
75
  <div class={"ex-field__label"}>
58
76
  <span>{props.label || slots.label?.()}</span>
59
77
 
60
- <Popover v-model:show={state.showHelp} theme={"dark"} placement={"bottom-start"}>
61
- {{
62
- default: () => <div class={"ex-field__help"}>{props.help}</div>,
63
- reference: () =>
64
- props.help ? (
65
- <span class={"ex-field__help-handler"}>
66
- <Icon name={"warning-o"}></Icon>
67
- </span>
68
- ) : null,
69
- }}
70
- </Popover>
78
+ {helpElem()}
71
79
  </div>
72
80
  )
73
81
 
@@ -24,7 +24,7 @@ export const defaultFieldProps = {
24
24
  /**
25
25
  * 提示文案
26
26
  */
27
- help: { type: String, default: "" },
27
+ help: { type: [String, Function], default: "" },
28
28
 
29
29
  /**
30
30
  * 元素的append slot