📝(layer): update
This commit is contained in:
parent
3fd35cf2ad
commit
f215f47210
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layui-vue",
|
"name": "@layui/layui-vue",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"author": "就眠儀式",
|
"author": "就眠儀式",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "a component library for Vue 3 base on layui-vue",
|
"description": "a component library for Vue 3 base on layui-vue",
|
||||||
|
@ -85,7 +85,7 @@ const changeVisible = () => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const msg = function() {
|
const msg = function() {
|
||||||
layer.msg("普通消息", { time: 1000 })
|
layer.msg("普通消息", { time: 1000 })
|
||||||
@ -124,7 +124,7 @@ const info = function() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const load1 = function() {
|
const load1 = function() {
|
||||||
layer.load(0, {time: 2000})
|
layer.load(0, {time: 2000})
|
||||||
@ -166,7 +166,7 @@ const load4 = function() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const open = function() {
|
const open = function() {
|
||||||
layer.open({
|
layer.open({
|
||||||
@ -284,7 +284,7 @@ const openBtns = function(){
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const openConfirm1 = function() {
|
const openConfirm1 = function() {
|
||||||
layer.confirm("layui-vue 1.0.0 已经发布")
|
layer.confirm("layui-vue 1.0.0 已经发布")
|
||||||
@ -314,7 +314,7 @@ const openConfirm2 = function() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const openTop = function() {
|
const openTop = function() {
|
||||||
layer.drawer({
|
layer.drawer({
|
||||||
@ -363,7 +363,7 @@ const openRight = function() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { layer } from "../../../layer/src/index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const signleImg = function() {
|
const signleImg = function() {
|
||||||
layer.photos("/src/assets/logo.jpg")
|
layer.photos("/src/assets/logo.jpg")
|
||||||
@ -399,7 +399,7 @@ const groupImg = function() {
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, h, resolveComponent } from 'vue'
|
import { reactive, h, resolveComponent } from 'vue'
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
remark: "信息"
|
remark: "信息"
|
||||||
@ -425,7 +425,7 @@ const openComponent1 = () => {
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, h, resolveComponent } from 'vue'
|
import { reactive, h, resolveComponent } from 'vue'
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const prop = reactive({})
|
const prop = reactive({})
|
||||||
const numb = ref(1000)
|
const numb = ref(1000)
|
||||||
@ -461,6 +461,7 @@ const openComponent2 = () => {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const open = function() {
|
const open = function() {
|
||||||
const id = layer.open({
|
const id = layer.open({
|
||||||
@ -496,7 +497,7 @@ const closeAll = function() {
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, reactive, h } from 'vue'
|
import { ref, reactive, h } from 'vue'
|
||||||
import { layer } from "../../index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const visible = ref(false)
|
const visible = ref(false)
|
||||||
const changeVisible = () => {
|
const changeVisible = () => {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
color: white;
|
color: white;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
"
|
"
|
||||||
>1.3.10</a
|
>{{ version }}</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="https://gitee.com/layui-vue/layer-vue"
|
href="https://gitee.com/layui-vue/layer-vue"
|
||||||
@ -38,6 +38,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import config from "../../../layer/package.json";
|
||||||
|
|
||||||
|
const version = config.version;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layer-vue",
|
"name": "@layui/layer-vue",
|
||||||
"version": "1.3.18",
|
"version": "1.4.0",
|
||||||
"description": "a component library for Vue 3 base on layui-vue",
|
"description": "a component library for Vue 3 base on layui-vue",
|
||||||
"homepage": "http://www.layui-vue.com",
|
"homepage": "http://www.layui-vue.com",
|
||||||
"module": "lib/layer-vue.es.js",
|
"module": "lib/layer-vue.es.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user