Tag:Design sketch

  • Tree component in Vue + iView covers the background color of clicking and moving mouse in


    Tree component in Vue + iView covers the background color of clicking and moving mouse in 1. Development environment Vue + iView2. Computer system Windows 10 professional edition3. In the process of using Vue + iView development, we will use the tree component according to the requirements. Let me share it with you, hoping to […]

  • 02 HTML Basics – planning a simple website (1)


    The effect picture is as follows:Source code can be downloaded from GitHub, clickThis linkThat’s it.

  • CSS drawing glasses practice


    <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> < title > the radius of the black center circle is 10, the radius of the outer circle is 40, the length of the spectacle frame is 100, and the inclination is 45 degrees </head> <style type=”text/css”> .content { background: rgb(77, 203, 249); height: 300px; width: 300px; display: flex; […]

  • Second level laravel timing task based on Supervisor


    Background The company needs to implement a rotation training interface every y seconds in X minutes,LinuxBring your owncrontabIt seems that it is only accurate to minutes. Although it can be accurate to seconds, it does not meet the requirements. model selection Company projects are based onLaravelFrame, so there’s no choice. Used by the daemonssupervisorSee if […]

  • Realize the effect of underline following in navigation bar by react


    design sketch: App.jsx import React, { Component } from ‘react’ import style from ‘./index.module.less’ export default class App extends Component { state = { width: 0, left: 0} enter = (event) => { const {clientWidth, offsetLeft } = event.target this.setState({ width: clientWidth, left: offsetLeft }) } leave = () => { this.setState(() =>({ width: 0 […]

  • Android | play with appbarlayout and set scrollflags sliding properties


    Coordinatorlayout and appbarlayout are often used in previous articles. They are mainly used to create various cool effects. Some children’s shoes have read the previous article and feedback that they don’t quite understand the setting of scrollflags attribute in appbarlayout. In this article, let’s talk about the usage and effect of this attribute. Let’s take […]

  • Android Sideswipe to close activity


    0. Renderings 1. Set the activity style property <style name=”AppTheme” parent=”Theme.AppCompat.Light.NoActionBar”> <item name=”android:windowIsTranslucent”>true</item> </style> 2. Custom side shadow view class SlideBackView extends View { private Paint mBgPaint, mShadowPaint; private RectF mBgRectF, mShadowRectF; private float mRatio; private float mShadowSize; public SlideBackView(Context context) { super(context); mBgPaint = new Paint(); mBgPaint.setAntiAlias(true); mBgPaint.setColor(0xff000000); mShadowPaint = new Paint(); mShadowPaint.setAntiAlias(true); mShadowPaint.setStyle(Paint.Style.FILL); […]

  • Kotlin dark mode (night mode)


    Recently, I saw the Yankee official account and talked about the dark color mode. So I realized it on kotlin, and the following is the effect picture. Android 10 calls this dark theme. Switching to dark color can reduce the power consumption of the phone and make it easier to use in dark environment 1. […]

  • The basic components of angular2 learning notes and ngfor


    The idea of angular2 is very advanced. It abandons the complex construction mode of angular1 and adopts the method of component-based prescription. Let’s take a look at what a basic component looks like.angular2-demo 1、 Introduction 1. Directory structure .tsComponent code .scssstyle .pngdesign sketch .htmltemplate file 2. Renderings 2、 Code instance https://github.com/qq83387856/angular2-demo/tree/master/src/ts/component/basic 3、 Detailed interpretation 1. […]

  • NG2 label of angular2 learning notes


    The internal value instruction of angular2 is very similar to angular2. All friends who are familiar with angular1 can see it at a glance.angular2-demo<!– more –> 1、 Renderings 1Instruction interpretation 0. assembly The main thing is to define some data for testing import {Component} from ‘@angular/core’; @Component({ selector: ‘ng-tag’, styles: [require(‘./NgTag.scss’)], template: require(‘NgTag.html’) }) export […]

  • Angular2 learning notes service and http


    At present, the application development is mostly based on the separation of the front and back of spa, and the front and back communication uses the HTTP interface to interact through JSON.angular2-demo 1、 Renderings 1. The effect shown 2. MySQL data 2、 Code instance 1. Serviceservice import {Injectable} from ‘@angular/core’; import { Http }from ‘@angular/http’; […]

  • Week range selector, here it comes (based on element UI 2. X)


    effect Let’s take a look at the renderings first Preview address GitHub address NPM address demand The existing project needs to use the weekly range selector function, but no corresponding component library has been found, so I developed a new El date picker based on element UI. use <date-week-range v-model=”test” … > </date-week-range> present situation […]