@cloudbase/weda-ui 3.25.0 → 3.26.0
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/configs/components/wd-drawer.d.ts +144 -0
- package/dist/configs/components/wd-drawer.js +358 -0
- package/dist/configs/components/wd-image.js +1 -1
- package/dist/configs/components/wd-modal.js +5 -1
- package/dist/configs/components/wd-table.d.ts +5 -0
- package/dist/configs/components/wd-table.js +11 -0
- package/dist/configs/components/wxOpenApi/userInfo.d.ts +2 -2
- package/dist/configs/index.d.ts +256 -2
- package/dist/configs/index.js +2 -0
- package/dist/enum/index.d.ts +4 -0
- package/dist/enum/index.js +18 -0
- package/dist/style/index.css +146 -3
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +4 -4
- package/dist/web/components/form/uploader/upload/index.js +3 -1
- package/dist/web/components/form/uploader/uploader.pc.js +3 -1
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +25 -17
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +26 -17
- package/dist/web/components/form/userOrgSelect/component/depart-breadcrumb.js +3 -1
- package/dist/web/components/form/userOrgSelect/component/depart-select/depart-select-pc.d.ts +2 -2
- package/dist/web/components/form/userOrgSelect/component/depart-select/depart-select-pc.js +8 -4
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +10 -3
- package/dist/web/components/form/userOrgSelect/component/depart-select/org-modal-pc.js +6 -6
- package/dist/web/components/form/userOrgSelect/component/error-tips.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/component/error-tips.js +7 -4
- package/dist/web/components/form/userOrgSelect/component/modal-search-h5.js +3 -1
- package/dist/web/components/form/userOrgSelect/component/modal-search.js +4 -1
- package/dist/web/components/form/userOrgSelect/component/modal-select-h5.js +8 -11
- package/dist/web/components/form/userOrgSelect/component/org-tree.js +3 -1
- package/dist/web/components/form/userOrgSelect/component/selected-list-h5.js +8 -8
- package/dist/web/components/form/userOrgSelect/component/selected-list.js +5 -10
- package/dist/web/components/form/userOrgSelect/component/user-org-list.js +12 -21
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-list-h5.js +6 -10
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-select-h5.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-select-h5.js +5 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/model-user-list.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/model-user-list.js +4 -2
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-model.js +4 -2
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.d.ts +2 -2
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +6 -2
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +2 -2
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +12 -11
- package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +9 -9
- package/dist/web/components/form-input-hooks/validator.js +1 -1
- package/dist/web/components/index.d.ts +2 -0
- package/dist/web/components/index.js +2 -0
- package/dist/web/components/richText/const.d.ts +57 -0
- package/dist/web/components/richText/const.js +57 -0
- package/dist/web/components/richText/index.css +3 -1
- package/dist/web/components/richText/index.d.ts +1 -2
- package/dist/web/components/richText/index.js +26 -20
- package/dist/web/components/table/ImportFileModal/index.css +21 -69
- package/dist/web/components/uploaderFileView/index.js +2 -0
- package/dist/web/components/uploaderView/index.js +6 -3
- package/dist/web/components/wd-config-provider/wd-config-context.d.ts +9 -0
- package/dist/web/components/wd-config-provider/wd-config-context.js +2 -0
- package/dist/web/components/wd-config-provider/wd-config-provider.js +8 -9
- package/dist/web/components/wd-drawer/index.d.ts +3 -0
- package/dist/web/components/wd-drawer/index.js +3 -0
- package/dist/web/components/wd-drawer/wd-drawer.d.ts +11 -0
- package/dist/web/components/wd-drawer/wd-drawer.js +122 -0
- package/dist/web/components/wd-form/hooks/use-remote-value.js +1 -1
- package/dist/web/components/wd-image/ImagePreview.js +5 -1
- package/dist/web/components/wd-modal/wd-modal.js +4 -2
- package/dist/web/components/wd-rich-text/wd-rich-text.js +1 -1
- package/dist/web/components/wd-table/components/Table/index.js +3 -1
- package/dist/web/components/wd-table/wd-table.js +27 -29
- package/dist/web/components/wd-tabs/tabs-h5.js +6 -3
- package/dist/web/components/wd-tabs/tabs-pc.js +6 -3
- package/dist/web/components/wd-tabs/tabs.js +2 -6
- package/dist/web/components/wd-tree/utils.d.ts +1 -1
- package/dist/web/components/wd-unified-link/utils.js +2 -2
- package/dist/web/components/wd-upload-file/wd-upload-file.js +5 -1
- package/dist/web/utils/config-context/use-config.d.ts +1 -0
- package/dist/web/utils/config-context/use-config.js +2 -1
- package/dist/web/utils/i18n/index.d.ts +1 -0
- package/dist/web/utils/i18n/index.js +1 -0
- package/dist/web/utils/i18n/locale/en_US.d.ts +119 -0
- package/dist/web/utils/i18n/locale/en_US.js +187 -0
- package/dist/web/utils/i18n/locale/zh_CN.d.ts +120 -0
- package/dist/web/utils/i18n/locale/zh_CN.js +188 -0
- package/dist/web/utils/i18n/translation.d.ts +9 -0
- package/dist/web/utils/i18n/translation.js +28 -0
- package/dist/web/utils/i18n/translationMap.d.ts +15 -0
- package/dist/web/utils/i18n/translationMap.js +10 -0
- package/package.json +3 -3
package/dist/configs/index.d.ts
CHANGED
|
@@ -1964,6 +1964,128 @@ export declare const components: {
|
|
|
1964
1964
|
};
|
|
1965
1965
|
};
|
|
1966
1966
|
};
|
|
1967
|
+
WdDrawer: {
|
|
1968
|
+
readonly $schema: "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json";
|
|
1969
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
1970
|
+
visible: import("@sinclair/typebox").TBoolean;
|
|
1971
|
+
placement: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1972
|
+
closeType: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
1973
|
+
mask: import("@sinclair/typebox").TBoolean;
|
|
1974
|
+
enableHeaderSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1975
|
+
enableContentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1976
|
+
enableFooterSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1977
|
+
headerSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
1978
|
+
contentSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
1979
|
+
footerSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
1980
|
+
}>;
|
|
1981
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
1982
|
+
modalState: import("@sinclair/typebox").TUnsafe<string>;
|
|
1983
|
+
openInfo: import("@sinclair/typebox").TUnknown;
|
|
1984
|
+
closeInfo: import("@sinclair/typebox").TUnknown;
|
|
1985
|
+
}>;
|
|
1986
|
+
readonly classes: readonly [{
|
|
1987
|
+
readonly name: "根元素";
|
|
1988
|
+
readonly selector: ".wd-drawer";
|
|
1989
|
+
readonly description: "组件根元素";
|
|
1990
|
+
readonly code: "\n :scope.wd-drawer {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
1991
|
+
}, {
|
|
1992
|
+
readonly name: "PC 端根元素";
|
|
1993
|
+
readonly selector: ".wd-pc-drawer";
|
|
1994
|
+
readonly description: "组件根元素";
|
|
1995
|
+
readonly code: "\n :scope.wd-pc-drawer {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
1996
|
+
}, {
|
|
1997
|
+
readonly name: "H5 端根元素";
|
|
1998
|
+
readonly selector: ".wd-h5-drawer";
|
|
1999
|
+
readonly description: "可以为 H5 端的编写样式";
|
|
2000
|
+
readonly code: "\n :scope.wd-h5-drawer {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
2001
|
+
}, {
|
|
2002
|
+
readonly name: "小程序 端根元素";
|
|
2003
|
+
readonly selector: ".wd-mp-drawer";
|
|
2004
|
+
readonly description: "可以为 小程序 端的编写样式";
|
|
2005
|
+
readonly code: "\n :scope.wd-mp-drawer {\n /* 可以为 小程序 端的编写样式 */\n }\n ";
|
|
2006
|
+
}, {
|
|
2007
|
+
readonly name: "抽屉遮罩层样式";
|
|
2008
|
+
readonly selector: ".wd-drawer-mask";
|
|
2009
|
+
readonly description: "可以为遮罩层编写样式";
|
|
2010
|
+
readonly code: "\n :scope .wd-drawer-mask {\n /* 可以为遮罩层编写样式 */\n background-color: rgba(0, 0, 0, 0.5)\n }\n ";
|
|
2011
|
+
}, {
|
|
2012
|
+
readonly name: "抽屉主体容器样式";
|
|
2013
|
+
readonly selector: ".wd-drawer-content-wrapper";
|
|
2014
|
+
readonly description: "可以为主体容器编写样式";
|
|
2015
|
+
readonly code: "\n :scope .wd-drawer-content-wrapper {\n /* 可以为主体容器编写样式 */\n inset-inline-start: auto;\n inset-inline-end: 0;\n }\n ";
|
|
2016
|
+
}, {
|
|
2017
|
+
readonly name: "抽屉顶部容器样式";
|
|
2018
|
+
readonly selector: ".wd-drawer-header";
|
|
2019
|
+
readonly description: "可以为顶部容器编写样式";
|
|
2020
|
+
readonly code: "\n :scope .wd-drawer-header {\n /* 可以为顶部容器编写样式*/\n padding: 0;\n }\n ";
|
|
2021
|
+
}, {
|
|
2022
|
+
readonly name: "抽屉内容容器样式";
|
|
2023
|
+
readonly selector: ".wd-drawer-body";
|
|
2024
|
+
readonly description: "可以为内容容器编写样式";
|
|
2025
|
+
readonly code: "\n :scope .wd-drawer-body {\n /* 可以为内容容器编写样式 */\n padding: 0;\n }\n ";
|
|
2026
|
+
}, {
|
|
2027
|
+
readonly name: "抽屉底部容器样式";
|
|
2028
|
+
readonly selector: ".wd-drawer-footer";
|
|
2029
|
+
readonly description: "可以为底部容器编写样式";
|
|
2030
|
+
readonly code: "\n :scope .wd-drawer-footer {\n /* 可以为底部容器编写样式 */\n padding: 0;\n }\n ";
|
|
2031
|
+
}];
|
|
2032
|
+
readonly methods: readonly [{
|
|
2033
|
+
readonly name: "open";
|
|
2034
|
+
readonly label: "打开抽屉";
|
|
2035
|
+
readonly params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
2036
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
2037
|
+
}>>;
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly name: "close";
|
|
2040
|
+
readonly label: "关闭抽屉";
|
|
2041
|
+
readonly params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
2042
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
2043
|
+
}>>;
|
|
2044
|
+
}];
|
|
2045
|
+
readonly events: readonly [{
|
|
2046
|
+
readonly title: "抽屉打开时";
|
|
2047
|
+
readonly name: "open";
|
|
2048
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
2049
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
2050
|
+
}>;
|
|
2051
|
+
}, {
|
|
2052
|
+
readonly title: "抽屉关闭时";
|
|
2053
|
+
readonly name: "close";
|
|
2054
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
2055
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
2056
|
+
}>;
|
|
2057
|
+
}];
|
|
2058
|
+
readonly meta: {
|
|
2059
|
+
readonly name: "WdDrawer";
|
|
2060
|
+
readonly componentName: "drawer";
|
|
2061
|
+
readonly title: "抽屉";
|
|
2062
|
+
readonly description: "屏幕边缘滑出的浮层面板。";
|
|
2063
|
+
readonly propertyPanelTips: "在小程序中使用时,不建议嵌套在其他容器/组件中,以免抽屉被遮盖";
|
|
2064
|
+
readonly figureIcon: "../figureIcons/WdModal.svg";
|
|
2065
|
+
readonly icon: "../icons/Modal.svg";
|
|
2066
|
+
readonly category: "布局";
|
|
2067
|
+
readonly categoryOrder: 200;
|
|
2068
|
+
readonly componentOrder: 150;
|
|
2069
|
+
readonly visible: readonly ["APP"];
|
|
2070
|
+
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/WdModal";
|
|
2071
|
+
readonly templates: readonly [{
|
|
2072
|
+
readonly when: "$attached";
|
|
2073
|
+
readonly to: "headerSlot";
|
|
2074
|
+
readonly body: string;
|
|
2075
|
+
}];
|
|
2076
|
+
readonly inlineStyleForm: {
|
|
2077
|
+
readonly justifyContent: {
|
|
2078
|
+
readonly visible: false;
|
|
2079
|
+
};
|
|
2080
|
+
readonly flexDirection: {
|
|
2081
|
+
readonly visible: false;
|
|
2082
|
+
};
|
|
2083
|
+
readonly alignItems: {
|
|
2084
|
+
readonly visible: false;
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
};
|
|
2088
|
+
};
|
|
1967
2089
|
Chart: {
|
|
1968
2090
|
readonly $schema: "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json";
|
|
1969
2091
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
@@ -9267,7 +9389,7 @@ export declare const components: {
|
|
|
9267
9389
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">>;
|
|
9268
9390
|
size: import("@sinclair/typebox").TUnsafe<"default" | "mini" | "large">;
|
|
9269
9391
|
usage: import("@sinclair/typebox").TString;
|
|
9270
|
-
language: import("@sinclair/typebox").TUnsafe<"
|
|
9392
|
+
language: import("@sinclair/typebox").TUnsafe<"en" | "zh_CN" | "zh_TW">;
|
|
9271
9393
|
}>;
|
|
9272
9394
|
readonly events: readonly [{
|
|
9273
9395
|
readonly title: "用户信息授权成功";
|
|
@@ -11593,6 +11715,11 @@ export declare const components: {
|
|
|
11593
11715
|
readonly selector: ".wd-table__box td";
|
|
11594
11716
|
readonly description: "表格文字样式";
|
|
11595
11717
|
readonly code: "\n :scope .wd-table__box td {\n background-color: lightgray;\n height: 36px;\n }\n ";
|
|
11718
|
+
}, {
|
|
11719
|
+
readonly name: "表格内容文本元素";
|
|
11720
|
+
readonly selector: ".wd-table__box td .wd-text-overflow";
|
|
11721
|
+
readonly description: "表格筛选面板根元素";
|
|
11722
|
+
readonly code: "\n :scope .wd-table__box td .wd-text-overflow {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
11596
11723
|
}, {
|
|
11597
11724
|
readonly name: "表格主体样式";
|
|
11598
11725
|
readonly selector: ".wd-table";
|
|
@@ -21451,6 +21578,128 @@ declare const _default: {
|
|
|
21451
21578
|
};
|
|
21452
21579
|
};
|
|
21453
21580
|
};
|
|
21581
|
+
WdDrawer: {
|
|
21582
|
+
readonly $schema: "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json";
|
|
21583
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
21584
|
+
visible: import("@sinclair/typebox").TBoolean;
|
|
21585
|
+
placement: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21586
|
+
closeType: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
21587
|
+
mask: import("@sinclair/typebox").TBoolean;
|
|
21588
|
+
enableHeaderSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
21589
|
+
enableContentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
21590
|
+
enableFooterSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
21591
|
+
headerSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
21592
|
+
contentSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
21593
|
+
footerSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
21594
|
+
}>;
|
|
21595
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
21596
|
+
modalState: import("@sinclair/typebox").TUnsafe<string>;
|
|
21597
|
+
openInfo: import("@sinclair/typebox").TUnknown;
|
|
21598
|
+
closeInfo: import("@sinclair/typebox").TUnknown;
|
|
21599
|
+
}>;
|
|
21600
|
+
readonly classes: readonly [{
|
|
21601
|
+
readonly name: "根元素";
|
|
21602
|
+
readonly selector: ".wd-drawer";
|
|
21603
|
+
readonly description: "组件根元素";
|
|
21604
|
+
readonly code: "\n :scope.wd-drawer {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
21605
|
+
}, {
|
|
21606
|
+
readonly name: "PC 端根元素";
|
|
21607
|
+
readonly selector: ".wd-pc-drawer";
|
|
21608
|
+
readonly description: "组件根元素";
|
|
21609
|
+
readonly code: "\n :scope.wd-pc-drawer {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
21610
|
+
}, {
|
|
21611
|
+
readonly name: "H5 端根元素";
|
|
21612
|
+
readonly selector: ".wd-h5-drawer";
|
|
21613
|
+
readonly description: "可以为 H5 端的编写样式";
|
|
21614
|
+
readonly code: "\n :scope.wd-h5-drawer {\n /* 在这里编写CSS 样式 */\n }\n ";
|
|
21615
|
+
}, {
|
|
21616
|
+
readonly name: "小程序 端根元素";
|
|
21617
|
+
readonly selector: ".wd-mp-drawer";
|
|
21618
|
+
readonly description: "可以为 小程序 端的编写样式";
|
|
21619
|
+
readonly code: "\n :scope.wd-mp-drawer {\n /* 可以为 小程序 端的编写样式 */\n }\n ";
|
|
21620
|
+
}, {
|
|
21621
|
+
readonly name: "抽屉遮罩层样式";
|
|
21622
|
+
readonly selector: ".wd-drawer-mask";
|
|
21623
|
+
readonly description: "可以为遮罩层编写样式";
|
|
21624
|
+
readonly code: "\n :scope .wd-drawer-mask {\n /* 可以为遮罩层编写样式 */\n background-color: rgba(0, 0, 0, 0.5)\n }\n ";
|
|
21625
|
+
}, {
|
|
21626
|
+
readonly name: "抽屉主体容器样式";
|
|
21627
|
+
readonly selector: ".wd-drawer-content-wrapper";
|
|
21628
|
+
readonly description: "可以为主体容器编写样式";
|
|
21629
|
+
readonly code: "\n :scope .wd-drawer-content-wrapper {\n /* 可以为主体容器编写样式 */\n inset-inline-start: auto;\n inset-inline-end: 0;\n }\n ";
|
|
21630
|
+
}, {
|
|
21631
|
+
readonly name: "抽屉顶部容器样式";
|
|
21632
|
+
readonly selector: ".wd-drawer-header";
|
|
21633
|
+
readonly description: "可以为顶部容器编写样式";
|
|
21634
|
+
readonly code: "\n :scope .wd-drawer-header {\n /* 可以为顶部容器编写样式*/\n padding: 0;\n }\n ";
|
|
21635
|
+
}, {
|
|
21636
|
+
readonly name: "抽屉内容容器样式";
|
|
21637
|
+
readonly selector: ".wd-drawer-body";
|
|
21638
|
+
readonly description: "可以为内容容器编写样式";
|
|
21639
|
+
readonly code: "\n :scope .wd-drawer-body {\n /* 可以为内容容器编写样式 */\n padding: 0;\n }\n ";
|
|
21640
|
+
}, {
|
|
21641
|
+
readonly name: "抽屉底部容器样式";
|
|
21642
|
+
readonly selector: ".wd-drawer-footer";
|
|
21643
|
+
readonly description: "可以为底部容器编写样式";
|
|
21644
|
+
readonly code: "\n :scope .wd-drawer-footer {\n /* 可以为底部容器编写样式 */\n padding: 0;\n }\n ";
|
|
21645
|
+
}];
|
|
21646
|
+
readonly methods: readonly [{
|
|
21647
|
+
readonly name: "open";
|
|
21648
|
+
readonly label: "打开抽屉";
|
|
21649
|
+
readonly params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
21650
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
21651
|
+
}>>;
|
|
21652
|
+
}, {
|
|
21653
|
+
readonly name: "close";
|
|
21654
|
+
readonly label: "关闭抽屉";
|
|
21655
|
+
readonly params: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
21656
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
21657
|
+
}>>;
|
|
21658
|
+
}];
|
|
21659
|
+
readonly events: readonly [{
|
|
21660
|
+
readonly title: "抽屉打开时";
|
|
21661
|
+
readonly name: "open";
|
|
21662
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
21663
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
21664
|
+
}>;
|
|
21665
|
+
}, {
|
|
21666
|
+
readonly title: "抽屉关闭时";
|
|
21667
|
+
readonly name: "close";
|
|
21668
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
21669
|
+
info: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
21670
|
+
}>;
|
|
21671
|
+
}];
|
|
21672
|
+
readonly meta: {
|
|
21673
|
+
readonly name: "WdDrawer";
|
|
21674
|
+
readonly componentName: "drawer";
|
|
21675
|
+
readonly title: "抽屉";
|
|
21676
|
+
readonly description: "屏幕边缘滑出的浮层面板。";
|
|
21677
|
+
readonly propertyPanelTips: "在小程序中使用时,不建议嵌套在其他容器/组件中,以免抽屉被遮盖";
|
|
21678
|
+
readonly figureIcon: "../figureIcons/WdModal.svg";
|
|
21679
|
+
readonly icon: "../icons/Modal.svg";
|
|
21680
|
+
readonly category: "布局";
|
|
21681
|
+
readonly categoryOrder: 200;
|
|
21682
|
+
readonly componentOrder: 150;
|
|
21683
|
+
readonly visible: readonly ["APP"];
|
|
21684
|
+
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/WdModal";
|
|
21685
|
+
readonly templates: readonly [{
|
|
21686
|
+
readonly when: "$attached";
|
|
21687
|
+
readonly to: "headerSlot";
|
|
21688
|
+
readonly body: string;
|
|
21689
|
+
}];
|
|
21690
|
+
readonly inlineStyleForm: {
|
|
21691
|
+
readonly justifyContent: {
|
|
21692
|
+
readonly visible: false;
|
|
21693
|
+
};
|
|
21694
|
+
readonly flexDirection: {
|
|
21695
|
+
readonly visible: false;
|
|
21696
|
+
};
|
|
21697
|
+
readonly alignItems: {
|
|
21698
|
+
readonly visible: false;
|
|
21699
|
+
};
|
|
21700
|
+
};
|
|
21701
|
+
};
|
|
21702
|
+
};
|
|
21454
21703
|
Chart: {
|
|
21455
21704
|
readonly $schema: "https://comp-public-replace-1303824488-cos.weda.tencent.com/schema/lcds_component.json";
|
|
21456
21705
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
@@ -28754,7 +29003,7 @@ declare const _default: {
|
|
|
28754
29003
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">>;
|
|
28755
29004
|
size: import("@sinclair/typebox").TUnsafe<"default" | "mini" | "large">;
|
|
28756
29005
|
usage: import("@sinclair/typebox").TString;
|
|
28757
|
-
language: import("@sinclair/typebox").TUnsafe<"
|
|
29006
|
+
language: import("@sinclair/typebox").TUnsafe<"en" | "zh_CN" | "zh_TW">;
|
|
28758
29007
|
}>;
|
|
28759
29008
|
readonly events: readonly [{
|
|
28760
29009
|
readonly title: "用户信息授权成功";
|
|
@@ -31080,6 +31329,11 @@ declare const _default: {
|
|
|
31080
31329
|
readonly selector: ".wd-table__box td";
|
|
31081
31330
|
readonly description: "表格文字样式";
|
|
31082
31331
|
readonly code: "\n :scope .wd-table__box td {\n background-color: lightgray;\n height: 36px;\n }\n ";
|
|
31332
|
+
}, {
|
|
31333
|
+
readonly name: "表格内容文本元素";
|
|
31334
|
+
readonly selector: ".wd-table__box td .wd-text-overflow";
|
|
31335
|
+
readonly description: "表格筛选面板根元素";
|
|
31336
|
+
readonly code: "\n :scope .wd-table__box td .wd-text-overflow {\n border: 2px solid gray;\n border-radius: 10px;\n }\n ";
|
|
31083
31337
|
}, {
|
|
31084
31338
|
readonly name: "表格主体样式";
|
|
31085
31339
|
readonly selector: ".wd-table";
|
package/dist/configs/index.js
CHANGED
|
@@ -134,6 +134,7 @@ import CustomerService from './components/customer-service';
|
|
|
134
134
|
import WdTree from './components/wd-tree';
|
|
135
135
|
import WdOfficialAccount from './components/wd-official-account';
|
|
136
136
|
import WdModal from './components/wd-modal';
|
|
137
|
+
import WdDrawer from './components/wd-drawer';
|
|
137
138
|
import Chart from './components/echart';
|
|
138
139
|
import WdCanvas from './components/wd-canvas';
|
|
139
140
|
import WdAudio from './components/wd-audio';
|
|
@@ -163,6 +164,7 @@ export const components = {
|
|
|
163
164
|
WdAd,
|
|
164
165
|
WdCanvas,
|
|
165
166
|
WdModal,
|
|
167
|
+
WdDrawer,
|
|
166
168
|
Chart,
|
|
167
169
|
WdOfficialAccount,
|
|
168
170
|
WdTree,
|
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -1228,3 +1228,21 @@ export const WD_CODE_EDITOR_THEME = [
|
|
|
1228
1228
|
{ label: '暗黑', value: 'githubDark' },
|
|
1229
1229
|
{ label: '明亮', value: 'githubLight' },
|
|
1230
1230
|
];
|
|
1231
|
+
export const WD_DRAWER_PLACEMENT = [
|
|
1232
|
+
{
|
|
1233
|
+
label: '右',
|
|
1234
|
+
value: 'right',
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
label: '左',
|
|
1238
|
+
value: 'left',
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
label: '上',
|
|
1242
|
+
value: 'top',
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
label: '下',
|
|
1246
|
+
value: 'bottom',
|
|
1247
|
+
},
|
|
1248
|
+
];
|
package/dist/style/index.css
CHANGED
|
@@ -1862,7 +1862,6 @@ body .wd-h5-root {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
|
|
1864
1864
|
.wd-list {
|
|
1865
|
-
padding: 0;
|
|
1866
1865
|
list-style: none;
|
|
1867
1866
|
color: var(--wd-color-text-default);
|
|
1868
1867
|
}
|
|
@@ -1891,7 +1890,7 @@ body .wd-h5-root {
|
|
|
1891
1890
|
padding: var(--wd-space-base);
|
|
1892
1891
|
}
|
|
1893
1892
|
.wd-list--option > li {
|
|
1894
|
-
margin:
|
|
1893
|
+
margin: 0;
|
|
1895
1894
|
font-size: var(--wd-font-size-default);
|
|
1896
1895
|
padding: 6px 10px;
|
|
1897
1896
|
white-space: nowrap;
|
|
@@ -2882,7 +2881,7 @@ _:-ms-lang(x)::backdrop,
|
|
|
2882
2881
|
.wd-table__box td {
|
|
2883
2882
|
text-align: left;
|
|
2884
2883
|
vertical-align: middle;
|
|
2885
|
-
font-size:
|
|
2884
|
+
font-size: inherit;
|
|
2886
2885
|
height: var(--wd-table-td-height-md);
|
|
2887
2886
|
padding: var(--wd-table-td-space-vertical-md) 16px;
|
|
2888
2887
|
box-sizing: border-box;
|
|
@@ -7929,6 +7928,147 @@ page,
|
|
|
7929
7928
|
background-image: radial-gradient(200px at 10px 0px, transparent 10px, #666 10px);
|
|
7930
7929
|
}
|
|
7931
7930
|
|
|
7931
|
+
.wd-pc-drawer {
|
|
7932
|
+
--wd-drawer-width: 23.625rem;
|
|
7933
|
+
--wd-drawer-height: 23.625rem;
|
|
7934
|
+
}
|
|
7935
|
+
|
|
7936
|
+
.wd-h5-drawer,
|
|
7937
|
+
.wd-mp-drawer {
|
|
7938
|
+
--wd-drawer-width: 17.5rem;
|
|
7939
|
+
--wd-drawer-height: 17.5rem;
|
|
7940
|
+
}
|
|
7941
|
+
|
|
7942
|
+
.wd-drawer-mask {
|
|
7943
|
+
position: fixed;
|
|
7944
|
+
top: 0;
|
|
7945
|
+
left: 0;
|
|
7946
|
+
width: 100%;
|
|
7947
|
+
height: 100%;
|
|
7948
|
+
background-color: rgba(0, 0, 0, 0.45);
|
|
7949
|
+
z-index: 999;
|
|
7950
|
+
}
|
|
7951
|
+
.wd-drawer-mask-enter {
|
|
7952
|
+
opacity: 0;
|
|
7953
|
+
}
|
|
7954
|
+
.wd-drawer-mask-enter-active {
|
|
7955
|
+
opacity: 1;
|
|
7956
|
+
transition: opacity 0.3s ease-in-out;
|
|
7957
|
+
}
|
|
7958
|
+
.wd-drawer-mask-exit {
|
|
7959
|
+
opacity: 1;
|
|
7960
|
+
}
|
|
7961
|
+
.wd-drawer-mask-exit-active {
|
|
7962
|
+
opacity: 0;
|
|
7963
|
+
transition: opacity 0.3s ease-in-out;
|
|
7964
|
+
}
|
|
7965
|
+
|
|
7966
|
+
.wd-drawer-content-wrapper {
|
|
7967
|
+
position: fixed;
|
|
7968
|
+
background: #fff;
|
|
7969
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
7970
|
+
display: flex;
|
|
7971
|
+
flex-direction: column;
|
|
7972
|
+
z-index: 1000;
|
|
7973
|
+
}
|
|
7974
|
+
.wd-drawer-right {
|
|
7975
|
+
top: 0;
|
|
7976
|
+
right: 0;
|
|
7977
|
+
height: 100%;
|
|
7978
|
+
width: var(--wd-drawer-width);
|
|
7979
|
+
}
|
|
7980
|
+
.wd-drawer-right-enter {
|
|
7981
|
+
transform: translateX(100%);
|
|
7982
|
+
}
|
|
7983
|
+
.wd-drawer-right-enter-active {
|
|
7984
|
+
transform: translateX(0);
|
|
7985
|
+
transition: transform 0.3s ease-in-out;
|
|
7986
|
+
}
|
|
7987
|
+
.wd-drawer-right-exit {
|
|
7988
|
+
transform: translateX(0);
|
|
7989
|
+
}
|
|
7990
|
+
.wd-drawer-right-exit-active {
|
|
7991
|
+
transform: translateX(100%);
|
|
7992
|
+
transition: transform 0.3s ease-in-out;
|
|
7993
|
+
}
|
|
7994
|
+
.wd-drawer-left {
|
|
7995
|
+
top: 0;
|
|
7996
|
+
left: 0;
|
|
7997
|
+
height: 100%;
|
|
7998
|
+
width: var(--wd-drawer-width);
|
|
7999
|
+
}
|
|
8000
|
+
.wd-drawer-left-enter {
|
|
8001
|
+
transform: translateX(-100%);
|
|
8002
|
+
}
|
|
8003
|
+
.wd-drawer-left-enter-active {
|
|
8004
|
+
transform: translateX(0);
|
|
8005
|
+
transition: transform 0.3s ease-in-out;
|
|
8006
|
+
}
|
|
8007
|
+
.wd-drawer-left-exit {
|
|
8008
|
+
transform: translateX(0);
|
|
8009
|
+
}
|
|
8010
|
+
.wd-drawer-left-exit-active {
|
|
8011
|
+
transform: translateX(-100%);
|
|
8012
|
+
transition: transform 0.3s ease-in-out;
|
|
8013
|
+
}
|
|
8014
|
+
.wd-drawer-top {
|
|
8015
|
+
top: 0;
|
|
8016
|
+
left: 0;
|
|
8017
|
+
width: 100%;
|
|
8018
|
+
height: var(--wd-drawer-height);
|
|
8019
|
+
}
|
|
8020
|
+
.wd-drawer-top-enter {
|
|
8021
|
+
transform: translateY(-100%);
|
|
8022
|
+
}
|
|
8023
|
+
.wd-drawer-top-enter-active {
|
|
8024
|
+
transform: translateY(0);
|
|
8025
|
+
transition: transform 0.3s ease-in-out;
|
|
8026
|
+
}
|
|
8027
|
+
.wd-drawer-top-exit {
|
|
8028
|
+
transform: translateY(0);
|
|
8029
|
+
}
|
|
8030
|
+
.wd-drawer-top-exit-active {
|
|
8031
|
+
transform: translateY(-100%);
|
|
8032
|
+
transition: transform 0.3s ease-in-out;
|
|
8033
|
+
}
|
|
8034
|
+
.wd-drawer-bottom {
|
|
8035
|
+
bottom: 0;
|
|
8036
|
+
left: 0;
|
|
8037
|
+
width: 100%;
|
|
8038
|
+
height: var(--wd-drawer-height);
|
|
8039
|
+
}
|
|
8040
|
+
.wd-drawer-bottom-enter {
|
|
8041
|
+
transform: translateY(100%);
|
|
8042
|
+
}
|
|
8043
|
+
.wd-drawer-bottom-enter-active {
|
|
8044
|
+
transform: translateY(0);
|
|
8045
|
+
transition: transform 0.3s ease-in-out;
|
|
8046
|
+
}
|
|
8047
|
+
.wd-drawer-bottom-exit {
|
|
8048
|
+
transform: translateY(0);
|
|
8049
|
+
}
|
|
8050
|
+
.wd-drawer-bottom-exit-active {
|
|
8051
|
+
transform: translateY(100%);
|
|
8052
|
+
transition: transform 0.3s ease-in-out;
|
|
8053
|
+
}
|
|
8054
|
+
.wd-drawer-header {
|
|
8055
|
+
display: flex;
|
|
8056
|
+
align-items: center;
|
|
8057
|
+
justify-content: space-between;
|
|
8058
|
+
padding: 20px 24px;
|
|
8059
|
+
border-bottom: 1px solid #f0f0f0;
|
|
8060
|
+
flex-shrink: 0;
|
|
8061
|
+
}
|
|
8062
|
+
.wd-drawer-body {
|
|
8063
|
+
flex: 1;
|
|
8064
|
+
padding: 20px 24px;
|
|
8065
|
+
overflow-y: auto;
|
|
8066
|
+
}
|
|
8067
|
+
.wd-drawer-footer {
|
|
8068
|
+
border-top: 1px solid #f0f0f0;
|
|
8069
|
+
padding: 20px 24px;
|
|
8070
|
+
}
|
|
8071
|
+
|
|
7932
8072
|
.wd-cascader,
|
|
7933
8073
|
.wd-cascader-menu,
|
|
7934
8074
|
.wd-cascader-h5-view-list__menu {
|
|
@@ -9421,6 +9561,9 @@ page,
|
|
|
9421
9561
|
width: 100%;
|
|
9422
9562
|
background: var(--wd-tabs-bg);
|
|
9423
9563
|
}
|
|
9564
|
+
.wd-tabs-root.wd-event-tap:active {
|
|
9565
|
+
box-shadow: unset;
|
|
9566
|
+
}
|
|
9424
9567
|
.wd-tabs__header {
|
|
9425
9568
|
display: flex;
|
|
9426
9569
|
flex-direction: row;
|