sakura-ui-plus 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.js +8 -4
- package/dist/lib/index.js +8 -4
- package/dist/types/components/dialog/props.d.ts +1 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/components/register-components.d.ts +87 -0
- package/dist/types/components/show-modal/props.d.ts +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -1312,7 +1312,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1312
1312
|
appendTo: {},
|
|
1313
1313
|
closeIconSize: { default: 16 },
|
|
1314
1314
|
closeIconColor: { default: "#909399" },
|
|
1315
|
-
background: { default: "#fff" }
|
|
1315
|
+
background: { default: "#fff" },
|
|
1316
|
+
modal: { type: Boolean }
|
|
1316
1317
|
}, {
|
|
1317
1318
|
"modelValue": {
|
|
1318
1319
|
type: Boolean,
|
|
@@ -1361,7 +1362,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1361
1362
|
"z-index": __props.zIndex,
|
|
1362
1363
|
fullscreen: __props.fullscreen,
|
|
1363
1364
|
"append-to": __props.appendTo,
|
|
1364
|
-
width: __props.width
|
|
1365
|
+
width: __props.width,
|
|
1366
|
+
modal: __props.modal
|
|
1365
1367
|
}, _ctx.$attrs), {
|
|
1366
1368
|
default: withCtx(() => [
|
|
1367
1369
|
_ctx.$slots.header || __props.title ? (openBlock(), createElementBlock("div", {
|
|
@@ -1440,7 +1442,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1440
1442
|
], 2)) : createCommentVNode("", true)
|
|
1441
1443
|
]),
|
|
1442
1444
|
_: 3
|
|
1443
|
-
}, 16, ["modelValue", "top", "class", "style", "close-on-click-modal", "close-on-press-escape", "z-index", "fullscreen", "append-to", "width"]);
|
|
1445
|
+
}, 16, ["modelValue", "top", "class", "style", "close-on-click-modal", "close-on-press-escape", "z-index", "fullscreen", "append-to", "width", "modal"]);
|
|
1444
1446
|
};
|
|
1445
1447
|
}
|
|
1446
1448
|
});
|
|
@@ -1639,6 +1641,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1639
1641
|
confirmButtonText: {},
|
|
1640
1642
|
showClose: { type: Boolean },
|
|
1641
1643
|
title: {},
|
|
1644
|
+
modal: { type: Boolean },
|
|
1642
1645
|
content: { type: [String, Object, Function] },
|
|
1643
1646
|
resolve: { type: Function }
|
|
1644
1647
|
}, {
|
|
@@ -1660,7 +1663,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1660
1663
|
showCancelButton: false,
|
|
1661
1664
|
showConfirmButton: true,
|
|
1662
1665
|
confirmButtonText: "确定",
|
|
1663
|
-
cancelButtonText: "取消"
|
|
1666
|
+
cancelButtonText: "取消",
|
|
1667
|
+
modal: true
|
|
1664
1668
|
};
|
|
1665
1669
|
};
|
|
1666
1670
|
const props = __props;
|
package/dist/lib/index.js
CHANGED
|
@@ -1314,7 +1314,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1314
1314
|
appendTo: {},
|
|
1315
1315
|
closeIconSize: { default: 16 },
|
|
1316
1316
|
closeIconColor: { default: "#909399" },
|
|
1317
|
-
background: { default: "#fff" }
|
|
1317
|
+
background: { default: "#fff" },
|
|
1318
|
+
modal: { type: Boolean }
|
|
1318
1319
|
}, {
|
|
1319
1320
|
"modelValue": {
|
|
1320
1321
|
type: Boolean,
|
|
@@ -1363,7 +1364,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1363
1364
|
"z-index": __props.zIndex,
|
|
1364
1365
|
fullscreen: __props.fullscreen,
|
|
1365
1366
|
"append-to": __props.appendTo,
|
|
1366
|
-
width: __props.width
|
|
1367
|
+
width: __props.width,
|
|
1368
|
+
modal: __props.modal
|
|
1367
1369
|
}, _ctx.$attrs), {
|
|
1368
1370
|
default: vue.withCtx(() => [
|
|
1369
1371
|
_ctx.$slots.header || __props.title ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1442,7 +1444,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1442
1444
|
], 2)) : vue.createCommentVNode("", true)
|
|
1443
1445
|
]),
|
|
1444
1446
|
_: 3
|
|
1445
|
-
}, 16, ["modelValue", "top", "class", "style", "close-on-click-modal", "close-on-press-escape", "z-index", "fullscreen", "append-to", "width"]);
|
|
1447
|
+
}, 16, ["modelValue", "top", "class", "style", "close-on-click-modal", "close-on-press-escape", "z-index", "fullscreen", "append-to", "width", "modal"]);
|
|
1446
1448
|
};
|
|
1447
1449
|
}
|
|
1448
1450
|
});
|
|
@@ -1641,6 +1643,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1641
1643
|
confirmButtonText: {},
|
|
1642
1644
|
showClose: { type: Boolean },
|
|
1643
1645
|
title: {},
|
|
1646
|
+
modal: { type: Boolean },
|
|
1644
1647
|
content: { type: [String, Object, Function] },
|
|
1645
1648
|
resolve: { type: Function }
|
|
1646
1649
|
}, {
|
|
@@ -1662,7 +1665,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1662
1665
|
showCancelButton: false,
|
|
1663
1666
|
showConfirmButton: true,
|
|
1664
1667
|
confirmButtonText: "确定",
|
|
1665
|
-
cancelButtonText: "取消"
|
|
1668
|
+
cancelButtonText: "取消",
|
|
1669
|
+
modal: true
|
|
1666
1670
|
};
|
|
1667
1671
|
};
|
|
1668
1672
|
const props = __props;
|
|
@@ -2072,7 +2072,7 @@ declare const _default: {
|
|
|
2072
2072
|
});
|
|
2073
2073
|
ShowModal: import('vue').DefineComponent<{
|
|
2074
2074
|
modelValue?: boolean;
|
|
2075
|
-
} & Pick<import('./dialog/props').DialogProps, "width" | "showConfirmButton" | "showCancelButton" | "cancelButtonText" | "confirmButtonText" | "showClose" | "title"> & {
|
|
2075
|
+
} & Pick<import('./dialog/props').DialogProps, "width" | "showConfirmButton" | "showCancelButton" | "cancelButtonText" | "confirmButtonText" | "showClose" | "title" | "modal"> & {
|
|
2076
2076
|
content?: string | import('vue').VNode | Function;
|
|
2077
2077
|
resolve?: Function;
|
|
2078
2078
|
}, {
|
|
@@ -2081,7 +2081,7 @@ declare const _default: {
|
|
|
2081
2081
|
"update:modelValue": (value: boolean) => any;
|
|
2082
2082
|
}, string, import('vue').PublicProps, Readonly<{
|
|
2083
2083
|
modelValue?: boolean;
|
|
2084
|
-
} & Pick<import('./dialog/props').DialogProps, "width" | "showConfirmButton" | "showCancelButton" | "cancelButtonText" | "confirmButtonText" | "showClose" | "title"> & {
|
|
2084
|
+
} & Pick<import('./dialog/props').DialogProps, "width" | "showConfirmButton" | "showCancelButton" | "cancelButtonText" | "confirmButtonText" | "showClose" | "title" | "modal"> & {
|
|
2085
2085
|
content?: string | import('vue').VNode | Function;
|
|
2086
2086
|
resolve?: Function;
|
|
2087
2087
|
}> & Readonly<{
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { ShowModalFn } from './show-modal/props.ts';
|
|
3
|
+
import { default as Select } from './select/select.vue';
|
|
4
|
+
import { default as Cell } from './cell/cell.vue';
|
|
5
|
+
import { default as CellGroup } from './cell/cell-group.vue';
|
|
6
|
+
import { default as Status } from './status/status.vue';
|
|
7
|
+
import { default as Container } from './container/container.vue';
|
|
8
|
+
import { default as Pagination } from './pagination/pagination.vue';
|
|
9
|
+
import { default as SearchInput } from './search-input/search-input.vue';
|
|
10
|
+
import { default as FilterItem } from './filter/filter-item.vue';
|
|
11
|
+
import { default as FilterGroup } from './filter/filter-group.vue';
|
|
12
|
+
import { default as Tabs } from './tabs/tabs.vue';
|
|
13
|
+
import { default as TooltipText } from './tooltip-text/tooltip-text.vue';
|
|
14
|
+
import { default as FileItem } from './file/item.vue';
|
|
15
|
+
import { default as FileList } from './file/list.vue';
|
|
16
|
+
import { default as CountDown } from './count-down/count-down.vue';
|
|
17
|
+
import { default as Dialog } from './dialog/dialog.vue';
|
|
18
|
+
import { default as Drawer } from './drawer/drawer.vue';
|
|
19
|
+
import { default as ShowModal } from './show-modal/show-modal.vue';
|
|
3
20
|
export default function install(vm: App): void;
|
|
4
21
|
declare module 'vue' {
|
|
5
22
|
interface ComponentCustomProperties {
|
|
@@ -8,4 +25,74 @@ declare module 'vue' {
|
|
|
8
25
|
*/
|
|
9
26
|
$showModal: ShowModalFn;
|
|
10
27
|
}
|
|
28
|
+
interface GlobalComponents {
|
|
29
|
+
/**
|
|
30
|
+
* 选择器组件
|
|
31
|
+
*/
|
|
32
|
+
SakuraSelect: typeof Select;
|
|
33
|
+
/**
|
|
34
|
+
* 单元格组件
|
|
35
|
+
*/
|
|
36
|
+
SakuraCell: typeof Cell;
|
|
37
|
+
/**
|
|
38
|
+
* 单元格组组件
|
|
39
|
+
*/
|
|
40
|
+
SakuraCellGroup: typeof CellGroup;
|
|
41
|
+
/**
|
|
42
|
+
* 状态组件
|
|
43
|
+
*/
|
|
44
|
+
SakuraStatus: typeof Status;
|
|
45
|
+
/**
|
|
46
|
+
* 容器组件
|
|
47
|
+
*/
|
|
48
|
+
SakuraContainer: typeof Container;
|
|
49
|
+
/**
|
|
50
|
+
* 分页组件
|
|
51
|
+
*/
|
|
52
|
+
SakuraPagination: typeof Pagination;
|
|
53
|
+
/**
|
|
54
|
+
* 搜索输入框组件
|
|
55
|
+
*/
|
|
56
|
+
SakuraSearchInput: typeof SearchInput;
|
|
57
|
+
/**
|
|
58
|
+
* 过滤器项组件
|
|
59
|
+
*/
|
|
60
|
+
SakuraFilterItem: typeof FilterItem;
|
|
61
|
+
/**
|
|
62
|
+
* 过滤器组组件
|
|
63
|
+
*/
|
|
64
|
+
SakuraFilterGroup: typeof FilterGroup;
|
|
65
|
+
/**
|
|
66
|
+
* 标签页组件
|
|
67
|
+
*/
|
|
68
|
+
SakuraTabs: typeof Tabs;
|
|
69
|
+
/**
|
|
70
|
+
* 文本提示组件
|
|
71
|
+
*/
|
|
72
|
+
SakuraTooltipText: typeof TooltipText;
|
|
73
|
+
/**
|
|
74
|
+
* 文件项组件
|
|
75
|
+
*/
|
|
76
|
+
SakuraFileItem: typeof FileItem;
|
|
77
|
+
/**
|
|
78
|
+
* 文件列表组件
|
|
79
|
+
*/
|
|
80
|
+
SakuraFileList: typeof FileList;
|
|
81
|
+
/**
|
|
82
|
+
* 倒计时组件
|
|
83
|
+
*/
|
|
84
|
+
SakuraCountDown: typeof CountDown;
|
|
85
|
+
/**
|
|
86
|
+
* 对话框组件
|
|
87
|
+
*/
|
|
88
|
+
SakuraDialog: typeof Dialog;
|
|
89
|
+
/**
|
|
90
|
+
* 抽屉组件
|
|
91
|
+
*/
|
|
92
|
+
SakuraDrawer: typeof Drawer;
|
|
93
|
+
/**
|
|
94
|
+
* 模态窗组件
|
|
95
|
+
*/
|
|
96
|
+
SakuraShowModal: typeof ShowModal;
|
|
97
|
+
}
|
|
11
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialogProps } from '../dialog/props.ts';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
|
-
export type ShowModalProps = Pick<DialogProps, 'width' | 'showConfirmButton' | 'showCancelButton' | 'cancelButtonText' | 'confirmButtonText' | 'showClose' | 'title'> & {
|
|
3
|
+
export type ShowModalProps = Pick<DialogProps, 'width' | 'showConfirmButton' | 'showCancelButton' | 'cancelButtonText' | 'confirmButtonText' | 'showClose' | 'title' | 'modal'> & {
|
|
4
4
|
content?: string | VNode | Function;
|
|
5
5
|
resolve?: Function;
|
|
6
6
|
};
|