### InputNumber Component Examples Source: https://context7_llms Provides examples for the InputNumber component, demonstrating its usage in different scenarios. This component is used for numerical input fields. ```html ``` -------------------------------- ### AutoComplete Component Examples Source: https://context7_llms Presents examples for the AutoComplete component, which provides suggestions as the user types. Useful for search bars and input fields with predefined options. ```html ``` -------------------------------- ### TimePicker Component Examples Source: https://context7_llms Showcases examples of the TimePicker component, allowing users to select time values. Useful for forms and scheduling applications. ```html ``` -------------------------------- ### Rate Component Examples Source: https://context7_llms Illustrates examples of the Rate component, commonly used for user ratings or scoring. It allows users to select a number of stars or other symbols. ```html ``` -------------------------------- ### DatePicker Component Examples Source: https://context7_llms Demonstrates the usage of the DatePicker component for selecting dates. It's essential for applications requiring date input. ```html ``` -------------------------------- ### ColorPicker Component Usage (Vue) Source: https://context7_llms Provides an example of using the ColorPicker component in a Vue application. This component allows users to select colors visually. ```vue ``` -------------------------------- ### ConfigProvider API Documentation Source: https://context7_llms Provides API documentation for the ConfigProvider component, detailing its usage and available properties for global configuration. ```APIDOC ## GET /api/components/configprovider ### Description Provides API documentation for the ConfigProvider component, used for global configuration. ### Method GET ### Endpoint /api/components/configprovider ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "version": "1.0.0" } ``` ### Response #### Success Response (200) - **documentation_url** (string) - URL to the detailed API documentation. #### Response Example ```json { "documentation_url": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-provider/api" } ``` ``` -------------------------------- ### ColorPicker API Documentation Source: https://context7_llms Provides API documentation for the ColorPicker component, detailing its usage for selecting colors. ```APIDOC ## GET /api/components/colorpicker ### Description Provides API documentation for the ColorPicker component, used for color selection. ### Method GET ### Endpoint /api/components/colorpicker ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "version": "1.0.0" } ``` ### Response #### Success Response (200) - **documentation_url** (string) - URL to the detailed API documentation. #### Response Example ```json { "documentation_url": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-colorpicker/api" } ``` ``` -------------------------------- ### Svgicon API Documentation Source: https://context7_llms Provides API documentation for the Svgicon component, detailing its usage and available properties. ```APIDOC ## GET /api/components/svgicon ### Description Provides API documentation for the Svgicon component. ### Method GET ### Endpoint /api/components/svgicon ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "version": "1.0.0" } ``` ### Response #### Success Response (200) - **documentation_url** (string) - URL to the detailed API documentation. #### Response Example ```json { "documentation_url": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-svgicon/api" } ``` ``` -------------------------------- ### Clipboard API Documentation Source: https://context7_llms Provides API documentation for the Clipboard component, detailing its functionality for handling clipboard operations. ```APIDOC ## GET /api/components/clipboard ### Description Provides API documentation for the Clipboard component, used for clipboard operations. ### Method GET ### Endpoint /api/components/clipboard ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "version": "1.0.0" } ``` ### Response #### Success Response (200) - **documentation_url** (string) - URL to the detailed API documentation. #### Response Example ```json { "documentation_url": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-clipboard/api" } ``` ``` -------------------------------- ### Dynamically Load CSS Based on CSS Variable Support (JavaScript) Source: https://yondesign.yonyoucloud.com/homepage This JavaScript code checks if the browser supports CSS variables (specifically '--wui-primary-color'). Based on the support, it dynamically creates and inserts a link element to load either the main tinper-next CSS file or a default theme CSS file. It extracts the tinper version from an existing script tag. ```javascript var isSupported = window.CSS && window.CSS.supports && window.CSS.supports('--wui-primary-color', '#e23'); //判定是否支持css变量 var jsLink = document.getElementById('tinper-next-js-id'); var tinperVersion = jsLink.src.match(/tinper-next\/\D+\/\D+.js/)[0].split('/')[1]; var cssLinkNode = document.createElement('link'); cssLinkNode.type = "text/css"; cssLinkNode.rel = "stylesheet"; cssLinkNode.id = 'tinper-next-css-id'; if (isSupported) { cssLinkNode.href = '//design.yonyoucloud.com/static/tinper-next/' + tinperVersion + '/tinper-next.css'; document.head.insertBefore(cssLinkNode, document.head.getElementsByTagName('link')[0]); } else { cssLinkNode.href = '//design.yonyoucloud.com/static/tinper-next/' + tinperVersion + '/theme/tinper-next-default.css'; document.head.insertBefore(cssLinkNode, document.head.getElementsByTagName('link')[0]); } ``` -------------------------------- ### TimePicker API Source: https://context7_llms API documentation for the TimePicker component, used for selecting time. ```APIDOC ## GET /api/components/timepicker ### Description Provides API details for the TimePicker component. ### Method GET ### Endpoint /api/components/timepicker ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "example": "No request body for GET request" } ``` ### Response #### Success Response (200) - **componentName** (string) - The name of the component. - **apiReference** (string) - URL to the detailed API documentation. #### Response Example ```json { "componentName": "TimePicker", "apiReference": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-timepicker/api" } ``` ``` -------------------------------- ### Locale API Documentation Source: https://context7_llms Provides API documentation for the Locale component, detailing its usage for multi-language support. ```APIDOC ## GET /api/components/locale ### Description Provides API documentation for the Locale component, enabling multi-language support. ### Method GET ### Endpoint /api/components/locale ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "version": "1.0.0" } ``` ### Response #### Success Response (200) - **documentation_url** (string) - URL to the detailed API documentation. #### Response Example ```json { "documentation_url": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-locale/api" } ``` ``` -------------------------------- ### AutoComplete API Source: https://context7_llms API documentation for the AutoComplete component, used for input with suggestions. ```APIDOC ## GET /api/components/autocomplete ### Description Provides API details for the AutoComplete component. ### Method GET ### Endpoint /api/components/autocomplete ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "example": "No request body for GET request" } ``` ### Response #### Success Response (200) - **componentName** (string) - The name of the component. - **apiReference** (string) - URL to the detailed API documentation. #### Response Example ```json { "componentName": "AutoComplete", "apiReference": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-autocomplete/api" } ``` ``` -------------------------------- ### Clipboard Copy Functionality (Vue) Source: https://context7_llms Demonstrates how to use the Clipboard component to copy text to the user's clipboard in a Vue application. This is useful for features like copying codes or links. ```vue ``` -------------------------------- ### DatePicker API Source: https://context7_llms API documentation for the DatePicker component, used for selecting dates. ```APIDOC ## GET /api/components/datepicker ### Description Provides API details for the DatePicker component. ### Method GET ### Endpoint /api/components/datepicker ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "example": "No request body for GET request" } ``` ### Response #### Success Response (200) - **componentName** (string) - The name of the component. - **apiReference** (string) - URL to the detailed API documentation. #### Response Example ```json { "componentName": "DatePicker", "apiReference": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-datepicker/api" } ``` ``` -------------------------------- ### InputNumber API Source: https://context7_llms API documentation for the InputNumber component, used for numerical input. ```APIDOC ## GET /api/components/inputnumber ### Description Provides API details for the InputNumber component. ### Method GET ### Endpoint /api/components/inputnumber ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "example": "No request body for GET request" } ``` ### Response #### Success Response (200) - **componentName** (string) - The name of the component. - **apiReference** (string) - URL to the detailed API documentation. #### Response Example ```json { "componentName": "InputNumber", "apiReference": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-input-number/api" } ``` ``` -------------------------------- ### ConfigProvider Global Configuration (Vue) Source: https://context7_llms Illustrates the usage of the ConfigProvider component for global configuration in a Vue application. This component allows setting global properties that affect child components, such as language or theme. ```vue ``` -------------------------------- ### Locale Management (Vue) Source: https://context7_llms Shows how to implement multi-language support using the Locale component in a Vue application. This component helps manage language settings and translations for the UI. ```vue ``` -------------------------------- ### Svgicon Component Usage (Vue) Source: https://context7_llms Demonstrates how to use the Svgicon component in a Vue.js application. This component is used for displaying SVG icons. Ensure the necessary icon assets are available. ```vue ``` -------------------------------- ### Rate API Source: https://context7_llms API documentation for the Rate component, used for user ratings. ```APIDOC ## GET /api/components/rate ### Description Provides API details for the Rate component. ### Method GET ### Endpoint /api/components/rate ### Parameters #### Query Parameters - **version** (string) - Optional - Specifies the version of the API. ### Request Example ```json { "example": "No request body for GET request" } ``` ### Response #### Success Response (200) - **componentName** (string) - The name of the component. - **apiReference** (string) - URL to the detailed API documentation. #### Response Example ```json { "componentName": "Rate", "apiReference": "https://yondesign.yonyoucloud.com/website/#/detail/component/wui-rate/api" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.