@ditari/bsui 1.0.20 → 1.0.21
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/cjs/components/index.cjs.js +1 -1
- package/dist/cjs/components/select/Select.vue.d.ts +1 -1
- package/dist/cjs/components/select/index.d.ts +1 -1
- package/dist/cjs/directive/trim.cjs.js +1 -0
- package/dist/cjs/directive/trim.d.ts +4 -0
- package/dist/esm/components/index.esm.js +33 -32
- package/dist/esm/components/select/Select.vue.d.ts +1 -1
- package/dist/esm/components/select/index.d.ts +1 -1
- package/dist/esm/directive/trim.d.ts +4 -0
- package/dist/esm/directive/trim.esm.js +10 -0
- package/package.json +1 -1
- package/src/components/index.ts +3 -1
- package/src/directive/trim.ts +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("pinia"),D=require("pinia-plugin-persistedstate"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("pinia"),D=require("pinia-plugin-persistedstate"),d=require("./components.cjs.js"),l=require("../directive/trim.cjs.js"),q=require("./table/index.cjs.js"),m=require("./select/index.cjs.js"),x=require("./desensitize/index.cjs.js"),$=require("./dic/index.cjs.js"),S=require("./modal/index.cjs.js"),b=require("./form/index.cjs.js"),r=require("./grid/index.cjs.js"),i=require("./layout/index.cjs.js"),s=d,o=function(e,c){Object.keys(s).forEach(a=>{const n=s[a];n.install&&e.use(n)});const t=u.createPinia();t.use(D.createPersistedState({storage:sessionStorage})),e.use(t),e.directive("trim",l.default),e.provide("menuIcon",c.menuIcon)},f={install:o};exports.DTable=q.DTable;exports.DSelect=m.DSelect;exports.DDesensitize=x.DDesensitize;exports.DicReplace=$.DDicReplace;exports.DModal=S.DModal;exports.DForm=b.default;exports.DGrid=r.DGrid;exports.DGridItem=r.DGridItem;exports.DList=i.DList;exports.DMain=i.DMain;exports.DNavTabs=i.DNavTabs;exports.DShow=i.DShow;exports.default=f;exports.install=o;
|
|
@@ -25,7 +25,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
25
25
|
required: false;
|
|
26
26
|
default: any;
|
|
27
27
|
};
|
|
28
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
28
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
30
30
|
type: __PropType<any>;
|
|
31
31
|
required: true;
|
|
@@ -24,7 +24,7 @@ export declare const DSelect: import("../../utils/install").SFCWithInstall<impor
|
|
|
24
24
|
required: false;
|
|
25
25
|
default: any;
|
|
26
26
|
};
|
|
27
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
28
|
value: {
|
|
29
29
|
type: import("vue").PropType<any>;
|
|
30
30
|
required: true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={mounted(e){e.addEventListener("input",()=>{e.value=e.value.trim().replace(/\s+/g,"")})}};exports.default=t;
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { createPinia as
|
|
2
|
-
import { createPersistedState as
|
|
1
|
+
import { createPinia as m } from "pinia";
|
|
2
|
+
import { createPersistedState as n } from "pinia-plugin-persistedstate";
|
|
3
3
|
import * as c from "./components.esm.js";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import a from "../directive/trim.esm.js";
|
|
5
|
+
import { DTable as v } from "./table/index.esm.js";
|
|
6
|
+
import { DSelect as b } from "./select/index.esm.js";
|
|
7
|
+
import { DDesensitize as T } from "./desensitize/index.esm.js";
|
|
7
8
|
import { DDicReplace as h } from "./dic/index.esm.js";
|
|
8
|
-
import { DModal as
|
|
9
|
-
import { default as
|
|
10
|
-
import { DGrid as
|
|
11
|
-
import { DList as
|
|
12
|
-
const
|
|
13
|
-
Object.keys(
|
|
14
|
-
const
|
|
15
|
-
|
|
9
|
+
import { DModal as M } from "./modal/index.esm.js";
|
|
10
|
+
import { default as R } from "./form/index.esm.js";
|
|
11
|
+
import { DGrid as k, DGridItem as w } from "./grid/index.esm.js";
|
|
12
|
+
import { DList as z, DMain as E, DNavTabs as F, DShow as L } from "./layout/index.esm.js";
|
|
13
|
+
const r = c, f = function(e, i) {
|
|
14
|
+
Object.keys(r).forEach((s) => {
|
|
15
|
+
const t = r[s];
|
|
16
|
+
t.install && e.use(t);
|
|
16
17
|
});
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const o = m();
|
|
19
|
+
o.use(
|
|
20
|
+
n({
|
|
20
21
|
storage: sessionStorage
|
|
21
22
|
})
|
|
22
|
-
),
|
|
23
|
-
},
|
|
24
|
-
install:
|
|
23
|
+
), e.use(o), e.directive("trim", a), e.provide("menuIcon", i.menuIcon);
|
|
24
|
+
}, x = {
|
|
25
|
+
install: f
|
|
25
26
|
};
|
|
26
27
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
T as DDesensitize,
|
|
29
|
+
R as DForm,
|
|
30
|
+
k as DGrid,
|
|
31
|
+
w as DGridItem,
|
|
32
|
+
z as DList,
|
|
33
|
+
E as DMain,
|
|
34
|
+
M as DModal,
|
|
35
|
+
F as DNavTabs,
|
|
36
|
+
b as DSelect,
|
|
37
|
+
L as DShow,
|
|
38
|
+
v as DTable,
|
|
38
39
|
h as DicReplace,
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
x as default,
|
|
41
|
+
f as install
|
|
41
42
|
};
|
|
@@ -25,7 +25,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
25
25
|
required: false;
|
|
26
26
|
default: any;
|
|
27
27
|
};
|
|
28
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
28
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
30
30
|
type: __PropType<any>;
|
|
31
31
|
required: true;
|
|
@@ -24,7 +24,7 @@ export declare const DSelect: import("../../utils/install").SFCWithInstall<impor
|
|
|
24
24
|
required: false;
|
|
25
25
|
default: any;
|
|
26
26
|
};
|
|
27
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
28
|
value: {
|
|
29
29
|
type: import("vue").PropType<any>;
|
|
30
30
|
required: true;
|
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { createPersistedState } from "pinia-plugin-persistedstate";
|
|
|
5
5
|
import * as components from "./components";
|
|
6
6
|
export * from "./components";
|
|
7
7
|
|
|
8
|
+
import vTrim from "../directive/trim";
|
|
9
|
+
|
|
8
10
|
export interface MenuIcon {
|
|
9
11
|
componentName: string | "nativeHtml";
|
|
10
12
|
type: string;
|
|
@@ -30,8 +32,8 @@ export const install = function (app: App, opts: Options) {
|
|
|
30
32
|
})
|
|
31
33
|
);
|
|
32
34
|
app.use(pinia);
|
|
35
|
+
app.directive("trim", vTrim);
|
|
33
36
|
app.provide("menuIcon", opts.menuIcon);
|
|
34
|
-
console.log("options", opts);
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
export default {
|