aibox-custom-component-packages 0.0.5 → 0.0.6
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/AiboxTabs.mjs +32 -34
- package/es/assets/AiboxTabs.css +1 -1
- package/lib/AiboxTabs.js +1 -1
- package/lib/assets/AiboxTabs.css +1 -1
- package/package.json +3 -3
package/es/AiboxTabs.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { w as m } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createElementBlock as r, openBlock as a, normalizeClass as s, createElementVNode as d, Fragment as b, renderList as y, normalizeStyle as f, createBlock as c, createCommentVNode as g, createTextVNode as h, unref as v, withCtx as x, resolveDynamicComponent as j, toDisplayString as O } from "vue";
|
|
3
|
+
import { ElIcon as V } from "element-plus";
|
|
3
4
|
import { _ as k } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
5
|
import './assets/AiboxTabs.css';const C = ["onClick"], S = {
|
|
5
6
|
__name: "layout",
|
|
@@ -34,40 +35,37 @@ import './assets/AiboxTabs.css';const C = ["onClick"], S = {
|
|
|
34
35
|
},
|
|
35
36
|
emits: ["update:modelValue", "change"],
|
|
36
37
|
setup(e, { emit: u }) {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
return (a, w) => {
|
|
41
|
-
const p = b("el-icon");
|
|
42
|
-
return o(), n("div", {
|
|
43
|
-
class: s(["ai-box-tabs", `style-${e.styleType}`])
|
|
44
|
-
}, [
|
|
45
|
-
y("ul", null, [
|
|
46
|
-
(o(!0), n(f, null, g(e.tabList, (t, d) => (o(), n("li", {
|
|
47
|
-
key: t[l.propsObj.value],
|
|
48
|
-
onClick: (T) => i(t),
|
|
49
|
-
class: s(e.modelValue === t[l.propsObj.value] ? "current" : ""),
|
|
50
|
-
style: h(d == e.tabList.length - 1 ? "margin-right: 0;" : "")
|
|
51
|
-
}, [
|
|
52
|
-
t.icon && e.isShowIcon ? (o(), c(p, {
|
|
53
|
-
key: 0,
|
|
54
|
-
size: "18px",
|
|
55
|
-
style: { "margin-right": "4px" },
|
|
56
|
-
color: e.modelValue === t[l.propsObj.value] ? "#262626" : "#7f8387"
|
|
57
|
-
}, {
|
|
58
|
-
default: j(() => [
|
|
59
|
-
(o(), c(O(t.icon)))
|
|
60
|
-
]),
|
|
61
|
-
_: 2
|
|
62
|
-
}, 1032, ["color"])) : v("", !0),
|
|
63
|
-
x(" " + V(t[l.propsObj.label]), 1)
|
|
64
|
-
], 14, C))), 128))
|
|
65
|
-
])
|
|
66
|
-
], 2);
|
|
38
|
+
const n = u, l = e, i = (o) => {
|
|
39
|
+
n("update:modelValue", o[l.propsObj.value]), n("change", o[l.propsObj.value]);
|
|
67
40
|
};
|
|
41
|
+
return (o, I) => (a(), r("div", {
|
|
42
|
+
class: s(["ai-box-tabs", `style-${e.styleType}`])
|
|
43
|
+
}, [
|
|
44
|
+
d("ul", null, [
|
|
45
|
+
(a(!0), r(b, null, y(e.tabList, (t, p) => (a(), r("li", {
|
|
46
|
+
key: t[l.propsObj.value],
|
|
47
|
+
onClick: (T) => i(t),
|
|
48
|
+
class: s(e.modelValue === t[l.propsObj.value] ? "current" : ""),
|
|
49
|
+
style: f(p == e.tabList.length - 1 ? "margin-right: 0;" : "")
|
|
50
|
+
}, [
|
|
51
|
+
t.icon && e.isShowIcon ? (a(), c(v(V), {
|
|
52
|
+
key: 0,
|
|
53
|
+
size: "18px",
|
|
54
|
+
style: { "margin-right": "4px" },
|
|
55
|
+
color: e.modelValue === t[l.propsObj.value] ? "#262626" : "#7f8387"
|
|
56
|
+
}, {
|
|
57
|
+
default: x(() => [
|
|
58
|
+
(a(), c(j(t.icon)))
|
|
59
|
+
]),
|
|
60
|
+
_: 2
|
|
61
|
+
}, 1032, ["color"])) : g("", !0),
|
|
62
|
+
h(" " + O(t[l.propsObj.label]), 1)
|
|
63
|
+
], 14, C))), 128))
|
|
64
|
+
])
|
|
65
|
+
], 2));
|
|
68
66
|
}
|
|
69
|
-
},
|
|
67
|
+
}, w = /* @__PURE__ */ k(S, [["__scopeId", "data-v-efe9e16f"]]), E = m(w);
|
|
70
68
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
E as AiboxTabs,
|
|
70
|
+
E as default
|
|
73
71
|
};
|
package/es/assets/AiboxTabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ai-box-tabs[data-v-
|
|
1
|
+
.ai-box-tabs[data-v-efe9e16f]{display:inline-block;height:32px}.ai-box-tabs ul[data-v-efe9e16f]{display:flex;align-items:center}.ai-box-tabs ul li[data-v-efe9e16f]{padding:6px 16px;border-radius:4px;margin-right:8px;color:#606266;font-size:14px;cursor:pointer;transition:all .3s}.ai-box-tabs ul li[data-v-efe9e16f]:hover{color:var(--el-color-primary);background-color:#f0f2f5}.ai-box-tabs ul .current[data-v-efe9e16f]{background:#f5f7fa;color:#262626;font-weight:500}.style-2[data-v-efe9e16f]{background-color:#f5f5f5!important;padding:0 4px;height:32px;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:8px;overflow:hidden}.style-2 li[data-v-efe9e16f]{color:#666!important;display:flex;align-items:center;height:26px;border-radius:14px;padding:0 16px!important}.style-2 li[data-v-efe9e16f]:hover{border-radius:8px;background-color:#e1edf7!important}.style-2 li.current[data-v-efe9e16f]{border-radius:8px;color:#262626!important;background:#fff!important}.style-3[data-v-efe9e16f]{background:#ffffff80;border:1px solid rgba(255,255,255,.2);padding:0 4px;height:36px;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:18px;overflow:hidden}.style-3 li[data-v-efe9e16f]{color:#7f8387!important;display:flex;align-items:center;height:28px;border-radius:14px;padding:0 16px!important}.style-3 li[data-v-efe9e16f]:hover{background-color:#e1edf7!important;border-radius:14px}.style-3 li.current[data-v-efe9e16f]{color:#262626!important;background:#fff!important;border-radius:14px}
|
package/lib/AiboxTabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AiboxTabs.css');const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AiboxTabs.css');const i=require("./chunks/index.CkihWzK6.js"),e=require("vue"),p=require("element-plus"),d=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),b=["onClick"],y={__name:"layout",props:{modelValue:{type:String,default:""},tabList:{type:Array,default:()=>[]},propsObj:{type:Object,default:()=>({label:"label",value:"value"})},styleType:{type:[Number,String],default:1},isShowIcon:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(t,{emit:c}){const n=c,o=t,s=a=>{n("update:modelValue",a[o.propsObj.value]),n("change",a[o.propsObj.value])};return(a,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ai-box-tabs",`style-${t.styleType}`])},[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabList,(l,u)=>(e.openBlock(),e.createElementBlock("li",{key:l[o.propsObj.value],onClick:g=>s(l),class:e.normalizeClass(t.modelValue===l[o.propsObj.value]?"current":""),style:e.normalizeStyle(u==t.tabList.length-1?"margin-right: 0;":"")},[l.icon&&t.isShowIcon?(e.openBlock(),e.createBlock(e.unref(p.ElIcon),{key:0,size:"18px",style:{"margin-right":"4px"},color:t.modelValue===l[o.propsObj.value]?"#262626":"#7f8387"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon)))]),_:2},1032,["color"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l[o.propsObj.label]),1)],14,b))),128))])],2))}},m=d._export_sfc(y,[["__scopeId","data-v-efe9e16f"]]),r=i.withInstall(m);exports.AiboxTabs=r;exports.default=r;
|
package/lib/assets/AiboxTabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ai-box-tabs[data-v-
|
|
1
|
+
.ai-box-tabs[data-v-efe9e16f]{display:inline-block;height:32px}.ai-box-tabs ul[data-v-efe9e16f]{display:flex;align-items:center}.ai-box-tabs ul li[data-v-efe9e16f]{padding:6px 16px;border-radius:4px;margin-right:8px;color:#606266;font-size:14px;cursor:pointer;transition:all .3s}.ai-box-tabs ul li[data-v-efe9e16f]:hover{color:var(--el-color-primary);background-color:#f0f2f5}.ai-box-tabs ul .current[data-v-efe9e16f]{background:#f5f7fa;color:#262626;font-weight:500}.style-2[data-v-efe9e16f]{background-color:#f5f5f5!important;padding:0 4px;height:32px;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:8px;overflow:hidden}.style-2 li[data-v-efe9e16f]{color:#666!important;display:flex;align-items:center;height:26px;border-radius:14px;padding:0 16px!important}.style-2 li[data-v-efe9e16f]:hover{border-radius:8px;background-color:#e1edf7!important}.style-2 li.current[data-v-efe9e16f]{border-radius:8px;color:#262626!important;background:#fff!important}.style-3[data-v-efe9e16f]{background:#ffffff80;border:1px solid rgba(255,255,255,.2);padding:0 4px;height:36px;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:18px;overflow:hidden}.style-3 li[data-v-efe9e16f]{color:#7f8387!important;display:flex;align-items:center;height:28px;border-radius:14px;padding:0 16px!important}.style-3 li[data-v-efe9e16f]:hover{background-color:#e1edf7!important;border-radius:14px}.style-3 li.current[data-v-efe9e16f]{color:#262626!important;background:#fff!important;border-radius:14px}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aibox-custom-component-packages",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"components",
|
|
6
6
|
"vue",
|
|
@@ -125,10 +125,10 @@
|
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"axios": "^1.8.2",
|
|
127
127
|
"vue": "^3.5.26",
|
|
128
|
-
"color-message-aibox-vue": "0.1.8",
|
|
129
128
|
"color-message-lingyun-vue": "0.0.30",
|
|
130
|
-
"color-star-custom-components": "0.0.48",
|
|
131
129
|
"color-star-atom-style": "0.0.4",
|
|
130
|
+
"color-star-custom-components": "0.0.48",
|
|
131
|
+
"color-message-aibox-vue": "0.1.8",
|
|
132
132
|
"color-star-custom-methods": "0.0.30"
|
|
133
133
|
},
|
|
134
134
|
"optionalDependencies": {
|