ICode9

精准搜索请尝试: 精确搜索
  • vue3 中vue-router2022-09-13 00:30:21

    import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router' // 静态导入 import index from './../components/index.vue' import notfound from './../components/notfound.vue' import HelloWorld from './../co

  • Vue2:动态组件2022-09-09 13:00:08

    动态组件 要实现不同组件之间进行动态切换,这时候除了条件渲染,还可以使用动态组件 component 标签的 is属性语法: is后跟组件的变量名决定使用哪个组件来渲染 <component is="Sinabox"></component>==><Sinabox/> <component v-bind:is="mycomponent"></component>   注意: is是

  • Visual Components软件典型功能描述2022-09-09 00:32:29

    1、即点即用,即插即用 vc提供大量的组件模块,组件都已经赋子行为和渲染,看起来复杂的模拟场景,可以通过简单拖拉组合,即可成为一条运动的仿真。节省更多的时间,让布局更灵动。 2、PLC功能 过去,PLC程序的调试都是必须等到所有的设备都到场安装好了之后再联机调试。通过此软件,PLC设备通过

  • 使用 Vue3 构建 Web Components2022-09-08 12:03:12

    有时候想写一个无关框架组件,又不想用原生或者 Jquery 那套去写,而且还要避免样式冲突,用 Web Components 去做刚觉就挺合适的。但是现在 Web Components 使用起来还是不够灵活,很多地方还是不太方便的,如果能和 MVVM 搭配使用就好了。早在之前 Angular 就支持将组件构建成 Web Compone

  • 第四章-高级组件2022-09-04 14:01:13

    使用模板化组件 组件是 Blazor 的重用构建块。 在 C# 中,泛型被大量用于重用; 想想你在泛型中使用的所有集合,比如 List<T>。 如果 Blazor 有类似通用组件的东西会不会很酷? 是的,Blazor 可以! Blazor 支持模板化组件,您可以在其中指定一个或多个 UI 模板作为参数,从而使模板化组件更加可

  • 主成分分析2022-08-25 20:04:04

    Principal Components Analysis 目录Principal Components AnalysisIntuitionFormalization Intuition PCA tries to identify the subspace in which the data approximately lies. Intuitively, we choose a direction for projection and we reserve the most variance / dif

  • 使用monorepo发布vue3组件库2022-08-23 13:01:50

    安装pnpm npm install pnpm -g 初始化package.json pnpm init 新建配置文件 .npmrc 在根目录下新建.npmrc文件,并写入如下内容 shamefully-hoist = true ::: tip 注意 如果某些工具仅在根目录的node_modules时才有效,可以将其设置为true来提升那些不在根目录的node_modules,就是

  • 普通插槽2022-08-22 14:30:19

    父组件 : <template> <div class="app"> <!-- 1.内容是button --> <show-message title="哈哈哈"> <button>我是按钮元素</button> </show-message> <!-- 2.内容是超链接 --> <show-messag

  • vue 2 坑编译系统2022-08-18 11:33:03

    error in ./src/components/NumberInfo/NumberInfo.vue?vue&type=style&index=0&id=4370c5af&lang=less&scoped=true&Syntax Error: TypeError: Cannot set property 'parent' of undefined 下载之后run报这样错误,求助 回复复制链接举报黄涛14天前 注释掉 /src/compo

  • 「CF1661E」 Narrow Components2022-08-18 01:31:21

    \(\texttt{「CF1661E」 Narrow Components}\) \(\texttt{Describe}\) 给你一个 \(3\) 行 \(n\) 列的 \(01\) 矩阵 \(a\),其中 \(0\) 表示黑色格子,\(1\) 表示白色格子。 再给出 \(q\) 次讯问,每次询问给出两个整数 \(l,r\) 让你回答区间 \([l,r]\) 白色连通块的数量 \(\texttt{Input

  • 局部组件 的 代码实例2022-08-17 15:02:08

    <body> <div id="app"> <home-nav></home-nav> <product-item></product-item> <product-item></product-item> <product-item></product-item> </div> <templat

  • Vue2:注册全局组件的两种方法2022-07-28 11:36:10

    第一种:在main.js中直接注册 //引入 import FixedTop from '@/components/FixedTop //注册为全局组件 Vue.componet('FixedTop',FixedTop) //页面直接使用 <FixedTop /> 缺点:如果我们需要注册的全局组件非常多,那么需要一个一个引入,然后分别调用Vue.componet方法,main.js文件会变得

  • vue-blu之其他组件使用案例记录2022-07-28 09:00:36

    描述 1、涉及Blu组件:Collapse(折叠面板),progress-bar(进度条),steps(步骤器),b-aside(侧边模态框),tag(标签),tabs(标签页),timeline(时间线),alert (提示框) 问题记录 案例 <template> <div> <collapse accordion> <collapse-item title="客户信息" :actived=&

  • 关于vue路由导航的一些问题及思路2022-07-23 01:32:41

    问题一 不在同一个页面的情况下,有多个router-view,当执行router.push({name:'...'})的时候,vue怎么知道在哪个组件的router-view实现跳转? 我的思路 这种情况就属于多级路由的情况,如下图所示 页面最外层的router-view一般就是一级路由,而二级路由是嵌套在各个一级路由的里面。 比如上

  • vue-(子传父)2022-07-21 15:04:55

    子组件: <template> <div>我是左侧内容<button @click="handleClick">向父组件派送数据</button></div> </template> <script setup lang="ts"> import { ref, reactive } from 'vue'; let list = reactive<nu

  • vue3-(父传子)2022-07-20 18:04:46

    父组件: <template> <Headler title="我是父组件传递的值" :list="list"></Headler> <div class="content"> <Menu></Menu> <Content></Content> </div> </template> <scr

  • Kubernetes Architecture2022-07-18 11:12:28

    目录NodeMaster Node components Node master distribute application to worker nodes. self healing. it monitors running status of pod which hosts application, it starts a new pod if existing pod is down. manage connectivity of cluster network. worker run ta

  • 关于 Angular 应用 Components 和 Directives 的实例化问题2022-07-10 10:01:44

    同 Angular Module 不同,Angular Components 和 Directives 要实例化多次,每个出现在 HTML template 中的 markup 都会对应一次实例化。 此外,这些项的作用域也限定在它们被导入的 NgModule中,以防止两个组件使用相同的选择器时发生命名冲突。由于依赖注入(DI)行为的这种差异,需要区分

  • 【HarmonyOS】【JAVA UI】 鸿蒙 Webview怎么设置cookie和读取cookie2022-07-08 11:06:46

    ​ 在大家开发中,可能会使用Webview去加载网页,需要将应用开发中使用到必要的cookie信息同步到HarmonyOS的webview,也有可能从HarmonyOS的webview中获取cookie信息,如下写一个demo作为参考,基础的webview学习,大家参考如下链接  https://developer.harmonyos.com/cn/docs/documentation

  • 【vue-router学习】从零开始学习vue-router4.x(五)2022-07-08 09:03:47

    路由重定向 在创建路由时可以用redirect参数指定默认访问路径 写法1 const routes = [{ path: "/", component: () => import("../components/root.vue"), redirect: to => { return "user1" }, children: [{ path: "user1", compon

  • 基于 styled-components 实现一套皮肤系统2022-07-04 12:34:22

    styled-components 使用模版字符串特性,让我们可以保持原有 CSS 的书写习惯来编写 CSS,同时,利用 ${ props => props.theme.xxx } 的方式,实现皮肤系统中挖空填值的能力。 import styled from "styled-components"; export const Skin = styled.div` border: 1px solid #000;

  • OpenAPI 3.0 规范-食用指南2022-06-26 01:00:58

    概述 OpenAPI 3.0 规范由 8 个根对象组成: openapi info servers paths components security tags externalDocs OpenAPI 的其余功能都是基于这 8 根对象扩展而成,凡是包含以上对象并且扩展名为 json,yaml 的文件,我们可以将其视为符合 OpenAPI 规范的描述文件 ,你可以在:API Editor

  • Gblog源码学习记录(1)2022-06-10 12:33:31

    学习 App.vue源码 <template> <div id="app" v-cloak> <loading></loading> <layout-header></layout-header> <layout-body></layout-body> <layout-footer></layout-f

  • 第九十篇:Vue 具名插槽2022-06-03 00:00:41

    好家伙   1.什么是具名插槽? 来简单理解一下, 具有自己名字的插槽,就是具名插槽   我们来尝试使用一下具名插槽:   在Article.vue组件中: <template> <div class="article-container"> <!-- 文章内容 --> <div class="header-box"> <slot name="title"

  • OpenAPI3&Spring Boot 自定义配置2022-05-31 23:01:14

    @目录DocPropertiesDocConfigurationpom.xmlapplication.yaml DocProperties @Data @ConfigurationProperties("doc.info") public class DocProperties { /** * 分组名称 */ private String group = "default"; /** * 标题

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有