ll-plus 2.6.6 → 2.6.7
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/es/packages/components/icon-base/src/icon-base.vue2.mjs +6 -7
- package/es/packages/components/icon-base/src/icon-base.vue2.mjs.map +1 -1
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +5 -6
- package/index.full.min.js +1 -1
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +1 -1
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +5 -6
- package/lib/packages/components/icon-base/src/icon-base.vue2.js +5 -6
- package/lib/packages/components/icon-base/src/icon-base.vue2.js.map +1 -1
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/types/packages/utils/props/runtime.d.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, normalizeClass, withCtx, normalizeStyle, unref, toDisplayString } from 'vue';
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, normalizeClass, withCtx, createVNode, normalizeStyle, unref, toDisplayString } from 'vue';
|
|
2
2
|
import '../../../utils/index.mjs';
|
|
3
3
|
import { iconBaseProps } from './icon-base.mjs';
|
|
4
4
|
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
@@ -31,14 +31,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
null,
|
|
32
32
|
[
|
|
33
33
|
createCommentVNode(" \u6709\u6587\u5B57\u63D0\u793A\u5F39\u7A97 "),
|
|
34
|
-
_ctx.isShowTooltip ? (openBlock(), createBlock(_component_ll_tooltip, {
|
|
34
|
+
_ctx.isShowTooltip && _ctx.isShow ? (openBlock(), createBlock(_component_ll_tooltip, {
|
|
35
35
|
key: 0,
|
|
36
36
|
tip: _ctx.tooltipTitle,
|
|
37
37
|
class: normalizeClass(_ctx.tooltipClass)
|
|
38
38
|
}, {
|
|
39
39
|
default: withCtx(() => [
|
|
40
|
-
|
|
41
|
-
key: 0,
|
|
40
|
+
createVNode(_component_a_button, {
|
|
42
41
|
type: "text",
|
|
43
42
|
disabled: _ctx.disabled,
|
|
44
43
|
class: normalizeClass(`${btnClass.value}`),
|
|
@@ -63,11 +62,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
62
|
]),
|
|
64
63
|
_: 1
|
|
65
64
|
/* STABLE */
|
|
66
|
-
}, 8, ["disabled", "class", "style"])
|
|
65
|
+
}, 8, ["disabled", "class", "style"])
|
|
67
66
|
]),
|
|
68
67
|
_: 1
|
|
69
68
|
/* STABLE */
|
|
70
|
-
}, 8, ["tip", "class"])) : (openBlock(), createElementBlock(
|
|
69
|
+
}, 8, ["tip", "class"])) : !_ctx.isShowTooltip && _ctx.isShow ? (openBlock(), createElementBlock(
|
|
71
70
|
Fragment,
|
|
72
71
|
{ key: 1 },
|
|
73
72
|
[
|
|
@@ -102,7 +101,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
101
|
],
|
|
103
102
|
64
|
|
104
103
|
/* STABLE_FRAGMENT */
|
|
105
|
-
))
|
|
104
|
+
)) : createCommentVNode("v-if", true)
|
|
106
105
|
],
|
|
107
106
|
2112
|
|
108
107
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-base.vue2.mjs","sources":["../../../../../../packages/components/icon-base/src/icon-base.vue"],"sourcesContent":["<template>\n <!-- 有文字提示弹窗 -->\n <template v-if=\"isShowTooltip\">\n <ll-tooltip :tip=\"tooltipTitle\" :class=\"tooltipClass\">\n <a-button\n
|
|
1
|
+
{"version":3,"file":"icon-base.vue2.mjs","sources":["../../../../../../packages/components/icon-base/src/icon-base.vue"],"sourcesContent":["<template>\n <!-- 有文字提示弹窗 -->\n <template v-if=\"isShowTooltip && isShow\">\n <ll-tooltip :tip=\"tooltipTitle\" :class=\"tooltipClass\">\n <a-button\n type=\"text\"\n :disabled=\"disabled\"\n :class=\"`${btnClass}`\"\n :style=\"style\"\n @click=\"handleClickBtn\"\n >\n <ll-icon v-if=\"iconName\" :icon-name=\"iconName\" />\n <span v-if=\"isShowTitle\" :class=\"bem.e('text')\">{{\n tooltipTitle\n }}</span>\n </a-button>\n </ll-tooltip>\n </template>\n <!-- 没有文字提示弹窗 -->\n <template v-else-if=\"!isShowTooltip && isShow\">\n <a-button\n v-if=\"isShow\"\n type=\"text\"\n :disabled=\"disabled\"\n :class=\"`${btnClass}`\"\n :style=\"style\"\n @click=\"handleClickBtn\"\n >\n <ll-icon v-if=\"iconName\" :icon-name=\"iconName\" />\n <span v-if=\"isShowTitle\" :class=\"bem.e('text')\">{{ tooltipTitle }}</span>\n </a-button>\n </template>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\nimport { iconBaseProps } from './icon-base'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlIconBase'\n})\n\n// 2.props\nconst props = defineProps(iconBaseProps)\n\n// 3.computed/const\n// button的类名样式\nconst btnClass = computed(() => {\n const isDefault = props.iconType === 'default' || !props.iconType\n // 1.类型的class\n const typeClass = isDefault ? bem.m('default') : bem.m('primary')\n // 2.是否要裸露的class\n const exposedClass = props.isShowContainer\n ? bem.m('container')\n : bem.m('exposed')\n // 3.有文本的class\n const hasTextClass = props.isShowTitle ? bem.m('has-text') : ''\n // 4.禁用的class\n const disabledClass = props.disabled\n ? isDefault\n ? bem.is('default-disable')\n : bem.is('primary-disable')\n : ''\n return `${\n props.class\n } ${bem.b()} ${typeClass} ${exposedClass} ${hasTextClass} ${disabledClass}`\n})\nconst bem = createNamespace('icon-base')\n\n// 4.methods\nconst handleClickBtn = (e: Event) =>\n props.onClick && props.onClick(e, props.data)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AA6CA,IAAA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p: <Type = never, Value = never, Validator = never,
|
|
|
27
27
|
export type TestProps = Record<string, {
|
|
28
28
|
[epPropKey]: true;
|
|
29
29
|
} | NativePropType | EpPropInput<any, any, any, any, any>>;
|
|
30
|
-
export declare const buildProps: <Props extends Record<string,
|
|
30
|
+
export declare const buildProps: <Props extends Record<string, {
|
|
31
31
|
__epPropKey: true;
|
|
32
|
-
}
|
|
32
|
+
} | NativePropType | EpPropInput<any, any, any, any, any>>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
|
package/index.full.js
CHANGED
|
@@ -62062,14 +62062,13 @@
|
|
|
62062
62062
|
null,
|
|
62063
62063
|
[
|
|
62064
62064
|
require$$0.createCommentVNode(" \u6709\u6587\u5B57\u63D0\u793A\u5F39\u7A97 "),
|
|
62065
|
-
_ctx.isShowTooltip ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_tooltip, {
|
|
62065
|
+
_ctx.isShowTooltip && _ctx.isShow ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_tooltip, {
|
|
62066
62066
|
key: 0,
|
|
62067
62067
|
tip: _ctx.tooltipTitle,
|
|
62068
62068
|
class: require$$0.normalizeClass(_ctx.tooltipClass)
|
|
62069
62069
|
}, {
|
|
62070
62070
|
default: require$$0.withCtx(() => [
|
|
62071
|
-
|
|
62072
|
-
key: 0,
|
|
62071
|
+
require$$0.createVNode(_component_a_button, {
|
|
62073
62072
|
type: "text",
|
|
62074
62073
|
disabled: _ctx.disabled,
|
|
62075
62074
|
class: require$$0.normalizeClass(`${btnClass.value}`),
|
|
@@ -62094,11 +62093,11 @@
|
|
|
62094
62093
|
]),
|
|
62095
62094
|
_: 1
|
|
62096
62095
|
/* STABLE */
|
|
62097
|
-
}, 8, ["disabled", "class", "style"])
|
|
62096
|
+
}, 8, ["disabled", "class", "style"])
|
|
62098
62097
|
]),
|
|
62099
62098
|
_: 1
|
|
62100
62099
|
/* STABLE */
|
|
62101
|
-
}, 8, ["tip", "class"])) : (require$$0.openBlock(), require$$0.createElementBlock(
|
|
62100
|
+
}, 8, ["tip", "class"])) : !_ctx.isShowTooltip && _ctx.isShow ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
62102
62101
|
require$$0.Fragment,
|
|
62103
62102
|
{ key: 1 },
|
|
62104
62103
|
[
|
|
@@ -62133,7 +62132,7 @@
|
|
|
62133
62132
|
],
|
|
62134
62133
|
64
|
|
62135
62134
|
/* STABLE_FRAGMENT */
|
|
62136
|
-
))
|
|
62135
|
+
)) : require$$0.createCommentVNode("v-if", true)
|
|
62137
62136
|
],
|
|
62138
62137
|
2112
|
|
62139
62138
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|