diff --git a/packages/taro-platform-jd/rollup.config.mjs b/packages/taro-platform-jd/rollup.config.mjs index 8531851d8f9a..f2de662ed821 100644 --- a/packages/taro-platform-jd/rollup.config.mjs +++ b/packages/taro-platform-jd/rollup.config.mjs @@ -1,6 +1,7 @@ import * as path from 'node:path' import { fileURLToPath } from 'node:url' +import { nodeResolve } from '@rollup/plugin-node-resolve' import typescript from '@rollup/plugin-typescript' import externals from 'rollup-plugin-node-externals' @@ -9,6 +10,7 @@ const cwd = path.dirname(__filename) const base = { plugins: [ + nodeResolve(), externals({ peerDeps: true, }), diff --git a/packages/taro-platform-jd/src/components-react.ts b/packages/taro-platform-jd/src/components-react.ts index c9bc9c157821..9fd382a64b86 100644 --- a/packages/taro-platform-jd/src/components-react.ts +++ b/packages/taro-platform-jd/src/components-react.ts @@ -1,4 +1,5 @@ // For React.createElement's type export * from '@tarojs/components/mini' export const Editor = 'editor' - +export const PageContainer = 'page-container' +export const RootPortal = 'root-portal' diff --git a/packages/taro-platform-jd/src/components.ts b/packages/taro-platform-jd/src/components.ts index 5bc9da815bed..fe021ea580f1 100644 --- a/packages/taro-platform-jd/src/components.ts +++ b/packages/taro-platform-jd/src/components.ts @@ -25,4 +25,39 @@ export const components = { 'adjust-position': 'true', 'disable-default-padding': 'false', }, + RootPortal: { + enable: 'true' + }, + Editor: { + 'read-only': 'false', + placeholder: '', + 'show-img-size': 'false', + 'show-img-toolbar': 'false', + 'show-img-resize': 'false', + focus: 'false', + bindReady: '', + bindFocus: '', + bindBlur: '', + bindInput: '', + bindStatusChange: '', + name: '' + }, + PageContainer: { + show: 'false', + duration: '300', + 'z-index': '100', + overlay: 'true', + position: "'bottom'", + round: 'false', + 'close-on-slide-down': 'false', + 'overlay-style': '', + 'custom-style': '', + bindBeforeEnter: '', + bindEnter: '', + bindAfterEnter: '', + bindBeforeLeave: '', + bindLeave: '', + bindAfterLeave: '', + bindClickOverlay: '' + }, }