bootstrap-vue-top 1.1.0 → 1.1.1

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.
Files changed (60) hide show
  1. package/README.md +28 -27
  2. package/dist/bootstrap-vue-top.umd.cjs +3 -0
  3. package/package.json +11 -10
  4. package/src/components/accordion/accordion-item.vue +27 -0
  5. package/src/components/accordion/accordion-keys.js +1 -0
  6. package/src/components/accordion/accordion.vue +84 -0
  7. package/src/components/alert/alert.js +10 -0
  8. package/src/components/alert-box/alert-box.vue +73 -0
  9. package/src/components/alert-box/index.js +25 -0
  10. package/src/components/alert-confirm/alert-confirm.vue +80 -0
  11. package/src/components/alert-confirm/index.js +26 -0
  12. package/src/components/alert-message/alert-message.vue +63 -0
  13. package/src/components/alert-message/index.js +27 -0
  14. package/src/components/backtop/backtop.vue +61 -0
  15. package/src/components/carousel/carousel.vue +107 -0
  16. package/src/components/collapse/collapse.js +8 -0
  17. package/src/components/dropdown/dropdown.js +10 -0
  18. package/src/components/image-preview/image-preview.vue +261 -0
  19. package/src/components/image-preview/index.js +26 -0
  20. package/src/components/loading/index.js +45 -0
  21. package/src/components/loading/loading-fullscreen.vue +47 -0
  22. package/src/components/loading/loading.vue +47 -0
  23. package/src/components/modal/modal.vue +83 -0
  24. package/src/components/modal-2/counter.js +25 -0
  25. package/src/components/modal-2/modal-2.vue +256 -0
  26. package/src/components/offcanvas/offcanvas.vue +71 -0
  27. package/src/components/pagination/pagination.vue +216 -0
  28. package/src/components/popover/popover.js +10 -0
  29. package/src/components/scrollspy/scrollspy.js +16 -0
  30. package/src/components/table/table-col.vue +61 -0
  31. package/src/components/table/table-keys.js +2 -0
  32. package/src/components/table/table.vue +320 -0
  33. package/src/components/tabs/tab-pane.vue +32 -0
  34. package/src/components/tabs/tabs-keys.js +1 -0
  35. package/src/components/tabs/tabs.vue +240 -0
  36. package/src/components/toast/index.js +29 -0
  37. package/src/components/toast/toast.vue +91 -0
  38. package/src/components/tooltip/tooltip.js +10 -0
  39. package/src/components/tree/tree-keys.js +7 -0
  40. package/src/components/tree/tree-node.vue +144 -0
  41. package/src/components/tree/tree.vue +92 -0
  42. package/src/components/treetable/treetable-col.vue +37 -0
  43. package/src/components/treetable/treetable-keys.js +3 -0
  44. package/src/components/treetable/treetable-node.vue +104 -0
  45. package/src/components/treetable/treetable.vue +114 -0
  46. package/src/components/uploader/file-uploader.vue +67 -0
  47. package/src/components/uploader/image-many-uploader.vue +173 -0
  48. package/src/components/uploader/image-one-uploader.vue +78 -0
  49. package/src/index.js +66 -0
  50. package/src/styles/alert.scss +33 -0
  51. package/src/styles/backtop.scss +7 -0
  52. package/src/styles/image-preview.scss +11 -0
  53. package/src/styles/index.scss +97 -0
  54. package/src/styles/loading.scss +12 -0
  55. package/src/styles/modal-2.scss +8 -0
  56. package/src/styles/uploader.scss +29 -0
  57. package/README.zh-CN.md +0 -126
  58. package/dist/bootstrap-vue.umd.cjs +0 -3
  59. /package/dist/{bootstrap-vue.css → bootstrap-vue-top.css} +0 -0
  60. /package/dist/{bootstrap-vue.js → bootstrap-vue-top.js} +0 -0
package/README.md CHANGED
@@ -1,39 +1,40 @@
1
1
  # bootstrap-vue-top
2
2
 
3
- A frontend component library built on Bootstrap 5.3.8 & Vue 3.5.x
3
+ 基于 Bootstrap 5.3.8 & Vue 3.5.x 的前端组件库
4
4
 
5
- ## Introduction
5
+ ## 简介
6
6
 
7
- This is a modern frontend framework solution that combines Bootstrap 5.3.8 with Vue 3.5.x, fully leveraging the strengths of both: Bootstrap 5 provides a powerful UI component library and responsive layout system, while Vue 3 brings efficient data-driven reactive rendering and the Composition API.
7
+ 这是一个现代化的前端框架解决方案,将 Bootstrap 5.3.8 与 Vue 3.5.x 完美结合,充分利用双方的优势:Bootstrap 5 提供了强大的 UI 组件库和响应式布局系统,而 Vue 3 则带来了高效的数据驱动响应式渲染和 Composition API。
8
8
 
9
- The framework strictly follows the architectural paradigm of "styling with Bootstrap, behavior with Vue," fully inheriting Bootstrap's atomic utility classes (spacing, typography, colors, Flex/Grid). Developers don't need to learn new CSS class names—they can directly use native classes like `d-flex`, `text-primary`, and `mb-3` to control appearance.
9
+ 框架严格遵循"样式用 Bootstrap,行为用 Vue"的架构范式,完全继承 Bootstrap 的原子化工具类(间距、字体、颜色、Flex/Grid),开发者无需学习新的 CSS 类名,可直接使用原生类名如 `d-flex`、`text-primary`、`mb-3` 等来控制外观。
10
10
 
11
- All style classes described in the official Bootstrap documentation (such as table striping, card groups, grid offsets, etc.) can be used directly in Vue projects, reducing the learning and migration costs for teams.
11
+ Bootstrap 官方文档中描述的所有样式类(如表格条纹、卡片分组、栅格偏移等)均可直接在 Vue 项目中使用,降低了团队的学习和迁移成本。
12
12
 
13
- ## Features
13
+ ## 特性
14
14
 
15
- - **Vue 3 + Composition API**: Built with the latest Vue 3 features
16
- - **Bootstrap 5 styles**: Fully inherits all Bootstrap 5 style classes
17
- - **Rich components**: Provides 20+ common components
18
- - **Complete documentation**: Comes with a full Chinese documentation website
15
+ - **Vue 3 + Composition API**: 使用 Vue 3 最新特性开发
16
+ - **Bootstrap 5 样式**: 完全继承 Bootstrap 5 的全部样式类
17
+ - **组件丰富**: 提供 20+ 常用组件
18
+ - **文档完善**: 配套完整的中文文档网站
19
19
 
20
- ## Installation
20
+
21
+ ## 安装
21
22
 
22
23
  ```bash
23
24
  npm install bootstrap-vue-top
24
25
  ```
25
26
 
26
27
 
27
- ## Quick Start
28
+ ## 快速开始
28
29
 
29
30
  **main.js**
30
31
  ```javascript
31
32
  import { createApp } from 'vue'
32
33
  import App from './App.vue'
33
34
 
34
- // Import styles (Bootstrap 5 styles are already included—do NOT import them again)
35
+ // 引入样式(已包括bootstrap 5 样式,切记不要再次引入。)
35
36
  import 'bootstrap-vue-top/style.css'
36
- // Import Vue components (Bootstrap 5 JS components are already bundled—do NOT import them again)
37
+ // 引入Vue组件(已打包bootstrap 5 JS 组件,切记不要再次引入。)
37
38
  import BootstrapVueTop from 'bootstrap-vue-top'
38
39
 
39
40
  const app = createApp(App)
@@ -42,19 +43,19 @@ app.mount('#app')
42
43
  ```
43
44
 
44
45
  **App.vue**
45
- ```javascript
46
+ ```html
46
47
  <template>
47
48
  <div class="container p-3">
48
49
  <h1 class="text-primary text-center">Hello</h1>
49
50
 
50
- <h4 class="mt-4">Example 1 (Vue component)</h4>
51
+ <h4 class="mt-4">Example 1 (vue 组件)</h4>
51
52
  <bv-table :data="tableData" table-class="table-bordered">
52
53
  <bv-table-col header="Code" field="code" />
53
54
  <bv-table-col header="Name" field="name" />
54
55
  <bv-table-col header="Address" field="address" />
55
56
  </bv-table>
56
57
 
57
- <h4 class="mt-4">Example 2 (Bootstrap component)</h4>
58
+ <h4 class="mt-4">Example 2 (Bootstrap 组件)</h4>
58
59
  <div>
59
60
  <button ref="popoverRef" type="button" class="btn btn-primary" data-bs-toggle="popover"
60
61
  data-bs-title="Popover title"
@@ -73,37 +74,37 @@ const tableData = ref([
73
74
  { code: 1003, name: 'Kris3', address: 'Honghu City, Hubei Province, China' }
74
75
  ])
75
76
 
76
- // Bootstrap component
77
+ // Bootstrap 组件
77
78
  import { bootstrap } from 'bootstrap-vue-top'
78
79
  const popoverRef = ref(null)
79
80
  onMounted(() => {
80
- // Instantiate the Bootstrap component
81
+ // 实例化 Bootstrap 组件
81
82
  new bootstrap.Popover(popoverRef.value, {
82
83
  container: 'body'
83
84
  })
84
85
  })
85
86
  onBeforeUnmount(() => {
86
- // Destroy the Bootstrap component
87
+ // 销毁 Bootstrap 组件
87
88
  bootstrap.Popover.getInstance(popoverRef.value).dispose();
88
89
  })
89
90
  </script>
90
91
  ```
91
92
 
92
93
 
93
- ## Development
94
+ ## 开发
94
95
 
95
96
  ```bash
96
- # Install dependencies
97
+ # 安装依赖
97
98
  npm install
98
99
 
99
- # Start the dev server
100
+ # 启动开发服务器
100
101
  npm run dev
101
102
 
102
- # Build for production
103
+ # 构建生产版本
103
104
  npm run build
104
105
  ```
105
106
 
106
- ### Documentation Website Development
107
+ ### 开发文档网站
107
108
 
108
109
  ```bash
109
110
  cd website
@@ -112,7 +113,7 @@ npm run dev
112
113
  ```
113
114
 
114
115
 
115
- ## Browser Support
116
+ ## 浏览器支持
116
117
 
117
118
  - Chrome >= 84
118
119
  - Firefox >= 63
@@ -120,6 +121,6 @@ npm run dev
120
121
  - Safari >= 14.1
121
122
 
122
123
 
123
- ## License
124
+ ## 协议
124
125
 
125
126
  MIT License