Basic usage of Ant Design Vue: importing components and customizing themes on demand

introductionAs a latecomer, ant design vue is not as famous as element, the pioneer of vue component library. However, with more elements, I still see it in front of me when I start to use antv. Antv is really very different from element in interaction design and api design. I think this difference is better than element.This note is based on v ...

Posted by dbradbury on Sun, 13 Feb 2022 12:44:43 +0100

day05 mobile adaptation: rem, less

1, rem px unit: absolute unit rem unit: relative unit Calculation result of font size relative to HTML tag in rem unit 1rem=1HTML font size (root font size) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewpor ...

Posted by cocpg on Thu, 10 Feb 2022 08:03:20 +0100

Take you hand in hand to build a simple webpack scaffold

Plugin plug in In the whole process of webpack, loader enables webpack to process more file resources. The plugin exists in the whole packaging process of webpack. The processed content can be processed when the hook exposed by the webpack is triggered. So we can use plugin to process the files in process. index.html file processing Before, ...

Posted by andremta on Thu, 03 Feb 2022 02:15:05 +0100

Linux based text operation

1 file stream There are three kinds of input / output streams in Linux shell: standard input stream, standard output stream and standard error stream. Each stream has a file descriptor, a commonly used abbreviated name, and a commonly used default device (this is interesting). Keyboard input (the default device) is actually sending input to th ...

Posted by nishmgopal on Mon, 31 Jan 2022 20:46:42 +0100

less overrides the Message width of the ElementUI

less overrides the Message width of the Element UI Because the Element UI is used on the mobile phone, it is inevitable to use the Message component of the Element UI. However, most of the Message components can't be displayed completely, which is very ugly (as shown below), so I want to cover the Message style. After looking around the Intern ...

Posted by LordShryku on Thu, 16 Dec 2021 07:05:50 +0100

Mongodb update array $pull modifier

1. $pull modifier deletes qualifying elements from the array in the following format: { $pull: { <field1>: <value|condition>, <field2>: <value|condition>, ... } } 2. Specify a value to delete all lists Give a document under a stores collection { _id: 1, fruits: [ "apples", "pears", "oranges", "grapes", "bana ...

Posted by vex__ on Mon, 20 Jul 2020 16:51:29 +0200

Learn Python together: thread

thread The thread module of python is a lower level module, and the threading module of python is a package for thread, which can be used more conveniently Using the threading module Single thread execution #coding=utf-8 import time def saySorry(): print("Honey, I'm wrong. Can I eat now?") time.sleep(1) if __name__ == "__main__": ...

Posted by Toshiba23 on Sun, 19 Jul 2020 18:09:13 +0200

Several methods to find the maximum and minimum values in an integer array

In integer arrays, we need to get the maximum and minimum values of array elements from them: Method 1: Sort using Array first, then from the sorted array, the first element is the smallest and the last element is the largest.   public static int FindMaxNumber(params int[] stringValue) { Array.Sort(stringV ...

Posted by gmp on Sun, 19 Jul 2020 16:30:03 +0200

commons-lang3 tool class learning (2)

From http://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/ Official documents to organize and remember for yourself 3. BooleanUtils Boolean Tool Class and(boolean...array) logic and BooleanUtils.and(true, true) = true BooleanUtils.and(false, false) = false ...

Posted by dvd420 on Fri, 17 Jul 2020 17:51:35 +0200

offer rotation array

Moving the first elements of an array to the end of an array is called array rotation. Input a rotation of a non decreasing sort array and output the smallest element of the rotated array. For example, if the array {3,4,5,1,2} is a rotation of {1,2,3,4,5}, the minimum value of the array is 1. NOTE: all elements given are greater than 0. If th ...

Posted by aximbigfan on Thu, 09 Jul 2020 18:00:14 +0200