@web_xiaobai/ui 0.0.13 → 0.0.14
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/boden-ui.es.js
CHANGED
|
@@ -34029,7 +34029,29 @@ const BodenTabsDark = {
|
|
|
34029
34029
|
tabTextColorHoverBodenCardRound: dark_default$1.textColorWhite,
|
|
34030
34030
|
tabTextColorActiveBodenCardRound: dark_default$1.textColorWhite,
|
|
34031
34031
|
tabTextColorActiveDisabledBodenCardRound: dark_default$1.textColor4
|
|
34032
|
-
},
|
|
34032
|
+
}, bodenTagProps = (() => ({
|
|
34033
|
+
...tagProps,
|
|
34034
|
+
icon: {
|
|
34035
|
+
type: [String, Function],
|
|
34036
|
+
default: void 0
|
|
34037
|
+
},
|
|
34038
|
+
size: {
|
|
34039
|
+
type: String,
|
|
34040
|
+
default: "medium"
|
|
34041
|
+
},
|
|
34042
|
+
extendThemeOverrides: {
|
|
34043
|
+
type: Object,
|
|
34044
|
+
default: () => ({})
|
|
34045
|
+
}
|
|
34046
|
+
}))();
|
|
34047
|
+
var index_cssr_default$9 = cB("tag", "", []);
|
|
34048
|
+
function useCssVarsHook$3(e, t) {
|
|
34049
|
+
return { cssVarsRef: computed(() => {
|
|
34050
|
+
let { [createKey("borderRadius", t)]: n } = e.value;
|
|
34051
|
+
return { "--n-border-radius": n };
|
|
34052
|
+
}) };
|
|
34053
|
+
}
|
|
34054
|
+
const BodenTagCommon = {
|
|
34033
34055
|
colorBordered: "#0000",
|
|
34034
34056
|
colorBorderedError: "#0000",
|
|
34035
34057
|
colorBorderedPrimary: "#0000",
|
|
@@ -34113,27 +34135,13 @@ const BodenTabsDark = {
|
|
|
34113
34135
|
closeIconColorPressedError: light_default.errorColor4,
|
|
34114
34136
|
closeColorHoverError: "",
|
|
34115
34137
|
closeColorPressedError: ""
|
|
34116
|
-
}, BodenTagExtendLight = { ...BodenTagExtendCommon }
|
|
34117
|
-
...tagProps,
|
|
34118
|
-
size: {
|
|
34119
|
-
type: String,
|
|
34120
|
-
default: "medium"
|
|
34121
|
-
},
|
|
34122
|
-
extendThemeOverrides: {
|
|
34123
|
-
type: Object,
|
|
34124
|
-
default: () => ({})
|
|
34125
|
-
}
|
|
34126
|
-
}))();
|
|
34127
|
-
var index_cssr_default$9 = cB("tag", "", []);
|
|
34128
|
-
function useCssVarsHook$3(e, t) {
|
|
34129
|
-
return { cssVarsRef: computed(() => {
|
|
34130
|
-
let { [createKey("borderRadius", t)]: n } = e.value;
|
|
34131
|
-
return { "--n-border-radius": n };
|
|
34132
|
-
}) };
|
|
34133
|
-
}
|
|
34138
|
+
}, BodenTagExtendLight = { ...BodenTagExtendCommon };
|
|
34134
34139
|
var import_lodash$7 = /* @__PURE__ */ __toESM(require_lodash()), Tag_vue_vue_type_script_lang_default = defineComponent({
|
|
34135
34140
|
name: "BodenTag",
|
|
34136
|
-
components: {
|
|
34141
|
+
components: {
|
|
34142
|
+
NTag: Tag_default$1,
|
|
34143
|
+
BodenIcon: SvgIcon_default
|
|
34144
|
+
},
|
|
34137
34145
|
props: bodenTagProps,
|
|
34138
34146
|
setup(e, { attrs: t, expose: n }) {
|
|
34139
34147
|
n({}), use_theme_default("-tag", index_cssr_default$9);
|
|
@@ -34156,15 +34164,33 @@ var import_lodash$7 = /* @__PURE__ */ __toESM(require_lodash()), Tag_vue_vue_typ
|
|
|
34156
34164
|
}
|
|
34157
34165
|
});
|
|
34158
34166
|
function _sfc_render$2(e, t, n, r, i, a) {
|
|
34159
|
-
let o = Tag_default$1;
|
|
34160
|
-
return openBlock(), createBlock(
|
|
34167
|
+
let o = resolveComponent("BodenIcon"), s = NIcon, l = Tag_default$1;
|
|
34168
|
+
return openBlock(), createBlock(l, mergeProps({
|
|
34161
34169
|
...e.currentProps,
|
|
34162
34170
|
...e.attrs
|
|
34163
|
-
}, { style: e.cssVarsRef }), createSlots({ _: 2 }, [
|
|
34164
|
-
|
|
34165
|
-
|
|
34166
|
-
|
|
34167
|
-
|
|
34171
|
+
}, { style: e.cssVarsRef }), createSlots({ _: 2 }, [
|
|
34172
|
+
e.$slots.avatar ? {
|
|
34173
|
+
name: "avatar",
|
|
34174
|
+
fn: withCtx(() => [renderSlot(e.$slots, "avatar")]),
|
|
34175
|
+
key: "0"
|
|
34176
|
+
} : void 0,
|
|
34177
|
+
e.$slots.default ? {
|
|
34178
|
+
name: "default",
|
|
34179
|
+
fn: withCtx(() => [renderSlot(e.$slots, "default")]),
|
|
34180
|
+
key: "1"
|
|
34181
|
+
} : void 0,
|
|
34182
|
+
e.$slots.icon || e.icon ? {
|
|
34183
|
+
name: "icon",
|
|
34184
|
+
fn: withCtx(() => [e.$slots.icon ? renderSlot(e.$slots, "icon", { key: 0 }) : typeof e.icon == "string" ? (openBlock(), createBlock(s, { key: 1 }, {
|
|
34185
|
+
default: withCtx(() => [createVNode(o, { icon: e.icon }, null, 8, ["icon"])]),
|
|
34186
|
+
_: 1
|
|
34187
|
+
})) : (openBlock(), createBlock(s, {
|
|
34188
|
+
key: 2,
|
|
34189
|
+
component: e.icon()
|
|
34190
|
+
}, null, 8, ["component"]))]),
|
|
34191
|
+
key: "2"
|
|
34192
|
+
} : void 0
|
|
34193
|
+
]), 1040, ["style"]);
|
|
34168
34194
|
}
|
|
34169
34195
|
var Tag_default = /* @__PURE__ */ __plugin_vue_export_helper_default(Tag_vue_vue_type_script_lang_default, [["render", _sfc_render$2]]);
|
|
34170
34196
|
const BodenTagDark = {
|
|
@@ -34536,8 +34562,7 @@ const BodenTreeSelectDark = {
|
|
|
34536
34562
|
Transfer: BodenTransferDark,
|
|
34537
34563
|
Tooltip: BodenTooltipDark,
|
|
34538
34564
|
Tree: BodenTreeDark,
|
|
34539
|
-
TreeSelect: BodenTreeSelectDark
|
|
34540
|
-
Scrollbar: BodenScrollbarDark
|
|
34565
|
+
TreeSelect: BodenTreeSelectDark
|
|
34541
34566
|
}, bodenLightThemeOverrides = {
|
|
34542
34567
|
Alert: BodenAlertLight,
|
|
34543
34568
|
Breadcrumb: BodenBreadcrumbLight,
|
|
@@ -34566,8 +34591,7 @@ const BodenTreeSelectDark = {
|
|
|
34566
34591
|
Transfer: BodenTransferLight,
|
|
34567
34592
|
Tooltip: BodenTooltipLight,
|
|
34568
34593
|
Tree: BodenTreeLight,
|
|
34569
|
-
TreeSelect: BodenTreeSelectLight
|
|
34570
|
-
Scrollbar: BodenScrollbarLight
|
|
34594
|
+
TreeSelect: BodenTreeSelectLight
|
|
34571
34595
|
}, BodenInputGroupLabelCommon = { ...BodenInputCommon }, BodenInputGroupLabelLight = {
|
|
34572
34596
|
...BodenInputGroupLabelCommon,
|
|
34573
34597
|
...BodenInputLight
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly icon: {
|
|
3
|
+
readonly type: import('vue').PropType<string | (() => import('vue').VNode)>;
|
|
4
|
+
readonly default: undefined;
|
|
5
|
+
};
|
|
2
6
|
readonly size: {
|
|
3
7
|
readonly type: import('vue').PropType<import('./props').Size>;
|
|
4
8
|
readonly default: "medium";
|
|
@@ -674,6 +678,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
674
678
|
bordered: boolean | undefined;
|
|
675
679
|
closable: boolean;
|
|
676
680
|
onClose: import('naive-ui/es/_utils').MaybeArray<(e: MouseEvent) => void> | undefined;
|
|
681
|
+
icon: string | (() => import('vue').VNode) | undefined;
|
|
677
682
|
strong: boolean;
|
|
678
683
|
onMouseenter: ((e: MouseEvent) => void) | undefined;
|
|
679
684
|
onMouseleave: ((e: MouseEvent) => void) | undefined;
|
|
@@ -697,6 +702,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
697
702
|
"--n-border-radius": string | undefined;
|
|
698
703
|
}>;
|
|
699
704
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
705
|
+
readonly icon: {
|
|
706
|
+
readonly type: import('vue').PropType<string | (() => import('vue').VNode)>;
|
|
707
|
+
readonly default: undefined;
|
|
708
|
+
};
|
|
700
709
|
readonly size: {
|
|
701
710
|
readonly type: import('vue').PropType<import('./props').Size>;
|
|
702
711
|
readonly default: "medium";
|
|
@@ -1007,6 +1016,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1007
1016
|
readonly bordered: boolean | undefined;
|
|
1008
1017
|
readonly closable: boolean;
|
|
1009
1018
|
readonly extendThemeOverrides: import('../../../_extendThemeOverrides/Tag').TagExtendThemeOverrides;
|
|
1019
|
+
readonly icon: string | (() => import('vue').VNode);
|
|
1010
1020
|
readonly strong: boolean;
|
|
1011
1021
|
readonly size: import('./props').Size;
|
|
1012
1022
|
readonly disabled: boolean | undefined;
|
|
@@ -1681,5 +1691,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1681
1691
|
internalCloseFocusable: boolean;
|
|
1682
1692
|
internalCloseIsButtonTag: boolean;
|
|
1683
1693
|
}, import('vue').SlotsType<import('naive-ui').TagSlots>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1694
|
+
BodenIcon: import('vue').DefineComponent<import('../..').SvgIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('../..').SvgIconProps> & Readonly<{}>, {
|
|
1695
|
+
color: string;
|
|
1696
|
+
size: string;
|
|
1697
|
+
className: string;
|
|
1698
|
+
svgClassName: string;
|
|
1699
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1684
1700
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1685
1701
|
export default _default;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
2
|
import { TagExtendThemeOverrides } from '../../../_extendThemeOverrides/Tag';
|
|
3
3
|
export type Size = "tiny" | "small" | "medium" | "large";
|
|
4
4
|
export declare const bodenTagProps: {
|
|
5
|
+
readonly icon: {
|
|
6
|
+
readonly type: PropType<string | (() => VNode)>;
|
|
7
|
+
readonly default: undefined;
|
|
8
|
+
};
|
|
5
9
|
readonly size: {
|
|
6
10
|
readonly type: PropType<Size>;
|
|
7
11
|
readonly default: "medium";
|