refactor: rename usecssr -> withCssr, asformitem -> asFormItem

This commit is contained in:
07akioni 2020-11-09 23:09:18 +08:00
parent 0fee062398
commit a2d25cb9fc
91 changed files with 210 additions and 210 deletions

View File

@ -25,13 +25,13 @@
</template>
<script>
import usecssr from '../../../_mixins/usecssr'
import { withCssr } from '../../../_mixins'
import styles from './styles/'
export default {
name: 'BaseLoading',
mixins: [
usecssr(styles)
withCssr(styles)
],
props: {
radius: {

View File

@ -17,13 +17,13 @@
<script>
import { ref, onBeforeUnmount } from 'vue'
import usecssr from '../../../_mixins/usecssr'
import { withCssr } from '../../../_mixins'
import styles from './styles'
export default {
name: 'BaseMenuMask',
mixins: [
usecssr(styles)
withCssr(styles)
],
props: {
theme: {

View File

@ -84,7 +84,7 @@ import NSelectGroupHeader from './SelectGroupHeader.js'
import NEmpty from '../../../empty'
import { depx, formatLength } from '../../../_utils'
import { createKey } from '../../../_utils/cssr'
import { usecssr } from '../../../_mixins'
import { withCssr } from '../../../_mixins'
import styles from './styles'
export default {
@ -97,7 +97,7 @@ export default {
NSelectGroupHeader
},
mixins: [
usecssr(styles, {
withCssr(styles, {
themeKey: 'theme',
injectCssrProps: true
})

View File

@ -188,7 +188,7 @@
<script>
import NBaseSuffix from '../../suffix/index.js'
import NTag from '../../../tag/index.js'
import usecssr from '../../../_mixins/usecssr.js'
import { withCssr } from '../../../_mixins'
import styles from './styles/index.js'
export default {
@ -198,7 +198,7 @@ export default {
NTag
},
mixins: [
usecssr(styles)
withCssr(styles)
],
inject: {
NFormItem: {

View File

@ -30,7 +30,7 @@
<script>
import { NFadeInExpandTransition } from '../../../_base'
import SlotMachineNumber from './SlotMachineNumber.vue'
import { usecssr } from '../../../_mixins'
import { withCssr } from '../../../_mixins'
import styles from './styles/index.js'
export default {
@ -40,7 +40,7 @@ export default {
SlotMachineNumber
},
mixins: [
usecssr(styles)
withCssr(styles)
],
props: {
value: {

View File

@ -47,7 +47,7 @@ import CancelIcon from './CancelIcon.vue'
import { NIconSwitchTransition } from '../../../_base'
import NBaseLoading from '../../loading'
import {
usecssr
withCssr
} from '../../../_mixins'
import styles from './styles'
@ -59,7 +59,7 @@ export default {
NIconSwitchTransition
},
mixins: [
usecssr(styles)
withCssr(styles)
],
inject: {
NFormItem: {

View File

@ -8,13 +8,13 @@
</template>
<script>
import usecssr from '../../../_mixins/usecssr'
import { withCssr } from '../../../_mixins'
import styles from './styles/index.js'
export default {
name: 'NBaseWave',
mixins: [
usecssr(styles)
withCssr(styles)
],
data () {
return {

View File

@ -1,8 +1,8 @@
export { default as useAsFormItem } from './use-as-form-item'
export { default as asformitem } from './asformitem'
export { default as asFormItem } from './as-form-item'
export { default as locale } from './locale'
export { default as placeable } from './placeable/index'
export { default as themeable } from './themeable'
export { default as configurable } from './configurable'
export { default as usecssr } from './usecssr'
export { default as withCssr } from './with-cssr'
export { default as registerable } from './registerable'

View File

@ -62,7 +62,7 @@ function setupMutableStyle (
__DEV__ &&
(depValue === null || depValue === undefined)
) {
warn('mixins/usecssr', `dependency key ${name}.${depKey} should not be nullable`)
warn('mixins/with-cssr', `dependency key ${name}.${depKey} should not be nullable`)
}
const mountId = createMutableStyleId(
id,
@ -73,7 +73,7 @@ function setupMutableStyle (
if (find(mountId)) return
const cssrPropsGetter = styles[renderedTheme][name]
if (__DEV__ && !cssrPropsGetter) {
warn('mixins/usecssr', `${name}'s style not found`)
warn('mixins/with-cssr', `${name}'s style not found`)
}
// themeVariables: { base, derived }
const themeVariables = getThemeVariables(naive, renderedTheme)
@ -134,7 +134,7 @@ function getCssrProps (
}
}
const usecssr = function (styles = [], cssrPropsOption) {
const withCssr = function (styles = [], cssrPropsOption) {
// collect watchers
const watchers = {}
if (
@ -224,4 +224,4 @@ const usecssr = function (styles = [], cssrPropsOption) {
}
}
export default usecssr
export default withCssr

View File

@ -13,7 +13,7 @@
<script>
import getScrollParent from '../../_utils/dom/get-scroll-parent'
import { usecssr } from '../../_mixins'
import { withCssr } from '../../_mixins'
import styles from './styles/index.js'
import getTarget from '../../_utils/dom/get-target'
import { warn } from '../../_utils/naive/warn'
@ -21,7 +21,7 @@ import { warn } from '../../_utils/naive/warn'
export default {
name: 'Affix',
mixins: [
usecssr(styles)
withCssr(styles)
],
props: {
listenTo: {

View File

@ -73,7 +73,7 @@ import { NFadeInExpandTransition } from '../../_base'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { warn } from '../../_utils/naive'
import styles from './styles'
@ -101,7 +101,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
title: {

View File

@ -29,7 +29,7 @@ import getScrollParent from '../../_utils/dom/get-scroll-parent'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { onFontsReady } from 'vooks'
import { warn } from '../../_utils/naive/warn'
@ -56,7 +56,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -74,9 +74,9 @@ import { createTreeMate } from 'treemate'
import {
configurable,
themeable,
asformitem,
asFormItem,
placeable,
usecssr
withCssr
} from '../../_mixins'
import {
clickoutside,
@ -108,8 +108,8 @@ export default {
configurable,
themeable,
placeable,
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
props: {
placeholder: {

View File

@ -33,7 +33,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
import { validSize } from './config'
@ -43,7 +43,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
size: {

View File

@ -57,7 +57,7 @@ import getScrollParent from '../../_utils/dom/get-scroll-parent'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { formatLength, warn } from '../../_utils'
import styles from './styles'
@ -72,7 +72,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
show: {

View File

@ -40,7 +40,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { NBaseSlotMachine, NBaseWave } from '../../_base'
import styles from './styles/index.js'
@ -54,7 +54,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
value: {

View File

@ -13,7 +13,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/index.js'
@ -22,7 +22,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -10,13 +10,13 @@
</template>
<script>
import usecssr from '../../_mixins/usecssr'
import { withCssr } from '../../_mixins'
import styles from './styles/index.js'
export default {
name: 'ButtonGroup',
mixins: [
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -73,7 +73,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import {
NFadeInExpandTransition,
@ -97,7 +97,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
inject: {
NButtonGroup: {

View File

@ -48,7 +48,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import NIcon from '../../icon'
import {
@ -65,7 +65,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
title: {

View File

@ -82,7 +82,7 @@ import {
configurable,
themeable,
locale,
usecssr
withCssr
} from '../../_mixins'
import { useCascader } from './composables'
import { warn, call } from '../../_utils'
@ -102,7 +102,7 @@ export default {
configurable,
themeable,
locale('Cascader'),
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -56,8 +56,8 @@ import { useMergedState, useMemo } from 'vooks'
import {
configurable,
themeable,
asformitem,
usecssr
asFormItem,
withCssr
} from '../../_mixins'
import { render } from '../../_utils/vue'
import CheckMark from './CheckMark.vue'
@ -77,7 +77,7 @@ export default {
mixins: [
configurable,
themeable,
asformitem({
asFormItem({
mergedSize () {
const { size } = this
if (size !== undefined) return size
@ -95,7 +95,7 @@ export default {
return 'medium'
}
}),
usecssr(styles)
withCssr(styles)
],
inject: {
NCheckboxGroup: {

View File

@ -2,7 +2,7 @@ import { h } from 'vue'
import {
configurable,
themeable,
asformitem
asFormItem
} from '../../_mixins'
import { getSlot } from '../../_utils/vue'
import { warn, call } from '../../_utils'
@ -12,7 +12,7 @@ export default {
mixins: [
configurable,
themeable,
asformitem()
asFormItem()
],
provide () {
return {

View File

@ -2,7 +2,7 @@ import { h, nextTick } from 'vue'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/index.js'
import { warn } from '../../_utils/naive/warn'
@ -12,7 +12,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
language: {

View File

@ -3,7 +3,7 @@ import { intersection } from 'lodash-es'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import {
call,
@ -21,7 +21,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
expandedNames: {

View File

@ -66,7 +66,7 @@ import { ref } from 'vue'
import {
configurable,
themeable,
usecssr,
withCssr,
locale
} from '../../_mixins'
import { setCheckStatusOfRow, createRowKey } from './utils'
@ -138,7 +138,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles),
withCssr(styles),
locale('DataTable')
],
provide () {

View File

@ -151,8 +151,8 @@ import {
configurable,
themeable,
placeable,
asformitem,
usecssr,
asFormItem,
withCssr,
locale
} from '../../_mixins'
import {
@ -215,8 +215,8 @@ export default {
themeable,
placeable,
locale('DatePicker'),
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
provide () {
return {

View File

@ -2,7 +2,7 @@ import { h } from 'vue'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
import { warn } from '../../_utils/naive/warn'
@ -15,7 +15,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
title: {

View File

@ -71,7 +71,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { render } from '../../_utils/vue'
import NIcon from '../../icon'
@ -98,7 +98,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
icon: {

View File

@ -30,7 +30,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -39,7 +39,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
titlePlacement: {

View File

@ -40,7 +40,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { zindexable } from '../../_directives'
import { warn, formatLength } from '../../_utils'
@ -61,7 +61,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -3,7 +3,7 @@ import { TreeMate } from 'treemate'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { KEY_CODE } from '../../_utils'
import keyboardDelegate from '../../_utils/delegate/keyboardDelegate'
@ -67,7 +67,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -75,8 +75,8 @@ import NDynamicInputPairPreset from './PairPreset.vue'
import {
configurable,
themeable,
usecssr,
asformitem,
withCssr,
asFormItem,
locale
} from '../../_mixins'
import styles from './styles'
@ -99,8 +99,8 @@ export default {
configurable,
themeable,
locale('DynamicInput'),
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
provide () {
return {

View File

@ -47,9 +47,9 @@ import { AddIcon } from '../../_base/icons'
import {
configurable,
themeable,
asformitem,
asFormItem,
locale,
usecssr
withCssr
} from '../../_mixins'
import commonProps from '../../tag/src/common-props'
import styles from './styles'
@ -67,8 +67,8 @@ export default {
configurable,
themeable,
locale('Tag'),
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
props: {
...commonProps,

View File

@ -30,7 +30,7 @@ import {
configurable,
themeable,
locale,
usecssr
withCssr
} from '../../_mixins'
import {
EmptyIcon
@ -48,7 +48,7 @@ export default {
configurable,
themeable,
locale('Empty'),
usecssr(styles)
withCssr(styles)
],
props: {
description: {

View File

@ -94,7 +94,7 @@ import { get } from 'lodash-es'
import {
configurable,
themeable,
usecssr,
withCssr,
registerable
} from '../../_mixins'
import styles from './styles'
@ -151,7 +151,7 @@ export default {
registerable('NForm', 'formItems', 'path'),
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
inject: {
NForm: {

View File

@ -19,7 +19,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { formatLength } from '../../_utils'
import styles from './styles/index'
@ -29,7 +29,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
size: {

View File

@ -25,13 +25,13 @@
<script>
import { formatLength } from '../../_utils'
import { usecssr } from '../../_mixins'
import { withCssr } from '../../_mixins'
import styles from './styles/col.js'
export default {
name: 'Col',
mixins: [
usecssr(styles)
withCssr(styles)
],
inject: {
NRow: {

View File

@ -17,13 +17,13 @@
<script>
import { formatLength } from '../../_utils'
import { usecssr } from '../../_mixins'
import { withCssr } from '../../_mixins'
import styles from './styles/row.js'
export default {
name: 'Row',
mixins: [
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -2,7 +2,7 @@ import { h } from 'vue'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/index'
import { formatLength } from '../../_utils'
@ -14,7 +14,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
size: {

View File

@ -14,7 +14,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -23,7 +23,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
size: {

View File

@ -5,13 +5,13 @@
</template>
<script>
import usecssr from '../../_mixins/usecssr'
import { withCssr } from '../../_mixins'
import styles from './styles'
export default {
name: 'InputGroup',
mixins: [
usecssr(styles)
withCssr(styles)
]
}
</script>

View File

@ -68,8 +68,8 @@ import {
import {
configurable,
themeable,
asformitem,
usecssr,
asFormItem,
withCssr,
locale
} from '../../_mixins'
import { warn, call } from '../../_utils'
@ -101,8 +101,8 @@ export default {
configurable,
themeable,
locale('InputNumber'),
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
props: {
placeholder: {

View File

@ -163,9 +163,9 @@ import { NBaseSuffix } from '../../_base'
import {
configurable,
themeable,
asformitem,
asFormItem,
locale,
usecssr
withCssr
} from '../../_mixins'
import { call } from '../../_utils'
import styles from './styles'
@ -179,8 +179,8 @@ export default {
configurable,
themeable,
locale('Input'),
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
props: {
type: {

View File

@ -29,7 +29,7 @@ import layoutModeMixin from './layoutModeMixin'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/layout'
@ -44,7 +44,7 @@ export default {
configurable,
themeable,
layoutModeMixin,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -17,7 +17,7 @@ import layoutModeMixin from './layoutModeMixin'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/layout-header-footer'
@ -29,7 +29,7 @@ export default {
configurable,
themeable,
layoutModeMixin,
usecssr(styles)
withCssr(styles)
],
props: {
bordered: {

View File

@ -17,7 +17,7 @@ import layoutModeMixin from './layoutModeMixin'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/layout-header-footer'
@ -29,7 +29,7 @@ export default {
configurable,
themeable,
layoutModeMixin,
usecssr(styles)
withCssr(styles)
],
props: {
bordered: {

View File

@ -51,7 +51,7 @@ import layoutModeMixin from './layoutModeMixin'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import ToggleButton from './ToggleButton.vue'
import ToggleBar from './ToggleBar.vue'
@ -71,7 +71,7 @@ export default {
configurable,
themeable,
layoutModeMixin,
usecssr(styles)
withCssr(styles)
],
props: {
bordered: {

View File

@ -21,13 +21,13 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
export default {
name: 'List',
mixins: [configurable, themeable, usecssr(styles)],
mixins: [configurable, themeable, withCssr(styles)],
props: {
size: {
type: String,

View File

@ -25,7 +25,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -38,7 +38,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
data () {
return {

View File

@ -33,7 +33,7 @@ import { ref } from 'vue'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import NScrollbar from '../../scrollbar'
import NLogLoader from './LogLoader.vue'
@ -52,7 +52,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -3,7 +3,7 @@ import { useCompitable, useMergedState } from 'vooks'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/index'
import {
@ -23,7 +23,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
items: {

View File

@ -12,7 +12,7 @@ import { render } from '../../_utils/vue'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
import props from './message-props'
@ -22,7 +22,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props,
methods: {

View File

@ -1,6 +1,6 @@
import { h, withDirectives, Transition, ref, computed } from 'vue'
import { zindexable } from '../../_directives'
import { configurable, themeable, usecssr } from '../../_mixins'
import { configurable, themeable, withCssr } from '../../_mixins'
import presetProps from './presetProps'
import { useIsMounted, useClicked, useClickPosition } from 'vooks'
import { warn } from '../../_utils/naive/warn'
@ -20,7 +20,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
show: {

View File

@ -59,7 +59,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { render } from '../../_utils/vue'
import styles from './styles'
@ -86,7 +86,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
closable: {

View File

@ -106,7 +106,7 @@ import {
configurable,
themeable,
locale,
usecssr
withCssr
} from '../../_mixins'
import { pageItems } from './utils'
import styles from './styles'
@ -126,7 +126,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles),
withCssr(styles),
locale('Pagination')
],
props: {

View File

@ -46,7 +46,7 @@ import {
configurable,
themeable,
locale,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -62,7 +62,7 @@ export default {
locale('Popconfirm'),
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
positiveText: {

View File

@ -5,7 +5,7 @@ import {
Transition
} from 'vue'
import { clickoutside, mousemoveoutside, zindexable } from '../../_directives'
import { configurable, themeable, placeable, usecssr } from '../../_mixins'
import { configurable, themeable, placeable, withCssr } from '../../_mixins'
import styles from './styles'
import { formatLength } from '../../_utils'
import { getSlot } from '../../_utils/vue'
@ -94,7 +94,7 @@ export default {
configurable,
themeable,
placeable,
usecssr(styles)
withCssr(styles)
],
data () {
return {

View File

@ -17,7 +17,7 @@ import { NBaseSelectMenu } from '../../_base'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
import { call } from '../../_utils/vue'
@ -31,7 +31,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
inject: {
NPopselect: {

View File

@ -247,7 +247,7 @@ import {
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/index.js'
import { formatLength } from '../../_utils'
@ -271,7 +271,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
processing: {

View File

@ -43,8 +43,8 @@
import {
configurable,
themeable,
asformitem,
usecssr
asFormItem,
withCssr
} from '../../_mixins'
import radioMixin from './radio-mixin'
import styles from './styles/radio/index.js'
@ -55,8 +55,8 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles),
asformitem({
withCssr(styles),
asFormItem({
mergedSize () {
const { size } = this
if (size !== undefined) return size

View File

@ -33,7 +33,7 @@ import setup from './radio-setup'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/radio-button/index.js'
@ -45,7 +45,7 @@ export default {
configurable,
themeable,
radioMixin,
usecssr(styles)
withCssr(styles)
],
setup
}

View File

@ -2,11 +2,11 @@ import { h } from 'vue'
import {
configurable,
themeable,
asformitem
asFormItem,
withCssr
} from '../../_mixins'
import { getSlot, flatten } from '../../_utils/vue'
import { warn } from '../../_utils/naive/warn'
import usecssr from '../../_mixins/usecssr'
import styles from './styles/radio-group/index.js'
function mapSlot (h, defaultSlot, groupInstance) {
@ -92,8 +92,8 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles),
asformitem()
withCssr(styles),
asFormItem()
],
props: {
name: {

View File

@ -30,8 +30,8 @@
import {
configurable,
themeable,
usecssr,
asformitem
withCssr,
asFormItem
} from '../../_mixins'
import {
toRef,
@ -56,8 +56,8 @@ export default {
mixins: [
configurable,
themeable,
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
props: {
count: {

View File

@ -46,7 +46,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import {
InfoIcon,
@ -77,7 +77,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
size: {

View File

@ -102,7 +102,7 @@ import {
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/index.js'
import { useIsIos } from 'vooks'
@ -115,7 +115,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
size: {

View File

@ -108,9 +108,9 @@ import {
configurable,
placeable,
themeable,
asformitem,
asFormItem,
locale,
usecssr
withCssr
} from '../../_mixins'
import {
clickoutside,
@ -172,8 +172,8 @@ export default {
themeable,
placeable,
locale('Select'),
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
provide () {
return {

View File

@ -107,8 +107,8 @@ import {
configurable,
themeable,
placeable,
asformitem,
usecssr
asFormItem,
withCssr
} from '../../_mixins'
import {
zindexable
@ -151,8 +151,8 @@ export default {
configurable,
themeable,
placeable,
usecssr(styles),
asformitem()
withCssr(styles),
asFormItem()
],
props: {
marks: {

View File

@ -45,7 +45,7 @@ import { NBaseLoading } from '../../_base'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -66,7 +66,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
stroke: {

View File

@ -35,7 +35,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -44,7 +44,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
label: {

View File

@ -2,7 +2,7 @@ import { h } from 'vue'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { getSlot } from '../../_utils/vue'
import styles from './styles/steps'
@ -27,7 +27,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
current: {

View File

@ -23,8 +23,8 @@
import {
configurable,
themeable,
asformitem,
usecssr
asFormItem,
withCssr
} from '../../_mixins'
import {
call
@ -39,8 +39,8 @@ export default {
mixins: [
configurable,
themeable,
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
props: {
value: {

View File

@ -17,7 +17,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -26,7 +26,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
bordered: {

View File

@ -95,7 +95,7 @@ import NIcon from '../../icon'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import {
ChevronLeftIcon as BackwardIcon,
@ -120,7 +120,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -29,7 +29,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { CloseIcon } from '../../_base/icons'
import { warn } from '../../_utils'
@ -44,7 +44,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
...commonProps,

View File

@ -75,7 +75,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -84,7 +84,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
title: {

View File

@ -188,7 +188,7 @@ import { NBaseLazyTeleport, NBaseFocusDetector } from '../../_base'
import NScrollbar from '../../scrollbar'
import NInput from '../../input'
import NIcon from '../../icon'
import { configurable, themeable, locale, usecssr, asformitem, placeable } from '../../_mixins'
import { configurable, themeable, locale, withCssr, asFormItem, placeable } from '../../_mixins'
import { zindexable, clickoutside } from '../../_directives'
import {
isValid,
@ -242,8 +242,8 @@ export default {
themeable,
placeable,
locale('TimePicker'),
asformitem(),
usecssr(styles)
asFormItem(),
withCssr(styles)
],
props: {
placeholder: {

View File

@ -15,7 +15,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles'
@ -24,7 +24,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -207,9 +207,9 @@ import {
} from '../../_base/icons'
import {
configurable,
asformitem,
asFormItem,
themeable,
usecssr,
withCssr,
locale
} from '../../_mixins'
import styles from './styles'
@ -236,14 +236,14 @@ export default {
mixins: [
configurable,
themeable,
usecssr(
withCssr(
styles, {
themeKey: 'mergedTheme',
injectCssrProps: true
}
),
locale('Transfer'),
asformitem()
asFormItem()
],
provide () {
return {

View File

@ -4,7 +4,7 @@ import {
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import NTreeNode from './TreeNode'
import { isLeaf, isLoaded, getAllKeys, keysWithFilter } from './utils'
@ -17,7 +17,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return { NTree: this }

View File

@ -22,7 +22,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/a'
@ -33,7 +33,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
to: {

View File

@ -14,7 +14,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/blockquote'
@ -25,7 +25,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
alignText: {

View File

@ -2,7 +2,7 @@ import { h } from 'vue'
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { getSlot } from '../../_utils/vue'
import styles from './styles/header'
@ -28,7 +28,7 @@ export default level => ({
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
render () {
const props = this.$props

View File

@ -13,7 +13,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/hr'
@ -24,7 +24,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
]
}
</script>

View File

@ -15,7 +15,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/list'
@ -26,7 +26,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
alignText: {

View File

@ -14,7 +14,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/p'
@ -25,7 +25,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
depth: {

View File

@ -56,7 +56,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import {
warn
@ -73,7 +73,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
code: {

View File

@ -15,7 +15,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import styles from './styles/list'
@ -26,7 +26,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
props: {
alignText: {

View File

@ -43,7 +43,7 @@
import {
configurable,
themeable,
usecssr
withCssr
} from '../../_mixins'
import { warn } from '../../_utils/naive'
import { createId } from '../../_utils/vue'
@ -169,7 +169,7 @@ export default {
mixins: [
configurable,
themeable,
usecssr(styles)
withCssr(styles)
],
provide () {
return {

View File

@ -186,7 +186,7 @@ light {
我目前觉得第一种好点,因为扩展一般是按照种类扩展,每次插入一个同样结构的块。而第二种是每次扩展的时候在每个块里同样的位置插入一行,这样扩展的时候写起来很别扭。
## 2020.7.1
shouldMount 可以加到 usecssr
shouldMount 可以加到 withCssr
## 2020.7.8
style overrides RFC