@oiij/chrome-tabs 0.0.19 → 0.0.21

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/README.md CHANGED
@@ -1,96 +1,260 @@
1
- # Use Chrome-Tabs 🚀
1
+ # @oiij/chrome-tabs
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/@oiij/chrome-tabs)](https://www.npmjs.com/package/@oiij/chrome-tabs)
4
4
  [![MIT-license](https://img.shields.io/npm/l/@oiij/chrome-tabs)](https://github.com/oiij/use/blob/main/packages/chrome-tabs/LICENSE)
5
5
 
6
- ## 项目简介 📦
6
+ ## 简介
7
7
 
8
8
  Use Chrome-Tabs 是一个仿 Chrome 风格的标签页组件,为 Vue 3 应用提供流畅的标签页管理体验,帮助开发者构建具有类似浏览器标签页功能的应用。
9
9
 
10
- ## 功能特点 ✨
10
+ ## 特点
11
11
 
12
- ### Chrome 风格设计 🎨
12
+ ### 🎨 Chrome 风格设计
13
13
 
14
- - 💯 还原 Chrome 浏览器标签页外观
15
- - 🎯 支持标签页拖拽排序
16
- - 🔥 流畅的动画过渡效果
14
+ - 🖥️ 还原 Chrome 浏览器标签页外观
15
+ - 🖱️ 支持标签页拖拽排序
16
+ - 流畅的动画过渡效果
17
17
 
18
- ### 模块化设计 🧩
18
+ ### 🧩 模块化设计
19
19
 
20
- - 📁 采用模块化架构,组件独立封装
20
+ - 🏗️ 采用模块化架构,组件独立封装
21
21
  - 📦 支持按需导入,减小打包体积
22
- - 🔧 清晰的文件结构,易于维护和扩展
22
+ - 📁 清晰的文件结构,易于维护和扩展
23
23
 
24
- ### 类型安全 🔒
24
+ ### 🔒 类型安全
25
25
 
26
26
  - 📝 完整的 TypeScript 类型定义
27
27
  - 💡 提供准确的类型推断和代码提示
28
- - 🎯 支持 Vue 3 的 Composition API 类型系统
28
+ - 支持 Vue 3 的 Composition API 类型系统
29
29
 
30
- ### 轻量高效
30
+ ### 🚀 轻量高效
31
31
 
32
- - 🚀 核心代码精简,无额外依赖
33
- - 🏃 优化的性能表现,最小化运行时开销
34
- - 📦 支持 Tree Shaking,进一步减小打包体积
32
+ - 🪶 核心代码精简,无额外依赖
33
+ - 优化的性能表现,最小化运行时开销
34
+ - 📉 支持 Tree Shaking,进一步减小打包体积
35
35
 
36
- ### 功能丰富 🎨
37
-
38
- - 📑 支持多标签页管理
39
- - 🔄 支持标签页切换和关闭
40
- - ✨ 支持自定义样式和主题
41
-
42
- ## 安装 📥
43
-
44
- ### 使用 pnpm 🐱
36
+ ## 安装
45
37
 
46
38
  ```bash
39
+ # 使用 pnpm
47
40
  pnpm add @oiij/chrome-tabs
48
- ```
49
-
50
- ### 使用 npm 📦
51
41
 
52
- ```bash
42
+ # 使用 npm
53
43
  npm install @oiij/chrome-tabs
54
- ```
55
44
 
56
- ### 使用 yarn 🧶
57
-
58
- ```bash
45
+ # 使用 yarn
59
46
  yarn add @oiij/chrome-tabs
60
47
  ```
61
48
 
62
- ## 快速开始 🌟
49
+ ## 依赖
50
+
51
+ - `vue`: ^3.0.0
52
+ - `@oiij/css-render`: workspace:\*
53
+ - `@oiij/use`: workspace:\*
54
+ - `colord`: ^2.0.0
55
+
56
+ ## 示例
63
57
 
64
58
  ### 基础使用
65
59
 
66
60
  ```vue
67
61
  <script setup>
68
62
  import { ChromeTabs } from '@oiij/chrome-tabs'
63
+ import { ref } from 'vue'
64
+
65
+ const value = ref('tab1')
66
+ const options = [
67
+ { key: 'tab1', label: '标签1' },
68
+ { key: 'tab2', label: '标签2' },
69
+ { key: 'tab3', label: '标签3' },
70
+ ]
71
+ </script>
72
+
73
+ <template>
74
+ <ChromeTabs v-model:value="value" :options="options" />
75
+ </template>
76
+ ```
77
+
78
+ ### 可关闭标签页
79
+
80
+ ```vue
81
+ <script setup>
82
+ import { ChromeTabs } from '@oiij/chrome-tabs'
83
+ import { reactive, ref } from 'vue'
84
+
85
+ const value = ref('tab1')
86
+ const options = reactive([
87
+ { key: 'tab1', label: '标签1', closable: true },
88
+ { key: 'tab2', label: '标签2', closable: true },
89
+ { key: 'tab3', label: '标签3', closable: true },
90
+ ])
91
+
92
+ function onClose(key) {
93
+ const index = options.findIndex(f => f.key === key)
94
+ options.splice(index, 1)
95
+ }
69
96
  </script>
70
97
 
71
98
  <template>
72
- <ChromeTabs />
99
+ <ChromeTabs v-model:value="value" :options="options" @close="onClose" />
73
100
  </template>
74
101
  ```
75
102
 
76
- ## 在线文档 📚
103
+ ### 可添加标签页
77
104
 
78
- [在线文档](https://oiij-use.vercel.app/chrome-tabs/chrome-tabs) 📖
105
+ ```vue
106
+ <script setup>
107
+ import { ChromeTabs } from '@oiij/chrome-tabs'
108
+ import { reactive, ref } from 'vue'
109
+
110
+ const value = ref('tab1')
111
+ const options = reactive([
112
+ { key: 'tab1', label: '标签1', closable: true },
113
+ ])
114
+
115
+ function handleAdd() {
116
+ const key = `tab${options.length + 1}`
117
+ options.push({ key, label: key, closable: true })
118
+ value.value = key
119
+ }
120
+
121
+ function onClose(key) {
122
+ const index = options.findIndex(f => f.key === key)
123
+ options.splice(index, 1)
124
+ }
125
+ </script>
79
126
 
80
- ## 贡献指南 🤝
127
+ <template>
128
+ <ChromeTabs
129
+ v-model:value="value"
130
+ :options="options"
131
+ addable
132
+ @add="handleAdd"
133
+ @close="onClose"
134
+ />
135
+ </template>
136
+ ```
81
137
 
82
- 欢迎贡献代码、报告问题或提出新功能建议!
138
+ ### 自定义颜色
83
139
 
84
- 1. Fork 本仓库 🍴
85
- 2. 创建您的特性分支 (`git checkout -b feature/amazing-feature`) 🌿
86
- 3. 提交您的更改 (`git commit -m 'Add some amazing feature'`) 💾
87
- 4. 推送到分支 (`git push origin feature/amazing-feature`) 🚀
88
- 5. 打开一个 Pull Request 📥
140
+ ```vue
141
+ <script setup>
142
+ import { ChromeTabs } from '@oiij/chrome-tabs'
143
+ import { ref } from 'vue'
144
+
145
+ const value = ref('tab1')
146
+ const options = [
147
+ { key: 'tab1', label: '标签1' },
148
+ { key: 'tab2', label: '标签2' },
149
+ ]
150
+ const colors = {
151
+ background: '#E8F5E9',
152
+ active: '#C8E6C9',
153
+ primary: '#4CAF50',
154
+ }
155
+ </script>
89
156
 
90
- ## 许可证 📄
157
+ <template>
158
+ <ChromeTabs v-model:value="value" :options="options" :colors="colors" />
159
+ </template>
160
+ ```
91
161
 
92
- 本项目采用 MIT 许可证 - 查看 [LICENSE](LICENSE) 文件了解详情 📑
162
+ ## API
163
+
164
+ ### `<ChromeTabs />`
165
+
166
+ Chrome 标签页组件。
167
+
168
+ #### Props
169
+
170
+ | 属性 | 类型 | 默认值 | 说明 |
171
+ | -------------- | ------------------------- | ------- | ------------------ |
172
+ | `value` | `TabItemKey` | - | 当前激活的标签页键 |
173
+ | `options` | `TabsOption[]` | `[]` | 标签页选项配置 |
174
+ | `colors` | `object` | - | 颜色配置 |
175
+ | `dropdown` | `boolean` | `false` | 是否显示下拉菜单 |
176
+ | `addable` | `boolean` | `false` | 是否可添加标签页 |
177
+ | `loadingValue` | `TabItemKey` | - | 加载中的标签页键 |
178
+ | `iconSize` | `number` | `20` | 图标大小 |
179
+ | `contentClass` | `string` | - | 内容区域类名 |
180
+ | `contentStyle` | `CSSProperties \| string` | - | 内容区域样式 |
181
+
182
+ #### Events
183
+
184
+ | 事件 | 参数 | 说明 |
185
+ | -------------- | ---------------------------------- | -------------------- |
186
+ | `update:value` | `(value: TabItemKey)` | 激活标签页变化时触发 |
187
+ | `click` | `(key: TabItemKey, index: number)` | 点击标签页时触发 |
188
+ | `contextmenu` | `(key: TabItemKey, index: number)` | 右键点击标签页时触发 |
189
+ | `close` | `(key: TabItemKey, index: number)` | 关闭标签页时触发 |
190
+ | `add` | - | 点击添加按钮时触发 |
191
+
192
+ #### Slots
193
+
194
+ | 插槽 | 说明 |
195
+ | -------- | -------- |
196
+ | `prefix` | 前缀内容 |
197
+ | `suffix` | 后缀内容 |
198
+
199
+ ### `<ChromeTabItem />`
200
+
201
+ Chrome 标签页项组件。
202
+
203
+ #### Props
204
+
205
+ | 属性 | 类型 | 默认值 | 说明 |
206
+ | ------------- | --------------------- | ------- | ---------- |
207
+ | `itemKey` | `TabItemKey` | - | 标签页键 |
208
+ | `itemIndex` | `number` | - | 标签页索引 |
209
+ | `activeIndex` | `number` | `0` | 激活索引 |
210
+ | `label` | `string \| function` | - | 标签页标题 |
211
+ | `icon` | `function` | - | 标签页图标 |
212
+ | `closable` | `boolean \| function` | `false` | 是否可关闭 |
213
+ | `disabled` | `boolean \| function` | `false` | 是否禁用 |
214
+ | `loading` | `boolean \| function` | `false` | 是否加载中 |
215
+ | `loadingIcon` | `function` | - | 加载图标 |
216
+ | `iconSize` | `number` | `20` | 图标大小 |
217
+
218
+ ## 类型定义
219
+
220
+ ```ts
221
+ import type { CSSProperties, VNode } from 'vue'
222
+
223
+ type VNodeChild = VNode | string | number | undefined | void | null | boolean
224
+ type TabItemKey = string | number
225
+
226
+ export type TabsOption = {
227
+ key: TabItemKey
228
+ label: string | ((key: TabItemKey, index: number) => VNodeChild)
229
+ icon?: (key: TabItemKey, index: number) => VNodeChild
230
+ closable?: boolean | ((key: TabItemKey, index: number) => boolean)
231
+ disabled?: boolean | ((key: TabItemKey, index: number) => boolean)
232
+ loading?: boolean | ((key: TabItemKey, index: number) => boolean)
233
+ loadingIcon?: (key: TabItemKey, index: number) => VNodeChild
234
+ onClick?: (key: TabItemKey, index: number, ev: MouseEvent) => void
235
+ onContextMenu?: (key: TabItemKey, index: number, ev: MouseEvent) => void
236
+ onClose?: (key: TabItemKey, index: number, ev: MouseEvent) => void
237
+ class?: string
238
+ style?: CSSProperties | string
239
+ }
240
+
241
+ export type TabsProps = {
242
+ value?: TabItemKey
243
+ colors?: {
244
+ active?: string
245
+ primary?: string
246
+ background?: string
247
+ }
248
+ dropdown?: boolean
249
+ addable?: boolean
250
+ options?: TabsOption[]
251
+ loadingValue?: TabItemKey
252
+ iconSize?: number
253
+ contentClass?: string
254
+ contentStyle?: CSSProperties | string
255
+ }
256
+ ```
93
257
 
94
- ## 联系方式 📞
258
+ ## 在线文档
95
259
 
96
- - GitHub: [https://github.com/Eiog/@oiij/chrome-tabs](https://github.com/Eiog/@oiij/chrome-tabs) 🌟
260
+ [在线文档](https://oiij-use.vercel.app/chrome-tabs/chrome-tabs)
@@ -2,7 +2,6 @@ import { tabsItemCssName } from "./cssr.js";
2
2
  import LineMdLoadingTwotoneLoop_default from "./icons/LineMdLoadingTwotoneLoop.js";
3
3
  import RiCloseLine_default from "./icons/RiCloseLine.js";
4
4
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, h, normalizeClass, normalizeStyle, openBlock, resolveDynamicComponent, unref, withModifiers } from "vue";
5
-
6
5
  //#region src/ChromeTabItem.vue
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  __name: "ChromeTabItem",
@@ -84,7 +83,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
83
  };
85
84
  }
86
85
  });
87
- var ChromeTabItem_default = _sfc_main;
88
-
89
86
  //#endregion
90
- export { ChromeTabItem_default as default };
87
+ export { _sfc_main as default };
@@ -1,16 +1,16 @@
1
1
  import { TabsItemProps } from "./index.js";
2
- import * as vue4 from "vue";
2
+ import * as vue from "vue";
3
3
 
4
4
  //#region src/ChromeTabItem.vue.d.ts
5
- declare const __VLS_export: vue4.DefineComponent<TabsItemProps, {}, {}, {}, {}, vue4.ComponentOptionsMixin, vue4.ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: vue.DefineComponent<TabsItemProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
6
6
  itemClick: (ev: MouseEvent) => any;
7
7
  itemContextmenu: (ev: MouseEvent) => any;
8
8
  itemClose: () => any;
9
- }, string, vue4.PublicProps, Readonly<TabsItemProps> & Readonly<{
9
+ }, string, vue.PublicProps, Readonly<TabsItemProps> & Readonly<{
10
10
  onItemClick?: ((ev: MouseEvent) => any) | undefined;
11
11
  onItemContextmenu?: ((ev: MouseEvent) => any) | undefined;
12
12
  onItemClose?: (() => any) | undefined;
13
- }>, {}, {}, {}, {}, string, vue4.ComponentProvideOptions, false, {}, any>;
13
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  //#endregion
16
16
  export { _default };
@@ -1,12 +1,11 @@
1
1
  import { tabsCssName, tabsCssr, tabsItemCssName } from "./cssr.js";
2
- import ChromeTabItem_default from "./ChromeTabItem.js";
2
+ import _sfc_main$1 from "./ChromeTabItem.js";
3
3
  import RiAddLine_default from "./icons/RiAddLine.js";
4
4
  import RiArrowDropDownLine_default from "./icons/RiArrowDropDownLine.js";
5
5
  import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, unref, useTemplateRef, watch, withCtx } from "vue";
6
6
  import { useStyle } from "@oiij/css-render";
7
7
  import { useScrollView } from "@oiij/use";
8
8
  import { colord } from "colord";
9
-
10
9
  //#region src/ChromeTabs.vue
11
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
11
  __name: "ChromeTabs",
@@ -91,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
90
  class: normalizeClass([`${unref(tabsCssName)}__scroll`])
92
91
  }, {
93
92
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, ({ key, ...item }, index) => {
94
- return openBlock(), createBlock(ChromeTabItem_default, mergeProps({
93
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
95
94
  key,
96
95
  loading: __props.loadingValue === key
97
96
  }, { ref_for: true }, item, {
@@ -125,7 +124,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
125
124
  };
126
125
  }
127
126
  });
128
- var ChromeTabs_default = _sfc_main;
129
-
130
127
  //#endregion
131
- export { ChromeTabs_default as default };
128
+ export { _sfc_main as default };
@@ -1,5 +1,5 @@
1
1
  import { TabItemKey, TabsProps } from "./index.js";
2
- import * as vue0 from "vue";
2
+ import * as vue from "vue";
3
3
 
4
4
  //#region src/ChromeTabs.vue.d.ts
5
5
  declare var __VLS_6: {}, __VLS_23: {};
@@ -8,19 +8,19 @@ type __VLS_Slots = {} & {
8
8
  } & {
9
9
  suffix?: (props: typeof __VLS_23) => any;
10
10
  };
11
- declare const __VLS_base: vue0.DefineComponent<TabsProps, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {} & {
11
+ declare const __VLS_base: vue.DefineComponent<TabsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
12
12
  click: (v: TabItemKey, index: number) => any;
13
13
  close: (v: TabItemKey, index: number) => any;
14
14
  contextmenu: (v: TabItemKey, index: number) => any;
15
15
  "update:value": (v?: TabItemKey | null | undefined) => any;
16
16
  add: () => any;
17
- }, string, vue0.PublicProps, Readonly<TabsProps> & Readonly<{
17
+ }, string, vue.PublicProps, Readonly<TabsProps> & Readonly<{
18
18
  onClick?: ((v: TabItemKey, index: number) => any) | undefined;
19
19
  onClose?: ((v: TabItemKey, index: number) => any) | undefined;
20
20
  onContextmenu?: ((v: TabItemKey, index: number) => any) | undefined;
21
21
  "onUpdate:value"?: ((v?: TabItemKey | null | undefined) => any) | undefined;
22
22
  onAdd?: (() => any) | undefined;
23
- }>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, false, {}, any>;
23
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  type __VLS_WithSlots<T, S> = T & {
@@ -4,6 +4,5 @@ var export_helper_default = (sfc, props) => {
4
4
  for (const [key, val] of props) target[key] = val;
5
5
  return target;
6
6
  };
7
-
8
7
  //#endregion
9
- export { export_helper_default as default };
8
+ export { export_helper_default as default };
package/dist/cssr.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { useBem } from "@oiij/css-render";
2
-
3
2
  //#region src/cssr.ts
4
3
  const { cssr, plugin, namespace } = useBem();
5
4
  const { c, cB, cE, cM, cNotM } = {
@@ -147,6 +146,5 @@ function tabsCssr() {
147
146
  }, [cE("icon", { backgroundColor: "var(--active-background-color-dark)" }, [c("&:hover", { backgroundColor: "var(--primary-color-dark)" })])]), cB("chrome-tabs-item", {}, [cNotM("active", [c("&:hover", {}, [cE("content", { backgroundColor: "var(--primary-color-dark)" })])]), cE("background", {}, [cE("block", { backgroundColor: "var(--active-background-color-dark)" }), c("svg", { fill: "var(--active-background-color-dark)" })])])])
148
147
  ]);
149
148
  }
150
-
151
149
  //#endregion
152
- export { tabsCssName, tabsCssr, tabsItemCssName };
150
+ export { tabsCssName, tabsCssr, tabsItemCssName };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
- import { createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, openBlock } from "vue";
3
-
2
+ import { createCommentVNode, createElementBlock, createStaticVNode, openBlock } from "vue";
4
3
  //#region src/icons/LineMdLoadingTwotoneLoop.vue
5
4
  const _sfc_main = { name: "LineMdLoadingTwotoneLoop" };
6
5
  const _hoisted_1 = {
@@ -13,6 +12,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
13
12
  return openBlock(), createElementBlock("svg", _hoisted_1, [createCommentVNode(" Icon from Material Line Icons by Vjacheslav Trushkin - https://github.com/cyberalien/line-md/blob/master/license.txt "), _cache[0] || (_cache[0] = createStaticVNode("<g fill=\"none\" stroke=\"#757575\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path stroke-dasharray=\"16\" stroke-dashoffset=\"16\" d=\"M12 3c4.97 0 9 4.03 9 9\"><animate fill=\"freeze\" attributeName=\"stroke-dashoffset\" dur=\"0.3s\" values=\"16;0\"></animate><animateTransform attributeName=\"transform\" dur=\"1.5s\" repeatCount=\"indefinite\" type=\"rotate\" values=\"0 12 12;360 12 12\"></animateTransform></path><path stroke-dasharray=\"64\" stroke-dashoffset=\"64\" stroke-opacity=\".3\" d=\"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z\"><animate fill=\"freeze\" attributeName=\"stroke-dashoffset\" dur=\"1.2s\" values=\"64;0\"></animate></path></g>", 1))]);
14
13
  }
15
14
  var LineMdLoadingTwotoneLoop_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
16
-
17
15
  //#endregion
18
- export { LineMdLoadingTwotoneLoop_default as default };
16
+ export { LineMdLoadingTwotoneLoop_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/icons/RiAddLine.vue
5
4
  const _sfc_main = { name: "RiAddLine" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var RiAddLine_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { RiAddLine_default as default };
19
+ export { RiAddLine_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/icons/RiArrowDropDownLine.vue
5
4
  const _sfc_main = { name: "RiArrowDropDownLine" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var RiArrowDropDownLine_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { RiArrowDropDownLine_default as default };
19
+ export { RiArrowDropDownLine_default as default };
@@ -1,6 +1,5 @@
1
1
  import export_helper_default from "../_virtual/_/plugin-vue/export-helper.js";
2
2
  import { createCommentVNode, createElementBlock, createElementVNode, openBlock } from "vue";
3
-
4
3
  //#region src/icons/RiCloseLine.vue
5
4
  const _sfc_main = { name: "RiCloseLine" };
6
5
  const _hoisted_1 = {
@@ -16,6 +15,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
16
15
  }, null, -1))]);
17
16
  }
18
17
  var RiCloseLine_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
-
20
18
  //#endregion
21
- export { RiCloseLine_default as default };
19
+ export { RiCloseLine_default as default };
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import ChromeTabItem_default from "./ChromeTabItem.js";
2
- import ChromeTabs_default from "./ChromeTabs.js";
3
-
4
- export { ChromeTabItem_default as ChromeTabItem, ChromeTabs_default as ChromeTabs };
1
+ import _sfc_main from "./ChromeTabItem.js";
2
+ import _sfc_main$1 from "./ChromeTabs.js";
3
+ export { _sfc_main as ChromeTabItem, _sfc_main$1 as ChromeTabs };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiij/chrome-tabs",
3
3
  "type": "module",
4
- "version": "0.0.19",
4
+ "version": "0.0.21",
5
5
  "description": "A Vue Component Likes Chrome Tabs Style.",
6
6
  "author": "oiij",
7
7
  "license": "MIT",
@@ -27,15 +27,15 @@
27
27
  ],
28
28
  "peerDependencies": {
29
29
  "colord": "^2.9.3",
30
- "vue": "^3.5.27",
31
- "@oiij/css-render": "0.0.11",
32
- "@oiij/use": "0.0.48"
30
+ "vue": "^3.5.30",
31
+ "@oiij/css-render": "0.0.13",
32
+ "@oiij/use": "0.0.51"
33
33
  },
34
34
  "devDependencies": {
35
35
  "colord": "^2.9.3",
36
- "vue": "^3.5.27",
37
- "@oiij/css-render": "0.0.11",
38
- "@oiij/use": "0.0.48"
36
+ "vue": "^3.5.30",
37
+ "@oiij/css-render": "0.0.13",
38
+ "@oiij/use": "0.0.51"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"