resolver-egretimp-plus 0.0.152 → 0.0.153
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/dist/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/text.scss +1 -1
- package/dist/web/index.js +2 -2
- package/package.json +4 -4
- package/src/components/packages-web/CustomComponentTabPane.vue +7 -2
- package/src/components/packages-web/ElText.vue +4 -1
- package/src/components/tabs/src/tab-nav.jsx +2 -0
- package/src/components/tabs/src/tab-pane.js +1 -0
- package/src/theme/element/components/text.scss +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resolver-egretimp-plus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.153",
|
|
4
4
|
"description": "交付体验渲染",
|
|
5
5
|
"main": "./dist/web/index.js",
|
|
6
6
|
"module": "./dist/web/index.js",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@vueuse/core": "9.1.0",
|
|
27
27
|
"axios": "^1.7.7",
|
|
28
28
|
"babel-loader": "^9.1.3",
|
|
29
|
+
"chalk": "^5.4.1",
|
|
29
30
|
"consola": "^3.2.3",
|
|
30
31
|
"core-js-pure": "^3.38.1",
|
|
31
32
|
"crypto-js": "^4.2.0",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"gulp-clean-css": "^4.3.0",
|
|
38
39
|
"gulp-rename": "^2.0.0",
|
|
39
40
|
"gulp-sass": "^5.1.0",
|
|
41
|
+
"json-rules-engine": "^7.2.1",
|
|
40
42
|
"less-loader": "^12.2.0",
|
|
41
43
|
"lodash-es": "^4.17.21",
|
|
42
44
|
"mini-css-extract-plugin": "^2.9.0",
|
|
@@ -51,8 +53,6 @@
|
|
|
51
53
|
"vue3-quill": "^0.3.1",
|
|
52
54
|
"vue3-sfc-loader": "^0.9.5",
|
|
53
55
|
"webpack": "^5.90.0",
|
|
54
|
-
"json-rules-engine": "^7.2.1",
|
|
55
56
|
"webpack-cli": "^5.1.4"
|
|
56
|
-
}
|
|
57
|
-
"dependencies": {}
|
|
57
|
+
}
|
|
58
58
|
}
|
|
@@ -17,7 +17,8 @@ import { TabPane } from '../tabs'
|
|
|
17
17
|
|
|
18
18
|
const props = defineProps({
|
|
19
19
|
...commonPropsType,
|
|
20
|
-
...
|
|
20
|
+
...TabPane.props,
|
|
21
|
+
hidden: [String, Boolean]
|
|
21
22
|
})
|
|
22
23
|
const attrs = useAttrs()
|
|
23
24
|
|
|
@@ -33,9 +34,13 @@ const polyProps = computed(() => {
|
|
|
33
34
|
}
|
|
34
35
|
})
|
|
35
36
|
const tabPaneProps = computed(() => {
|
|
36
|
-
|
|
37
|
+
const ret = Object.keys(TabPane.props).reduce((ret, key) => {
|
|
37
38
|
ret[key] = props[key]
|
|
38
39
|
return ret
|
|
39
40
|
}, {})
|
|
41
|
+
if (typeof ret.hidden !== 'boolean') {
|
|
42
|
+
ret.hidden = ret.hidden == '1'
|
|
43
|
+
}
|
|
44
|
+
return ret
|
|
40
45
|
})
|
|
41
46
|
</script>
|
|
@@ -7,18 +7,21 @@
|
|
|
7
7
|
import { ElText } from 'element-plus'
|
|
8
8
|
import { computed, defineProps, inject, getCurrentInstance, useAttrs } from 'vue'
|
|
9
9
|
import { commonPropsType } from '../../utils/index.js'
|
|
10
|
+
|
|
10
11
|
const appContext = getCurrentInstance()?.appContext
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
...commonPropsType,
|
|
13
14
|
...ElText.props,
|
|
15
|
+
fontSize: [String, Number]
|
|
14
16
|
})
|
|
15
17
|
const attrs = useAttrs()
|
|
16
18
|
|
|
17
19
|
const elRowProps = computed(() => {
|
|
18
|
-
|
|
20
|
+
const result = Object.keys(ElText.props).reduce((ret, key) => {
|
|
19
21
|
ret[key] = props[key]
|
|
20
22
|
return ret
|
|
21
23
|
}, {})
|
|
24
|
+
return result
|
|
22
25
|
})
|
|
23
26
|
const buttonActions = inject('buttonActions', {})
|
|
24
27
|
|
|
@@ -311,6 +311,7 @@ const TabNav = defineComponent({
|
|
|
311
311
|
const disabled = pane.props.disabled
|
|
312
312
|
const tabName = pane.props.name ?? pane.index ?? `${index}`
|
|
313
313
|
const closable = !disabled && (pane.isClosable || props.editable)
|
|
314
|
+
const hidden = pane.props.hidden
|
|
314
315
|
pane.index = `${index}`
|
|
315
316
|
|
|
316
317
|
const btnClose = closable ? (
|
|
@@ -339,6 +340,7 @@ const TabNav = defineComponent({
|
|
|
339
340
|
ns.is('closable', closable),
|
|
340
341
|
ns.is('focus', isFocus.value),
|
|
341
342
|
]}
|
|
343
|
+
style={ hidden ? {display: 'none'}: {}}
|
|
342
344
|
id={`tab-${tabName}`}
|
|
343
345
|
key={`tab-${uid}`}
|
|
344
346
|
aria-controls={`pane-${tabName}`}
|