jwaterwater / uni-nutui Goto Github PK
View Code? Open in Web Editor NEWnutui for uni-app
License: MIT License
nutui for uni-app
License: MIT License
如题
<nut-tabs v-model="tabIndex" title-scroll title-gutter="10" name="tab4value">
<nut-tab-pane v-for="item in list" :title="'Tab '+ item.name">
Tab {{item.name}}
</nut-tab-pane>
</nut-tabs>
Vue warn]: Failed to resolve component: v-uni-view
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <NutTabs>
at <Index>
at <AsyncComponentWrapper>
at <PageBody>
at <Page>
at <Anonymous>
at <Layout>
at <App>
如题
微信小程序下轮播组件可以显示,但是不会轮播,直接不动
小程序 from 组件里面的图片上传失效, h5可以
it occurs that
"Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. "
如题,
代码如下:
菜单
<view>
<nut-menu>
<nut-menu-item v-model="value1" :options="options1" />
<nut-menu-item v-model="value2" @change="handleChange" :options="options2" />
</nut-menu>
</view>
侧边栏
<view >
<nut-cell @click="handleClick1">
<span><label>右侧</label></span>
</nut-cell>
<nut-popup position="left" v-model:visible="show1" :style="{ width, height }" >
<nut-sidenavbar>
<nut-subsidenavbar title="智能城市AI" ikey="6">
<nut-subsidenavbar title="人体识别1" ikey="9">
<nut-sidenavbaritem ikey="10" title="人体检测1"></nut-sidenavbaritem>
<nut-sidenavbaritem ikey="11" title="细粒度人像分割1"></nut-sidenavbaritem>
</nut-subsidenavbar>
<nut-subsidenavbar title="人体识别2" ikey="12">
<nut-sidenavbaritem ikey="13" title="人体检测2"></nut-sidenavbaritem>
<nut-sidenavbaritem ikey="14" title="细粒度人像分割2"></nut-sidenavbaritem>
</nut-subsidenavbar>
</nut-subsidenavbar>
</nut-sidenavbar>
</nut-popup>
</view>
/**
* 侧边栏点击事件
*/
handleClick1() {
console.log("handleClick1");
this.show1 = true;
},
/**
* 菜单点击事件
*/
handleChange(value) {
console.log(value);
},
菜单组件问题
当两个组件一起使用的时候 ,点击菜单组件下拉框菜单不显示且报错
Uncaught TypeError: Cannot read properties of null (reading 'bottom')
at SelectorQuery.<anonymous> (index.vue:70:38)
at uni-h5.es.js:4840:21
at Array.forEach (<anonymous>)
at uni-h5.es.js:4832:13
at requestComponentInfo (uni-h5.es.js:2542:3)
at SelectorQuery.exec (uni-h5.es.js:4827:5)
at index.vue:75:16
侧边栏组价问题
侧边栏组件点击后按钮事件 handleClick1
触发,但是侧边栏没有显示;
当我把侧边栏组件注释掉后,F5刷新页面,菜单组件正常
Component is not found in path "uni_modules/sky-nutui/components/sky-nutui/packages/__VUE/sticky/index" (using by "pages/template/index")(env: macOS,mp,1.06.2209070; lib: 2.26.1)
小程序button组件loading图标不显示,h5正常
提示:Cannot set property 'href' of undefined
主要原因:小程序里面没有location.href
微信小程序按钮的loading状态图标不显示
<nut-swiper :init-page="2" :pagination-visible="true" pagination-color="#426543" auto-play="3000">
<nut-swiper-item>
<img src="https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg" alt="" />
</nut-swiper-item>
<nut-swiper-item>
<img src="https://storage.360buyimg.com/jdc-article/NutUItaro2.jpg'" alt="" />
</nut-swiper-item>
<nut-swiper-item>
<img src="https://storage.360buyimg.com/jdc-article/welcomenutui.jpg" alt="" />
</nut-swiper-item>
<nut-swiper-item>
<img src="https://storage.360buyimg.com/jdc-article/fristfabu.jpg" alt="" />
</nut-swiper-item>
</nut-swiper>
以下是HBuilderX打印出来的错误 :
00:25:50.672 "openBlock" is not exported by "node_modules/.pnpm/@[email protected]/node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js", imported by "node_modules/@nutui/icons-vue/dist/es/icons/IconFont.js".
00:25:50.673 at ../node_modules/@nutui/icons-vue/dist/es/icons/IconFont.js:1:64
00:25:50.678 1: import { defineComponent as p, useSlots as d, useAttrs as g, h, openBlock as S, createBlock as y } from "vue";
00:25:50.678 ^
00:25:50.682 2: const x = /* @__PURE__ */ p({
00:25:50.683 3: __name: "IconFont",
貌似是../node_modules/@nutui/icons-vue/dist/es/icons/IconFont.js
这个文件中,从vue
库导入的openBlock
成员不存在!
<template> <nut-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 16px' }">文本</nut-divider> </template>
color不起作用,还是默认的颜色
h5浏览器运行是好的
运行到安卓app,报错
我是直接使用的示例项目
15:37:25.808 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: Element is not defined
15:37:25.839 at (app-service.js:21497:22)
15:37:25.870 at (app-service.js:28517:3)
如题 ,在 uni-app中使用Notify 消息通知组件,点击按钮提示 Notify is not defined
<view>
<nut-cell is-Link @click="baseNotify('基础用法')">消息通知基础用法</nut-cell>
</view>
/**
* 消息通知
*/
baseNotify(msg) {
Notify.text(msg, {
onClose: () => {
console.log('close');
},
onClick: () => {
console.log('click');
}
});
}
报错信息如下:
vue.runtime.esm.js:1400
Uncaught ReferenceError: Notify is not defined
at Proxy.baseNotify (index.vue:369:5)
at _createVNode.onClick._cache.<computed>._cache.<computed> (index.vue:138:30)
at callWithErrorHandling (vue.runtime.esm.js:1336:22)
at callWithAsyncErrorHandling (vue.runtime.esm.js:1345:21)
at emit$1 (vue.runtime.esm.js:1902:9)
at vue.runtime.esm.js:8780:53
at handleClick (index.vue:49:7)
at callWithErrorHandling (vue.runtime.esm.js:1336:22)
at callWithAsyncErrorHandling (vue.runtime.esm.js:1345:21)
at HTMLElement.invoker (vue.runtime.esm.js:9676:9)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.