@a2simcode/ui 0.0.215 → 0.0.217
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/components/button/index.d.ts +6 -6
- package/dist/components/button/src/button.vue.d.ts +5 -5
- package/dist/simcode-ui.es.js +10 -11
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/components/button.md +8 -8
- package/docs/components/meta/button.ts +138 -138
- package/docs/components/table-panel.md +7 -6
- package/docs/examples/button/disabled.vue +39 -6
- package/docs/examples/button/status.vue +34 -0
- package/docs/examples/button/type.vue +1 -1
- package/docs/examples/buttons/basic.vue +2 -2
- package/docs/examples/buttons/disabled.vue +1 -1
- package/docs/examples/buttons/group.vue +1 -1
- package/docs/examples/buttons/link.vue +1 -1
- package/docs/examples/table/action-filter.vue +1 -1
- package/docs/examples/table/actions.vue +1 -1
- package/docs/examples/table-panel/basic.vue +1 -1
- package/docs/examples/table-panel/batch-operations.vue +3 -2
- package/docs/examples/table-panel/multiple-selection.vue +1 -1
- package/package.json +1 -1
- package/docs/examples/button/danger.vue +0 -9
|
@@ -9,11 +9,11 @@ declare const JButton: {
|
|
|
9
9
|
}, import('vue').PublicProps, {
|
|
10
10
|
size: "large" | "default" | "small";
|
|
11
11
|
icon: string;
|
|
12
|
-
type: "primary" | "
|
|
12
|
+
type: "primary" | "dashed" | "link" | "text" | "default" | "outline";
|
|
13
13
|
label: string;
|
|
14
|
+
status: "normal" | "success" | "warning" | "danger";
|
|
14
15
|
shape: "default" | "circle" | "round";
|
|
15
16
|
disabled: boolean;
|
|
16
|
-
danger: boolean;
|
|
17
17
|
block: boolean;
|
|
18
18
|
loading: boolean | {
|
|
19
19
|
delay?: number;
|
|
@@ -42,11 +42,11 @@ declare const JButton: {
|
|
|
42
42
|
}, {}, {}, {}, {
|
|
43
43
|
size: "large" | "default" | "small";
|
|
44
44
|
icon: string;
|
|
45
|
-
type: "primary" | "
|
|
45
|
+
type: "primary" | "dashed" | "link" | "text" | "default" | "outline";
|
|
46
46
|
label: string;
|
|
47
|
+
status: "normal" | "success" | "warning" | "danger";
|
|
47
48
|
shape: "default" | "circle" | "round";
|
|
48
49
|
disabled: boolean;
|
|
49
|
-
danger: boolean;
|
|
50
50
|
block: boolean;
|
|
51
51
|
loading: boolean | {
|
|
52
52
|
delay?: number;
|
|
@@ -72,11 +72,11 @@ declare const JButton: {
|
|
|
72
72
|
}, string, {
|
|
73
73
|
size: "large" | "default" | "small";
|
|
74
74
|
icon: string;
|
|
75
|
-
type: "primary" | "
|
|
75
|
+
type: "primary" | "dashed" | "link" | "text" | "default" | "outline";
|
|
76
76
|
label: string;
|
|
77
|
+
status: "normal" | "success" | "warning" | "danger";
|
|
77
78
|
shape: "default" | "circle" | "round";
|
|
78
79
|
disabled: boolean;
|
|
79
|
-
danger: boolean;
|
|
80
80
|
block: boolean;
|
|
81
81
|
loading: boolean | {
|
|
82
82
|
delay?: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export interface ButtonProps {
|
|
2
2
|
/** 按钮的类型 */
|
|
3
|
-
type?: 'primary' | '
|
|
3
|
+
type?: 'primary' | 'dashed' | 'link' | 'text' | 'default' | 'outline';
|
|
4
|
+
/** 按钮的状态 */
|
|
5
|
+
status?: 'normal' | 'success' | 'warning' | 'danger';
|
|
4
6
|
/** 设置按钮大小 */
|
|
5
7
|
size?: 'large' | 'default' | 'small';
|
|
6
8
|
/** 设置按钮形状 */
|
|
7
9
|
shape?: 'default' | 'circle' | 'round';
|
|
8
10
|
/** 按钮不可用状态 */
|
|
9
11
|
disabled?: boolean;
|
|
10
|
-
/** 设置危险按钮 */
|
|
11
|
-
danger?: boolean;
|
|
12
12
|
/** 将按钮宽度调整为其父宽度的选项 */
|
|
13
13
|
block?: boolean;
|
|
14
14
|
/** 设置按钮载入状态 */
|
|
@@ -53,11 +53,11 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {
|
|
|
53
53
|
}>, {
|
|
54
54
|
size: "large" | "default" | "small";
|
|
55
55
|
icon: string;
|
|
56
|
-
type: "primary" | "
|
|
56
|
+
type: "primary" | "dashed" | "link" | "text" | "default" | "outline";
|
|
57
57
|
label: string;
|
|
58
|
+
status: "normal" | "success" | "warning" | "danger";
|
|
58
59
|
shape: "default" | "circle" | "round";
|
|
59
60
|
disabled: boolean;
|
|
60
|
-
danger: boolean;
|
|
61
61
|
block: boolean;
|
|
62
62
|
loading: boolean | {
|
|
63
63
|
delay?: number;
|
package/dist/simcode-ui.es.js
CHANGED
|
@@ -113,16 +113,13 @@ var en = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
113
113
|
__name: "button",
|
|
114
114
|
props: {
|
|
115
115
|
type: { default: "default" },
|
|
116
|
+
status: { default: "normal" },
|
|
116
117
|
size: { default: "default" },
|
|
117
118
|
shape: { default: "default" },
|
|
118
119
|
disabled: {
|
|
119
120
|
type: Boolean,
|
|
120
121
|
default: !1
|
|
121
122
|
},
|
|
122
|
-
danger: {
|
|
123
|
-
type: Boolean,
|
|
124
|
-
default: !1
|
|
125
|
-
},
|
|
126
123
|
block: {
|
|
127
124
|
type: Boolean,
|
|
128
125
|
default: !1
|
|
@@ -186,12 +183,14 @@ var en = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
186
183
|
type: "button",
|
|
187
184
|
class: Ve(["j-button", {
|
|
188
185
|
"j-button-primary": e.type == "primary",
|
|
189
|
-
"j-button-success": e.type == "success",
|
|
190
186
|
"j-button-default": e.type == "default",
|
|
191
187
|
"j-button-dashed": e.type == "dashed",
|
|
192
188
|
"j-button-link": e.type == "link",
|
|
193
189
|
"j-button-text": e.type == "text",
|
|
194
|
-
"j-button-
|
|
190
|
+
"j-button-outline": e.type == "outline",
|
|
191
|
+
"j-button-status-success": e.status == "success",
|
|
192
|
+
"j-button-status-warning": e.status == "warning",
|
|
193
|
+
"j-button-status-danger": e.status == "danger",
|
|
195
194
|
"j-button-lg": e.size == "large",
|
|
196
195
|
"j-button-sm": e.size == "small",
|
|
197
196
|
"j-button-circle": e.shape == "circle",
|
|
@@ -2597,7 +2596,7 @@ var Th = ke(Pc), Ah = /* @__PURE__ */ be({
|
|
|
2597
2596
|
setup(e, { emit: t }) {
|
|
2598
2597
|
const n = e, a = t, o = I(), i = O({
|
|
2599
2598
|
get() {
|
|
2600
|
-
return n.multiple && typeof n.modelValue == "string" ? n.modelValue?.split(",") || [] : n.modelValue;
|
|
2599
|
+
return n.multiple && typeof n.modelValue == "string" ? n.modelValue === "" ? [] : n.modelValue?.split(",") || [] : n.modelValue;
|
|
2601
2600
|
},
|
|
2602
2601
|
set(f) {
|
|
2603
2602
|
n.multiple && Array.isArray(f) && (f = f?.join(",") || []), a("update:modelValue", f);
|
|
@@ -5496,7 +5495,7 @@ var jp = class {
|
|
|
5496
5495
|
row: y,
|
|
5497
5496
|
getTableData: m,
|
|
5498
5497
|
config: A.value,
|
|
5499
|
-
type: M
|
|
5498
|
+
type: M?.type || "change",
|
|
5500
5499
|
colNum: n.colNum,
|
|
5501
5500
|
rowNum: n.rowNum
|
|
5502
5501
|
};
|
|
@@ -5905,7 +5904,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5905
5904
|
flexWrap: "nowrap"
|
|
5906
5905
|
});
|
|
5907
5906
|
if (et.forEach((xe, ft) => {
|
|
5908
|
-
const Ue = xe.config?.disabled === !0, zt = Ue ? "#c9cdd4" : xe.config?.danger ? "#f53f3f" : "#165dff", un = new X({
|
|
5907
|
+
const Ue = xe.config?.disabled === !0, zt = Ue ? "#c9cdd4" : xe.config?.status === "danger" ? "#f53f3f" : "#165dff", un = new X({
|
|
5909
5908
|
text: xe.label,
|
|
5910
5909
|
fontSize: 14,
|
|
5911
5910
|
fill: zt,
|
|
@@ -6964,7 +6963,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6964
6963
|
key: te.id,
|
|
6965
6964
|
class: "j-table-dropdown-item",
|
|
6966
6965
|
style: le({
|
|
6967
|
-
color: te.config?.disabled ? "var(--j-color-text-disabled)" : te.config?.danger ? "var(--j-color-danger)" : "var(--j-color-primary)",
|
|
6966
|
+
color: te.config?.disabled ? "var(--j-color-text-disabled)" : te.config?.status === "danger" ? "var(--j-color-danger)" : "var(--j-color-primary)",
|
|
6968
6967
|
cursor: te.config?.disabled ? "not-allowed" : "pointer",
|
|
6969
6968
|
opacity: te.config?.disabled ? 0.7 : 1
|
|
6970
6969
|
}),
|
|
@@ -22990,7 +22989,7 @@ var qC = {
|
|
|
22990
22989
|
const S = $("j-comp"), R = $("el-form-item"), T = $("el-col"), A = $("j-button"), P = $("el-row");
|
|
22991
22990
|
return k(), L(Ee, null, [B("div", Ne({ class: "j-input-cards" }, y.$attrs), [(k(!0), L(Ee, null, Oe(h.value, (z, H) => (k(), L("div", {
|
|
22992
22991
|
class: "j-input-cards-item",
|
|
22993
|
-
key: z.
|
|
22992
|
+
key: z._i,
|
|
22994
22993
|
style: { "margin-bottom": "8px" }
|
|
22995
22994
|
}, [Z(P, { gutter: e.gutter }, {
|
|
22996
22995
|
default: G(() => [(k(!0), L(Ee, null, Oe(e.columns, (j) => (k(), F(T, {
|