ra-element 0.1.22 → 0.1.23
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-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 +39 -37
- 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 = [];
|
|
@@ -42587,7 +42590,7 @@ const E7 = {
|
|
|
42587
42590
|
}, 16, ["class", "model", "inline"]);
|
|
42588
42591
|
};
|
|
42589
42592
|
}
|
|
42590
|
-
}), T7 = /* @__PURE__ */ Qn($7, [["__scopeId", "data-v-
|
|
42593
|
+
}), T7 = /* @__PURE__ */ Qn($7, [["__scopeId", "data-v-6cad5943"]]), O7 = ["innerHTML"], N7 = /* @__PURE__ */ H({
|
|
42591
42594
|
name: "RaHelpTip",
|
|
42592
42595
|
__name: "index",
|
|
42593
42596
|
props: {
|
|
@@ -42626,53 +42629,58 @@ const E7 = {
|
|
|
42626
42629
|
}), I7 = /* @__PURE__ */ Qn(N7, [["__scopeId", "data-v-e84a5a9a"]]), M7 = /* @__PURE__ */ H({
|
|
42627
42630
|
name: "RaInput",
|
|
42628
42631
|
__name: "index",
|
|
42632
|
+
props: {
|
|
42633
|
+
// @doc 样式属性,1为通用版基础默认样式,如果是传空走默认样式
|
|
42634
|
+
cssStyle: { type: String, default: "1" }
|
|
42635
|
+
},
|
|
42629
42636
|
setup(e, { expose: t }) {
|
|
42630
|
-
const n = x(null);
|
|
42637
|
+
const n = x(null), o = e, a = k(() => o.cssStyle === "1" ? "global-ra-input-wrap" : "");
|
|
42631
42638
|
return t({
|
|
42632
42639
|
// @doc 暴露原有组件的ref,可以通过这个属性获取原有组件暴露的方法或属性
|
|
42633
42640
|
component: n
|
|
42634
|
-
}), (
|
|
42635
|
-
const
|
|
42636
|
-
return E(), te(
|
|
42641
|
+
}), (r, s) => {
|
|
42642
|
+
const i = hn;
|
|
42643
|
+
return E(), te(i, Re({
|
|
42644
|
+
class: a.value,
|
|
42637
42645
|
ref_key: "componentRef",
|
|
42638
42646
|
ref: n,
|
|
42639
42647
|
maxlength: "50",
|
|
42640
42648
|
"show-word-limit": ""
|
|
42641
|
-
},
|
|
42649
|
+
}, r.$attrs), Zt({
|
|
42642
42650
|
default: W(() => [
|
|
42643
|
-
U(
|
|
42651
|
+
U(r.$slots, "default")
|
|
42644
42652
|
]),
|
|
42645
42653
|
_: 2
|
|
42646
42654
|
}, [
|
|
42647
|
-
|
|
42655
|
+
r.$slots.prefix ? {
|
|
42648
42656
|
name: "prefix",
|
|
42649
42657
|
fn: W(() => [
|
|
42650
|
-
U(
|
|
42658
|
+
U(r.$slots, "prefix")
|
|
42651
42659
|
]),
|
|
42652
42660
|
key: "0"
|
|
42653
42661
|
} : void 0,
|
|
42654
|
-
|
|
42662
|
+
r.$slots.suffix ? {
|
|
42655
42663
|
name: "suffix",
|
|
42656
42664
|
fn: W(() => [
|
|
42657
|
-
U(
|
|
42665
|
+
U(r.$slots, "suffix")
|
|
42658
42666
|
]),
|
|
42659
42667
|
key: "1"
|
|
42660
42668
|
} : void 0,
|
|
42661
|
-
|
|
42669
|
+
r.$slots.prepend ? {
|
|
42662
42670
|
name: "prepend",
|
|
42663
42671
|
fn: W(() => [
|
|
42664
|
-
U(
|
|
42672
|
+
U(r.$slots, "prepend")
|
|
42665
42673
|
]),
|
|
42666
42674
|
key: "2"
|
|
42667
42675
|
} : void 0,
|
|
42668
|
-
|
|
42676
|
+
r.$slots.append ? {
|
|
42669
42677
|
name: "append",
|
|
42670
42678
|
fn: W(() => [
|
|
42671
|
-
U(
|
|
42679
|
+
U(r.$slots, "append")
|
|
42672
42680
|
]),
|
|
42673
42681
|
key: "3"
|
|
42674
42682
|
} : void 0
|
|
42675
|
-
]), 1040);
|
|
42683
|
+
]), 1040, ["class"]);
|
|
42676
42684
|
};
|
|
42677
42685
|
}
|
|
42678
42686
|
}), x7 = /* @__PURE__ */ H({
|
|
@@ -43080,9 +43088,8 @@ const Y7 = {
|
|
|
43080
43088
|
pageSize: { type: Number, default: 10 },
|
|
43081
43089
|
paginationButtonNumber: { type: Number, default: 7, validator: (e) => e >= 5 && e <= 21 },
|
|
43082
43090
|
// 分页按钮数目,官方组件限制大于等于 5 且小于等于 21 的奇数
|
|
43083
|
-
paginationLayout: { type: String, default: "total, prev, pager, next, jumper" }
|
|
43091
|
+
paginationLayout: { type: String, default: "total, prev, pager, next, jumper" }
|
|
43084
43092
|
// 分页按钮数目
|
|
43085
|
-
smallPagination: { type: Boolean, default: !1 }
|
|
43086
43093
|
},
|
|
43087
43094
|
emits: ["update:pageNum", "update:pageSize", "currentChange", "sizeChange"],
|
|
43088
43095
|
setup(e, { emit: t }) {
|
|
@@ -43112,8 +43119,7 @@ const Y7 = {
|
|
|
43112
43119
|
layout: e.paginationLayout,
|
|
43113
43120
|
total: e.pageTotal,
|
|
43114
43121
|
background: !0,
|
|
43115
|
-
"pager-count": e.paginationButtonNumber
|
|
43116
|
-
small: ""
|
|
43122
|
+
"pager-count": e.paginationButtonNumber
|
|
43117
43123
|
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) : Z("", !0),
|
|
43118
43124
|
e.pageReqType === "axios" ? (E(), te(i, {
|
|
43119
43125
|
key: 2,
|
|
@@ -43124,14 +43130,13 @@ const Y7 = {
|
|
|
43124
43130
|
layout: e.paginationLayout,
|
|
43125
43131
|
total: e.pageTotal,
|
|
43126
43132
|
background: !0,
|
|
43127
|
-
"pager-count": e.paginationButtonNumber
|
|
43128
|
-
|
|
43129
|
-
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count", "small"])) : Z("", !0)
|
|
43133
|
+
"pager-count": e.paginationButtonNumber
|
|
43134
|
+
}, null, 8, ["current-page", "page-size", "layout", "total", "pager-count"])) : Z("", !0)
|
|
43130
43135
|
])
|
|
43131
43136
|
])) : Z("", !0);
|
|
43132
43137
|
};
|
|
43133
43138
|
}
|
|
43134
|
-
}), X7 = /* @__PURE__ */ Qn(G7, [["__scopeId", "data-v-
|
|
43139
|
+
}), X7 = /* @__PURE__ */ Qn(G7, [["__scopeId", "data-v-9d630506"]]), Z7 = { class: "table-group" }, J7 = /* @__PURE__ */ H({
|
|
43135
43140
|
name: "RaTable",
|
|
43136
43141
|
__name: "index",
|
|
43137
43142
|
props: {
|
|
@@ -43179,9 +43184,7 @@ const Y7 = {
|
|
|
43179
43184
|
// @doc 序号固定
|
|
43180
43185
|
indexFixed: { type: Boolean, default: !1 },
|
|
43181
43186
|
// @doc 最大页码按钮数量
|
|
43182
|
-
paginationButtonNumber: { type: Number, default: 7 }
|
|
43183
|
-
// @doc 是否开启小分页
|
|
43184
|
-
smallPagination: { type: Boolean, default: !1 }
|
|
43187
|
+
paginationButtonNumber: { type: Number, default: 7 }
|
|
43185
43188
|
},
|
|
43186
43189
|
emits: ["sizeChange", "currentChange", "pageChange", "getFields", "exportTable"],
|
|
43187
43190
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -43341,8 +43344,7 @@ const Y7 = {
|
|
|
43341
43344
|
onSizeChange: S,
|
|
43342
43345
|
paginationLayout: e.layout,
|
|
43343
43346
|
pageTotal: l(s).pageTotal,
|
|
43344
|
-
paginationButtonNumber: e.paginationButtonNumber
|
|
43345
|
-
smallPagination: e.smallPagination
|
|
43347
|
+
paginationButtonNumber: e.paginationButtonNumber
|
|
43346
43348
|
}, {
|
|
43347
43349
|
pageLeft: W(() => [
|
|
43348
43350
|
U(C.$slots, "pageLeft", {}, void 0, !0)
|
|
@@ -43351,11 +43353,11 @@ const Y7 = {
|
|
|
43351
43353
|
U(C.$slots, "pageTotalLeft", {}, void 0, !0)
|
|
43352
43354
|
]),
|
|
43353
43355
|
_: 3
|
|
43354
|
-
}, 8, ["pageReqType", "pageSize", "pageNum", "paginationLayout", "pageTotal", "paginationButtonNumber"
|
|
43356
|
+
}, 8, ["pageReqType", "pageSize", "pageNum", "paginationLayout", "pageTotal", "paginationButtonNumber"])
|
|
43355
43357
|
]);
|
|
43356
43358
|
};
|
|
43357
43359
|
}
|
|
43358
|
-
}), Q7 = /* @__PURE__ */ Qn(J7, [["__scopeId", "data-v-
|
|
43360
|
+
}), Q7 = /* @__PURE__ */ Qn(J7, [["__scopeId", "data-v-657ad154"]]), eW = /* @__PURE__ */ H({
|
|
43359
43361
|
name: "RaToolTip",
|
|
43360
43362
|
__name: "index",
|
|
43361
43363
|
props: {
|