layer component uses

Documentation: Layer official document address

layer pop-up box components:

type - type base layer
layer layer provides five types. Can be passed values are: 0 (block information, default) 1 (page layers) 2 (iframe layer) 3 (loading layer) 4 (tips layer). If you are using layer.open ({type: 1}) way calling, the type is required (except message boxes)
Case column: common property
layer.open ({
type: 2,
title - the title
content - content can be [ text, DOM, url, page, kv] form
skin - style class name
area - the width and height Lw of
offset - coordinates XY
icon - icon
btn - button to
resize - allow stretch
zIndex - stacking order of
success - after a successful callback method pop layer
yes - OK button callback method
layer.ready (callback) - initialization ready
});
Here Insert Picture Description

Form: For select boxes, check boxes, drop-down boxes which need to be added layer initialization js


Writing and reading
Submit immediately reset

// based on a variety of operational events, there will be further described below
});

********************* #### button: the original class = "layui-btn layui-btn-radius layui-btn-primary" default class = "layui -btn layui-btn-radius "wild class =" layui-btn layui-btn-radius layui-btn-normal "warm class =" layui-btn layui-btn-radius layui-btn-warm "warning class =" layui -btn layui-btn-radius layui-btn-danger "disable class =" layui-btn layui-btn-radius layui-btn-disabled ". . . . . . Later use update
Published 26 original articles · won praise 0 · Views 711

Guess you like

Origin blog.csdn.net/YHM_MM/article/details/103518914