bootstrap-vue-top 1.0.11 → 1.0.12

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 (39) hide show
  1. package/README.md +72 -5
  2. package/README.zh-CN.md +72 -4
  3. package/package.json +1 -1
  4. package/postcss.config.js +0 -1
  5. package/src/components/toast/toast.vue +1 -0
  6. package/src/components/uploader/file-uploader.vue +1 -0
  7. package/src/styles/backtop.scss +1 -1
  8. package/vite.config.js +3 -3
  9. package/website/dist/assets/{404-BXDsyk6o.js → 404-D_3gsVdK.js} +1 -1
  10. package/website/dist/assets/{alerts-CUR_PfC-.js → alerts-DfM_jY6G.js} +1 -1
  11. package/website/dist/assets/{alerts-box-CH8yX_Pz.js → alerts-box-CONaOIs3.js} +1 -1
  12. package/website/dist/assets/{alerts-confirm-DYceAKHt.js → alerts-confirm-COh3ZlVI.js} +1 -1
  13. package/website/dist/assets/{alerts-message-EijbCo4i.js → alerts-message-BZ_74DAG.js} +1 -1
  14. package/website/dist/assets/{breakpoints--QahTnVO.js → breakpoints-ChHyEPBY.js} +1 -1
  15. package/website/dist/assets/{containers-DDT7eVbj.js → containers-C1JR1nwQ.js} +1 -1
  16. package/website/dist/assets/{grid-Dgb7HatA.js → grid-Cn49PY35.js} +1 -1
  17. package/website/dist/assets/home-4F8nb7bf.js +1 -0
  18. package/website/dist/assets/{image-preview-B3bEdXnq.js → image-preview-ByB8chdH.js} +1 -1
  19. package/website/dist/assets/{index-CTosVKMq.js → index-BaNzOGzm.js} +2 -2
  20. package/website/dist/assets/introduction-CMphWg1P.js +1 -0
  21. package/website/dist/assets/{loading-P_GNYM7v.js → loading-y-GxDlgW.js} +1 -1
  22. package/website/dist/assets/{quick-start-CoDSYr-Z.js → quick-start-YDoYzFdI.js} +6 -4
  23. package/website/dist/assets/{tables-Di035nGi.js → tables-rF3MUkD3.js} +1 -1
  24. package/website/dist/assets/{toasts-CO4OxETg.js → toasts-D0Ukrjrk.js} +1 -1
  25. package/website/dist/assets/{tree-CXzBuvwD.js → tree-Cf7e4QUg.js} +1 -1
  26. package/website/dist/assets/{tree-table-BzskTUoV.js → tree-table-DI3oJWJM.js} +1 -1
  27. package/website/dist/assets/{uploader-DoIza2nc.js → uploader-Qak4AkX1.js} +1 -1
  28. package/website/dist/index.html +2 -2
  29. package/website/index.html +1 -1
  30. package/website/node_modules/.package-lock.json +1 -1
  31. package/website/node_modules/.vite/deps/_metadata.json +24 -24
  32. package/website/package-lock.json +2 -2
  33. package/website/package.json +1 -1
  34. package/website/src/main.js +2 -2
  35. package/website/src/views/docs/guide/introduction.vue +5 -11
  36. package/website/src/views/docs/guide/quick-start.vue +6 -4
  37. package/website/src/views/home.vue +1 -1
  38. package/website/dist/assets/home-Ctpicm7Z.js +0 -1
  39. package/website/dist/assets/introduction-DE9FDRU-.js +0 -1
package/README.md CHANGED
@@ -1,9 +1,76 @@
1
1
  # bootstrap-vue-top
2
- A frontend framework based on Bootstrap 5.3.8 & Vue 3.5.x
3
2
 
4
- ## 简介
5
- This is a modern frontend framework solution that combines Bootstrap 5.3.8 and 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 reactive data-driven rendering and the Composition API.
3
+ A frontend component library built on Bootstrap 5.3.8 & Vue 3.5.x
6
4
 
7
- It strictly follows the architectural paradigm of "styling by Bootstrap, behavior by Vue." It fully inherits Bootstrap's atomic utility classes (spacing, typography, colors, Flex/Grid), so developers do not need to learn new CSS class names — they can directly use native classes such as d-flex, text-primary, and mb-3 to control appearance.
5
+ ## Introduction
8
6
 
9
- All descriptions of style classes in the official Bootstrap documentation (such as table striping, card grouping, and grid offsets) apply directly in Vue projects, reducing the learning and migration costs for teams.
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.
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.
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.
12
+
13
+ ## Features
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
19
+
20
+ ## Installation
21
+
22
+ ```bash
23
+ npm install bootstrap-vue-top
24
+ ```
25
+
26
+
27
+ ## Quick Start
28
+
29
+ ```javascript
30
+ import { createApp } from 'vue'
31
+ import App from './App.vue'
32
+
33
+ // Import styles (Bootstrap 5 styles are already included—do NOT import them again)
34
+ import 'bootstrap-vue-top/dist/index.css'
35
+ // Import Vue components (Bootstrap 5 JS components are already bundled—do NOT import them again)
36
+ import BootstrapVueTop from 'bootstrap-vue-top'
37
+
38
+ const app = createApp(App)
39
+ app.use(BootstrapVueTop)
40
+ app.mount('#app')
41
+ ```
42
+
43
+
44
+ ## Development
45
+
46
+ ```bash
47
+ # Install dependencies
48
+ npm install
49
+
50
+ # Start the dev server
51
+ npm run dev
52
+
53
+ # Build for production
54
+ npm run build
55
+ ```
56
+
57
+ ### Documentation Website Development
58
+
59
+ ```bash
60
+ cd website
61
+ npm install
62
+ npm run dev
63
+ ```
64
+
65
+
66
+ ## Browser Support
67
+
68
+ - Chrome >= 84
69
+ - Firefox >= 63
70
+ - iOS >= 14.5
71
+ - Safari >= 14.1
72
+
73
+
74
+ ## License
75
+
76
+ MIT License
package/README.zh-CN.md CHANGED
@@ -1,9 +1,77 @@
1
1
  # bootstrap-vue-top
2
- 基于 Bootstrap 5.3.8 & Vue 3.5.x 的前端框架
2
+
3
+ 基于 Bootstrap 5.3.8 & Vue 3.5.x 的前端组件库
3
4
 
4
5
  ## 简介
5
- 这是一个融合了 Bootstrap 5.3.8 和 Vue 3.5.x 的现代化前端框架解决方案,充分发挥了两者的优势:Bootstrap 5 提供强大的 UI 组件库和响应式布局系统,Vue 3 则带来了高效的响应式数据驱动和组合式 API。
6
6
 
7
- 严格遵循“样式归 Bootstrap,行为归 Vue”的架构范式。完全继承 Bootstrap 的原子化工具类(间距、排版、颜色、Flex/Grid 栅格),开发者无需学习新的 CSS类名,直接使用 d-flex、text-primary、mb-3 等原生类名控制外观。
7
+ 这是一个现代化的前端框架解决方案,将 Bootstrap 5.3.8 与 Vue 3.5.x 完美结合,充分利用双方的优势:Bootstrap 5 提供了强大的 UI 组件库和响应式布局系统,而 Vue 3 则带来了高效的数据驱动响应式渲染和 Composition API。
8
+
9
+ 框架严格遵循"样式用 Bootstrap,行为用 Vue"的架构范式,完全继承 Bootstrap 的原子化工具类(间距、字体、颜色、Flex/Grid),开发者无需学习新的 CSS 类名,可直接使用原生类名如 `d-flex`、`text-primary`、`mb-3` 等来控制外观。
10
+
11
+ Bootstrap 官方文档中描述的所有样式类(如表格条纹、卡片分组、栅格偏移等)均可直接在 Vue 项目中使用,降低了团队的学习和迁移成本。
12
+
13
+ ## 特性
14
+
15
+ - **Vue 3 + Composition API**: 使用 Vue 3 最新特性开发
16
+ - **Bootstrap 5 样式**: 完全继承 Bootstrap 5 的全部样式类
17
+ - **组件丰富**: 提供 20+ 常用组件
18
+ - **文档完善**: 配套完整的中文文档网站
19
+
20
+
21
+ ## 安装
22
+
23
+ ```bash
24
+ npm install bootstrap-vue-top
25
+ ```
26
+
27
+
28
+ ## 快速开始
29
+
30
+ ```javascript
31
+ import { createApp } from 'vue'
32
+ import App from './App.vue'
33
+
34
+ // 引入样式(已包括bootstrap 5 样式,切记不要再次引入。)
35
+ import 'bootstrap-vue-top/dist/index.css'
36
+ // 引入Vue组件(已打包bootstrap 5 JS组件,切记不要再次引入。)
37
+ import BootstrapVueTop from 'bootstrap-vue-top'
38
+
39
+ const app = createApp(App)
40
+ app.use(BootstrapVueTop)
41
+ app.mount('#app')
42
+ ```
43
+
44
+
45
+ ## 开发
46
+
47
+ ```bash
48
+ # 安装依赖
49
+ npm install
50
+
51
+ # 启动开发服务器
52
+ npm run dev
53
+
54
+ # 构建生产版本
55
+ npm run build
56
+ ```
57
+
58
+ ### 开发文档网站
59
+
60
+ ```bash
61
+ cd website
62
+ npm install
63
+ npm run dev
64
+ ```
65
+
66
+
67
+ ## 浏览器支持
68
+
69
+ - Chrome >= 84
70
+ - Firefox >= 63
71
+ - iOS >= 14.5
72
+ - Safari >= 14.1
73
+
74
+
75
+ ## 协议
8
76
 
9
- 所有 Bootstrap 官方文档中关于样式类的说明(如表格条纹、卡片分组、网格偏移)在 Vue项目中直接适用,降低了团队的学习与迁移成本。
77
+ MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-vue-top",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "homepage": "https://bootstrap-vue.top",
5
5
  "private": false,
6
6
  "type": "module",
package/postcss.config.js CHANGED
@@ -1,4 +1,3 @@
1
- // postcss.config.js
2
1
  export default {
3
2
  plugins: {
4
3
  autoprefixer: {} // 它会自动读取 .browserslistrc
@@ -14,6 +14,7 @@
14
14
  </div>
15
15
  </template>
16
16
 
17
+
17
18
  <script setup>
18
19
  import { shallowRef, onMounted, onBeforeUnmount, computed } from 'vue';
19
20
  import Toast from 'bootstrap/js/dist/toast';
@@ -14,6 +14,7 @@
14
14
  </div>
15
15
  </template>
16
16
 
17
+
17
18
  <script setup>
18
19
  import { shallowRef, onMounted } from 'vue';
19
20
  const emit = defineEmits(['file-change', 'file-remove']);
@@ -4,4 +4,4 @@
4
4
  position: fixed;
5
5
  bottom: 36px;
6
6
  right: 36px;
7
- }
7
+ }
package/vite.config.js CHANGED
@@ -40,10 +40,10 @@ export default defineConfig({
40
40
  target: 'es2015',
41
41
  lib: {
42
42
  entry: {
43
- 'bootstrap-vue': resolve(import.meta.dirname, 'src/index.js')
43
+ 'bootstrap-vue': resolve(import.meta.dirname, 'src/index.js')
44
44
  },
45
- name:'BootstrapVue',
46
- fileName:'bootstrap-vue',
45
+ name: 'BootstrapVue',
46
+ fileName: 'bootstrap-vue',
47
47
  },
48
48
  rolldownOptions: {
49
49
  external: ['vue'],
@@ -1 +1 @@
1
- import{s as e,u as t,w as n}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s as r}from"./index-CTosVKMq.js";var i={},a={class:`p-5`},o={class:`d-flex justify-content-center`},s={class:`w-75`},c={class:`text-center`};function l(r,i){return n(),t(`div`,a,[e(`div`,o,[e(`div`,s,[e(`div`,c,[i[1]||(i[1]=e(`div`,{class:`text-primary display-1 fw-bold`},`404`,-1)),i[2]||(i[2]=e(`h4`,null,`未找到页面`,-1)),i[3]||(i[3]=e(`p`,{class:`text-secondary`},` 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 `,-1)),e(`button`,{class:`btn btn-primary`,onClick:i[0]||(i[0]=e=>r.$router.back())},`返回`)])])])])}var u=r(i,[[`render`,l]]);export{u as default};
1
+ import{s as e,u as t,w as n}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s as r}from"./index-BaNzOGzm.js";var i={},a={class:`p-5`},o={class:`d-flex justify-content-center`},s={class:`w-75`},c={class:`text-center`};function l(r,i){return n(),t(`div`,a,[e(`div`,o,[e(`div`,s,[e(`div`,c,[i[1]||(i[1]=e(`div`,{class:`text-primary display-1 fw-bold`},`404`,-1)),i[2]||(i[2]=e(`h4`,null,`未找到页面`,-1)),i[3]||(i[3]=e(`p`,{class:`text-secondary`},` 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 `,-1)),e(`button`,{class:`btn btn-primary`,onClick:i[0]||(i[0]=e=>r.$router.back())},`返回`)])])])])}var u=r(i,[[`render`,l]]);export{u as default};
@@ -1,4 +1,4 @@
1
- import{L as e,O as t,f as n,k as r,m as i,p as a,r as o,s,u as c,w as l}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{n as u}from"./index-CTosVKMq.js";var d={class:`docs-toc-nav`},f={id:`docs-nav-alerts`},p={"data-bs-target":`#docs-nav-alerts`,class:`docs-content`},m={class:`docs-example`},h={class:`docs-example`},g={class:`docs-example`},_={class:`docs-example`},v={class:`docs-example-data`},y={class:`alert alert-primary d-flex align-items-center`,role:`alert`},b={class:`docs-example`},x={class:`docs-example-data`},S={class:`alert alert-warning alert-dismissible fade show`,role:`alert`},C=`
1
+ import{L as e,O as t,f as n,k as r,m as i,p as a,r as o,s,u as c,w as l}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{n as u}from"./index-BaNzOGzm.js";var d={class:`docs-toc-nav`},f={id:`docs-nav-alerts`},p={"data-bs-target":`#docs-nav-alerts`,class:`docs-content`},m={class:`docs-example`},h={class:`docs-example`},g={class:`docs-example`},_={class:`docs-example`},v={class:`docs-example-data`},y={class:`alert alert-primary d-flex align-items-center`,role:`alert`},b={class:`docs-example`},x={class:`docs-example-data`},S={class:`alert alert-warning alert-dismissible fade show`,role:`alert`},C=`
2
2
  <div class="alert alert-primary" role="alert">
3
3
  A simple primary alert—check it out!
4
4
  </div>
@@ -1,4 +1,4 @@
1
- import{L as e,O as t,k as n,m as r,p as i,r as a,s as o,u as s,w as c}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{o as l}from"./index-CTosVKMq.js";var u={class:`docs-toc-nav`},d={id:`docs-nav-alerts-box`},f={"data-bs-target":`#docs-nav-alerts-box`,class:`docs-content`},p={class:`docs-example`},m=`
1
+ import{L as e,O as t,k as n,m as r,p as i,r as a,s as o,u as s,w as c}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{o as l}from"./index-BaNzOGzm.js";var u={class:`docs-toc-nav`},d={id:`docs-nav-alerts-box`},f={"data-bs-target":`#docs-nav-alerts-box`,class:`docs-content`},p={class:`docs-example`},m=`
2
2
  <template>
3
3
  <button type="button" class="btn btn-primary"
4
4
  @click="handleClick">Alert Box</button>
@@ -1,4 +1,4 @@
1
- import{L as e,O as t,f as n,k as r,m as i,r as a,s as o,u as s,w as c}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{a as l,i as u}from"./index-CTosVKMq.js";var d={class:`docs-toc-nav`},f={id:`docs-nav-alerts-confirm`},p={"data-bs-target":`#docs-nav-alerts-confirm`,class:`docs-content`},m={class:`docs-example`},h=`
1
+ import{L as e,O as t,f as n,k as r,m as i,r as a,s as o,u as s,w as c}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{a as l,i as u}from"./index-BaNzOGzm.js";var d={class:`docs-toc-nav`},f={id:`docs-nav-alerts-confirm`},p={"data-bs-target":`#docs-nav-alerts-confirm`,class:`docs-content`},m={class:`docs-example`},h=`
2
2
  <template>
3
3
  <button type="button" class="btn btn-primary"
4
4
  @click="handleClick">Alert Confirm</button>
@@ -1,4 +1,4 @@
1
- import{E as e,L as t,O as n,W as r,dt as i,k as a,lt as o,m as s,p as c,r as l,s as u,u as d,w as f}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{i as p}from"./index-CTosVKMq.js";var m={class:`docs-toc-nav`},h={id:`docs-nav-alerts-message`},g={"data-bs-target":`#docs-nav-alerts-message`,class:`docs-content`},_={class:`docs-example`},v={class:`docs-example`},y={class:`docs-example-data`},b={class:`hstack gap-3 flex-wrap`},x=[`onClick`],S={class:`docs-example`},C={class:`docs-example-data`},w=`
1
+ import{E as e,L as t,O as n,W as r,dt as i,k as a,lt as o,m as s,p as c,r as l,s as u,u as d,w as f}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{i as p}from"./index-BaNzOGzm.js";var m={class:`docs-toc-nav`},h={id:`docs-nav-alerts-message`},g={"data-bs-target":`#docs-nav-alerts-message`,class:`docs-content`},_={class:`docs-example`},v={class:`docs-example`},y={class:`docs-example-data`},b={class:`hstack gap-3 flex-wrap`},x=[`onClick`],S={class:`docs-example`},C={class:`docs-example-data`},w=`
2
2
  <template>
3
3
  <button type="button" class="btn btn-primary"
4
4
  @click="handleClick">Alert Message</button>
@@ -1 +1 @@
1
- import{L as e,f as t,k as n,r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s}from"./index-CTosVKMq.js";var c={},l={class:`docs-toc-nav`},u={id:`docs-nav-breakpoints`},d={"data-bs-target":`#docs-nav-breakpoints`,class:`docs-content`};function f(s,c){let f=n(`docstoc`),p=n(`scrollspy`);return o(),a(r,null,[i(`div`,l,[e((o(),a(`nav`,u,[...c[0]||(c[0]=[i(`a`,{href:`#breakpoints-core`},`核心概念`,-1),i(`a`,{href:`#breakpoints-available`},`可用断点`,-1)])])),[[f]])]),e((o(),a(`div`,d,[...c[1]||(c[1]=[t(`<h1>Breakpoints 断点</h1><p class="fs-4 fw-light"> 断点决定了在 Bootstrap 中响应式布局在不同设备或视口尺寸下的表现方式。了解更多请阅读 <a href="https://getbootstrap.com/docs/5.3/layout/breakpoints/" target="_blank">Bootstrap Breakpoints</a></p><h2 id="breakpoints-core"> 核心概念<a class="anchor-link" aria-label="Link to this section: 核心概念" href="#breakpoints-core"></a></h2><ul class="docs-content-list"><li><p><strong>断点是响应式设计的基础元素。</strong> 利用它们来控制您的布局在特定视口或设备尺寸下何时能够进行调整。 </p></li><li><p><strong>使用媒体查询按断点来设计您的 CSS 代码。</strong> 媒体查询是 CSS 的一个特性,它允许您根据一系列浏览器和操作系统参数有条件地应用样式。我们在媒体查询中最常使用的是 <code>min-width</code>。 </p></li><li><p><strong>“移动优先,响应式设计”便是 Bootstrap 的目标。</strong> Bootstrap 的 CSS 的目的是在最小断点下应用最少量的样式以使布局能够正常工作,然后在更大的设备上添加样式来调整该设计。这优化了您的 CSS,提高了渲染速度,并为您的访客提供了出色的体验。 </p></li></ul><h2 id="breakpoints-available"> 可用断点<a class="anchor-link" aria-label="Link to this section: 可用断点" href="#breakpoints-available"></a></h2><p> Bootstrap 包含了六个默认的断点设置,有时也被称为“网格层级”,用于实现响应式设计。如果您使用的是 Bootstrap 的源 Sass 文件,这些断点是可以进行自定义设置的。 </p><div class="table-responsive"><table class="table"><thead><tr><th>Breakpoint</th><th>Class infix</th><th>Dimensions</th></tr></thead><tbody><tr><td>Extra small</td><td><em>None</em></td><td>&lt;576px</td></tr><tr><td>Small</td><td><code>sm</code></td><td>≥576px</td></tr><tr><td>Medium</td><td><code>md</code></td><td>≥768px</td></tr><tr><td>Large</td><td><code>lg</code></td><td>≥992px</td></tr><tr><td>Extra large</td><td><code>xl</code></td><td>≥1200px</td></tr><tr><td>Extra extra large</td><td><code>xxl</code></td><td>≥1400px</td></tr></tbody></table></div><p> 每个断点的设定都是为了能够轻松容纳宽度为 12 的倍数的容器。这些断点也代表了一部分常见的设备尺寸和视口大小——它们并非专门针对每一种使用场景或每一种设备。相反,这些范围为几乎任何设备提供了坚实且一致的基础,以便在此基础上进行构建。 </p>`,8)])])),[[p]])],64)}var p=s(c,[[`render`,f]]);export{p as default};
1
+ import{L as e,f as t,k as n,r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s}from"./index-BaNzOGzm.js";var c={},l={class:`docs-toc-nav`},u={id:`docs-nav-breakpoints`},d={"data-bs-target":`#docs-nav-breakpoints`,class:`docs-content`};function f(s,c){let f=n(`docstoc`),p=n(`scrollspy`);return o(),a(r,null,[i(`div`,l,[e((o(),a(`nav`,u,[...c[0]||(c[0]=[i(`a`,{href:`#breakpoints-core`},`核心概念`,-1),i(`a`,{href:`#breakpoints-available`},`可用断点`,-1)])])),[[f]])]),e((o(),a(`div`,d,[...c[1]||(c[1]=[t(`<h1>Breakpoints 断点</h1><p class="fs-4 fw-light"> 断点决定了在 Bootstrap 中响应式布局在不同设备或视口尺寸下的表现方式。了解更多请阅读 <a href="https://getbootstrap.com/docs/5.3/layout/breakpoints/" target="_blank">Bootstrap Breakpoints</a></p><h2 id="breakpoints-core"> 核心概念<a class="anchor-link" aria-label="Link to this section: 核心概念" href="#breakpoints-core"></a></h2><ul class="docs-content-list"><li><p><strong>断点是响应式设计的基础元素。</strong> 利用它们来控制您的布局在特定视口或设备尺寸下何时能够进行调整。 </p></li><li><p><strong>使用媒体查询按断点来设计您的 CSS 代码。</strong> 媒体查询是 CSS 的一个特性,它允许您根据一系列浏览器和操作系统参数有条件地应用样式。我们在媒体查询中最常使用的是 <code>min-width</code>。 </p></li><li><p><strong>“移动优先,响应式设计”便是 Bootstrap 的目标。</strong> Bootstrap 的 CSS 的目的是在最小断点下应用最少量的样式以使布局能够正常工作,然后在更大的设备上添加样式来调整该设计。这优化了您的 CSS,提高了渲染速度,并为您的访客提供了出色的体验。 </p></li></ul><h2 id="breakpoints-available"> 可用断点<a class="anchor-link" aria-label="Link to this section: 可用断点" href="#breakpoints-available"></a></h2><p> Bootstrap 包含了六个默认的断点设置,有时也被称为“网格层级”,用于实现响应式设计。如果您使用的是 Bootstrap 的源 Sass 文件,这些断点是可以进行自定义设置的。 </p><div class="table-responsive"><table class="table"><thead><tr><th>Breakpoint</th><th>Class infix</th><th>Dimensions</th></tr></thead><tbody><tr><td>Extra small</td><td><em>None</em></td><td>&lt;576px</td></tr><tr><td>Small</td><td><code>sm</code></td><td>≥576px</td></tr><tr><td>Medium</td><td><code>md</code></td><td>≥768px</td></tr><tr><td>Large</td><td><code>lg</code></td><td>≥992px</td></tr><tr><td>Extra large</td><td><code>xl</code></td><td>≥1200px</td></tr><tr><td>Extra extra large</td><td><code>xxl</code></td><td>≥1400px</td></tr></tbody></table></div><p> 每个断点的设定都是为了能够轻松容纳宽度为 12 的倍数的容器。这些断点也代表了一部分常见的设备尺寸和视口大小——它们并非专门针对每一种使用场景或每一种设备。相反,这些范围为几乎任何设备提供了坚实且一致的基础,以便在此基础上进行构建。 </p>`,8)])])),[[p]])],64)}var p=s(c,[[`render`,f]]);export{p as default};
@@ -1 +1 @@
1
- import{L as e,f as t,k as n,r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s}from"./index-CTosVKMq.js";var c={},l={class:`docs-toc-nav`},u={id:`docs-nav-containers`},d={"data-bs-target":`#docs-nav-containers`,class:`docs-content`};function f(s,c){let f=n(`docstoc`),p=n(`scrollspy`);return o(),a(r,null,[i(`div`,l,[e((o(),a(`nav`,u,[...c[0]||(c[0]=[i(`a`,{href:`#containers-about`},`使用说明`,-1)])])),[[f]])]),e((o(),a(`div`,d,[...c[1]||(c[1]=[t(`<h1>Containers 容器</h1><p class="fs-4 fw-light"> 容器是 Bootstrap 的一个基本组成部分,它能够容纳、填充并调整页面内容在特定设备或视口中的布局。了解更多请阅读 <a href="https://getbootstrap.com/docs/5.3/layout/containers/" target="_blank">Bootstrap Containers</a></p><h2 id="containers-about"> 使用说明<a class="anchor-link" aria-label="Link to this section: 使用说明" href="#containers-about"></a></h2><p> 容器是 Bootstrap 中最基本的布局元素,当使用网格系统时,<strong>必须使用容器</strong>。容器用于容纳、填充以及(有时)使内容在其中居中对齐。虽然容器可以嵌套,但大多数布局并不需要嵌套的容器。 </p><p>Bootstrap 提供了三种不同的容器:</p><ul class="docs-content-list"><li><code>.container</code>,它会在每个响应式断点处设置一个 <code>max-width</code></li><li><code>.container-{breakpoint}</code>,直到指定的断点之前为 <code>width: 100%</code></li><li><code>.container-fluid</code>,在所有断点处其 <code>width: 100%</code></li></ul><p> 下面的表格展示了每个容器的 <code>max-width</code> 与原始的 <code>.container</code> 和 <code>.container-fluid</code> 在每个断点下的对比情况。 </p><div class="table-responsive"><table class="table"><thead><tr><th></th><th> Extra small <div class="fw-normal">&lt;576px</div></th><th> Small <div class="fw-normal">≥576px</div></th><th> Medium <div class="fw-normal">≥768px</div></th><th> Large <div class="fw-normal">≥992px</div></th><th> X-Large <div class="fw-normal">≥1200px</div></th><th> XX-Large <div class="fw-normal">≥1400px</div></th></tr></thead><tbody><tr><td><code>.container</code></td><td><span class="text-body-secondary">100%</span></td><td>540px</td><td>720px</td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-sm</code></td><td><span class="text-body-secondary">100%</span></td><td>540px</td><td>720px</td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-md</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>720px</td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-lg</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-xl</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-xxl</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>1320px</td></tr><tr><td><code>.container-fluid</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td></tr></tbody></table></div>`,8)])])),[[p]])],64)}var p=s(c,[[`render`,f]]);export{p as default};
1
+ import{L as e,f as t,k as n,r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s}from"./index-BaNzOGzm.js";var c={},l={class:`docs-toc-nav`},u={id:`docs-nav-containers`},d={"data-bs-target":`#docs-nav-containers`,class:`docs-content`};function f(s,c){let f=n(`docstoc`),p=n(`scrollspy`);return o(),a(r,null,[i(`div`,l,[e((o(),a(`nav`,u,[...c[0]||(c[0]=[i(`a`,{href:`#containers-about`},`使用说明`,-1)])])),[[f]])]),e((o(),a(`div`,d,[...c[1]||(c[1]=[t(`<h1>Containers 容器</h1><p class="fs-4 fw-light"> 容器是 Bootstrap 的一个基本组成部分,它能够容纳、填充并调整页面内容在特定设备或视口中的布局。了解更多请阅读 <a href="https://getbootstrap.com/docs/5.3/layout/containers/" target="_blank">Bootstrap Containers</a></p><h2 id="containers-about"> 使用说明<a class="anchor-link" aria-label="Link to this section: 使用说明" href="#containers-about"></a></h2><p> 容器是 Bootstrap 中最基本的布局元素,当使用网格系统时,<strong>必须使用容器</strong>。容器用于容纳、填充以及(有时)使内容在其中居中对齐。虽然容器可以嵌套,但大多数布局并不需要嵌套的容器。 </p><p>Bootstrap 提供了三种不同的容器:</p><ul class="docs-content-list"><li><code>.container</code>,它会在每个响应式断点处设置一个 <code>max-width</code></li><li><code>.container-{breakpoint}</code>,直到指定的断点之前为 <code>width: 100%</code></li><li><code>.container-fluid</code>,在所有断点处其 <code>width: 100%</code></li></ul><p> 下面的表格展示了每个容器的 <code>max-width</code> 与原始的 <code>.container</code> 和 <code>.container-fluid</code> 在每个断点下的对比情况。 </p><div class="table-responsive"><table class="table"><thead><tr><th></th><th> Extra small <div class="fw-normal">&lt;576px</div></th><th> Small <div class="fw-normal">≥576px</div></th><th> Medium <div class="fw-normal">≥768px</div></th><th> Large <div class="fw-normal">≥992px</div></th><th> X-Large <div class="fw-normal">≥1200px</div></th><th> XX-Large <div class="fw-normal">≥1400px</div></th></tr></thead><tbody><tr><td><code>.container</code></td><td><span class="text-body-secondary">100%</span></td><td>540px</td><td>720px</td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-sm</code></td><td><span class="text-body-secondary">100%</span></td><td>540px</td><td>720px</td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-md</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>720px</td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-lg</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>960px</td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-xl</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>1140px</td><td>1320px</td></tr><tr><td><code>.container-xxl</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td>1320px</td></tr><tr><td><code>.container-fluid</code></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td><td><span class="text-body-secondary">100%</span></td></tr></tbody></table></div>`,8)])])),[[p]])],64)}var p=s(c,[[`render`,f]]);export{p as default};
@@ -1 +1 @@
1
- import{L as e,f as t,k as n,r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s}from"./index-CTosVKMq.js";var c={},l={class:`docs-toc-nav`},u={id:`docs-nav-grid`},d={"data-bs-target":`#docs-nav-grid`,class:`docs-content`};function f(s,c){let f=n(`docstoc`),p=n(`scrollspy`);return o(),a(r,null,[i(`div`,l,[e((o(),a(`nav`,u,[...c[0]||(c[0]=[i(`a`,{href:`#grid-about`},`使用说明`,-1)])])),[[f]])]),e((o(),a(`div`,d,[...c[1]||(c[1]=[t(`<h1>Grid 网格</h1><p class="fs-4 fw-light"> 利用 Bootstrap 强大的移动优先弹性盒网格功能,借助十二列体系、六种默认响应式层级、Sass 变量和混合器以及数十种预定义类,您可以轻松构建各种形状和大小的布局。了解更多请阅读 <a href="https://getbootstrap.com/docs/5.3/layout/grid/" target="_blank">Bootstrap Grid</a></p><h2 id="grid-about"> 使用说明<a class="anchor-link" aria-label="Link to this section: 使用说明" href="#grid-about"></a></h2><p>拆解来看,栅格系统的构成方式如下:</p><ul class="docs-content-list"><li><p><strong>我们的栅格系统支持<a href="https://getbootstrap.com/docs/5.3/layout/breakpoints" target="_blank">六个响应式断点</a>。</strong>断点基于 <code>min-width</code> 媒体查询,这意味着它们会影响当前断点及其以上的所有断点(例如,<code>.col-sm-4</code> 适用于 <code>sm</code>、<code>md</code>、<code>lg</code>、<code>xl</code> 和 <code>xxl</code>)。这样您就可以在每个断点处控制容器和列的尺寸及行为。 </p></li><li><p><strong>容器可居中并水平内边距填充您的内容。</strong>使用 <code>.container</code> 可获得响应式像素宽度;使用 <code>.container-fluid</code> 可获得所有视口和设备上的 <code>width: 100%</code>;或使用响应式容器(如 <code>.container-md</code>)结合流式宽度和像素宽度。 </p></li><li><p><strong>行是列的包装器。</strong>每列都有水平 <code>padding</code>(称为沟槽),用于控制列之间的间距。然后,通过在行上使用负边距来抵消该 <code>padding</code>,以确保列中的内容在左侧视觉对齐。行还支持修饰类,以便<a href="https://getbootstrap.com/docs/5.3/layout/grid/#row-columns" target="_blank">统一应用列宽</a>和<a href="https://getbootstrap.com/docs/5.3/layout/gutters" target="_blank">沟槽类</a>来更改内容的间距。 </p></li><li><p><strong>列具有极大的灵活性。</strong>每行有 12 个模板列可用,允许您创建跨越任意列数的不同元素组合。列类表示要跨越的模板列数(例如,<code>col-4</code> 跨越四列)。宽度以百分比设置,因此您始终具有相同的相对尺寸。 </p></li><li><p><strong>沟槽同样具有响应式且可自定义。</strong><a href="https://getbootstrap.com/docs/5.3/layout/gutters" target="_blank">沟槽类</a>在所有断点均可用,并且具有与我们的<a href="https://getbootstrap.com/docs/5.3/utilities/spacing" target="_blank">间距工具类</a>相同的所有尺寸。使用 <code>.gx-*</code> 类可更改水平沟槽,使用 <code>.gy-*</code> 可更改垂直沟槽,或使用 <code>.g-*</code> 类可同时更改所有沟槽。<code>.g-0</code> 也可用于移除沟槽。 </p></li><li><p><strong>Sass 变量、映射和混合宏为栅格提供动力。</strong>如果您不想使用 Bootstrap 中预定义的栅格类,您可以使用我们的<a href="https://getbootstrap.com/docs/5.3/layout/grid/#sass-variables" target="_blank">栅格源 Sass</a> 来创建具有更多语义标记的自定义栅格。我们还提供了一些 CSS 自定义属性,以使用这些 Sass 变量,为您带来更大的灵活性。 </p></li></ul>`,5)])])),[[p]])],64)}var p=s(c,[[`render`,f]]);export{p as default};
1
+ import{L as e,f as t,k as n,r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s}from"./index-BaNzOGzm.js";var c={},l={class:`docs-toc-nav`},u={id:`docs-nav-grid`},d={"data-bs-target":`#docs-nav-grid`,class:`docs-content`};function f(s,c){let f=n(`docstoc`),p=n(`scrollspy`);return o(),a(r,null,[i(`div`,l,[e((o(),a(`nav`,u,[...c[0]||(c[0]=[i(`a`,{href:`#grid-about`},`使用说明`,-1)])])),[[f]])]),e((o(),a(`div`,d,[...c[1]||(c[1]=[t(`<h1>Grid 网格</h1><p class="fs-4 fw-light"> 利用 Bootstrap 强大的移动优先弹性盒网格功能,借助十二列体系、六种默认响应式层级、Sass 变量和混合器以及数十种预定义类,您可以轻松构建各种形状和大小的布局。了解更多请阅读 <a href="https://getbootstrap.com/docs/5.3/layout/grid/" target="_blank">Bootstrap Grid</a></p><h2 id="grid-about"> 使用说明<a class="anchor-link" aria-label="Link to this section: 使用说明" href="#grid-about"></a></h2><p>拆解来看,栅格系统的构成方式如下:</p><ul class="docs-content-list"><li><p><strong>我们的栅格系统支持<a href="https://getbootstrap.com/docs/5.3/layout/breakpoints" target="_blank">六个响应式断点</a>。</strong>断点基于 <code>min-width</code> 媒体查询,这意味着它们会影响当前断点及其以上的所有断点(例如,<code>.col-sm-4</code> 适用于 <code>sm</code>、<code>md</code>、<code>lg</code>、<code>xl</code> 和 <code>xxl</code>)。这样您就可以在每个断点处控制容器和列的尺寸及行为。 </p></li><li><p><strong>容器可居中并水平内边距填充您的内容。</strong>使用 <code>.container</code> 可获得响应式像素宽度;使用 <code>.container-fluid</code> 可获得所有视口和设备上的 <code>width: 100%</code>;或使用响应式容器(如 <code>.container-md</code>)结合流式宽度和像素宽度。 </p></li><li><p><strong>行是列的包装器。</strong>每列都有水平 <code>padding</code>(称为沟槽),用于控制列之间的间距。然后,通过在行上使用负边距来抵消该 <code>padding</code>,以确保列中的内容在左侧视觉对齐。行还支持修饰类,以便<a href="https://getbootstrap.com/docs/5.3/layout/grid/#row-columns" target="_blank">统一应用列宽</a>和<a href="https://getbootstrap.com/docs/5.3/layout/gutters" target="_blank">沟槽类</a>来更改内容的间距。 </p></li><li><p><strong>列具有极大的灵活性。</strong>每行有 12 个模板列可用,允许您创建跨越任意列数的不同元素组合。列类表示要跨越的模板列数(例如,<code>col-4</code> 跨越四列)。宽度以百分比设置,因此您始终具有相同的相对尺寸。 </p></li><li><p><strong>沟槽同样具有响应式且可自定义。</strong><a href="https://getbootstrap.com/docs/5.3/layout/gutters" target="_blank">沟槽类</a>在所有断点均可用,并且具有与我们的<a href="https://getbootstrap.com/docs/5.3/utilities/spacing" target="_blank">间距工具类</a>相同的所有尺寸。使用 <code>.gx-*</code> 类可更改水平沟槽,使用 <code>.gy-*</code> 可更改垂直沟槽,或使用 <code>.g-*</code> 类可同时更改所有沟槽。<code>.g-0</code> 也可用于移除沟槽。 </p></li><li><p><strong>Sass 变量、映射和混合宏为栅格提供动力。</strong>如果您不想使用 Bootstrap 中预定义的栅格类,您可以使用我们的<a href="https://getbootstrap.com/docs/5.3/layout/grid/#sass-variables" target="_blank">栅格源 Sass</a> 来创建具有更多语义标记的自定义栅格。我们还提供了一些 CSS 自定义属性,以使用这些 Sass 变量,为您带来更大的灵活性。 </p></li></ul>`,5)])])),[[p]])],64)}var p=s(c,[[`render`,f]]);export{p as default};
@@ -0,0 +1 @@
1
+ import{I as e,O as t,m as n,p as r,s as i,u as a,w as o}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{s}from"./index-BaNzOGzm.js";import{t as c}from"./arrow-right-C4DLGIcF.js";var l={},u={class:`container`},d={class:`hstack gap-3 justify-content-center mt-5`};function f(s,l){let f=c,p=t(`RouterLink`);return o(),a(`div`,null,[i(`div`,u,[l[1]||(l[1]=i(`h1`,{class:`display-3 fw-bold text-center mt-5`},`BootstrapVueTop`,-1)),l[2]||(l[2]=i(`h1`,{class:`display-5 text-center mt-3`},`基于 Bootstrap 5.3.8 & Vue 3.x 的前端框架`,-1)),i(`div`,d,[n(p,{to:`/docs`,class:`icon-link icon-link-hover display-5`},{default:e(()=>[l[0]||(l[0]=r(`查看文档`,-1)),n(f)]),_:1})])])])}var p=s(l,[[`render`,f]]);export{p as default};
@@ -1,4 +1,4 @@
1
- import{L as e,O as t,k as n,m as r,p as i,r as a,s as o,u as s,w as c}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{u as l}from"./runtime-dom.esm-bundler-BduKYJ8h.js";import{r as u}from"./index-CTosVKMq.js";var d={class:`docs-toc-nav`},f={id:`docs-nav-image-preview`},p={"data-bs-target":`#docs-nav-uploader`,class:`docs-content`},m={class:`docs-example`},h={class:`docs-example-data`},g=`
1
+ import{L as e,O as t,k as n,m as r,p as i,r as a,s as o,u as s,w as c}from"./runtime-core.esm-bundler-Dn6qkx_V.js";import{u as l}from"./runtime-dom.esm-bundler-BduKYJ8h.js";import{r as u}from"./index-BaNzOGzm.js";var d={class:`docs-toc-nav`},f={id:`docs-nav-image-preview`},p={"data-bs-target":`#docs-nav-uploader`,class:`docs-content`},m={class:`docs-example`},h={class:`docs-example-data`},g=`
2
2
  <template>
3
3
  <a href="#" @click.prevent="handleImageManyPreview">
4
4
  <img src="/images/docs-slide1-800x800.jpg" class="object-fit-cover" width="150" height="150" />