GithubHelp home page GithubHelp logo

uni-nutui's People

Contributors

basesky avatar jwaterwater avatar leohsi-code avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

uni-nutui's Issues

Failed to resolve component: v-uni-view

 <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>

uni-app下 菜单组件和 侧边栏一起使用菜单组件报错;且侧边栏组件单独调用也有问题

如题,
代码如下:

     菜单
	<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刷新页面,菜单组件正常

sticky 好像用不了 其他都能用

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)

[Swiper] Swiper不能正常使用,一点击就没了,预览也一样

<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>

image
image

uniapp 微信小程序中使用@nutui/icons-vue时报错

以下是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成员不存在!

真机运行报错

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)

Notify 消息通知组件使用提示Notify is not defined

如题 ,在 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.