@a2simcode/ui 0.0.72 → 0.0.74
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 +10 -190
- package/dist/components/button/src/button.vue.d.ts +39 -226
- package/dist/components/buttons/index.d.ts +7 -6
- package/dist/components/buttons/src/interface.d.ts +16 -12
- package/dist/components/index.d.ts +2 -1
- package/dist/simcode-ui.es.js +18 -107
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +1 -1
- package/docs/components/meta/buttons.ts +15 -10
- package/docs/components/meta/date.ts +25 -44
- package/docs/examples/table/actions.vue +1 -1
- package/docs/examples/table-panel/basic.vue +9 -9
- package/docs/examples/table-panel/batch-operations.vue +4 -4
- package/docs/examples/table-panel/multiple-selection.vue +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -98,111 +98,22 @@ const cn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
|
|
|
98
98
|
name: "JButton",
|
|
99
99
|
__name: "button",
|
|
100
100
|
props: {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
type:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* @zh 设置按钮形状
|
|
119
|
-
* @defaultValue 'default'
|
|
120
|
-
*/
|
|
121
|
-
shape: {
|
|
122
|
-
type: String,
|
|
123
|
-
default: "default"
|
|
124
|
-
},
|
|
125
|
-
/**
|
|
126
|
-
* @zh 幽灵属性,使按钮背景透明
|
|
127
|
-
* @defaultValue false
|
|
128
|
-
*/
|
|
129
|
-
ghost: {
|
|
130
|
-
type: Boolean,
|
|
131
|
-
default: !1
|
|
132
|
-
},
|
|
133
|
-
/**
|
|
134
|
-
* @zh 按钮不可用状态。
|
|
135
|
-
* @defaultValue false
|
|
136
|
-
*/
|
|
137
|
-
disabled: {
|
|
138
|
-
type: Boolean,
|
|
139
|
-
default: !1
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
* @zh 设置危险按钮
|
|
143
|
-
* @defaultValue false
|
|
144
|
-
*/
|
|
145
|
-
danger: {
|
|
146
|
-
type: Boolean,
|
|
147
|
-
default: !1
|
|
148
|
-
},
|
|
149
|
-
/**
|
|
150
|
-
* @zh 将按钮宽度调整为其父宽度的选项
|
|
151
|
-
* @defaultValue false
|
|
152
|
-
*/
|
|
153
|
-
block: {
|
|
154
|
-
type: Boolean,
|
|
155
|
-
default: !1
|
|
156
|
-
},
|
|
157
|
-
/**
|
|
158
|
-
* @zh 设置按钮载入状态
|
|
159
|
-
* @defaultValue false
|
|
160
|
-
*/
|
|
161
|
-
loading: {
|
|
162
|
-
type: [Boolean, Object],
|
|
163
|
-
default: () => !1
|
|
164
|
-
},
|
|
165
|
-
/**
|
|
166
|
-
* @zh 图标
|
|
167
|
-
*/
|
|
168
|
-
icon: {
|
|
169
|
-
type: String,
|
|
170
|
-
default: ""
|
|
171
|
-
},
|
|
172
|
-
/**
|
|
173
|
-
* @zh 点击跳转的地址,指定此属性 button 的行为和 a 链接一致
|
|
174
|
-
*/
|
|
175
|
-
href: {
|
|
176
|
-
type: String,
|
|
177
|
-
default: ""
|
|
178
|
-
},
|
|
179
|
-
/**
|
|
180
|
-
* @zh 相当于 a 链接的 target 属性,href 存在时生效
|
|
181
|
-
*/
|
|
182
|
-
target: {
|
|
183
|
-
type: String,
|
|
184
|
-
default: "_self"
|
|
185
|
-
},
|
|
186
|
-
/**
|
|
187
|
-
* @zh 按钮内容
|
|
188
|
-
*/
|
|
189
|
-
label: {
|
|
190
|
-
type: String,
|
|
191
|
-
default: ""
|
|
192
|
-
},
|
|
193
|
-
/**
|
|
194
|
-
* @zh 是否不要文字
|
|
195
|
-
*/
|
|
196
|
-
notLabel: {
|
|
197
|
-
type: Boolean,
|
|
198
|
-
default: !1
|
|
199
|
-
},
|
|
200
|
-
/**
|
|
201
|
-
* @zh 是否紧凑模式
|
|
202
|
-
*/
|
|
203
|
-
compact: Boolean,
|
|
204
|
-
lastCompactItem: Boolean,
|
|
205
|
-
firstCompactItem: Boolean
|
|
101
|
+
type: { default: "default" },
|
|
102
|
+
size: { default: "default" },
|
|
103
|
+
shape: { default: "default" },
|
|
104
|
+
ghost: { type: Boolean, default: !1 },
|
|
105
|
+
disabled: { type: Boolean, default: !1 },
|
|
106
|
+
danger: { type: Boolean, default: !1 },
|
|
107
|
+
block: { type: Boolean, default: !1 },
|
|
108
|
+
loading: { type: [Boolean, Object], default: !1 },
|
|
109
|
+
icon: { default: "" },
|
|
110
|
+
href: { default: "" },
|
|
111
|
+
target: { default: "_self" },
|
|
112
|
+
label: { default: "" },
|
|
113
|
+
notLabel: { type: Boolean, default: !1 },
|
|
114
|
+
compact: { type: Boolean, default: !1 },
|
|
115
|
+
lastCompactItem: { type: Boolean, default: !1 },
|
|
116
|
+
firstCompactItem: { type: Boolean, default: !1 }
|
|
206
117
|
},
|
|
207
118
|
emits: ["click"],
|
|
208
119
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -4763,7 +4674,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4763
4674
|
flexWrap: "nowrap"
|
|
4764
4675
|
});
|
|
4765
4676
|
if (Q.forEach((Le, et) => {
|
|
4766
|
-
const De = Le.config?.
|
|
4677
|
+
const De = Le.config?.danger ? "#f53f3f" : "#165dff", Ne = new J({
|
|
4767
4678
|
text: Le.label,
|
|
4768
4679
|
fontSize: 14,
|
|
4769
4680
|
fill: De,
|
|
@@ -5588,7 +5499,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5588
5499
|
key: Q.id,
|
|
5589
5500
|
class: "j-table-dropdown-item",
|
|
5590
5501
|
style: Ce({
|
|
5591
|
-
color: Q.config?.
|
|
5502
|
+
color: Q.config?.danger ? "var(--j-color-danger)" : "var(--j-color-primary)"
|
|
5592
5503
|
}),
|
|
5593
5504
|
onClick: (se) => ze(Q)
|
|
5594
5505
|
}, xe(Q.label), 13, Ah))), 128))
|