ra-element 0.1.22 → 0.1.24
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/docs/ra-form.md +1 -0
- package/docs/ra-input.md +6 -0
- package/docs/ra-table.md +0 -1
- package/docs/ra-textarea.md +1 -0
- package/lib/components/ra-input/index.vue.d.ts +14 -2
- package/lib/components/ra-table/component/pagination-group.vue.d.ts +0 -9
- package/lib/components/ra-textarea/index.vue.d.ts +9 -0
- package/lib/ra-element.css +1 -1
- package/lib/ra-element.es.js +45 -40
- package/lib/ra-element.umd.js +5 -5
- package/package.json +1 -1
package/lib/ra-element.es.js
CHANGED
|
@@ -42358,17 +42358,20 @@ const o7 = /* @__PURE__ */ H({
|
|
|
42358
42358
|
// @doc 限制字数,需要配合maxlength使用
|
|
42359
42359
|
showWordLimit: { type: Boolean, default: !0 },
|
|
42360
42360
|
// @doc 限制字数最大值
|
|
42361
|
-
maxlength: { type: String, default: "300" }
|
|
42361
|
+
maxlength: { type: String, default: "300" },
|
|
42362
|
+
// @doc 样式属性,1为通用版基础默认样式,如果是传空走默认样式
|
|
42363
|
+
cssStyle: { type: String, default: "1" }
|
|
42362
42364
|
},
|
|
42363
42365
|
setup(e) {
|
|
42364
|
-
const t = e;
|
|
42365
|
-
return (
|
|
42366
|
-
const
|
|
42367
|
-
return E(), te(
|
|
42366
|
+
const t = e, n = k(() => t.cssStyle === "1" ? "global-ra-input-wrap" : "");
|
|
42367
|
+
return (o, a) => {
|
|
42368
|
+
const r = hn;
|
|
42369
|
+
return E(), te(r, Re({
|
|
42370
|
+
class: n.value,
|
|
42368
42371
|
type: "textarea",
|
|
42369
42372
|
rows: t.rows,
|
|
42370
42373
|
maxlength: t.maxlength
|
|
42371
|
-
},
|
|
42374
|
+
}, o.$attrs, { "show-word-limit": "" }), null, 16, ["class", "rows", "maxlength"]);
|
|
42372
42375
|
};
|
|
42373
42376
|
}
|
|
42374
42377
|
}), bn = [];
|
|
@@ -42413,7 +42416,9 @@ const E7 = {
|
|
|
42413
42416
|
// @doc v-model绑定,如果不使用,options必须配置,最后通过ref的getFormData获取form数据
|
|
42414
42417
|
modelValue: { type: Object },
|
|
42415
42418
|
// @doc inline时候的每个item的margin-right距离,默认20
|
|
42416
|
-
itemMarginRight: { type: Number, default: 20 }
|
|
42419
|
+
itemMarginRight: { type: Number, default: 20 },
|
|
42420
|
+
// @doc 表单验证规则
|
|
42421
|
+
rules: { type: Object, default: () => ({}) }
|
|
42417
42422
|
},
|
|
42418
42423
|
emits: ["update:modelValue", "itemChange"],
|
|
42419
42424
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -42475,7 +42480,8 @@ const E7 = {
|
|
|
42475
42480
|
ref: f
|
|
42476
42481
|
}, $.$attrs, {
|
|
42477
42482
|
model: v.value,
|
|
42478
|
-
inline: typeof e.inline == "number" ? !0 : e.inline
|
|
42483
|
+
inline: typeof e.inline == "number" ? !0 : e.inline,
|
|
42484
|
+
rules: e.rules
|
|
42479
42485
|
}), {
|
|
42480
42486
|
default: W(() => [
|
|
42481
42487
|
U($.$slots, "default", {}, void 0, !0),
|
|
@@ -42584,10 +42590,10 @@ const E7 = {
|
|
|
42584
42590
|
}, 1040, ["style"]))), 128))
|
|
42585
42591
|
]),
|
|
42586
42592
|
_: 3
|
|
42587
|
-
}, 16, ["class", "model", "inline"]);
|
|
42593
|
+
}, 16, ["class", "model", "inline", "rules"]);
|
|
42588
42594
|
};
|
|
42589
42595
|
}
|
|
42590
|
-
}), T7 = /* @__PURE__ */ Qn($7, [["__scopeId", "data-v-
|
|
42596
|
+
}), T7 = /* @__PURE__ */ Qn($7, [["__scopeId", "data-v-9908708f"]]), O7 = ["innerHTML"], N7 = /* @__PURE__ */ H({
|
|
42591
42597
|
name: "RaHelpTip",
|
|
42592
42598
|
__name: "index",
|
|
42593
42599
|
props: {
|
|
@@ -42626,53 +42632,58 @@ const E7 = {
|
|
|
42626
42632
|
}), I7 = /* @__PURE__ */ Qn(N7, [["__scopeId", "data-v-e84a5a9a"]]), M7 = /* @__PURE__ */ H({
|
|
42627
42633
|
name: "RaInput",
|
|
42628
42634
|
__name: "index",
|
|
42635
|
+
props: {
|
|
42636
|
+
// @doc 样式属性,1为通用版基础默认样式,如果是传空走默认样式
|
|
42637
|
+
cssStyle: { type: String, default: "1" }
|
|
42638
|
+
},
|
|
42629
42639
|
setup(e, { expose: t }) {
|
|
42630
|
-
const n = x(null);
|
|
42640
|
+
const n = x(null), o = e, a = k(() => o.cssStyle === "1" ? "global-ra-input-wrap" : "");
|
|
42631
42641
|
return t({
|
|
42632
42642
|
// @doc 暴露原有组件的ref,可以通过这个属性获取原有组件暴露的方法或属性
|
|
42633
42643
|
component: n
|
|
42634
|
-
}), (
|
|
42635
|
-
const
|
|
42636
|
-
return E(), te(
|
|
42644
|
+
}), (r, s) => {
|
|
42645
|
+
const i = hn;
|
|
42646
|
+
return E(), te(i, Re({
|
|
42647
|
+
class: a.value,
|
|
42637
42648
|
ref_key: "componentRef",
|
|
42638
42649
|
ref: n,
|
|
42639
42650
|
maxlength: "50",
|
|
42640
42651
|
"show-word-limit": ""
|
|
42641
|
-
},
|
|
42652
|
+
}, r.$attrs), Zt({
|
|
42642
42653
|
default: W(() => [
|
|
42643
|
-
U(
|
|
42654
|
+
U(r.$slots, "default")
|
|
42644
42655
|
]),
|
|
42645
42656
|
_: 2
|
|
42646
42657
|
}, [
|
|
42647
|
-
|
|
42658
|
+
r.$slots.prefix ? {
|
|
42648
42659
|
name: "prefix",
|
|
42649
42660
|
fn: W(() => [
|
|
42650
|
-
U(
|
|
42661
|
+
U(r.$slots, "prefix")
|
|
42651
42662
|
]),
|
|
42652
42663
|
key: "0"
|
|
42653
42664
|
} : void 0,
|
|
42654
|
-
|
|
42665
|
+
r.$slots.suffix ? {
|
|
42655
42666
|
name: "suffix",
|
|
42656
42667
|
fn: W(() => [
|
|
42657
|
-
U(
|
|
42668
|
+
U(r.$slots, "suffix")
|
|
42658
42669
|
]),
|
|
42659
42670
|
key: "1"
|
|
42660
42671
|
} : void 0,
|
|
42661
|
-
|
|
42672
|
+
r.$slots.prepend ? {
|
|
42662
42673
|
name: "prepend",
|
|
42663
42674
|
fn: W(() => [
|
|
42664
|
-
U(
|
|
42675
|
+
U(r.$slots, "prepend")
|
|
42665
42676
|
]),
|
|
42666
42677
|
key: "2"
|
|
42667
42678
|
} : void 0,
|
|
42668
|
-
|
|
42679
|
+
r.$slots.append ? {
|
|
42669
42680
|
name: "append",
|
|
42670
42681
|
fn: W(() => [
|
|
42671
|
-
U(
|
|
42682
|
+
U(r.$slots, "append")
|
|
42672
42683
|
]),
|
|
42673
42684
|
key: "3"
|
|
42674
42685
|
} : void 0
|
|
42675
|
-
]), 1040);
|
|
42686
|
+
]), 1040, ["class"]);
|
|
42676
42687
|
};
|
|
42677
42688
|
}
|
|
42678
42689
|
}), x7 = /* @__PURE__ */ H({
|
|
@@ -43080,9 +43091,8 @@ const Y7 = {
|
|
|
43080
43091
|
pageSize: { type: Number, default: 10 },
|
|
43081
43092
|
paginationButtonNumber: { type: Number, default: 7, validator: (e) => e >= 5 && e <= 21 },
|
|
43082
43093
|
// 分页按钮数目,官方组件限制大于等于 5 且小于等于 21 的奇数
|
|
43083
|
-
paginationLayout: { type: String, default: "total, prev, pager, next, jumper" }
|
|
43094
|
+
paginationLayout: { type: String, default: "total, prev, pager, next, jumper" }
|
|
43084
43095
|
// 分页按钮数目
|
|
43085
|
-
smallPagination: { type: Boolean, default: !1 }
|
|
43086
43096
|
},
|
|
43087
43097
|
emits: ["update:pageNum", "update:pageSize", "currentChange", "sizeChange"],
|
|
43088
43098
|
setup(e, { emit: t }) {
|
|
@@ -43112,8 +43122,7 @@ const Y7 = {
|
|
|
43112
43122
|
layout: e.paginationLayout,
|
|
43113
43123
|
total: e.pageTotal,
|
|
43114
43124
|
background: !0,
|
|
43115
|
-
"pager-count": e.paginationButtonNumber
|
|
43116
|
-
small: ""
|
|
43125
|
+
"pager-count": e.paginationButtonNumber
|
|
43117
43126
|
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) : Z("", !0),
|
|
43118
43127
|
e.pageReqType === "axios" ? (E(), te(i, {
|
|
43119
43128
|
key: 2,
|
|
@@ -43124,14 +43133,13 @@ const Y7 = {
|
|
|
43124
43133
|
layout: e.paginationLayout,
|
|
43125
43134
|
total: e.pageTotal,
|
|
43126
43135
|
background: !0,
|
|
43127
|
-
"pager-count": e.paginationButtonNumber
|
|
43128
|
-
|
|
43129
|
-
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count", "small"])) : Z("", !0)
|
|
43136
|
+
"pager-count": e.paginationButtonNumber
|
|
43137
|
+
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) : Z("", !0)
|
|
43130
43138
|
])
|
|
43131
43139
|
])) : Z("", !0);
|
|
43132
43140
|
};
|
|
43133
43141
|
}
|
|
43134
|
-
}), X7 = /* @__PURE__ */ Qn(G7, [["__scopeId", "data-v-
|
|
43142
|
+
}), X7 = /* @__PURE__ */ Qn(G7, [["__scopeId", "data-v-9d630506"]]), Z7 = { class: "table-group" }, J7 = /* @__PURE__ */ H({
|
|
43135
43143
|
name: "RaTable",
|
|
43136
43144
|
__name: "index",
|
|
43137
43145
|
props: {
|
|
@@ -43179,9 +43187,7 @@ const Y7 = {
|
|
|
43179
43187
|
// @doc 序号固定
|
|
43180
43188
|
indexFixed: { type: Boolean, default: !1 },
|
|
43181
43189
|
// @doc 最大页码按钮数量
|
|
43182
|
-
paginationButtonNumber: { type: Number, default: 7 }
|
|
43183
|
-
// @doc 是否开启小分页
|
|
43184
|
-
smallPagination: { type: Boolean, default: !1 }
|
|
43190
|
+
paginationButtonNumber: { type: Number, default: 7 }
|
|
43185
43191
|
},
|
|
43186
43192
|
emits: ["sizeChange", "currentChange", "pageChange", "getFields", "exportTable"],
|
|
43187
43193
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -43341,8 +43347,7 @@ const Y7 = {
|
|
|
43341
43347
|
onSizeChange: S,
|
|
43342
43348
|
paginationLayout: e.layout,
|
|
43343
43349
|
pageTotal: l(s).pageTotal,
|
|
43344
|
-
paginationButtonNumber: e.paginationButtonNumber
|
|
43345
|
-
smallPagination: e.smallPagination
|
|
43350
|
+
paginationButtonNumber: e.paginationButtonNumber
|
|
43346
43351
|
}, {
|
|
43347
43352
|
pageLeft: W(() => [
|
|
43348
43353
|
U(C.$slots, "pageLeft", {}, void 0, !0)
|
|
@@ -43351,11 +43356,11 @@ const Y7 = {
|
|
|
43351
43356
|
U(C.$slots, "pageTotalLeft", {}, void 0, !0)
|
|
43352
43357
|
]),
|
|
43353
43358
|
_: 3
|
|
43354
|
-
}, 8, ["pageReqType", "pageSize", "pageNum", "paginationLayout", "pageTotal", "paginationButtonNumber"
|
|
43359
|
+
}, 8, ["pageReqType", "pageSize", "pageNum", "paginationLayout", "pageTotal", "paginationButtonNumber"])
|
|
43355
43360
|
]);
|
|
43356
43361
|
};
|
|
43357
43362
|
}
|
|
43358
|
-
}), Q7 = /* @__PURE__ */ Qn(J7, [["__scopeId", "data-v-
|
|
43363
|
+
}), Q7 = /* @__PURE__ */ Qn(J7, [["__scopeId", "data-v-657ad154"]]), eW = /* @__PURE__ */ H({
|
|
43359
43364
|
name: "RaToolTip",
|
|
43360
43365
|
__name: "index",
|
|
43361
43366
|
props: {
|