前言介紹
- 這款 WordPress 外掛「SC-Vue」是 2020-05-15 上架。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2021-06-04,距離現在已有 1430 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.4 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
vue |
內容簡介
SC-Vue 提供一個短代碼來注入 Vue.js 應用程式
到 WordPress 頁面和文章中。例如,以下短代碼
會注入 'demo_posts' 應用程式:
[pl2010_vue app="demo_posts"/]
一個應用程式由兩個檔案組成,index.js 和 index.html。它們位於
在外掛中 'apps' 目錄下的一個名為應用程式名稱的子目錄下。
對於 'demo_posts' 應用程式,這意味著:
WP_PLUGIN_DIR/sc-vue/apps/demo_posts/index.js
WP_PLUGIN_DIR/sc-vue/apps/demo_posts/index.html
index.js Javascript 檔案設置一個初始化函式,
用於創建 Vue 模型。該模型控制一個 SC-Vue 渲染的
該
參見 apps/demo_01 和 apps/demo_02,這是 index.js
和 index.html 的簡單示例。對於一個更複雜和現實的範例,使用
webpack.js 將 Javascript 和樣式打包成單一個 index.js,請參見 apps/demo_posts。
有關更多詳細信息,請查閱 init.php 中短代碼功能的文件。
原文外掛簡介
SC-Vue provides a shortcode to inject Vue.js apps
into WordPress pages and posts. For example, the following shortcode
would inject the ‘demo_posts’ app:
[pl2010_vue app="demo_posts"/]
An app is made up of two files, index.js and index.html. They reside
in a subdirectory bearing the app’s name under the ‘apps’ directory
in the plugin. For the ‘demo_posts’ app, that means:
WP_PLUGIN_DIR/sc-vue/apps/demo_posts/index.js
WP_PLUGIN_DIR/sc-vue/apps/demo_posts/index.html
The index.js Javascript file sets up an initialization function for
creating a Vue model. That model controls a
SC-Vue renders; the content of that
See apps/demo_01 and apps/demo_02 for simple examples of index.js
and index.html. For a more complex and realistic example that uses
webpack.js to packs Javascript and styles
into a single index.js, see apps/demo_posts. Additional details may
be found in the documentation of the shortcode function in init.php.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SC-Vue」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
WP Vue by Shaanz 》您可以選擇針對個別的文章類型進行開發或生產, 或者, 您可以透過「設置」->「WP Vue」進行全域設置。, 功能特色, , 能夠管理在個別頁面/文章或任何自定義文章...。
Wp Vue 》WP Vue 外掛程式將提供您顯示文章的快速代碼,使用 VUE JS 在頁面上顯示的方式顯示。網頁將顯示為單一頁面應用程式。, WP Vue 的主要功能包括:, , , 使用 Vue...。