### Vue Component Example Browsing Modes Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/badge Illustrates different modes for browsing component examples in Vue, such as multi-example and single-example views. ```Vue ```vue ``` ``` -------------------------------- ### Vue Component Theming Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-data-source Demonstrates how to apply OS-like themes to Vue components using CSS variables and JavaScript. This snippet shows a basic setup for dynamic theming. ```Vue ``` -------------------------------- ### Chart Basic Usage Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-graph Demonstrates the basic usage of the Chart component. Refer to the following example for detailed usage instructions. ```vue ______ ``` -------------------------------- ### Vue OS Theme Component Examples Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/autocomplete Provides examples for the OS Theme components in Vue.js. This section allows developers to browse different modes and styles for the components. ```Vue ```K` ``` -------------------------------- ### JavaScript for Theme Switching (Conceptual) Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/alert A conceptual example of how JavaScript might be used to dynamically switch between different OS themes or apply theme variations. ```JavaScript function switchTheme(themeName) { // Logic to load and apply the specified theme // This could involve adding/removing CSS classes or importing different stylesheets console.log(`Switching to theme: ${themeName}`); // Example: document.body.classList.add(themeName); } // Example usage: // switchTheme('dark-theme'); ``` -------------------------------- ### Vue Component Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/alert Demonstrates the basic structure and usage of a Vue.js component within the OpenTiny Vue framework. This example showcases how to import and render a component, likely a button or input field, with basic props and event handling. ```Vue.js ``` -------------------------------- ### Vue Component Theming Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-dynamically-columns Demonstrates how to apply OS-like themes to Vue components using CSS variables and JavaScript. This snippet shows a basic setup for dynamic theming. ```Vue ``` -------------------------------- ### Chart 图表 - 基本用法 Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-ring Provides basic usage examples for the Chart component. Detailed usage can be found in the referenced examples. ```vue ``` -------------------------------- ### Vue Component Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/button Demonstrates the basic structure and usage of a Vue.js component within the OpenTiny Vue framework. This example showcases how to import and render a component, likely a button or input field, with basic props and event handling. ```Vue.js ``` -------------------------------- ### Dynamic Theme Switching Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-radar Illustrates how to dynamically switch between different themes, such as the OS theme and a dark theme, within a Vue application. ```JavaScript import { ref } from 'vue'; import { ThemeProvider } from '@opentiny/vue'; export default { components: { ThemeProvider }, setup() { const currentTheme = ref('os'); // 'os' or 'dark' const switchTheme = (theme) => { currentTheme.value = theme; }; return { currentTheme, switchTheme }; } }; ``` -------------------------------- ### Display Title Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/icon Demonstrates how to display a title using the OpenTiny vue component library. This example likely utilizes a specific title component provided by the library. ```vue ``` -------------------------------- ### Vue.js OS Theme Component Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/carousel Demonstrates a basic Vue.js component structure for applying OS-specific themes. This example shows how to import and use theme-related styles and potentially logic within a Vue component. ```Vue.js ``` -------------------------------- ### OpenTiny Vue OS Theme Basic Usage Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/autocomplete Demonstrates the fundamental usage of OpenTiny Vue's OS theme components. This section likely covers the initial setup and rendering of these components within a Vue.js application. ```vue ``` -------------------------------- ### OpenTiny Vue OS Theme Event Handling Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/autocomplete Provides examples of handling various events emitted by OpenTiny Vue's OS theme components. This is essential for reacting to user interactions and component state changes. ```vue ``` -------------------------------- ### Chart 图表 - 基本用法 Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-funnel Demonstrates the basic usage of the Chart component. It serves as a starting point for integrating charts into your application. Further details can be found in the provided examples. ```vue ``` -------------------------------- ### OpenTiny Vue OS Theme Component Examples Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-toolbar This section provides access to component examples for the OpenTiny Vue OS Theme. Users can browse examples in different modes, such as multi-example or single-example, and view code styles like Options API or Composition API. ```Vue ```K ``` -------------------------------- ### OpenTiny Vue OS Theme Code Examples Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/steps This section provides code examples for the OpenTiny Vue OS Theme. It allows users to browse examples in different modes, such as multi-example or single-example, and view them in different styles like options or composition. ```Vue ```K` ``` -------------------------------- ### Chart Component Basic Usage - OpenTiny Vue Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-process Demonstrates the fundamental usage of the Chart component in OpenTiny Vue. This section provides examples for getting started with integrating charts into your application. ```vue ``` -------------------------------- ### OpenTiny Vue OS Theme Code Examples Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-faq This section provides code examples for the OpenTiny Vue OS Theme. It allows users to browse examples in different modes, such as multi-example or single-example, and view them in different styles like options or composition. ```Vue ```K` ``` -------------------------------- ### Dynamic Theme Switching (JavaScript Example) Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid Provides a JavaScript example for dynamically switching between different themes or applying the OS theme based on user preference or system settings. ```javascript function applyOsTheme() { document.body.classList.add('os-theme-active'); // Potentially load theme-specific JS or update CSS variables dynamically } function removeOsTheme() { document.body.classList.remove('os-theme-active'); } // Example usage: // applyOsTheme(); ``` -------------------------------- ### Chart 图表 - 多组数据示例 Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-radar Provides examples for using the Chart component with multiple sets of data. Detailed usage can be found in the following examples. ```vue ```vue ``` ``` -------------------------------- ### Dynamic Theme Switching (JavaScript Example) Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-span Provides a JavaScript example for dynamically switching between different themes or applying the OS theme based on user preference or system settings. ```javascript function applyOsTheme() { document.body.classList.add('os-theme-active'); // Potentially load theme-specific JS or update CSS variables dynamically } function removeOsTheme() { document.body.classList.remove('os-theme-active'); } // Example usage: // applyOsTheme(); ``` -------------------------------- ### Install OpenTiny Vue Chart Components Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-docs Instructions for installing the OpenTiny Vue chart components using npm or yarn. This is the recommended way to start development. ```bash npm i @opentiny/vue-huicharts # or yarn add @opentiny/vue-huicharts ``` -------------------------------- ### Chart Custom Node Connection Style Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-graph Illustrates how to customize the connection styles for nodes within the Chart component. Detailed usage is provided in the example. ```vue ______ ``` -------------------------------- ### Chart 图表 - 金字塔漏斗图示例 Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-funnel Provides a specific example of a funnel chart, likely a pyramid funnel chart, showcasing its implementation within the OpenTiny Vue framework. Refer to the example for detailed usage. ```vue ``` -------------------------------- ### Chart Basic Usage Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-pie Demonstrates the basic usage of the Chart component. Refer to the following example for detailed usage instructions. ```vue ______ ``` -------------------------------- ### OpenTiny Vue User Guidance - Paragraphs Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/guide Shows how to implement user guidance using simple text paragraphs within OpenTiny Vue components. This is useful for providing instructions or contextual information to users. ```vue ``` -------------------------------- ### Vue Component Theming Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-tree-table Demonstrates how to apply OS-specific themes to Vue components using CSS variables and a theming utility. This example shows the basic structure for creating themeable components. ```Vue ``` -------------------------------- ### JavaScript for Theme Switching (Conceptual) Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/guide A conceptual example of how JavaScript might be used to dynamically switch between different OS themes or apply theme variations. ```JavaScript function switchTheme(themeName) { // Logic to load and apply the specified theme // This could involve adding/removing CSS classes or importing different stylesheets console.log(`Switching to theme: ${themeName}`); // Example: document.body.classList.add(themeName); } // Example usage: // switchTheme('dark-theme'); ``` -------------------------------- ### JavaScript for Theme Switching (Conceptual) Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-line A conceptual example of how JavaScript might be used to dynamically switch between different OS themes or apply theme variations. ```JavaScript function switchTheme(themeName) { // Logic to load and apply the specified theme // This could involve adding/removing CSS classes or importing different stylesheets console.log(`Switching to theme: ${themeName}`); // Example: document.body.classList.add(themeName); } // Example usage: // switchTheme('dark-theme'); ``` -------------------------------- ### Linux OS Theme Styles (Example) Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/icon This CSS code provides an example of how OpenTiny Vue components can be styled to align with common Linux desktop environments. It includes basic styling for buttons and inputs, adaptable to various Linux themes. ```CSS .os-theme-container { font-family: Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; } .tiny-button { background-color: #337ab7; color: white; border: 1px solid #2e6da4; border-radius: 3px; padding: 8px 16px; } .tiny-input { border: 1px solid #ccc; border-radius: 3px; padding: 8px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); } ``` -------------------------------- ### Chart 图表 - 基本用法 Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-radar Demonstrates the basic usage of the Chart component. Refer to the following examples for detailed usage. ```vue ```vue ``` ``` -------------------------------- ### Dynamic Theme Switching Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-loading Illustrates how to dynamically switch between different themes, such as the OS theme and a dark theme, within a Vue application. ```JavaScript import { ref } from 'vue'; import { ThemeProvider } from '@opentiny/vue'; export default { components: { ThemeProvider }, setup() { const currentTheme = ref('os'); // 'os' or 'dark' const switchTheme = (theme) => { currentTheme.value = theme; }; return { currentTheme, switchTheme }; } }; ``` -------------------------------- ### DatePicker Range Selection Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/date-picker Illustrates how to configure the DatePicker for selecting a date range. This is useful for scenarios where users need to specify a start and end date. ```vue ``` -------------------------------- ### JavaScript for Theme Management in OpenTiny Vue Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-edit Provides JavaScript code examples for managing theme switching and applying styles dynamically within an OpenTiny Vue application. This includes functions to load and apply theme configurations. ```javascript import { setTheme } from 'opentiny-vue'; function applyOsTheme(themeName) { // Example: Load theme configuration from a JSON file or object const themeConfig = { 'light': { '--os-background-color': '#ffffff', '--os-text-color': '#333333', '--os-spacing-medium': '16px', '--os-border-radius': '4px' }, 'dark': { '--os-background-color': '#333333', '--os-text-color': '#ffffff', '--os-spacing-medium': '16px', '--os-border-radius': '4px' } }; if (themeConfig[themeName]) { setTheme(themeConfig[themeName]); console.log(`OS theme '${themeName}' applied.`); } else { console.error(`OS theme '${themeName}' not found.`); } } // Usage example: // applyOsTheme('dark'); ``` -------------------------------- ### Chart 图表 - 双重圆环图示例 Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-ring Demonstrates how to create a double ring chart using the Chart component. Detailed usage instructions are available in the provided examples. ```vue ``` -------------------------------- ### 基础用法 - Guide 引导 Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/guide 通过 `dom-data` 设置每个步骤的内容,`show-step` 属性开启指引。`dom-data` 的详细配置参考 IDomData 类型。 ```vue ``` -------------------------------- ### OpenTiny Vue Carousel Rotation Cards Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/carousel Shows an example of using rotation cards within the OpenTiny Vue Carousel, likely for a more dynamic or visually distinct presentation. ```vue ``` -------------------------------- ### OpenTiny Vue OS Theme: Basic Usage and Data Formatting Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/tree Demonstrates the fundamental usage of the OS theme components and how to format data for display. This includes setting up the basic structure and defining how data should be presented to the user. ```Vue ``` -------------------------------- ### Virtual Scrolling in OpenTiny Vue Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-large-data Demonstrates the implementation of virtual scrolling for enhanced performance with large datasets in OpenTiny Vue. This includes setup and basic usage patterns. ```Vue ``` -------------------------------- ### Vue Component Theming Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/flowchart Demonstrates how to apply OS-specific themes to Vue components using CSS variables and the OpenTiny theming system. This allows for dynamic theme switching and customization. ```Vue ``` -------------------------------- ### Vue.js Theme Customization Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart Demonstrates how to customize themes in a Vue.js application using OpenTiny components. This snippet likely involves importing theme variables and applying them to components. ```Vue.js import { defineComponent } from 'vue'; export default defineComponent({ name: 'ThemeExample', template: `

This is a themed component.

`, }); ``` ```CSS .theme-container { --primary-color: #4CAF50; /* Example primary color */ background-color: var(--background-color, #ffffff); color: var(--text-color, #333333); padding: 20px; border-radius: 8px; } ``` -------------------------------- ### CSS Variables for Theming Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/carousel This example shows how CSS custom properties (variables) can be used to manage theme-specific values. These variables would be updated based on the detected operating system. ```CSS :root { --primary-color: #007bff; --background-color: #f8f9fa; --text-color: #212529; } .windows { --primary-color: #005fcc; --background-color: #e9ecef; } .macos { --primary-color: #007aff; --background-color: #f2f2f7; } .linux { --primary-color: #4CAF50; --background-color: #f0f0f0; } .os-theme-container { background-color: var(--background-color); color: var(--text-color); } button { background-color: var(--primary-color); color: white; } ``` -------------------------------- ### OpenTiny Vue OS Theme Basic Usage Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/tree-select Demonstrates the fundamental usage of the OpenTiny Vue OS Theme component. This section covers the initial setup and essential props required to render the component. ```vue ``` -------------------------------- ### Vue.js Theme Customization Example Source: https://opentiny.design/tiny-vue/zh-CN/os-theme/components/chart-autonavi-map Demonstrates how to customize themes in a Vue.js application using OpenTiny components. This snippet likely involves importing theme variables and applying them to components. ```Vue.js import { defineComponent } from 'vue'; export default defineComponent({ name: 'ThemeExample', template: `

This is a themed component.

`, }); ``` ```CSS .theme-container { --primary-color: #4CAF50; /* Example primary color */ background-color: var(--background-color, #ffffff); color: var(--text-color, #333333); padding: 20px; border-radius: 8px; } ```