我正在尝试更改项目中的“主要”、“危险”、“信息”等主题颜色。我使用 bootstrap-vue。我尝试更改node_modules中bootstrap文件夹中的variables.sass文件,但没有任何反映。我查看了主题文档,但我似乎无法理解它,或者不知道我应该做什么。他们的示例看起来与 CLI 4 的脚手架项目完全不同。我应该创建自定义 sass 文件、安装 sass 加载程序并导入它吗?
main.js
import Vue from 'vue';
import App from './App.vue';
import VueRouter from 'vue-router';
import BootstrapVue from 'bootstrap-vue';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
import './assets/main.css';
import routes from './routes';
Vue.config.productionTip = false;
Vue.use(VueRouter);
Vue.use(BootstrapVue);
const router = new VueRouter({mode: 'history',routes});
new Vue({
router,
render: h => h(App)
}).$mount('#app')
Run Code Online (Sandbox Code Playgroud)
应用程序.vue
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
}
</script>
<style lang="css">
@import 'assets/main.css';
@import 'assets/custom_scss.scss';
</style>
Run Code Online (Sandbox Code Playgroud) Swift 4 iOS 11.4
我正在尝试学习如何使用WKWebView,但是我遇到了一个问题,即任何电话号码链接实际上都不会显示用于呼叫该号码的弹出窗口。
我遵循了这个答案,下面列出了打印的错误。我正在使用的网站是一个使用quickactionbar的wix网站(我知道它使用tel:xxxxx,所以它应该可以正常工作,因为它可以在safari上工作)知道为什么这样做吗?
编辑:另外,我也不完全确定要搜索什么才能获得所需的答案。如果您确切地知道要搜索什么才能找到答案,那么我也会对此感到非常满意。
如果我长按它会识别出它是一个电话号码,但是只要我轻按它就不会做任何事情
import Foundation
import WebKit
class WebKitViewController: UIViewController, WKUIDelegate, WKNavigationDelegate {
var webView: WKWebView!
@IBOutlet weak var backButton: UIBarButtonItem!
@IBAction func backButtonAction(_ sender: UIBarButtonItem) {
if self.webView.canGoBack {
self.webView.goBack()
}
}
override func loadView() {
let webConfiguration = WKWebViewConfiguration()
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.uiDelegate = self
webView.navigationDelegate = self
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
let myURL = URL(string: "Link")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest) …Run Code Online (Sandbox Code Playgroud)