我使用了你在GitHub上的源码,依旧有报错如下:
[Vue warn]: Property or method "color" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
found in
---> <SlFilter> at C:/Users/ws110/Documents/HBuilderProjects/filiter/components/sl-filter/sl-filter.vue
<VUniView>
<Root>
<PageBody>
<Page>
<PagesIndexIndex1>
<App>
<Root>
warn @ vue.runtime.esm.js:619
warnNonPresent @ vue.runtime.esm.js:2015
get @ vue.runtime.esm.js:2070
(anonymous) @ sl-filter.vue?baba:27
renderList @ vue.runtime.esm.js:2630
render @ sl-filter.vue?baba:12
Vue._render @ vue.runtime.esm.js:3542
updateComponent @ vue.runtime.esm.js:4060
get @ vue.runtime.esm.js:4473
Watcher @ vue.runtime.esm.js:4462
mountComponent @ vue.runtime.esm.js:4067
./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8427
init @ vue.runtime.esm.js:3118
createComponent @ vue.runtime.esm.js:5976
createElm @ vue.runtime.esm.js:5923
createChildren @ vue.runtime.esm.js:6051
createElm @ vue.runtime.esm.js:5952
patch @ vue.runtime.esm.js:6475
Vue._update @ vue.runtime.esm.js:3939
updateComponent @ vue.runtime.esm.js:4060
get @ vue.runtime.esm.js:4473
Watcher @ vue.runtime.esm.js:4462
mountComponent @ vue.runtime.esm.js:4067
./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8427
init @ vue.runtime.esm.js:3118
createComponent @ vue.runtime.esm.js:5976
createElm @ vue.runtime.esm.js:5923
patch @ vue.runtime.esm.js:6475
Vue._update @ vue.runtime.esm.js:3939
updateComponent @ vue.runtime.esm.js:4060
get @ vue.runtime.esm.js:4473
Watcher @ vue.runtime.esm.js:4462
mountComponent @ vue.runtime.esm.js:4067
./node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8427
init @ vue.runtime.esm.js:3118
createComponent @ vue.runtime.esm.js:5976
createElm @ vue.runtime.esm.js:5923
addVnodes @ vue.runtime.esm.js:6104
updateChildren @ vue.runtime.esm.js:6231
patchVnode @ vue.runtime.esm.js:6317
updateChildren @ vue.runtime.esm.js:6191
patchVnode @ vue.runtime.esm.js:6317
patch @ vue.runtime.esm.js:6480
Vue._update @ vue.runtime.esm.js:3942
updateComponent @ vue.runtime.esm.js:4060
get @ vue.runtime.esm.js:4473
run @ vue.runtime.esm.js:4548
flushSchedulerQueue @ vue.runtime.esm.js:4304
(anonymous) @ vue.runtime.esm.js:1980
flushCallbacks @ vue.runtime.esm.js:1906
Promise.then (async)
timerFunc @ vue.runtime.esm.js:1933
nextTick @ vue.runtime.esm.js:1990
queueWatcher @ vue.runtime.esm.js:4396
update @ vue.runtime.esm.js:4538
Vue.$forceUpdate @ vue.runtime.esm.js:3963
forceRender @ vue.runtime.esm.js:3641
(anonymous) @ vue.runtime.esm.js:3663
(anonymous) @ vue.runtime.esm.js:336
(anonymous) @ pages.json:10
index.umd.min.js:1 [system] errorHandler TypeError: Cannot read property 'isActive' of undefined
at sl-filter.vue?baba:32
at Proxy.renderList (vue.runtime.esm.js:2630)
at Proxy.render (sl-filter.vue?baba:12)
at VueComponent.Vue._render (vue.runtime.esm.js:3542)
at VueComponent.updateComponent (vue.runtime.esm.js:4060)
at Watcher.get (vue.runtime.esm.js:4473)
at new Watcher (vue.runtime.esm.js:4462)
at mountComponent (vue.runtime.esm.js:4067)
at VueComponent../node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue/dist/vue.runtime.esm.js.Vue.$mount (vue.runtime.esm.js:8427)
at init (vue.runtime.esm.js:3118)
t***@qq.com
10:59:41.304 Module build failed (from ./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js):
10:59:41.310 Error: Can't resolve '@/components/sl-filter/sl-filter.vue' in 'D:\app_install\vue_work\vue_project\demo3\pages\index'
10:59:41.442 at doResolve (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\Resolver.js:180:19)
10:59:41.443 at hook.callAsync (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
10:59:41.480 at _fn0 (eval at create (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:15:1)
10:59:41.481 at resolver.doResolve (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:37:5)
10:59:41.513 at hook.callAsync (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
10:59:41.514 at _fn0 (eval at create (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:15:1)
10:59:41.521 at hook.callAsync (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
10:59:41.522 at _fn1 (eval at create (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:24:1)
10:59:41.532 at hook.callAsync (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
10:59:41.532 at _fn0 (eval at create (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:12:1)
10:59:41.540 at resolver.doResolve (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\AliasPlugin.js:47:40)
10:59:41.541 at hook.callAsync (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
10:59:41.550 at _fn0 (eval at create (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:15:1)
10:59:41.551 at resolver.doResolve (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:37:5)
10:59:41.559 at hook.callAsync (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\Resolver.js:238:5)
10:59:41.568 at _fn0 (eval at create (E:\安装包\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:15:1)
10:59:41.575 ERROR Build failed with errors.
2019-11-19 11:01